summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2013-05-06 21:02:03 +0200
committerMichael Stahl <mstahl@redhat.com>2013-06-04 12:01:12 +0200
commit7a5a19218707ab580d58a3fbadec1148368661f1 (patch)
tree94137a4084019d6cfadac34f31351375a05c10b9
parentbe49d3a25bc867c4f523cc6ff51ed2e8df9211d7 (diff)
remove cosv, udm and autodoc
implementing UNO IDL support in doxygen: 9 days of work converting IDL file comments to doxygen: 5 days of work removing 57k lines of unmaintained buggy autodoc, bespoke String and File classes: priceless Change-Id: I566edb4f91454baa35e07d901432a8dfd35b9c29
-rw-r--r--Repository.mk3
-rw-r--r--RepositoryModule_build.mk3
-rw-r--r--RepositoryModule_host.mk3
-rw-r--r--autodoc/Executable_autodoc.mk171
-rw-r--r--autodoc/Makefile7
-rw-r--r--autodoc/Module_autodoc.mk19
-rw-r--r--autodoc/README3
-rw-r--r--autodoc/inc/ary/ary.hxx74
-rw-r--r--autodoc/inc/ary/doc/d_docu.hxx100
-rw-r--r--autodoc/inc/ary/doc/d_node.hxx103
-rw-r--r--autodoc/inc/ary/doc/d_oldidldocu.hxx105
-rw-r--r--autodoc/inc/ary/doc/d_types4doc.hxx64
-rw-r--r--autodoc/inc/ary/entity.hxx75
-rw-r--r--autodoc/inc/ary/getncast.hxx82
-rw-r--r--autodoc/inc/ary/idl/i_attribute.hxx129
-rw-r--r--autodoc/inc/ary/idl/i_ce.hxx129
-rw-r--r--autodoc/inc/ary/idl/i_ce2s.hxx78
-rw-r--r--autodoc/inc/ary/idl/i_comrela.hxx74
-rw-r--r--autodoc/inc/ary/idl/i_constant.hxx106
-rw-r--r--autodoc/inc/ary/idl/i_constgroup.hxx95
-rw-r--r--autodoc/inc/ary/idl/i_enum.hxx94
-rw-r--r--autodoc/inc/ary/idl/i_enumvalue.hxx97
-rw-r--r--autodoc/inc/ary/idl/i_exception.hxx101
-rw-r--r--autodoc/inc/ary/idl/i_function.hxx154
-rw-r--r--autodoc/inc/ary/idl/i_gate.hxx77
-rw-r--r--autodoc/inc/ary/idl/i_interface.hxx121
-rw-r--r--autodoc/inc/ary/idl/i_module.hxx107
-rw-r--r--autodoc/inc/ary/idl/i_namelookup.hxx88
-rw-r--r--autodoc/inc/ary/idl/i_param.hxx69
-rw-r--r--autodoc/inc/ary/idl/i_property.hxx137
-rw-r--r--autodoc/inc/ary/idl/i_service.hxx129
-rw-r--r--autodoc/inc/ary/idl/i_singleton.hxx99
-rw-r--r--autodoc/inc/ary/idl/i_siservice.hxx101
-rw-r--r--autodoc/inc/ary/idl/i_sisingleton.hxx94
-rw-r--r--autodoc/inc/ary/idl/i_struct.hxx124
-rw-r--r--autodoc/inc/ary/idl/i_structelem.hxx97
-rw-r--r--autodoc/inc/ary/idl/i_traits.hxx72
-rw-r--r--autodoc/inc/ary/idl/i_type.hxx136
-rw-r--r--autodoc/inc/ary/idl/i_typedef.hxx84
-rw-r--r--autodoc/inc/ary/idl/i_types4idl.hxx132
-rw-r--r--autodoc/inc/ary/idl/ik_attribute.hxx79
-rw-r--r--autodoc/inc/ary/idl/ik_ce.hxx135
-rw-r--r--autodoc/inc/ary/idl/ik_constant.hxx69
-rw-r--r--autodoc/inc/ary/idl/ik_constgroup.hxx66
-rw-r--r--autodoc/inc/ary/idl/ik_enum.hxx78
-rw-r--r--autodoc/inc/ary/idl/ik_enumvalue.hxx67
-rw-r--r--autodoc/inc/ary/idl/ik_exception.hxx75
-rw-r--r--autodoc/inc/ary/idl/ik_function.hxx89
-rw-r--r--autodoc/inc/ary/idl/ik_interface.hxx94
-rw-r--r--autodoc/inc/ary/idl/ik_module.hxx108
-rw-r--r--autodoc/inc/ary/idl/ik_property.hxx83
-rw-r--r--autodoc/inc/ary/idl/ik_service.hxx82
-rw-r--r--autodoc/inc/ary/idl/ik_singleton.hxx67
-rw-r--r--autodoc/inc/ary/idl/ik_siservice.hxx69
-rw-r--r--autodoc/inc/ary/idl/ik_sisingleton.hxx67
-rw-r--r--autodoc/inc/ary/idl/ik_struct.hxx84
-rw-r--r--autodoc/inc/ary/idl/ik_structelem.hxx66
-rw-r--r--autodoc/inc/ary/idl/ik_typedef.hxx77
-rw-r--r--autodoc/inc/ary/idl/ip_ce.hxx203
-rw-r--r--autodoc/inc/ary/idl/ip_type.hxx77
-rw-r--r--autodoc/inc/ary/info/all_dts.hxx153
-rw-r--r--autodoc/inc/ary/info/all_tags.hxx191
-rw-r--r--autodoc/inc/ary/info/ci_attag.hxx92
-rw-r--r--autodoc/inc/ary/info/ci_text.hxx75
-rw-r--r--autodoc/inc/ary/info/infodisp.hxx95
-rw-r--r--autodoc/inc/ary/info/inftypes.hxx115
-rw-r--r--autodoc/inc/ary/namesort.hxx69
-rw-r--r--autodoc/inc/ary/object.hxx64
-rw-r--r--autodoc/inc/ary/qualiname.hxx97
-rw-r--r--autodoc/inc/ary/stdconstiter.hxx92
-rw-r--r--autodoc/inc/ary/types.hxx124
-rw-r--r--autodoc/inc/ary_i/ci_atag2.hxx72
-rw-r--r--autodoc/inc/ary_i/ci_text2.hxx85
-rw-r--r--autodoc/inc/ary_i/d_token.hxx259
-rw-r--r--autodoc/inc/ary_i/disdocum.hxx138
-rw-r--r--autodoc/inc/autodoc/displaying.hxx61
-rw-r--r--autodoc/inc/autodoc/dsp_html_std.hxx82
-rw-r--r--autodoc/inc/autodoc/filecoli.hxx65
-rw-r--r--autodoc/inc/autodoc/parsing.hxx57
-rw-r--r--autodoc/inc/autodoc/prs_docu.hxx52
-rw-r--r--autodoc/inc/autodoc/x_parsing.hxx67
-rw-r--r--autodoc/inc/display/corframe.hxx73
-rw-r--r--autodoc/inc/parser/parser.hxx50
-rw-r--r--autodoc/inc/parser/parserinfo.hxx58
-rw-r--r--autodoc/inc/parser/unoidl.hxx72
-rw-r--r--autodoc/source/ary/doc/d_docu.cxx53
-rw-r--r--autodoc/source/ary/doc/d_node.cxx63
-rw-r--r--autodoc/source/ary/doc/d_oldidldocu.cxx70
-rw-r--r--autodoc/source/ary/idl/i2s_calculator.cxx965
-rw-r--r--autodoc/source/ary/idl/i2s_calculator.hxx288
-rw-r--r--autodoc/source/ary/idl/i_attribute.cxx153
-rw-r--r--autodoc/source/ary/idl/i_ce.cxx62
-rw-r--r--autodoc/source/ary/idl/i_ce2s.cxx78
-rw-r--r--autodoc/source/ary/idl/i_comrela.cxx41
-rw-r--r--autodoc/source/ary/idl/i_constant.cxx117
-rw-r--r--autodoc/source/ary/idl/i_constgroup.cxx108
-rw-r--r--autodoc/source/ary/idl/i_enum.cxx137
-rw-r--r--autodoc/source/ary/idl/i_enumvalue.cxx110
-rw-r--r--autodoc/source/ary/idl/i_exception.cxx133
-rw-r--r--autodoc/source/ary/idl/i_function.cxx159
-rw-r--r--autodoc/source/ary/idl/i_interface.cxx190
-rw-r--r--autodoc/source/ary/idl/i_module.cxx197
-rw-r--r--autodoc/source/ary/idl/i_namelookup.cxx56
-rw-r--r--autodoc/source/ary/idl/i_nnfinder.hxx112
-rw-r--r--autodoc/source/ary/idl/i_param.cxx51
-rw-r--r--autodoc/source/ary/idl/i_property.cxx165
-rw-r--r--autodoc/source/ary/idl/i_reposypart.cxx112
-rw-r--r--autodoc/source/ary/idl/i_reposypart.hxx87
-rw-r--r--autodoc/source/ary/idl/i_service.cxx165
-rw-r--r--autodoc/source/ary/idl/i_singleton.cxx106
-rw-r--r--autodoc/source/ary/idl/i_siservice.cxx115
-rw-r--r--autodoc/source/ary/idl/i_sisingleton.cxx107
-rw-r--r--autodoc/source/ary/idl/i_struct.cxx157
-rw-r--r--autodoc/source/ary/idl/i_structelem.cxx111
-rw-r--r--autodoc/source/ary/idl/i_traits.cxx66
-rw-r--r--autodoc/source/ary/idl/i_typedef.cxx139
-rw-r--r--autodoc/source/ary/idl/ia_ce.cxx575
-rw-r--r--autodoc/source/ary/idl/ia_ce.hxx247
-rw-r--r--autodoc/source/ary/idl/ia_type.cxx353
-rw-r--r--autodoc/source/ary/idl/ia_type.hxx164
-rw-r--r--autodoc/source/ary/idl/is_ce.cxx59
-rw-r--r--autodoc/source/ary/idl/is_ce.hxx73
-rw-r--r--autodoc/source/ary/idl/is_type.cxx77
-rw-r--r--autodoc/source/ary/idl/is_type.hxx116
-rw-r--r--autodoc/source/ary/idl/it_builtin.cxx73
-rw-r--r--autodoc/source/ary/idl/it_builtin.hxx70
-rw-r--r--autodoc/source/ary/idl/it_ce.cxx94
-rw-r--r--autodoc/source/ary/idl/it_ce.hxx82
-rw-r--r--autodoc/source/ary/idl/it_explicit.cxx94
-rw-r--r--autodoc/source/ary/idl/it_explicit.hxx87
-rw-r--r--autodoc/source/ary/idl/it_named.hxx69
-rw-r--r--autodoc/source/ary/idl/it_sequence.cxx85
-rw-r--r--autodoc/source/ary/idl/it_sequence.hxx78
-rw-r--r--autodoc/source/ary/idl/it_tplparam.cxx86
-rw-r--r--autodoc/source/ary/idl/it_tplparam.hxx92
-rw-r--r--autodoc/source/ary/idl/it_xnameroom.cxx94
-rw-r--r--autodoc/source/ary/idl/it_xnameroom.hxx117
-rw-r--r--autodoc/source/ary/inc/idl_internalgate.hxx51
-rw-r--r--autodoc/source/ary/inc/idsort.hxx46
-rw-r--r--autodoc/source/ary/inc/nametreenode.hxx204
-rw-r--r--autodoc/source/ary/inc/reposy.hxx77
-rw-r--r--autodoc/source/ary/inc/sci_impl.hxx407
-rw-r--r--autodoc/source/ary/inc/store/s_base.hxx174
-rw-r--r--autodoc/source/ary/inc/store/s_iterator.hxx231
-rw-r--r--autodoc/source/ary/inc/store/s_storage.hxx288
-rw-r--r--autodoc/source/ary/info/all_dts.cxx98
-rw-r--r--autodoc/source/ary/info/all_tags.cxx353
-rw-r--r--autodoc/source/ary/info/ci_attag.cxx78
-rw-r--r--autodoc/source/ary/info/ci_text.cxx52
-rw-r--r--autodoc/source/ary/kernel/namesort.cxx94
-rw-r--r--autodoc/source/ary/kernel/qualiname.cxx99
-rw-r--r--autodoc/source/ary/kernel/reposy.cxx144
-rw-r--r--autodoc/source/ary_i/kernel/ci_atag2.cxx50
-rw-r--r--autodoc/source/ary_i/kernel/ci_text2.cxx120
-rw-r--r--autodoc/source/ary_i/kernel/d_token.cxx180
-rw-r--r--autodoc/source/display/html/cfrstd.cxx329
-rw-r--r--autodoc/source/display/idl/hfi_constgroup.cxx131
-rw-r--r--autodoc/source/display/idl/hfi_constgroup.hxx61
-rw-r--r--autodoc/source/display/idl/hfi_doc.cxx185
-rw-r--r--autodoc/source/display/idl/hfi_doc.hxx79
-rw-r--r--autodoc/source/display/idl/hfi_enum.cxx127
-rw-r--r--autodoc/source/display/idl/hfi_enum.hxx63
-rw-r--r--autodoc/source/display/idl/hfi_globalindex.cxx257
-rw-r--r--autodoc/source/display/idl/hfi_globalindex.hxx82
-rw-r--r--autodoc/source/display/idl/hfi_hierarchy.cxx196
-rw-r--r--autodoc/source/display/idl/hfi_hierarchy.hxx124
-rw-r--r--autodoc/source/display/idl/hfi_interface.cxx351
-rw-r--r--autodoc/source/display/idl/hfi_interface.hxx83
-rw-r--r--autodoc/source/display/idl/hfi_method.cxx229
-rw-r--r--autodoc/source/display/idl/hfi_method.hxx93
-rw-r--r--autodoc/source/display/idl/hfi_module.cxx293
-rw-r--r--autodoc/source/display/idl/hfi_module.hxx76
-rw-r--r--autodoc/source/display/idl/hfi_navibar.cxx218
-rw-r--r--autodoc/source/display/idl/hfi_navibar.hxx63
-rw-r--r--autodoc/source/display/idl/hfi_property.cxx444
-rw-r--r--autodoc/source/display/idl/hfi_property.hxx176
-rw-r--r--autodoc/source/display/idl/hfi_service.cxx356
-rw-r--r--autodoc/source/display/idl/hfi_service.hxx92
-rw-r--r--autodoc/source/display/idl/hfi_singleton.cxx127
-rw-r--r--autodoc/source/display/idl/hfi_singleton.hxx60
-rw-r--r--autodoc/source/display/idl/hfi_siservice.cxx169
-rw-r--r--autodoc/source/display/idl/hfi_siservice.hxx65
-rw-r--r--autodoc/source/display/idl/hfi_struct.cxx197
-rw-r--r--autodoc/source/display/idl/hfi_struct.hxx74
-rw-r--r--autodoc/source/display/idl/hfi_tag.cxx348
-rw-r--r--autodoc/source/display/idl/hfi_tag.hxx160
-rw-r--r--autodoc/source/display/idl/hfi_typedef.cxx86
-rw-r--r--autodoc/source/display/idl/hfi_typedef.hxx58
-rw-r--r--autodoc/source/display/idl/hfi_typetext.cxx735
-rw-r--r--autodoc/source/display/idl/hfi_typetext.hxx156
-rw-r--r--autodoc/source/display/idl/hfi_xrefpage.cxx267
-rw-r--r--autodoc/source/display/idl/hfi_xrefpage.hxx98
-rw-r--r--autodoc/source/display/idl/hi_ary.cxx264
-rw-r--r--autodoc/source/display/idl/hi_ary.hxx151
-rw-r--r--autodoc/source/display/idl/hi_display.cxx191
-rw-r--r--autodoc/source/display/idl/hi_env.cxx193
-rw-r--r--autodoc/source/display/idl/hi_env.hxx154
-rw-r--r--autodoc/source/display/idl/hi_factory.cxx314
-rw-r--r--autodoc/source/display/idl/hi_factory.hxx157
-rw-r--r--autodoc/source/display/idl/hi_linkhelper.cxx90
-rw-r--r--autodoc/source/display/idl/hi_linkhelper.hxx91
-rw-r--r--autodoc/source/display/idl/hi_main.cxx744
-rw-r--r--autodoc/source/display/idl/hi_main.hxx172
-rw-r--r--autodoc/source/display/inc/cfrstd.hxx70
-rw-r--r--autodoc/source/display/inc/idl/hi_display.hxx104
-rw-r--r--autodoc/source/display/inc/toolkit/hf_docentry.hxx53
-rw-r--r--autodoc/source/display/inc/toolkit/hf_funcdecl.hxx65
-rw-r--r--autodoc/source/display/inc/toolkit/hf_linachain.hxx66
-rw-r--r--autodoc/source/display/inc/toolkit/hf_navi_main.hxx85
-rw-r--r--autodoc/source/display/inc/toolkit/hf_navi_sub.hxx74
-rw-r--r--autodoc/source/display/inc/toolkit/hf_title.hxx85
-rw-r--r--autodoc/source/display/inc/toolkit/htmlfactory.hxx95
-rw-r--r--autodoc/source/display/inc/toolkit/htmlfile.hxx79
-rw-r--r--autodoc/source/display/inc/toolkit/out_node.hxx117
-rw-r--r--autodoc/source/display/inc/toolkit/out_position.hxx109
-rw-r--r--autodoc/source/display/inc/toolkit/out_tree.hxx130
-rw-r--r--autodoc/source/display/inc/toolkit/outputstack.hxx66
-rw-r--r--autodoc/source/display/kernel/displfct.cxx75
-rw-r--r--autodoc/source/display/kernel/displfct.hxx54
-rw-r--r--autodoc/source/display/toolkit/hf_docentry.cxx68
-rw-r--r--autodoc/source/display/toolkit/hf_funcdecl.cxx150
-rw-r--r--autodoc/source/display/toolkit/hf_linachain.cxx104
-rw-r--r--autodoc/source/display/toolkit/hf_navi_main.cxx231
-rw-r--r--autodoc/source/display/toolkit/hf_navi_sub.cxx96
-rw-r--r--autodoc/source/display/toolkit/hf_title.cxx163
-rw-r--r--autodoc/source/display/toolkit/htmlfile.cxx204
-rw-r--r--autodoc/source/display/toolkit/out_node.cxx182
-rw-r--r--autodoc/source/display/toolkit/out_position.cxx232
-rw-r--r--autodoc/source/display/toolkit/out_tree.cxx47
-rw-r--r--autodoc/source/display/toolkit/outputstack.cxx51
-rw-r--r--autodoc/source/exes/adc_uni/adc_cl.cxx383
-rw-r--r--autodoc/source/exes/adc_uni/adc_cmd.hxx125
-rw-r--r--autodoc/source/exes/adc_uni/adc_cmd_parse.cxx319
-rw-r--r--autodoc/source/exes/adc_uni/adc_cmd_parse.hxx200
-rw-r--r--autodoc/source/exes/adc_uni/adc_cmds.cxx148
-rw-r--r--autodoc/source/exes/adc_uni/adc_cmds.hxx116
-rw-r--r--autodoc/source/exes/adc_uni/adc_msg.cxx196
-rw-r--r--autodoc/source/exes/adc_uni/cmd_run.cxx241
-rw-r--r--autodoc/source/exes/adc_uni/cmd_run.hxx89
-rw-r--r--autodoc/source/exes/adc_uni/cmd_sincedata.cxx123
-rw-r--r--autodoc/source/exes/adc_uni/cmd_sincedata.hxx85
-rw-r--r--autodoc/source/exes/adc_uni/main.cxx47
-rw-r--r--autodoc/source/exes/adc_uni/spec-CommandLine.txt197
-rw-r--r--autodoc/source/exes/adc_uni/spec-SinceTag_Handling.txt67
-rw-r--r--autodoc/source/inc/adc_cl.hxx183
-rw-r--r--autodoc/source/inc/adc_msg.hxx134
-rw-r--r--autodoc/source/inc/docu_node_ids.hxx58
-rw-r--r--autodoc/source/inc/estack.hxx85
-rw-r--r--autodoc/source/inc/luxenum.hxx96
-rw-r--r--autodoc/source/inc/precomp.h60
-rw-r--r--autodoc/source/inc/tools/filecoll.hxx62
-rw-r--r--autodoc/source/inc/tools/tkpchars.hxx134
-rw-r--r--autodoc/source/mkinc/fullcpp.mk32
-rw-r--r--autodoc/source/parser/inc/tokens/parseinc.hxx196
-rw-r--r--autodoc/source/parser/inc/tokens/stmstate.hxx58
-rw-r--r--autodoc/source/parser/inc/tokens/tkpcontx.hxx129
-rw-r--r--autodoc/source/parser/inc/tokens/tokdeal.hxx35
-rw-r--r--autodoc/source/parser/inc/tokens/token.hxx59
-rw-r--r--autodoc/source/parser/inc/tokens/tokproct.hxx76
-rw-r--r--autodoc/source/parser/inc/x_docu.hxx52
-rw-r--r--autodoc/source/parser/kernel/parsefct.cxx60
-rw-r--r--autodoc/source/parser/kernel/parsefct.hxx49
-rw-r--r--autodoc/source/parser/kernel/x_docu.cxx55
-rw-r--r--autodoc/source/parser/kernel/x_parse.cxx31
-rw-r--r--autodoc/source/parser/tokens/stmstate.cxx32
-rw-r--r--autodoc/source/parser/tokens/tkpcontx.cxx51
-rw-r--r--autodoc/source/parser/tokens/tokdeal.cxx43
-rw-r--r--autodoc/source/parser_i/idl/cx_idlco.cxx538
-rw-r--r--autodoc/source/parser_i/idl/cx_sub.cxx140
-rw-r--r--autodoc/source/parser_i/idl/distrib.cxx256
-rw-r--r--autodoc/source/parser_i/idl/parsenv2.cxx206
-rw-r--r--autodoc/source/parser_i/idl/pe_attri.cxx288
-rw-r--r--autodoc/source/parser_i/idl/pe_const.cxx277
-rw-r--r--autodoc/source/parser_i/idl/pe_enum2.cxx248
-rw-r--r--autodoc/source/parser_i/idl/pe_evalu.cxx179
-rw-r--r--autodoc/source/parser_i/idl/pe_excp.cxx292
-rw-r--r--autodoc/source/parser_i/idl/pe_file2.cxx311
-rw-r--r--autodoc/source/parser_i/idl/pe_func2.cxx438
-rw-r--r--autodoc/source/parser_i/idl/pe_iface.cxx461
-rw-r--r--autodoc/source/parser_i/idl/pe_property.cxx231
-rw-r--r--autodoc/source/parser_i/idl/pe_selem.cxx199
-rw-r--r--autodoc/source/parser_i/idl/pe_servi.cxx386
-rw-r--r--autodoc/source/parser_i/idl/pe_singl.cxx241
-rw-r--r--autodoc/source/parser_i/idl/pe_struc.cxx321
-rw-r--r--autodoc/source/parser_i/idl/pe_tydf2.cxx181
-rw-r--r--autodoc/source/parser_i/idl/pe_type2.cxx308
-rw-r--r--autodoc/source/parser_i/idl/pe_vari2.cxx166
-rw-r--r--autodoc/source/parser_i/idl/pestate.cxx133
-rw-r--r--autodoc/source/parser_i/idl/semnode.cxx76
-rw-r--r--autodoc/source/parser_i/idl/tk_const.cxx50
-rw-r--r--autodoc/source/parser_i/idl/tk_ident.cxx61
-rw-r--r--autodoc/source/parser_i/idl/tk_keyw.cxx218
-rw-r--r--autodoc/source/parser_i/idl/tk_punct.cxx107
-rw-r--r--autodoc/source/parser_i/idl/tkp_uidl.cxx67
-rw-r--r--autodoc/source/parser_i/idl/unoidl.cxx156
-rw-r--r--autodoc/source/parser_i/idoc/cx_docu2.cxx260
-rw-r--r--autodoc/source/parser_i/idoc/cx_dsapi.cxx519
-rw-r--r--autodoc/source/parser_i/idoc/docu_pe2.cxx686
-rw-r--r--autodoc/source/parser_i/idoc/tk_atag2.cxx76
-rw-r--r--autodoc/source/parser_i/idoc/tk_docw2.cxx112
-rw-r--r--autodoc/source/parser_i/idoc/tk_html.cxx51
-rw-r--r--autodoc/source/parser_i/idoc/tk_xml.cxx167
-rw-r--r--autodoc/source/parser_i/inc/s2_dsapi/cx_docu2.hxx226
-rw-r--r--autodoc/source/parser_i/inc/s2_dsapi/cx_dsapi.hxx116
-rw-r--r--autodoc/source/parser_i/inc/s2_dsapi/docu_pe2.hxx174
-rw-r--r--autodoc/source/parser_i/inc/s2_dsapi/dsapitok.hxx58
-rw-r--r--autodoc/source/parser_i/inc/s2_dsapi/tk_atag2.hxx81
-rw-r--r--autodoc/source/parser_i/inc/s2_dsapi/tk_docw2.hxx114
-rw-r--r--autodoc/source/parser_i/inc/s2_dsapi/tk_html.hxx66
-rw-r--r--autodoc/source/parser_i/inc/s2_dsapi/tk_xml.hxx194
-rw-r--r--autodoc/source/parser_i/inc/s2_dsapi/tokintpr.hxx87
-rw-r--r--autodoc/source/parser_i/inc/s2_dsapi/tokrecv.hxx53
-rw-r--r--autodoc/source/parser_i/inc/s2_luidl/cx_idlco.hxx92
-rw-r--r--autodoc/source/parser_i/inc/s2_luidl/cx_sub.hxx124
-rw-r--r--autodoc/source/parser_i/inc/s2_luidl/distrib.hxx264
-rw-r--r--autodoc/source/parser_i/inc/s2_luidl/parsenv2.hxx135
-rw-r--r--autodoc/source/parser_i/inc/s2_luidl/pe_attri.hxx128
-rw-r--r--autodoc/source/parser_i/inc/s2_luidl/pe_const.hxx131
-rw-r--r--autodoc/source/parser_i/inc/s2_luidl/pe_enum2.hxx115
-rw-r--r--autodoc/source/parser_i/inc/s2_luidl/pe_evalu.hxx115
-rw-r--r--autodoc/source/parser_i/inc/s2_luidl/pe_excp.hxx240
-rw-r--r--autodoc/source/parser_i/inc/s2_luidl/pe_file2.hxx133
-rw-r--r--autodoc/source/parser_i/inc/s2_luidl/pe_func2.hxx160
-rw-r--r--autodoc/source/parser_i/inc/s2_luidl/pe_iface.hxx177
-rw-r--r--autodoc/source/parser_i/inc/s2_luidl/pe_property.hxx116
-rw-r--r--autodoc/source/parser_i/inc/s2_luidl/pe_selem.hxx109
-rw-r--r--autodoc/source/parser_i/inc/s2_luidl/pe_servi.hxx142
-rw-r--r--autodoc/source/parser_i/inc/s2_luidl/pe_singl.hxx118
-rw-r--r--autodoc/source/parser_i/inc/s2_luidl/pe_struc.hxx266
-rw-r--r--autodoc/source/parser_i/inc/s2_luidl/pe_tydf2.hxx117
-rw-r--r--autodoc/source/parser_i/inc/s2_luidl/pe_type2.hxx110
-rw-r--r--autodoc/source/parser_i/inc/s2_luidl/pe_vari2.hxx100
-rw-r--r--autodoc/source/parser_i/inc/s2_luidl/pestate.hxx98
-rw-r--r--autodoc/source/parser_i/inc/s2_luidl/semnode.hxx82
-rw-r--r--autodoc/source/parser_i/inc/s2_luidl/tk_const.hxx57
-rw-r--r--autodoc/source/parser_i/inc/s2_luidl/tk_ident.hxx68
-rw-r--r--autodoc/source/parser_i/inc/s2_luidl/tk_keyw.hxx244
-rw-r--r--autodoc/source/parser_i/inc/s2_luidl/tk_punct.hxx106
-rw-r--r--autodoc/source/parser_i/inc/s2_luidl/tkp_uidl.hxx77
-rw-r--r--autodoc/source/parser_i/inc/s2_luidl/tokintpr.hxx91
-rw-r--r--autodoc/source/parser_i/inc/s2_luidl/tokproct.hxx86
-rw-r--r--autodoc/source/parser_i/inc/s2_luidl/tokrecv.hxx53
-rw-r--r--autodoc/source/parser_i/inc/s2_luidl/uidl_tok.hxx55
-rw-r--r--autodoc/source/parser_i/inc/semantic/parsenv2.hxx44
-rw-r--r--autodoc/source/parser_i/inc/tokens/stmstar2.hxx76
-rw-r--r--autodoc/source/parser_i/inc/tokens/stmstat2.hxx61
-rw-r--r--autodoc/source/parser_i/inc/tokens/stmstfi2.hxx68
-rw-r--r--autodoc/source/parser_i/inc/tokens/tkp2.hxx77
-rw-r--r--autodoc/source/parser_i/inc/tokens/tkpcont2.hxx116
-rw-r--r--autodoc/source/parser_i/inc/tokens/tkpstam2.hxx114
-rw-r--r--autodoc/source/parser_i/inc/tokens/token2.hxx56
-rw-r--r--autodoc/source/parser_i/inc/x_parse2.hxx61
-rw-r--r--autodoc/source/parser_i/tokens/stmstar2.cxx95
-rw-r--r--autodoc/source/parser_i/tokens/stmstat2.cxx39
-rw-r--r--autodoc/source/parser_i/tokens/stmstfi2.cxx51
-rw-r--r--autodoc/source/parser_i/tokens/tkp2.cxx55
-rw-r--r--autodoc/source/parser_i/tokens/tkpcont2.cxx58
-rw-r--r--autodoc/source/parser_i/tokens/tkpstam2.cxx161
-rw-r--r--autodoc/source/parser_i/tokens/x_parse2.cxx54
-rw-r--r--autodoc/source/tools/filecoll.cxx125
-rw-r--r--autodoc/source/tools/tkpchars.cxx89
-rw-r--r--cosv/Makefile7
-rw-r--r--cosv/Module_cosv.mk19
-rw-r--r--cosv/README3
-rw-r--r--cosv/StaticLibrary_cosv.mk29
-rw-r--r--cosv/source/comphelp/badcast.cxx43
-rw-r--r--cosv/source/service/comdline.cxx57
-rw-r--r--cosv/source/service/comfunc.cxx48
-rw-r--r--cosv/source/service/csv_ostream.cxx90
-rw-r--r--cosv/source/service/std_outp.cxx78
-rw-r--r--cosv/source/storage/dirchain.cxx116
-rw-r--r--cosv/source/storage/file.cxx191
-rw-r--r--cosv/source/storage/persist.cxx103
-rw-r--r--cosv/source/storage/ploc.cxx129
-rw-r--r--cosv/source/storage/ploc_dir.cxx359
-rw-r--r--cosv/source/storage/plocroot.cxx525
-rw-r--r--cosv/source/strings/str_types.cxx44
-rw-r--r--cosv/source/strings/streamstr.cxx606
-rw-r--r--cosv/source/strings/string.cxx235
-rw-r--r--cosv/source/unittest/file_ut.cxx121
-rw-r--r--cosv/source/unittest/string_ut.cxx71
-rw-r--r--cosv/source/unittest/ut.hxx46
-rw-r--r--cosv/source/unittest/ut_main.cxx47
-rw-r--r--include/cosv/bstream.hxx143
-rw-r--r--include/cosv/comdline.hxx63
-rw-r--r--include/cosv/comfunc.hxx67
-rw-r--r--include/cosv/csv_env.hxx148
-rw-r--r--include/cosv/csv_ostream.hxx127
-rw-r--r--include/cosv/csv_precomp.h40
-rw-r--r--include/cosv/dirchain.hxx146
-rw-r--r--include/cosv/file.hxx114
-rw-r--r--include/cosv/openclose.hxx137
-rw-r--r--include/cosv/persist.hxx98
-rw-r--r--include/cosv/ploc.hxx106
-rw-r--r--include/cosv/ploc_dir.hxx109
-rw-r--r--include/cosv/plocroot.hxx73
-rw-r--r--include/cosv/std_outp.hxx123
-rw-r--r--include/cosv/str_types.hxx85
-rw-r--r--include/cosv/streamstr.hxx310
-rw-r--r--include/cosv/string.hxx501
-rw-r--r--include/cosv/stringdata.hxx128
-rw-r--r--include/cosv/tpl/dyn.hxx232
-rw-r--r--include/cosv/tpl/processor.hxx129
-rw-r--r--include/cosv/tpl/swelist.hxx362
-rw-r--r--include/cosv/tpl/tpltools.hxx154
-rw-r--r--include/cosv/tpl/vvector.hxx535
-rw-r--r--include/cosv/x.hxx64
-rw-r--r--include/udm/html/htmlitem.hxx342
-rw-r--r--include/udm/xml/xmlitem.hxx339
-rw-r--r--solenv/gbuild/extensions/pre_BuildTools.mk1
-rw-r--r--udm/Makefile7
-rw-r--r--udm/Module_udm.mk19
-rw-r--r--udm/README3
-rw-r--r--udm/StaticLibrary_udm.mk22
-rw-r--r--udm/source/html/htmlitem.cxx165
-rw-r--r--udm/source/inc/precomp.h60
-rw-r--r--udm/source/xml/xmlitem.cxx537
417 files changed, 0 insertions, 57163 deletions
diff --git a/Repository.mk b/Repository.mk
index 083ebacf953c..b8f953e43b63 100644
--- a/Repository.mk
+++ b/Repository.mk
@@ -75,7 +75,6 @@ $(eval $(call gb_Helper_register_executables,SDK, \
ifneq ($(OS),IOS)
$(eval $(call gb_Helper_register_executables,SDK, \
- autodoc \
climaker \
cppumaker \
javamaker \
@@ -675,7 +674,6 @@ $(eval $(call gb_Helper_register_static_libraries,PLAINLIBS, \
codemaker \
codemaker_cpp \
codemaker_java \
- cosv \
dtobj \
findsofficepath \
gnu_getopt \
@@ -700,7 +698,6 @@ $(eval $(call gb_Helper_register_static_libraries,PLAINLIBS, \
salcpprt \
testtools_bridgetest_s \
transex \
- udm \
ulingu \
vclmain \
writerperfect \
diff --git a/RepositoryModule_build.mk b/RepositoryModule_build.mk
index b69d4b48b042..65cbd6994d56 100644
--- a/RepositoryModule_build.mk
+++ b/RepositoryModule_build.mk
@@ -10,14 +10,12 @@
$(eval $(call gb_Module_Module,cross_toolset))
$(eval $(call gb_Module_add_moduledirs,cross_toolset,\
- autodoc \
basegfx \
binaryurp \
bridges \
cli_ure \
codemaker \
comphelper \
- cosv \
cppu \
cppuhelper \
external \
@@ -52,7 +50,6 @@ $(eval $(call gb_Module_add_moduledirs,cross_toolset,\
tools \
ucbhelper \
udkapi \
- udm \
unoidl \
unoil \
unotest \
diff --git a/RepositoryModule_host.mk b/RepositoryModule_host.mk
index b9e64f2aea90..2a79b9ac7c7c 100644
--- a/RepositoryModule_host.mk
+++ b/RepositoryModule_host.mk
@@ -18,7 +18,6 @@ $(eval $(call gb_Module_add_moduledirs,libreoffice,\
animations \
$(call gb_Helper_optional,APACHE_COMMONS,apache-commons) \
apple_remote \
- autodoc \
avmedia \
basctl \
basebmp \
@@ -38,7 +37,6 @@ $(eval $(call gb_Module_add_moduledirs,libreoffice,\
comphelper \
configmgr \
$(call gb_Helper_optional,DBCONNECTIVITY,connectivity) \
- cosv \
cppcanvas \
cppu \
cppuhelper \
@@ -191,7 +189,6 @@ $(eval $(call gb_Module_add_moduledirs,libreoffice,\
ucbhelper \
$(call gb_Helper_optional,UCPP,ucpp) \
udkapi \
- udm \
UnoControls \
unodevtools \
unoil \
diff --git a/autodoc/Executable_autodoc.mk b/autodoc/Executable_autodoc.mk
deleted file mode 100644
index 49217677445e..000000000000
--- a/autodoc/Executable_autodoc.mk
+++ /dev/null
@@ -1,171 +0,0 @@
-# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
-#
-# This file is part of the LibreOffice project.
-#
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-#
-$(eval $(call gb_Executable_Executable,autodoc))
-
-$(eval $(call gb_Executable_set_include,autodoc,\
- -I$(SRCDIR)/autodoc/inc \
- -I$(SRCDIR)/autodoc/source/inc \
- -I$(SRCDIR)/autodoc/source/parser/inc \
- -I$(SRCDIR)/autodoc/source/display/inc \
- -I$(SRCDIR)/autodoc/source/parser_i/inc \
- -I$(SRCDIR)/autodoc/source/ary/inc \
- $$(INCLUDE) \
-))
-
-$(eval $(call gb_Executable_use_static_libraries,autodoc,\
- cosv \
- udm \
-))
-
-$(eval $(call gb_Executable_add_exception_objects,autodoc,\
- autodoc/source/exes/adc_uni/adc_cl \
- autodoc/source/exes/adc_uni/adc_cmds \
- autodoc/source/exes/adc_uni/cmd_sincedata \
- autodoc/source/exes/adc_uni/adc_cmd_parse \
- autodoc/source/exes/adc_uni/main \
- autodoc/source/exes/adc_uni/adc_msg \
- autodoc/source/exes/adc_uni/cmd_run \
- autodoc/source/parser/tokens/tokdeal \
- autodoc/source/parser/tokens/stmstate \
- autodoc/source/parser/tokens/tkpcontx \
- autodoc/source/parser/kernel/x_parse \
- autodoc/source/parser/kernel/parsefct \
- autodoc/source/parser/kernel/x_docu \
- autodoc/source/display/kernel/displfct \
- autodoc/source/display/idl/hi_main \
- autodoc/source/display/idl/hfi_property \
- autodoc/source/display/idl/hfi_xrefpage \
- autodoc/source/display/idl/hfi_struct \
- autodoc/source/display/idl/hfi_interface \
- autodoc/source/display/idl/hfi_method \
- autodoc/source/display/idl/hfi_typetext \
- autodoc/source/display/idl/hfi_module \
- autodoc/source/display/idl/hfi_enum \
- autodoc/source/display/idl/hfi_navibar \
- autodoc/source/display/idl/hi_display \
- autodoc/source/display/idl/hfi_service \
- autodoc/source/display/idl/hfi_globalindex \
- autodoc/source/display/idl/hfi_singleton \
- autodoc/source/display/idl/hi_factory \
- autodoc/source/display/idl/hi_ary \
- autodoc/source/display/idl/hi_env \
- autodoc/source/display/idl/hfi_siservice \
- autodoc/source/display/idl/hfi_typedef \
- autodoc/source/display/idl/hfi_constgroup \
- autodoc/source/display/idl/hi_linkhelper \
- autodoc/source/display/idl/hfi_tag \
- autodoc/source/display/idl/hfi_hierarchy \
- autodoc/source/display/idl/hfi_doc \
- autodoc/source/display/html/cfrstd \
- autodoc/source/display/toolkit/hf_linachain \
- autodoc/source/display/toolkit/outputstack \
- autodoc/source/display/toolkit/hf_navi_main \
- autodoc/source/display/toolkit/out_position \
- autodoc/source/display/toolkit/hf_funcdecl \
- autodoc/source/display/toolkit/out_tree \
- autodoc/source/display/toolkit/hf_docentry \
- autodoc/source/display/toolkit/out_node \
- autodoc/source/display/toolkit/hf_navi_sub \
- autodoc/source/display/toolkit/hf_title \
- autodoc/source/display/toolkit/htmlfile \
- autodoc/source/tools/tkpchars \
- autodoc/source/tools/filecoll \
- autodoc/source/parser_i/tokens/x_parse2 \
- autodoc/source/parser_i/tokens/stmstar2 \
- autodoc/source/parser_i/tokens/tkpstam2 \
- autodoc/source/parser_i/tokens/stmstfi2 \
- autodoc/source/parser_i/tokens/stmstat2 \
- autodoc/source/parser_i/tokens/tkp2 \
- autodoc/source/parser_i/tokens/tkpcont2 \
- autodoc/source/parser_i/idl/pestate \
- autodoc/source/parser_i/idl/pe_const \
- autodoc/source/parser_i/idl/pe_selem \
- autodoc/source/parser_i/idl/tk_const \
- autodoc/source/parser_i/idl/semnode \
- autodoc/source/parser_i/idl/pe_func2 \
- autodoc/source/parser_i/idl/tk_keyw \
- autodoc/source/parser_i/idl/pe_singl \
- autodoc/source/parser_i/idl/tk_ident \
- autodoc/source/parser_i/idl/pe_file2 \
- autodoc/source/parser_i/idl/pe_tydf2 \
- autodoc/source/parser_i/idl/cx_sub \
- autodoc/source/parser_i/idl/parsenv2 \
- autodoc/source/parser_i/idl/pe_enum2 \
- autodoc/source/parser_i/idl/pe_type2 \
- autodoc/source/parser_i/idl/pe_struc \
- autodoc/source/parser_i/idl/pe_attri \
- autodoc/source/parser_i/idl/pe_iface \
- autodoc/source/parser_i/idl/distrib \
- autodoc/source/parser_i/idl/pe_evalu \
- autodoc/source/parser_i/idl/pe_excp \
- autodoc/source/parser_i/idl/tkp_uidl \
- autodoc/source/parser_i/idl/pe_property \
- autodoc/source/parser_i/idl/tk_punct \
- autodoc/source/parser_i/idl/pe_servi \
- autodoc/source/parser_i/idl/cx_idlco \
- autodoc/source/parser_i/idl/unoidl \
- autodoc/source/parser_i/idl/pe_vari2 \
- autodoc/source/parser_i/idoc/tk_xml \
- autodoc/source/parser_i/idoc/cx_docu2 \
- autodoc/source/parser_i/idoc/tk_atag2 \
- autodoc/source/parser_i/idoc/cx_dsapi \
- autodoc/source/parser_i/idoc/tk_docw2 \
- autodoc/source/parser_i/idoc/docu_pe2 \
- autodoc/source/parser_i/idoc/tk_html \
- autodoc/source/ary_i/kernel/ci_atag2 \
- autodoc/source/ary_i/kernel/ci_text2 \
- autodoc/source/ary_i/kernel/d_token \
- autodoc/source/ary/info/all_tags \
- autodoc/source/ary/info/all_dts \
- autodoc/source/ary/info/ci_attag \
- autodoc/source/ary/info/ci_text \
- autodoc/source/ary/kernel/qualiname \
- autodoc/source/ary/kernel/reposy \
- autodoc/source/ary/kernel/namesort \
- autodoc/source/ary/idl/i_typedef \
- autodoc/source/ary/idl/i_enum \
- autodoc/source/ary/idl/i_constant \
- autodoc/source/ary/idl/is_type \
- autodoc/source/ary/idl/i_reposypart \
- autodoc/source/ary/idl/i_exception \
- autodoc/source/ary/idl/it_sequence \
- autodoc/source/ary/idl/i_siservice \
- autodoc/source/ary/idl/i_ce2s \
- autodoc/source/ary/idl/it_builtin \
- autodoc/source/ary/idl/ia_type \
- autodoc/source/ary/idl/i_property \
- autodoc/source/ary/idl/it_tplparam \
- autodoc/source/ary/idl/i_comrela \
- autodoc/source/ary/idl/it_ce \
- autodoc/source/ary/idl/i_structelem \
- autodoc/source/ary/idl/i_function \
- autodoc/source/ary/idl/is_ce \
- autodoc/source/ary/idl/i_constgroup \
- autodoc/source/ary/idl/i2s_calculator \
- autodoc/source/ary/idl/it_explicit \
- autodoc/source/ary/idl/i_module \
- autodoc/source/ary/idl/i_enumvalue \
- autodoc/source/ary/idl/i_sisingleton \
- autodoc/source/ary/idl/i_traits \
- autodoc/source/ary/idl/i_attribute \
- autodoc/source/ary/idl/i_singleton \
- autodoc/source/ary/idl/i_interface \
- autodoc/source/ary/idl/i_service \
- autodoc/source/ary/idl/i_struct \
- autodoc/source/ary/idl/i_ce \
- autodoc/source/ary/idl/it_xnameroom \
- autodoc/source/ary/idl/i_param \
- autodoc/source/ary/idl/i_namelookup \
- autodoc/source/ary/idl/ia_ce \
- autodoc/source/ary/doc/d_oldidldocu \
- autodoc/source/ary/doc/d_docu \
- autodoc/source/ary/doc/d_node \
-))
-
-# vim:set noet sw=4 ts=4:
diff --git a/autodoc/Makefile b/autodoc/Makefile
deleted file mode 100644
index ccb1c85a04da..000000000000
--- a/autodoc/Makefile
+++ /dev/null
@@ -1,7 +0,0 @@
-# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
-
-module_directory:=$(dir $(realpath $(firstword $(MAKEFILE_LIST))))
-
-include $(module_directory)/../solenv/gbuild/partial_build.mk
-
-# vim: set noet sw=4 ts=4:
diff --git a/autodoc/Module_autodoc.mk b/autodoc/Module_autodoc.mk
deleted file mode 100644
index 15034265a30e..000000000000
--- a/autodoc/Module_autodoc.mk
+++ /dev/null
@@ -1,19 +0,0 @@
-# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
-#
-# This file is part of the LibreOffice project.
-#
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-#
-$(eval $(call gb_Module_Module,autodoc))
-
-ifneq (,$(filter ODK,$(BUILD_TYPE)))
-
-$(eval $(call gb_Module_add_targets,autodoc,\
- Executable_autodoc \
-))
-
-endif
-
-# vim:set noet sw=4 ts=4:
diff --git a/autodoc/README b/autodoc/README
deleted file mode 100644
index c32411a6b406..000000000000
--- a/autodoc/README
+++ /dev/null
@@ -1,3 +0,0 @@
-Create HTML pages from C++, Java and IDL inline documentation.
-
-Part of the SDK; to build you need to add --enable-odk.
diff --git a/autodoc/inc/ary/ary.hxx b/autodoc/inc/ary/ary.hxx
deleted file mode 100644
index dc7fb48f9194..000000000000
--- a/autodoc/inc/ary/ary.hxx
+++ /dev/null
@@ -1,74 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_ARY_HXX
-#define ARY_ARY_HXX
-
-
-// USED SERVICES
- // BASE CLASSES
- // OTHER
-
-namespace ary
-{
-namespace idl
-{
- class Gate;
-}
-}
-
-
-
-namespace ary
-{
-
-/** Starting point for all work with the
- Autodoc Sourcecode Repository.
-
- Create and destroy the repository and
- give access to the "Gates" for different tasks.
-
- @collab ::ary::idl::Gate
-*/
-
-class Repository
-{
- public:
- // LIFECYCLE
- virtual ~Repository() {}
- static DYN Repository &
- Create_();
- // INQUIRY
- virtual const String &
- Title() const = 0;
- virtual const ::ary::idl::Gate &
- Gate_Idl() const = 0;
- // ACCESS
- virtual ::ary::idl::Gate &
- Gate_Idl() = 0;
- virtual void Set_Title(
- const String & i_sName ) = 0;
-};
-
-
-
-} // namespace ary
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/inc/ary/doc/d_docu.hxx b/autodoc/inc/ary/doc/d_docu.hxx
deleted file mode 100644
index 410b622efe5b..000000000000
--- a/autodoc/inc/ary/doc/d_docu.hxx
+++ /dev/null
@@ -1,100 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_DOC_D_DOCU_HXX
-#define ARY_DOC_D_DOCU_HXX
-
-// BASE CLASSES
-#include <cosv/tpl/processor.hxx>
-
-// USED SERVICES
-#include <ary/doc/d_node.hxx>
-
-
-
-
-namespace ary
-{
-namespace doc
-{
-
-
-/** Represents a documentation which is assigned to an Autodoc
- repository entity.
-*/
-class Documentation : public csv::ConstProcessorClient
-{
- public:
- Documentation();
- ~Documentation();
- // OPERATIONS
- void Clear();
-
- // INQUIRY
- const Node * Data() const;
-
- // ACCESS
- Node * Data();
- void Set_Data(
- ary::doc::Node & i_data );
-
- private:
- // Interface csv::ConstProcessorClient:
- virtual void do_Accept(
- csv::ProcessorIfc & io_processor ) const;
- // DATA
- Dyn<Node> pData;
-};
-
-
-
-
-// IMPLEMENTATION
-inline void
-Documentation::Clear()
-{
- pData = 0;
-}
-
-inline const Node *
-Documentation::Data() const
-{
- return pData.Ptr();
-}
-
-inline Node *
-Documentation::Data()
-{
- return pData.Ptr();
-}
-
-inline void
-Documentation::Set_Data(ary::doc::Node & i_data)
-{
- pData = &i_data;
-}
-
-
-
-
-} // namespace doc
-} // namespace ary
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/inc/ary/doc/d_node.hxx b/autodoc/inc/ary/doc/d_node.hxx
deleted file mode 100644
index 865641591e33..000000000000
--- a/autodoc/inc/ary/doc/d_node.hxx
+++ /dev/null
@@ -1,103 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_DOC_D_NODE_HXX
-#define ARY_DOC_D_NODE_HXX
-
-// BASE CLASSES
-#include <cosv/tpl/processor.hxx>
-// USED SERVICES
-#include <cosv/tpl/vvector.hxx>
-#include <ary/doc/d_types4doc.hxx>
-
-
-
-
-namespace ary
-{
-namespace doc
-{
-
-
-/** The abstract base class for any type of documentation content.
-
- A ->Documentation has as content a hierarchy of Nodes, each can be a
- different kind of content, like descriptions of single items or structs
- or lists of Nodes.
-*/
-class Node : public csv::ConstProcessorClient
-{
- public:
- // LIFECYCLE
- virtual ~Node();
-
- // OPERATIONS
- void Add_toChain(
- DYN Node & pass_nextNode );
- // INQUIRY
- nodetype::id Type() const;
- const Node * Next() const;
- bool IsSingle() const;
- uintt ListSize() const;
-
- protected:
- explicit Node(
- nodetype::id i_type);
- private:
- // Forbid copies:
- Node(const Node&);
- Node & operator=(const Node&);
-
- // DATA
- nodetype::id nType;
- Dyn<Node> pNext; /// Next ->Node in same list.
-};
-
-typedef csv::VirtualVector<Node> NodeList;
-
-
-
-
-// IMPLEMENTATION
-inline nodetype::id
-Node::Type() const
-{
- return nType;
-}
-
-inline const Node *
-Node::Next() const
-{
- return pNext.Ptr();
-}
-
-inline bool
-Node::IsSingle() const
-{
- return pNext.operator bool();
-}
-
-
-
-
-} // namespace doc
-} // namespace ary
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/inc/ary/doc/d_oldidldocu.hxx b/autodoc/inc/ary/doc/d_oldidldocu.hxx
deleted file mode 100644
index 17a228a4484a..000000000000
--- a/autodoc/inc/ary/doc/d_oldidldocu.hxx
+++ /dev/null
@@ -1,105 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_DOC_D_OLDIDLDOCU_HXX
-#define ARY_DOC_D_OLDIDLDOCU_HXX
-
-// BASE CLASSES
-#include <ary/doc/d_node.hxx>
-// USED SERVICES
-#include <ary_i/ci_text2.hxx>
-
-
-
-
-namespace ary
-{
-namespace inf
-{
- class AtTag2;
- class DocuToken;
- class DocuTex2;
-}
-namespace doc
-{
- using ::ary::inf::AtTag2;
- using ::ary::inf::DocuToken;
- using ::ary::inf::DocuTex2;
-
-
-
-/** Wrapper for the old idl documentation format.
-*/
-class OldIdlDocu : public Node
-{
- public:
- OldIdlDocu();
- ~OldIdlDocu();
-
- void AddToken2Short(
- DYN DocuToken & let_drToken )
- { aShort.AddToken(let_drToken); }
- void AddToken2Description(
- DYN DocuToken & let_drToken )
- { aDescription.AddToken(let_drToken); }
- void AddToken2DeprecatedText(
- DYN DocuToken & let_drToken );
- void AddAtTag(
- DYN AtTag2 & let_drAtTag )
- { aTags.push_back(&let_drAtTag); }
- void SetPublished() { bIsPublished = true; }
- void SetDeprecated() { bIsDeprecated = true; }
- void SetOptional() { bIsOptional = true; }
- void SetExternShort(
- const DocuTex2 & i_pExternShort )
- { pExternShort = &i_pExternShort; }
-
- const DocuTex2 & Short() const { return pExternShort != 0 ? *pExternShort : aShort; }
- const DocuTex2 & Description() const { return aDescription; }
- const DocuTex2 & DeprecatedText() const { return aDeprecatedText; }
- const std::vector< AtTag2* > &
- Tags() const { return aTags; }
- bool IsPublished() const { return bIsPublished; }
- bool IsDeprecated() const { return bIsDeprecated; }
- bool IsOptional() const { return bIsOptional; }
-
- private:
- // Interface csv::ConstProcessorClient:
- virtual void do_Accept(
- csv::ProcessorIfc & io_processor ) const;
- // DATA
- DocuTex2 aShort;
- DocuTex2 aDescription;
- DocuTex2 aDeprecatedText;
- std::vector< AtTag2* >
- aTags;
- const DocuTex2 * pExternShort;
- bool bIsPublished;
- bool bIsDeprecated;
- bool bIsOptional;
-};
-
-
-
-
-} // namespace doc
-} // namespace ary
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/inc/ary/doc/d_types4doc.hxx b/autodoc/inc/ary/doc/d_types4doc.hxx
deleted file mode 100644
index 32d2890eef5e..000000000000
--- a/autodoc/inc/ary/doc/d_types4doc.hxx
+++ /dev/null
@@ -1,64 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_DOC_D_TYPES4DOC_HXX
-#define ARY_DOC_D_TYPES4DOC_HXX
-
-// USED SERVICES
-
-
-
-namespace ary
-{
-namespace doc
-{
-
-
-/** Type of a documentation: multiple lines or single line.
-*/
-enum E_BlockType
-{
- dbt_none = 0,
- dbt_multiline,
- dbt_singleline
-};
-
-/** Type of documentation text: with html or without.
-*/
-enum E_TextType
-{
- dtt_none = 0,
- dtt_plain,
- dtt_html
-};
-
-namespace nodetype
-{
-
-typedef int id;
-
-} // namespace nodetype
-
-
-
-} // namespace doc
-} // namespace ary
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/inc/ary/entity.hxx b/autodoc/inc/ary/entity.hxx
deleted file mode 100644
index 5632837293a6..000000000000
--- a/autodoc/inc/ary/entity.hxx
+++ /dev/null
@@ -1,75 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_ENTITY_HXX
-#define ARY_ENTITY_HXX
-
-// BASE CLASSES
-#include <ary/object.hxx>
-
-
-
-
-namespace ary
-{
-
-
-/** Interface for every class, whose objects are searchable within the
- Autodoc Repository by an id.
-
- @todo
- Possibly make ->Set_Id() less public accessible.
-*/
-class Entity : public Object
-{
- public:
- virtual ~Entity() {}
-
- Rid Id() const;
-
- /// @attention Must be used only by ->ary::stg::Storage<>
- void Set_Id(
- Rid i_nId );
- protected:
- Entity() : nId(0) {}
- private:
- // DATA
- Rid nId;
-};
-
-
-inline Rid
-Entity::Id() const
-{
- return nId;
-}
-
-inline void
-Entity::Set_Id(Rid i_nId)
-{
- nId = i_nId;
-}
-
-
-
-
-} // namespace ary
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/inc/ary/getncast.hxx b/autodoc/inc/ary/getncast.hxx
deleted file mode 100644
index 5e96a1e64521..000000000000
--- a/autodoc/inc/ary/getncast.hxx
+++ /dev/null
@@ -1,82 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_GETNCAST_HXX
-#define ARY_GETNCAST_HXX
-
-
-// USED SERVICES
-#include <ary/object.hxx>
-
-
-
-
-namespace ary
-{
-
-
-template <class DEST>
-inline bool
-is_type(const ary::Object & i_obj)
-{
- return i_obj.AryClass() == DEST::class_id;
-}
-
-
-template <class DEST>
-inline const DEST &
-ary_cast( const Object & ce)
-{
- csv_assert( is_type<DEST>(ce) );
- return static_cast< const DEST& >(ce);
-}
-
-template <class DEST>
-inline DEST &
-ary_cast( Object & ce)
-{
- csv_assert( is_type<DEST>(ce) );
- return static_cast< DEST& >(ce);
-}
-
-template <class DEST>
-inline const DEST *
-ary_cast( const Object * ce)
-{
- if ( ce ? is_type<DEST>(*ce) : false )
- return static_cast< const DEST* >(ce);
- return 0;
-}
-
-template <class DEST>
-inline DEST *
-ary_cast( Object * ce)
-{
- if ( ce ? is_type<DEST>(*ce) : false )
- return static_cast< DEST* >(ce);
- return 0;
-}
-
-
-
-
-} // namespace ary
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/inc/ary/idl/i_attribute.hxx b/autodoc/inc/ary/idl/i_attribute.hxx
deleted file mode 100644
index 3cc5a443ad15..000000000000
--- a/autodoc/inc/ary/idl/i_attribute.hxx
+++ /dev/null
@@ -1,129 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_IDL_I_ATTRIBUTE_HXX
-#define ARY_IDL_I_ATTRIBUTE_HXX
-
-// BASE CLASSES
-#include <ary/idl/i_ce.hxx>
-
-
-
-
-namespace ary
-{
-namespace idl
-{
-namespace ifc_attribute
-{
- struct attr;
-}
-
-
-
-
-/** @resp
- Represents an IDL property.
-*/
-class Attribute : public CodeEntity
-{
- public:
- enum E_ClassId { class_id = 2014 };
-
- // LIFECYCLE
- Attribute(
- const String & i_sName,
- Ce_id i_nInterface,
- Ce_id i_nModule,
- Type_id i_nType,
- bool i_bReadonly,
- bool i_bBound );
- ~Attribute();
- // OPERATIONS
- void Add_GetException(
- Type_id i_nException );
- void Add_SetException(
- Type_id i_nException );
-
- // INQUIRY
- Type_id Type() const;
- bool IsReadonly() const;
- bool IsBound() const;
-
- private:
- // Interface csv::ConstProcessorClient:
- virtual void do_Accept(
- csv::ProcessorIfc & io_processor ) const;
- // Interface ary::Object
- virtual ClassId get_AryClass() const;
-
- // Interface CodeEntity
- virtual const String & inq_LocalName() const;
- virtual Ce_id inq_NameRoom() const;
- virtual Ce_id inq_Owner() const;
- virtual E_SightLevel inq_SightLevel() const;
-
- // Local
- typedef std::vector< Type_id > ExceptionList;
- friend struct ifc_attribute::attr;
-
- // DATA
- String sName;
- Ce_id nOwner;
- Ce_id nNameRoom;
-
- Type_id nType;
- ExceptionList aGetExceptions;
- ExceptionList aSetExceptions;
- bool bReadonly;
- bool bBound;
-};
-
-
-
-
-// IMPLEMENTATION
-inline void
-Attribute::Add_GetException( Type_id i_nException )
- { aGetExceptions.push_back(i_nException); }
-
-inline void
-Attribute::Add_SetException( Type_id i_nException )
- { aSetExceptions.push_back(i_nException); }
-
-inline Type_id
-Attribute::Type() const
- { return nType; }
-
-inline bool
-Attribute::IsReadonly() const
- { return bReadonly; }
-
-inline bool
-Attribute::IsBound() const
- { return bBound; }
-
-
-
-
-} // namespace idl
-} // namespace ary
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/inc/ary/idl/i_ce.hxx b/autodoc/inc/ary/idl/i_ce.hxx
deleted file mode 100644
index 9fe467c3c559..000000000000
--- a/autodoc/inc/ary/idl/i_ce.hxx
+++ /dev/null
@@ -1,129 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_IDL_I_CE_HXX
-#define ARY_IDL_I_CE_HXX
-
-// BASE CLASSES
-#include <ary/entity.hxx>
-// USED SERVICES
-#include <ary/doc/d_docu.hxx>
-#include <ary/idl/i_ce2s.hxx>
-#include <ary/idl/i_types4idl.hxx>
-
-
-
-
-
-
-namespace ary
-{
-namespace idl
-{
-
-
-/** @resp Base class for all IDL code entities.
-
- A @->CodeEntity is a namespace, type, data or function, which occures in
- the parsed UNO IDL code and is described and/or commented within the
- Autodoc repository.
-
- This is a storage base class, where more special classes are
- derived from.
-*/
-class CodeEntity : public ary::Entity
-{
- public:
- // LIFECYCLE
- virtual ~CodeEntity();
-
- // OPERATION
-
- // INQUIRY
- Ce_id CeId() const { return Ce_id(Id()); }
- const String & LocalName() const;
- Ce_id NameRoom() const;
- Ce_id Owner() const;
- E_SightLevel SightLevel() const;
-
- const ary::doc::Documentation &
- Docu() const;
- const Ce_2s & Secondaries() const;
-
- static const CodeEntity &
- Null_();
- // ACCESS
- void Set_Docu(
- DYN ary::doc::Node &
- pass_data );
- Ce_2s & Secondaries();
-
- protected:
- CodeEntity();
- private:
- // Locals
- virtual const String & inq_LocalName() const = 0;
- virtual Ce_id inq_NameRoom() const = 0;
- virtual Ce_id inq_Owner() const = 0;
- virtual E_SightLevel inq_SightLevel() const = 0;
-
- // DATA
- ary::doc::Documentation
- aDocu;
- Dyn<Ce_2s> p2s;
-};
-
-
-
-
-// IMPLEMENTATION
-inline const String &
-CodeEntity::LocalName() const
- { return inq_LocalName(); }
-
-inline Ce_id
-CodeEntity::NameRoom() const
- { return inq_NameRoom(); }
-
-inline Ce_id
-CodeEntity::Owner() const
- { return inq_Owner(); }
-
-inline E_SightLevel
-CodeEntity::SightLevel() const
- { return inq_SightLevel(); }
-
-inline const ary::doc::Documentation &
-CodeEntity::Docu() const
- { return aDocu; }
-
-inline void
-CodeEntity::Set_Docu(DYN ary::doc::Node & pass_data)
-{
- aDocu.Set_Data(pass_data);
-}
-
-
-
-
-} // namespace idl
-} // namespace ary
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/inc/ary/idl/i_ce2s.hxx b/autodoc/inc/ary/idl/i_ce2s.hxx
deleted file mode 100644
index b0577a3c59a5..000000000000
--- a/autodoc/inc/ary/idl/i_ce2s.hxx
+++ /dev/null
@@ -1,78 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_IDL_I_CE2S_HXX
-#define ARY_IDL_I_CE2S_HXX
-
-#include <ary/idl/i_types4idl.hxx>
-
-namespace ary
-{
-
-namespace idl
-{
-
-/** Abstract base for all secondary productions of code entities
-*/
-class Ce_2s
-{
- public:
- // LIFECYCLE
- explicit Ce_2s() {}
- virtual ~Ce_2s();
-
- static DYN Ce_2s * Create_();
- // OPERATIONS
- void Add_Link2DescriptionInManual(
- const String & i_link,
- const String & i_linkUI )
- { aDescriptionsInManual.push_back(i_link); aDescriptionsInManual.push_back(i_linkUI); }
- void Add_Link2RefInManual(
- const String & i_link,
- const String & i_linkUI )
- { aRefsInManual.push_back(i_link); aRefsInManual.push_back(i_linkUI); }
- std::vector<Ce_id> &
- Access_List(
- int i_indexOfList );
- // INQUIRY
- const StringVector &
- Links2DescriptionInManual() const
- { return aDescriptionsInManual; }
- const StringVector &
- Links2RefsInManual() const
- { return aRefsInManual; }
- int CountXrefLists() const { return aXrefLists.size(); }
- const std::vector<Ce_id> &
- List(
- int i_indexOfList ) const;
- private:
- typedef DYN std::vector<Ce_id> * ListPtr;
-
- // DATA
- StringVector aDescriptionsInManual;
- StringVector aRefsInManual;
- std::vector<ListPtr>
- aXrefLists;
-};
-
-} // namespace idl
-} // namespace ary
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/inc/ary/idl/i_comrela.hxx b/autodoc/inc/ary/idl/i_comrela.hxx
deleted file mode 100644
index ebb71aba1c7d..000000000000
--- a/autodoc/inc/ary/idl/i_comrela.hxx
+++ /dev/null
@@ -1,74 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_IDL_I_COMRELA_HXX
-#define ARY_IDL_I_COMRELA_HXX
-
-// USED SERVICES
-#include <ary/idl/i_types4idl.hxx>
-
-namespace ary
-{
-namespace doc
-{
- class OldIdlDocu;
-}
-}
-
-
-
-
-namespace ary
-{
-namespace idl
-{
-
-
-/** Contains data for an IDL code entity related to another one like a base of
- an interface or of a service or the supported interface of a service.
-*/
-class CommentedRelation
-{
- public:
- // LIFECYCLE
-
- CommentedRelation(
- Type_id i_nType,
- doc::OldIdlDocu * i_pInfo )
- : nType(i_nType),
- pInfo(i_pInfo)
- {}
- // INQUIRY
- Type_id Type() const { return nType; }
- doc::OldIdlDocu * Info() const { return pInfo; }
-
- private:
- // DATA
- Type_id nType;
- doc::OldIdlDocu * pInfo;
-};
-
-
-
-
-} // namespace idl
-} // namespace ary
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/inc/ary/idl/i_constant.hxx b/autodoc/inc/ary/idl/i_constant.hxx
deleted file mode 100644
index 3502457271a1..000000000000
--- a/autodoc/inc/ary/idl/i_constant.hxx
+++ /dev/null
@@ -1,106 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_IDL_I_CONSTANT_HXX
-#define ARY_IDL_I_CONSTANT_HXX
-
-// BASE CLASSES
-#include <ary/idl/i_ce.hxx>
-
-
-
-
-namespace ary
-{
-namespace idl
-{
-namespace ifc_constant
-{
- struct attr;
-}
-
-
-/** Represents an IDL constant.
-*/
-class Constant : public CodeEntity
-{
- public:
- enum E_ClassId { class_id = 2012 };
-
- // LIFECYCLE
- Constant(
- const String & i_sName,
- Ce_id i_nOwner,
- Ce_id i_nNameRoom,
- Type_id i_nType,
- const String & i_sInitValue );
- ~Constant();
- // INQUIRY
- Type_id Type() const;
- const String & Value() const;
-
-
- private:
- // Interface csv::ConstProcessorClient:
- virtual void do_Accept(
- csv::ProcessorIfc & io_processor ) const;
- // Interface ary::Object
- virtual ClassId get_AryClass() const;
-
- // Interface CodeEntity
- virtual const String & inq_LocalName() const;
- virtual Ce_id inq_NameRoom() const;
- virtual Ce_id inq_Owner() const;
- virtual E_SightLevel inq_SightLevel() const;
-
- friend struct ifc_constant::attr;
-
- // DATA
- String sName;
- Ce_id nNameRoom;
- Ce_id nOwner;
-
- Type_id nType;
- String sInitValue;
-};
-
-
-
-
-// IMPLEMENTATION
-inline Type_id
-Constant::Type() const
-{
- return nType;
-}
-
-inline const String &
-Constant::Value() const
-{
- return sInitValue;
-}
-
-
-
-
-} // namespace idl
-} // namespace ary
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/inc/ary/idl/i_constgroup.hxx b/autodoc/inc/ary/idl/i_constgroup.hxx
deleted file mode 100644
index f7017003a0a1..000000000000
--- a/autodoc/inc/ary/idl/i_constgroup.hxx
+++ /dev/null
@@ -1,95 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_IDL_I_CONSTGROUP_HXX
-#define ARY_IDL_I_CONSTGROUP_HXX
-
-// BASE CLASSES
-#include <ary/idl/i_ce.hxx>
-
-
-
-
-namespace ary
-{
-namespace idl
-{
-namespace ifc_constgroup
-{
- struct attr;
-}
-
-
-/** Represents an IDL constants group.
-*/
-class ConstantsGroup : public CodeEntity
-{
- public:
- enum E_ClassId { class_id = 2011 };
-
- // LIFECYCLE
- ConstantsGroup(
- const String & i_sName,
- Ce_id i_nModule );
- ~ConstantsGroup();
- // ACCESS
- void Add_Constant(
- Ce_id i_nConstant );
- private:
- // Interface csv::ConstProcessorClient:
- virtual void do_Accept(
- csv::ProcessorIfc & io_processor ) const;
- // Interface ary::Object
- virtual ClassId get_AryClass() const;
-
- // Interface CodeEntity
- virtual const String & inq_LocalName() const;
- virtual Ce_id inq_NameRoom() const;
- virtual Ce_id inq_Owner() const;
- virtual E_SightLevel inq_SightLevel() const;
-
- // Locals
- typedef std::vector<Ce_id> ConstantList;
- friend struct ifc_constgroup::attr;
-
- // DATA
- String sName;
- Ce_id nModule;
-
- ConstantList aConstants;
-};
-
-
-
-
-// IMPLEMENTATION
-inline void
-ConstantsGroup::Add_Constant( Ce_id i_nConstant )
-{
- aConstants.push_back(i_nConstant);
-}
-
-
-
-
-} // namespace idl
-} // namespace ary
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/inc/ary/idl/i_enum.hxx b/autodoc/inc/ary/idl/i_enum.hxx
deleted file mode 100644
index 4b6af884cffb..000000000000
--- a/autodoc/inc/ary/idl/i_enum.hxx
+++ /dev/null
@@ -1,94 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_IDL_I_ENUM_HXX
-#define ARY_IDL_I_ENUM_HXX
-
-// BASE CLASSES
-#include <ary/idl/i_ce.hxx>
-
-
-
-
-namespace ary
-{
-namespace idl
-{
-namespace ifc_enum
-{
- struct attr;
-}
-
-
-/** Represents an IDL enum.
-*/
-class Enum : public CodeEntity
-{
- public:
- enum E_ClassId { class_id = 2005 };
- // LIFECYCLE
- Enum(
- const String & i_sName,
- Ce_id i_nOwner );
- ~Enum();
- // ACCESS
- void Add_Value(
- Ce_id i_nValue );
- private:
- // Interface csv::ConstProcessorClient:
- virtual void do_Accept(
- csv::ProcessorIfc & io_processor ) const;
- // Interface ary::Object
- virtual ClassId get_AryClass() const;
-
- // Interface CodeEntity
- virtual const String & inq_LocalName() const;
- virtual Ce_id inq_NameRoom() const;
- virtual Ce_id inq_Owner() const;
- virtual E_SightLevel inq_SightLevel() const;
-
- // Locals
- typedef std::vector<Ce_id> ValueList;
- friend struct ifc_enum::attr;
-
- // DATA
- String sName;
- Ce_id nOwner;
-
- ValueList aValues;
-};
-
-
-
-
-// IMPLEMENTATION
-inline void
-Enum::Add_Value( Ce_id i_nValue )
-{
- aValues.push_back(i_nValue);
-}
-
-
-
-
-} // namespace idl
-} // namespace ary
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/inc/ary/idl/i_enumvalue.hxx b/autodoc/inc/ary/idl/i_enumvalue.hxx
deleted file mode 100644
index 5814db9cdde3..000000000000
--- a/autodoc/inc/ary/idl/i_enumvalue.hxx
+++ /dev/null
@@ -1,97 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_IDL_I_ENUMVALUE_HXX
-#define ARY_IDL_I_ENUMVALUE_HXX
-
-// BASE CLASSES
-#include <ary/idl/i_ce.hxx>
-
-
-
-
-namespace ary
-{
-namespace idl
-{
-namespace ifc_enumvalue
-{
- struct attr;
-}
-
-
-/** @resp
- Represents an IDL enum value.
-*/
-class EnumValue : public CodeEntity
-{
- public:
- enum E_ClassId { class_id = 2006 };
-
- // LIFECYCLE
- EnumValue(
- const String & i_sName,
- Ce_id i_nOwner,
- Ce_id i_nNameRoom,
- const String & i_sInitValue );
- ~EnumValue();
- // INQUIRY
- const String & Value() const;
-
- private:
- // Interface csv::ConstProcessorClient:
- virtual void do_Accept(
- csv::ProcessorIfc & io_processor ) const;
- // Interface ary::Object
- virtual ClassId get_AryClass() const;
-
- // Interface CodeEntity
- virtual const String & inq_LocalName() const;
- virtual Ce_id inq_NameRoom() const;
- virtual Ce_id inq_Owner() const;
- virtual E_SightLevel inq_SightLevel() const;
-
- friend struct ifc_enumvalue::attr;
-
- // DATA
- String sName;
- Ce_id nOwner;
- Ce_id nNameRoom;
-
- String sValue;
-};
-
-
-
-
-// IMPLEMENTATION
-inline const String &
-EnumValue::Value() const
-{
- return sValue;
-}
-
-
-
-
-} // namespace idl
-} // namespace ary
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/inc/ary/idl/i_exception.hxx b/autodoc/inc/ary/idl/i_exception.hxx
deleted file mode 100644
index 9132753c6577..000000000000
--- a/autodoc/inc/ary/idl/i_exception.hxx
+++ /dev/null
@@ -1,101 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_IDL_I_EXCEPTION_HXX
-#define ARY_IDL_I_EXCEPTION_HXX
-
-// BASE CLASSES
-#include <ary/idl/i_ce.hxx>
-
-
-
-
-namespace ary
-{
-namespace idl
-{
-namespace ifc_exception
-{
- struct attr;
-}
-
-
-/** Represents an IDL exception.
-*/
-class Exception : public CodeEntity
-{
- public:
- enum E_ClassId { class_id = 2010 };
-
- // LIFECYCLE
- Exception(
- const String & i_sName,
- Ce_id i_nOwner,
- Type_id i_nBase );
- ~Exception();
- // INQUIRY
- Type_id Base() const { return nBase; }
-
- // ACCESS
- void Add_Member(
- Ce_id i_nMember );
-
- private:
- // Interface csv::ConstProcessorClient:
- virtual void do_Accept(
- csv::ProcessorIfc & io_processor ) const;
- // Interface ary::Object:
- virtual ClassId get_AryClass() const;
-
- // Interface CodeEntity
- virtual const String & inq_LocalName() const;
- virtual Ce_id inq_NameRoom() const;
- virtual Ce_id inq_Owner() const;
- virtual E_SightLevel inq_SightLevel() const;
-
- // Locals
- typedef std::vector<Ce_id> ElementList;
- friend struct ifc_exception::attr;
-
- // DATA
- String sName;
- Ce_id nOwner;
-
- Type_id nBase;
- ElementList aElements;
-};
-
-
-
-
-// IMPLEMENTATION
-inline void
-Exception::Add_Member( Ce_id i_nMember )
-{
- aElements.push_back(i_nMember);
-}
-
-
-
-
-} // namespace idl
-} // namespace ary
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/inc/ary/idl/i_function.hxx b/autodoc/inc/ary/idl/i_function.hxx
deleted file mode 100644
index eae31997feb1..000000000000
--- a/autodoc/inc/ary/idl/i_function.hxx
+++ /dev/null
@@ -1,154 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_IDL_I_FUNCTION_HXX
-#define ARY_IDL_I_FUNCTION_HXX
-
-// BASE CLASSES
-#include <ary/idl/i_ce.hxx>
-
-// USED SERVICES
-#include <ary/idl/i_param.hxx>
-#include <ary/idl/ik_function.hxx>
-#include <ary/stdconstiter.hxx>
-
-
-
-
-namespace ary
-{
-namespace idl
-{
-
-
-/** Represents an IDL function.
-
- Special case constructor:
- Constructors have return type "0".
-*/
-class Function : public CodeEntity
-{
- public:
- enum E_ClassId { class_id = 2002 };
-
- typedef std::vector< Parameter > ParamList;
- typedef std::vector< Type_id > ExceptionList;
-
- // LIFECYCLE
- /// Normal function
- Function(
- const String & i_sName,
- Ce_id i_nOwner,
- Ce_id i_nNameRoom,
- Type_id i_nReturnType,
- bool i_bOneWay );
- /// Constructor
- Function(
- const String & i_sName,
- Ce_id i_nOwner,
- Ce_id i_nNameRoom );
- ~Function();
-
- // OPERATIONS
- void Add_Parameter(
- const String & i_sName,
- Type_id i_nType,
- E_ParameterDirection
- i_eDirection );
- /// The function's parameter list ends with the ellipse "..." .
- void Set_Ellipse();
- void Add_Exception(
- Type_id i_nException );
-
- // INQUIRY
- Type_id ReturnType() const;
- const ParamList & Parameters() const { return aParameters; }
- const ExceptionList &
- Exceptions() const { return aExceptions; }
- bool IsOneway() const;
- bool HasEllipse() const { return bEllipse; }
-
- private:
- // Interface csv::ConstProcessorClient:
- virtual void do_Accept(
- csv::ProcessorIfc & io_processor ) const;
- // Interface ary::Object:
- virtual ClassId get_AryClass() const;
-
- // Interface CodeEntity
- virtual const String & inq_LocalName() const;
- virtual Ce_id inq_NameRoom() const;
- virtual Ce_id inq_Owner() const;
- virtual E_SightLevel inq_SightLevel() const;
-
- // Locals
- friend struct ifc_function::attr;
-
- // DATA
- String sName;
- Ce_id nOwner;
- Ce_id nNameRoom;
-
- Type_id nReturnType;
- ParamList aParameters;
- ExceptionList aExceptions;
- bool bOneWay;
- bool bEllipse;
-};
-
-
-
-
-// IMPLEMENTATION
-inline void
-Function::Add_Parameter( const String & i_sName,
- Type_id i_nType,
- E_ParameterDirection i_eDirection )
-{
- aParameters.push_back( Parameter(i_sName,i_nType,i_eDirection) );
-}
-
-inline void
-Function::Set_Ellipse()
-{
- bEllipse = true;
-}
-
-inline void
-Function::Add_Exception( Type_id i_nException )
-{
- aExceptions.push_back(i_nException);
-}
-
-inline Type_id
-Function::ReturnType() const
- { return nReturnType; }
-
-inline bool
-Function::IsOneway() const
- { return bOneWay; }
-
-
-
-
-} // namespace idl
-} // namespace ary
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/inc/ary/idl/i_gate.hxx b/autodoc/inc/ary/idl/i_gate.hxx
deleted file mode 100644
index 47563eee8a13..000000000000
--- a/autodoc/inc/ary/idl/i_gate.hxx
+++ /dev/null
@@ -1,77 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_IDL_I_GATE_HXX
-#define ARY_IDL_I_GATE_HXX
-
-// USED SERVICES
-
-namespace autodoc
-{
- class Options;
-}
-namespace ary
-{
-namespace idl
-{
- class CePilot;
- class TypePilot;
-}
-}
-
-
-
-
-namespace ary
-{
-namespace idl
-{
-
-
-/** Main entry to access the IDL parts of the repository.
-*/
-class Gate
-{
- public:
- // LIFECYCLE
- virtual ~Gate() {}
-
- // OPERATIONS
- virtual void Calculate_AllSecondaryInformation(
- const String & i_devman_reffilepath ) = 0;
-// const ::autodoc::Options &
-// i_options ) = 0;
- // INQUIRY
- virtual const CePilot &
- Ces() const = 0;
- virtual const TypePilot &
- Types() const = 0;
- // ACCESS
- virtual CePilot & Ces() = 0;
- virtual TypePilot & Types() = 0;
-};
-
-
-
-
-} // namespace idl
-} // namespace ary
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/inc/ary/idl/i_interface.hxx b/autodoc/inc/ary/idl/i_interface.hxx
deleted file mode 100644
index 1d3ca93a67e6..000000000000
--- a/autodoc/inc/ary/idl/i_interface.hxx
+++ /dev/null
@@ -1,121 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_IDL_I_INTERFACE_HXX
-#define ARY_IDL_I_INTERFACE_HXX
-
-// BASE CLASSES
-#include <ary/idl/i_ce.hxx>
-
-// USED SERVICES
-#include <ary/idl/i_comrela.hxx>
-#include <ary/stdconstiter.hxx>
-
-
-
-
-namespace ary
-{
-namespace idl
-{
-namespace ifc_interface
-{
- struct attr;
-}
- class Interface_2s;
-
-
-/** Represents an IDL interface.
-*/
-class Interface : public CodeEntity
-{
- public:
- enum E_ClassId { class_id = 2001 };
-
- // LIFECYCLE
- Interface(
- const String & i_sName,
- Ce_id i_nOwner );
- ~Interface();
- // INQUIRY
- bool HasBase() const;
-
- // ACCESS
- void Add_Function(
- Ce_id i_nId );
- void Add_Attribute(
- Ce_id i_nId );
- void Add_Base(
- Type_id i_nInterface,
- DYN doc::OldIdlDocu *
- pass_dpDocu );
-
- private:
- // Interface csv::ConstProcessorClient:
- virtual void do_Accept(
- csv::ProcessorIfc & io_processor ) const;
- // Interface ary::Object:
- virtual ClassId get_AryClass() const;
-
- // Interface CodeEntity:
- virtual const String & inq_LocalName() const;
- virtual Ce_id inq_NameRoom() const;
- virtual Ce_id inq_Owner() const;
- virtual E_SightLevel inq_SightLevel() const;
-
- // Local
- typedef std::vector< CommentedRelation > RelationList;
- typedef std::vector<Ce_id> MemberList;
- friend struct ifc_interface::attr;
-
- // DATA
- String sName;
- Ce_id nOwner;
- RelationList aBases;
- MemberList aFunctions;
- MemberList aAttributes;
- Dyn<Interface_2s> p2s;
-};
-
-
-
-
-// IMPLEMENTATION
-inline bool
-Interface::HasBase() const
- { return aBases.size() > 0; }
-inline void
-Interface::Add_Function( Ce_id i_nId )
- { aFunctions.push_back(i_nId); }
-inline void
-Interface::Add_Attribute( Ce_id i_nId )
- { aAttributes.push_back(i_nId); }
-inline void
-Interface::Add_Base( Type_id i_nInterface,
- DYN doc::OldIdlDocu * pass_dpDocu )
- { aBases.push_back( CommentedRelation(i_nInterface, pass_dpDocu) ); }
-
-
-
-
-} // namespace idl
-} // namespace ary
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/inc/ary/idl/i_module.hxx b/autodoc/inc/ary/idl/i_module.hxx
deleted file mode 100644
index 53266c612063..000000000000
--- a/autodoc/inc/ary/idl/i_module.hxx
+++ /dev/null
@@ -1,107 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_IDL_I_MODULE_HXX
-#define ARY_IDL_I_MODULE_HXX
-
-// BASE CLASSES
-#include <ary/idl/i_ce.hxx>
-
-// USED SERVICES
-#include <ary/stdconstiter.hxx>
-
-
-
-
-namespace ary
-{
- template <class> class NameTreeNode;
-
-namespace idl
-{
-namespace ifc_module
-{
- struct attr;
-}
-
-
-/** Represents an IDL module.
-
- "Name" in methods means all code entities which belong into
- this namespace (not in a subnamespace of this one), but not
- to the subnamespaces.
-
- "SubNamespace" in method names refers to all direct subnamespaces.
-*/
-class Module : public CodeEntity
-{
- public:
- enum E_ClassId { class_id = 2000 };
-
- // LIFECYCLE
- Module();
- Module(
- const String & i_sName,
- const Module & i_rParent );
- ~Module();
- // OPERATIONS
- void Add_Name(
- const String & i_sName,
- Ce_id i_nId );
- // INQUIRY
- Ce_id Search_Name(
- const String & i_sName ) const;
- void Get_Names(
- Dyn_StdConstIterator<Ce_id> &
- o_rResult ) const;
- private:
- // Interface csv::ConstProcessorClient:
- virtual void do_Accept(
- csv::ProcessorIfc & io_processor ) const;
- // Interface ary::Object:
- virtual ClassId get_AryClass() const;
-
- // Interface CodeEntity
- virtual const String & inq_LocalName() const;
- virtual Ce_id inq_NameRoom() const;
- virtual Ce_id inq_Owner() const;
- virtual E_SightLevel inq_SightLevel() const;
-
- friend struct ifc_module::attr;
-
- // DATA
- Dyn< NameTreeNode<Ce_id> >
- pImpl;
-};
-
-
-inline bool
-is_Module( const CodeEntity & i_rCe )
-{
- return i_rCe.AryClass() == Module::class_id;
-}
-
-
-
-
-} // namespace idl
-} // namespace ary
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/inc/ary/idl/i_namelookup.hxx b/autodoc/inc/ary/idl/i_namelookup.hxx
deleted file mode 100644
index f962d48a0768..000000000000
--- a/autodoc/inc/ary/idl/i_namelookup.hxx
+++ /dev/null
@@ -1,88 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_IDL_I_NAMELOOKUP_HXX
-#define ARY_IDL_I_NAMELOOKUP_HXX
-
-// BASE CLASSES
-#include <ary/idl/i_types4idl.hxx>
-
-// USED SERVICES
-#include <ary/stdconstiter.hxx>
-#include <vector>
-#include <map>
-
-
-
-
-namespace ary
-{
-namespace idl
-{
-
-
-/** This class finds all occurrences in the current language of a
- name in the repository.
-*/
-class NameLookup
-{
- public:
- struct NameProperties
- {
- NameProperties()
- : nId(0),
- nClass(0),
- nOwner(0) {}
- NameProperties(
- Ce_id i_id,
- ClassId i_class,
- Ce_id i_owner )
- : nId(i_id),
- nClass(i_class),
- nOwner(i_owner) {}
- Ce_id nId;
- ClassId nClass;
- Ce_id nOwner;
- };
-
- /// Map from Name to NameProperties.
- typedef std::multimap<String, NameProperties> Map_Names;
-
- // LIFECYCLE
- NameLookup();
- ~NameLookup();
- // OPERATIONS
- void Add_Name(
- const String & i_name,
- Ce_id i_id,
- ClassId i_class,
- Ce_id i_owner );
- private:
- // DATA
- Map_Names aNames;
-};
-
-
-
-
-} // namespace idl
-} // namespace ary
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/inc/ary/idl/i_param.hxx b/autodoc/inc/ary/idl/i_param.hxx
deleted file mode 100644
index 1fc546c28793..000000000000
--- a/autodoc/inc/ary/idl/i_param.hxx
+++ /dev/null
@@ -1,69 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_IDL_I_PARAM_HXX
-#define ARY_IDL_I_PARAM_HXX
-
-// BASE CLASSES
-#include <ary/idl/i_types4idl.hxx>
-
-
-
-
-namespace ary
-{
-namespace idl
-{
-
-
-/** Represents a parameter in an IDL function.
-*/
-class Parameter
-{
- public:
- // LIFECYCLE
- Parameter(
- const String & i_sName,
- Type_id i_nType,
- E_ParameterDirection
- i_eDirection );
- ~Parameter();
-
- // INQUIRY
- const String & Name() const { return sName; }
- Type_id Type() const { return nType; }
- E_ParameterDirection
- Direction() const { return eDirection; }
-
- private:
- // DATA
- String sName;
- Type_id nType;
- E_ParameterDirection
- eDirection;
-};
-
-
-
-
-} // namespace idl
-} // namespace ary
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/inc/ary/idl/i_property.hxx b/autodoc/inc/ary/idl/i_property.hxx
deleted file mode 100644
index d515e2019108..000000000000
--- a/autodoc/inc/ary/idl/i_property.hxx
+++ /dev/null
@@ -1,137 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_IDL_I_PROPERTY_HXX
-#define ARY_IDL_I_PROPERTY_HXX
-
-// BASE CLASSES
-#include <ary/idl/i_ce.hxx>
-
-
-
-
-namespace ary
-{
-namespace idl
-{
-namespace ifc_property
-{
- struct attr;
-}
-
-
-/** Represents an IDL property.
-*/
-class Property : public CodeEntity
-{
- public:
- enum E_ClassId { class_id = 2004 };
-
- class Stereotypes
- {
- public:
- enum E_Flags
- {
- readonly = 1,
- bound = 2,
- constrained = 4,
- maybeambiguous = 8,
- maybedefault = 16,
- maybevoid = 32,
- removable = 64,
- transient = 128,
- s_MAX
- };
- Stereotypes() : nFlags(0) {}
-
- bool HasAny() const { return nFlags != 0; }
- bool IsReadOnly() const { return (nFlags & UINT32(readonly)) != 0; }
- bool IsBound() const { return (nFlags & UINT32(bound)) != 0; }
- bool IsConstrained() const
- { return (nFlags & UINT32(constrained)) != 0; }
- bool IsMayBeAmbiguous() const
- { return (nFlags & UINT32(maybeambiguous)) != 0; }
- bool IsMayBeDefault() const
- { return (nFlags & UINT32(maybedefault)) != 0; }
- bool IsMayBeVoid() const { return (nFlags & UINT32(maybevoid)) != 0; }
- bool IsRemovable() const { return (nFlags & UINT32(removable)) != 0; }
- bool IsTransient() const { return (nFlags & UINT32(transient)) != 0; }
-
- void Set_Flag(
- E_Flags i_flag )
- { nFlags |= UINT32(i_flag); }
- private:
- // DATA
- UINT32 nFlags;
- };
-
-
- // LIFECYCLE
- Property(
- const String & i_sName,
- Ce_id i_nService,
- Ce_id i_nModule,
- Type_id i_nType,
- Stereotypes i_stereotypes );
- ~Property();
- // INQUIRY
- Type_id Type() const;
-
- private:
- // Interface csv::ConstProcessorClient:
- virtual void do_Accept(
- csv::ProcessorIfc & io_processor ) const;
- // Interface ary::Object:
- virtual ClassId get_AryClass() const;
-
- // Interface CodeEntity
- virtual const String & inq_LocalName() const;
- virtual Ce_id inq_NameRoom() const;
- virtual Ce_id inq_Owner() const;
- virtual E_SightLevel inq_SightLevel() const;
-
- friend struct ifc_property::attr;
-
- // DATA
- String sName;
- Ce_id nOwner;
- Ce_id nNameRoom;
-
- Type_id nType;
- Stereotypes aStereotypes;
-};
-
-
-
-
-// IMPLEMENTATION
-inline Type_id
-Property::Type() const
-{
- return nType;
-}
-
-
-
-
-} // namespace idl
-} // namespace ary
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/inc/ary/idl/i_service.hxx b/autodoc/inc/ary/idl/i_service.hxx
deleted file mode 100644
index 9acfb07f243c..000000000000
--- a/autodoc/inc/ary/idl/i_service.hxx
+++ /dev/null
@@ -1,129 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_IDL_I_SERVICE_HXX
-#define ARY_IDL_I_SERVICE_HXX
-
-// BASE CLASSES
-#include <ary/idl/i_ce.hxx>
-
-// USED SERVICES
-#include <ary/idl/i_comrela.hxx>
-#include <ary/stdconstiter.hxx>
-#include <ary/idl/ik_service.hxx>
-
-
-
-
-namespace ary
-{
-namespace idl
-{
-namespace ifc_service
-{
- struct attr;
-}
-
-
-/** Represents an IDL service.
-*/
-class Service : public CodeEntity
-{
- public:
- enum E_ClassId { class_id = 2003 }; // See reposy.cxx
-
- // LIFECYCLE
- Service(
- const String & i_sName,
- Ce_id i_nOwner );
- ~Service();
-
- // INQUIRY
- void Get_SupportedInterfaces(
- Dyn_StdConstIterator<CommentedRelation> &
- o_rResult ) const;
- void Get_IncludedServices(
- Dyn_StdConstIterator<CommentedRelation> &
- o_rResult ) const;
-
- // ACCESS
- void Add_Property(
- Ce_id i_nProperty );
- void AddRef_IncludedService(
- Type_id i_nService,
- DYN doc::OldIdlDocu *
- pass_dpDocu );
- void AddRef_SupportedInterface(
- Type_id i_nInterface,
- DYN doc::OldIdlDocu *
- pass_dpDocu );
- private:
- // Interface csv::ConstProcessorClient:
- virtual void do_Accept(
- csv::ProcessorIfc & io_processor ) const;
- // Interface ary::Object:
- virtual ClassId get_AryClass() const;
-
- // Interface CodeEntity
- virtual const String & inq_LocalName() const;
- virtual Ce_id inq_NameRoom() const;
- virtual Ce_id inq_Owner() const;
- virtual E_SightLevel inq_SightLevel() const;
-
- // Locals
- typedef std::vector< CommentedRelation > RelationList;
- typedef std::vector<Ce_id> PropertyList;
- friend struct ifc_service::attr;
-
- // DATA
- String sName;
- Ce_id nOwner;
-
- RelationList aIncludedServices;
- RelationList aSupportedInterfaces;
- PropertyList aProperties;
-};
-
-
-
-
-// IMPLEMENTATION
-inline void
-Service::Add_Property( Ce_id i_nProperty )
- { aProperties.push_back(i_nProperty); }
-
-inline void
-Service::AddRef_IncludedService( Type_id i_nService,
- DYN doc::OldIdlDocu * pass_dpDocu )
- { aIncludedServices.push_back( CommentedRelation(i_nService, pass_dpDocu) ); }
-
-inline void
-Service::AddRef_SupportedInterface( Type_id i_nInterface,
- DYN doc::OldIdlDocu * pass_dpDocu )
- { aSupportedInterfaces.push_back( CommentedRelation(i_nInterface, pass_dpDocu) ); }
-
-
-
-
-
-} // namespace idl
-} // namespace ary
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/inc/ary/idl/i_singleton.hxx b/autodoc/inc/ary/idl/i_singleton.hxx
deleted file mode 100644
index 6791a9cfe990..000000000000
--- a/autodoc/inc/ary/idl/i_singleton.hxx
+++ /dev/null
@@ -1,99 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_IDL_I_SINGLETON_HXX
-#define ARY_IDL_I_SINGLETON_HXX
-
-// BASE CLASSES
-#include <ary/idl/i_ce.hxx>
-
-
-
-
-namespace ary
-{
-namespace idl
-{
-namespace ifc_singleton
-{
- struct attr;
-}
-
-
-/** Represents an IDL singleton.
-*/
-class Singleton : public CodeEntity
-{
- public:
- enum E_ClassId { class_id = 2013 };
-
- // LIFECYCLE
- Singleton(
- const String & i_sName,
- Ce_id i_nOwner );
- ~Singleton();
- // INQUIRY
- Type_id AssociatedService() const
- { return nService; }
-
- // ACCESS
- void Set_Service(
- Type_id i_nService );
- private:
- // Interface csv::ConstProcessorClient:
- virtual void do_Accept(
- csv::ProcessorIfc & io_processor ) const;
- // Interface ary::Object:
- virtual ClassId get_AryClass() const;
-
- // Interface CodeEntity
- virtual const String & inq_LocalName() const;
- virtual Ce_id inq_NameRoom() const;
- virtual Ce_id inq_Owner() const;
- virtual E_SightLevel inq_SightLevel() const;
-
- // Locals
- friend struct ifc_singleton::attr;
-
- // DATA
- String sName;
- Ce_id nOwner;
-
- Type_id nService;
-};
-
-
-
-
-
-// IMPLEMENTATION
-inline void
-Singleton::Set_Service( Type_id i_nService )
-{
- nService = i_nService;
-}
-
-
-
-
-} // namespace idl
-} // namespace ary
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/inc/ary/idl/i_siservice.hxx b/autodoc/inc/ary/idl/i_siservice.hxx
deleted file mode 100644
index 461722710809..000000000000
--- a/autodoc/inc/ary/idl/i_siservice.hxx
+++ /dev/null
@@ -1,101 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_IDL_I_SISERVICE_HXX
-#define ARY_IDL_I_SISERVICE_HXX
-
-// BASE CLASSES
-#include <ary/idl/i_ce.hxx>
-
-
-
-
-namespace ary
-{
-namespace idl
-{
-namespace ifc_sglifcservice
-{
- struct attr;
-}
-
-
-/** Represents an IDL single interface service.
-*/
-class SglIfcService : public CodeEntity
-{
- public:
- enum E_ClassId { class_id = 2015 }; // See reposy.cxx
-
- // LIFECYCLE
- SglIfcService(
- const String & i_sName,
- Ce_id i_nOwner,
- Type_id i_nBaseInterface );
- ~SglIfcService();
- // ACCESS
- void Add_Constructor(
- Ce_id i_nId );
-
- // INFO
- Type_id BaseInterface() const { return nBaseInterface; }
-
- private:
- // Interface csv::ConstProcessorClient:
- virtual void do_Accept(
- csv::ProcessorIfc & io_processor ) const;
- // Interface ary::Object:
- virtual ClassId get_AryClass() const;
-
- // Interface CodeEntity:
- virtual const String & inq_LocalName() const;
- virtual Ce_id inq_NameRoom() const;
- virtual Ce_id inq_Owner() const;
- virtual E_SightLevel inq_SightLevel() const;
-
- // Local
- typedef std::vector<Ce_id> CtorList;
- friend struct ifc_sglifcservice::attr;
-
- // DATA
- String sName;
- Ce_id nOwner;
- Type_id nBaseInterface;
-
- CtorList aConstructors;
-};
-
-
-
-
-// IMPLEMENTATION
-inline void
-SglIfcService::Add_Constructor( Ce_id i_nId )
-{
- aConstructors.push_back(i_nId);
-}
-
-
-
-
-} // namespace idl
-} // namespace ary
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/inc/ary/idl/i_sisingleton.hxx b/autodoc/inc/ary/idl/i_sisingleton.hxx
deleted file mode 100644
index 08d8dec176cc..000000000000
--- a/autodoc/inc/ary/idl/i_sisingleton.hxx
+++ /dev/null
@@ -1,94 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_IDL_I_SISINGLETON_HXX
-#define ARY_IDL_I_SISINGLETON_HXX
-
-// BASE CLASSES
-#include <ary/idl/i_ce.hxx>
-
-
-
-
-namespace ary
-{
-namespace idl
-{
-namespace ifc_sglifcsingleton
-{
- struct attr;
-}
-
-
-/** Represents an IDL interface.
-*/
-class SglIfcSingleton : public CodeEntity
-{
- public:
- enum E_ClassId { class_id = 2016 }; // See reposy.cxx
-
- // LIFECYCLE
- SglIfcSingleton(
- const String & i_sName,
- Ce_id i_nOwner,
- Type_id i_nBaseInterface );
- ~SglIfcSingleton();
- // INQUIRY
- Type_id BaseInterface() const;
-
- private:
- // Interface csv::ConstProcessorClient:
- virtual void do_Accept(
- csv::ProcessorIfc & io_processor ) const;
- // Interface ary::Object:
- virtual ClassId get_AryClass() const;
-
- // Interface CodeEntity:
- virtual const String & inq_LocalName() const;
- virtual Ce_id inq_NameRoom() const;
- virtual Ce_id inq_Owner() const;
- virtual E_SightLevel inq_SightLevel() const;
-
- // Local
- friend struct ifc_sglifcsingleton::attr;
-
- // DATA
- String sName;
- Ce_id nOwner;
- Type_id nBaseInterface;
-};
-
-
-
-
-// IMPLEMENTATION
-inline Type_id
-SglIfcSingleton::BaseInterface() const
-{
- return nBaseInterface;
-}
-
-
-
-
-} // namespace idl
-} // namespace ary
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/inc/ary/idl/i_struct.hxx b/autodoc/inc/ary/idl/i_struct.hxx
deleted file mode 100644
index 14734d3d5aa5..000000000000
--- a/autodoc/inc/ary/idl/i_struct.hxx
+++ /dev/null
@@ -1,124 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_IDL_I_STRUCT_HXX
-#define ARY_IDL_I_STRUCT_HXX
-
-// BASE CLASSES
-#include <ary/idl/i_ce.hxx>
-
-
-
-
-namespace ary
-{
-namespace idl
-{
-namespace ifc_struct
-{
- struct attr;
-}
-
-
-/** Represents an IDL struct.
-*/
-class Struct : public CodeEntity
-{
- public:
- enum E_ClassId { class_id = 2008 };
-
- // LIFECYCLE
- Struct(
- const String & i_sName,
- Ce_id i_nOwner,
- Type_id i_nBase,
- const String & i_sTemplateParameter,
- Type_id i_nTemplateParameterType );
- ~Struct();
- // INQUIRY
- Type_id Base() const;
- String TemplateParameter() const;
- Type_id TemplateParameterType() const;
-
- // ACCESS
- void Add_Member(
- Ce_id i_nMember );
- private:
- // Interface csv::ConstProcessorClient:
- virtual void do_Accept(
- csv::ProcessorIfc & io_processor ) const;
- // Interface ary::Object:
- virtual ClassId get_AryClass() const;
-
- // Interface CodeEntity
- virtual const String & inq_LocalName() const;
- virtual Ce_id inq_NameRoom() const;
- virtual Ce_id inq_Owner() const;
- virtual E_SightLevel inq_SightLevel() const;
-
- // Locals
- typedef std::vector<Ce_id> ElementList;
- friend struct ifc_struct::attr;
-
- // DATA
- String sName;
- Ce_id nOwner;
-
- Type_id nBase;
- String sTemplateParameter;
- Type_id nTemplateParameterType;
- ElementList aElements;
-};
-
-
-
-
-// IMPLEMENTATION
-inline Type_id
-Struct::Base() const
-{
- return nBase;
-}
-
-inline String
-Struct::TemplateParameter() const
-{
- return sTemplateParameter;
-}
-
-inline Type_id
-Struct::TemplateParameterType() const
-{
- return nTemplateParameterType;
-}
-
-inline void
-Struct::Add_Member( Ce_id i_nMember )
-{
- aElements.push_back(i_nMember);
-}
-
-
-
-
-} // namespace idl
-} // namespace ary
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/inc/ary/idl/i_structelem.hxx b/autodoc/inc/ary/idl/i_structelem.hxx
deleted file mode 100644
index 432a8e3f23fc..000000000000
--- a/autodoc/inc/ary/idl/i_structelem.hxx
+++ /dev/null
@@ -1,97 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_IDL_I_STRUCTELEM_HXX
-#define ARY_IDL_I_STRUCTELEM_HXX
-
-// BASE CLASSES
-#include <ary/idl/i_ce.hxx>
-
-
-
-
-namespace ary
-{
-namespace idl
-{
-namespace ifc_structelement
-{
- struct attr;
-}
-
-
-/** Represents an IDL struct element.
-*/
-class StructElement : public CodeEntity
-{
- public:
- enum E_ClassId { class_id = 2009 };
-
- // LIFECYCLE
- StructElement(
- const String & i_sName,
- Ce_id i_nOwner,
- Ce_id i_nNameRoom,
- Type_id i_nType );
- ~StructElement();
-
- // INQUIRY
- Type_id Type() const;
-
- private:
- // Interface csv::ConstProcessorClient:
- virtual void do_Accept(
- csv::ProcessorIfc & io_processor ) const;
- // Interface ary::Object:
- virtual ClassId get_AryClass() const;
-
- // Interface CodeEntity
- virtual const String & inq_LocalName() const;
- virtual Ce_id inq_NameRoom() const;
- virtual Ce_id inq_Owner() const;
- virtual E_SightLevel inq_SightLevel() const;
-
- friend struct ifc_structelement::attr;
-
- // DATA
- String sName;
- Ce_id nOwner;
- Ce_id nNameRoom;
-
- Type_id nType;
-};
-
-
-
-
-// IMPLEMENTATION
-inline Type_id
-StructElement::Type() const
-{
- return nType;
-}
-
-
-
-
-} // namespace idl
-} // namespace ary
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/inc/ary/idl/i_traits.hxx b/autodoc/inc/ary/idl/i_traits.hxx
deleted file mode 100644
index 4d7d06a793cd..000000000000
--- a/autodoc/inc/ary/idl/i_traits.hxx
+++ /dev/null
@@ -1,72 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_IDL_I_TRAITS_HXX
-#define ARY_IDL_I_TRAITS_HXX
-
-// USED SERVICES
-#include <ary/idl/i_types4idl.hxx>
-
-
-
-
-namespace ary
-{
-namespace idl
-{
-
-
-/** Basic traits for derivd ones of ->CodeEntity.
-*/
-struct Ce_Traits
-{
- typedef CodeEntity entity_base_type;
- typedef Ce_id id_type;
-
- static entity_base_type &
- EntityOf_(
- id_type i_id );
-};
-
-
-/** An instance of COMPARE for ->::ary::SortedIds<>.
-
- @see ::ary::SortedIds<>
-*/
-struct Ce_Compare : public Ce_Traits
-{
- typedef String key_type;
-
- static const key_type &
- KeyOf_(
- const entity_base_type &
- i_entity );
- static bool Lesser_(
- const key_type & i_1,
- const key_type & i_2 );
-};
-
-
-
-
-} // namespace idl
-} // namespace ary
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/inc/ary/idl/i_type.hxx b/autodoc/inc/ary/idl/i_type.hxx
deleted file mode 100644
index 5fa2ce5fdd4f..000000000000
--- a/autodoc/inc/ary/idl/i_type.hxx
+++ /dev/null
@@ -1,136 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_IDL_I_TYPE_HXX
-#define ARY_IDL_I_TYPE_HXX
-
-// USED SERVICES
-#include <ary/entity.hxx>
-#include <ary/idl/i_types4idl.hxx>
-
-
-
-
-namespace ary
-{
-namespace idl
-{
- class Gate;
-
-
-/** Abstract base for all secondary productions of types
-*/
-class Type_2s
-{
- public:
- virtual ~Type_2s() {}
-
- static DYN Type_2s *
- Create_(
- ClassId i_nCeId );
-};
-
-
-/** Base of all IDL types.
-
- Type represents the occurrence of a type as base,
- parameter, return type or element type in UNO IDL code.
- Some of them relate to a ->CodeEntity, but
- the ->Type "MyInterface" is something different than
- the ->CodeEntity "MyInterface".
-
- This is a storage base class, where more special
- classes are derived from.
-*/
-class Type : public ary::Entity
-{
- public:
- typedef Type_2s secondary_productions;
-
- // LIFECYCLE
- virtual ~Type() {}
-
- // INQUIRY
- Type_id TypeId() const { return Type_id(Id()); }
-
- /** Does NOT clear the output-parameters.
-
- @attention
- If this is a sequence, the text of the first non-sequence, enclosed type
- is returned.
- */
- void Get_Text(
- StringVector & o_module,
- String & o_name,
- Ce_id & o_nRelatedCe,
- int & o_nSequenceCount,
- const Gate & i_rGate ) const;
- const std::vector<Type_id> *
- TemplateParameters() const;
- const Type & FirstEnclosedNonSequenceType( /// @return *this, if this is not a ->Sequence.
- const Gate & i_rGate ) const;
-
- private:
- virtual void inq_Get_Text(
- StringVector & o_module,
- String & o_name,
- Ce_id & o_nRelatedCe,
- int & o_nSequemceCount,
- const Gate & i_rGate ) const = 0;
- virtual const std::vector<Type_id> *
- inq_TemplateParameters() const;
- virtual const Type &
- inq_FirstEnclosedNonSequenceType(
- const Gate & i_rGate ) const;
-};
-
-
-
-
-// IMPLEMENTATION
-inline void
-Type::Get_Text( StringVector & o_module,
- String & o_name,
- Ce_id & o_nRelatedCe,
- int & o_nSequenceCount,
- const Gate & i_rGate ) const
-{
- inq_Get_Text(o_module,o_name,o_nRelatedCe,o_nSequenceCount,i_rGate);
-}
-
-inline const std::vector<Type_id> *
-Type::TemplateParameters() const
-{
- return inq_TemplateParameters();
-}
-
-inline const Type &
-Type::FirstEnclosedNonSequenceType(const Gate & i_rGate) const
-{
- return inq_FirstEnclosedNonSequenceType(i_rGate);
-}
-
-
-
-
-} // namespace idl
-} // namespace ary
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/inc/ary/idl/i_typedef.hxx b/autodoc/inc/ary/idl/i_typedef.hxx
deleted file mode 100644
index df1dd46a53f2..000000000000
--- a/autodoc/inc/ary/idl/i_typedef.hxx
+++ /dev/null
@@ -1,84 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_IDL_I_TYPEDEF_HXX
-#define ARY_IDL_I_TYPEDEF_HXX
-
-// BASE CLASSES
-#include <ary/idl/i_ce.hxx>
-
-
-
-
-namespace ary
-{
-namespace idl
-{
-namespace ifc_typedef
-{
- struct attr;
-}
-
-
-/** Represents an IDL typedef.
-*/
-class Typedef : public CodeEntity
-{
- public:
- enum E_ClassId { class_id = 2007 };
-
- // LIFECYCLE
- Typedef(
- const String & i_sName,
- Ce_id i_nOwner,
- Type_id i_nDefiningType );
- ~Typedef();
-
- Type_id DefiningType() const { return nDefiningType; }
-
- private:
- // Interface csv::ConstProcessorClient:
- virtual void do_Accept(
- csv::ProcessorIfc & io_processor ) const;
- // Interface ary::Object:
- virtual ClassId get_AryClass() const;
-
- // Interface CodeEntity
- virtual const String & inq_LocalName() const;
- virtual Ce_id inq_NameRoom() const;
- virtual Ce_id inq_Owner() const;
- virtual E_SightLevel inq_SightLevel() const;
-
- friend struct ifc_typedef::attr;
-
- // DATA
- String sName;
- Ce_id nOwner;
-
- Type_id nDefiningType;
-};
-
-
-
-
-} // namespace idl
-} // namespace ary
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/inc/ary/idl/i_types4idl.hxx b/autodoc/inc/ary/idl/i_types4idl.hxx
deleted file mode 100644
index 9f5759ac76a2..000000000000
--- a/autodoc/inc/ary/idl/i_types4idl.hxx
+++ /dev/null
@@ -1,132 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_IDL_I_TYPES4IDL_HXX
-#define ARY_IDL_I_TYPES4IDL_HXX
-
-// USED SERVICES
-#include <ary/types.hxx>
-
-
-
-
-namespace ary
-{
-namespace idl
-{
- class CodeEntity;
- class Type;
-
-
-typedef TypedId<CodeEntity> Ce_id;
-typedef TypedId<Type> Type_id;
-
-
-/** This is used when an ->ary::idl::ExplicitType
- represents a templated struct and is sorted into the
- dictionary of an ->ary::idl::XNameRoom.
- Then local type name and template type id are concatenated
- to one string with this char as delimiter.
-*/
-const char C_cTemplateDelimiter = '<';
-
-typedef std::vector<Ce_id> Ce_idList;
-
-
-enum E_ParameterDirection
-{
- param_in,
- param_out,
- param_inout
-};
-
-
-enum E_SightLevel
-{
- sl_Module, // not file bound entities, like modules
- sl_File, // entities on top level within one file, like interface or enum
- sl_Member // member entities, like enumvalue or function
-};
-
-inline Ce_id
-Ce_id_Null()
-{
- return Ce_id(0);
-}
-
-inline void
-NullPush_IdList(Ce_idList * o_pList)
-{
- if (o_pList)
- o_pList->push_back( Ce_id_Null() );
-}
-
-inline void
-NullPush_IdList_2(Ce_idList * o_pList)
-{
- if (o_pList)
- {
- o_pList->push_back( Ce_id_Null() );
- o_pList->push_back( Ce_id_Null() );
- }
-}
-
-namespace alphabetical_index
-{
- enum E_Letter
- {
- a = int('a'),
- b,
- c,
- d,
- e,
- f,
- g,
- h,
- i,
- j,
- k,
- l,
- m,
- n,
- o,
- p,
- q,
- r,
- s,
- t,
- u,
- v,
- w,
- x,
- y,
- z,
- non_alpha = int('_'),
- MAX
- };
-}
-
-
-
-
-} // namespace idl
-} // namespace ary
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/inc/ary/idl/ik_attribute.hxx b/autodoc/inc/ary/idl/ik_attribute.hxx
deleted file mode 100644
index 64bf2495d651..000000000000
--- a/autodoc/inc/ary/idl/ik_attribute.hxx
+++ /dev/null
@@ -1,79 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_IDL_IK_ATTRIBUTE_HXX
-#define ARY_IDL_IK_ATTRIBUTE_HXX
-// KORR_DEPRECATED_3.0
-
-
-// USED SERVICES
- // BASE CLASSES
-#include <ary/idl/ik_ce.hxx>
- // COMPONENTS
- // PARAMETERS
-
-
-namespace ary
-{
-namespace idl
-{
-
-namespace ifc_attribute
-{
-
-using ifc_ce::DocText;
-using ::ary::idl::ifc_ce::Dyn_TypeIterator;
-
-
-struct attr: public ifc_ce::attr
-{
- static bool HasAnyStereotype(
- const CodeEntity & i_ce );
- static bool IsReadOnly(
- const CodeEntity & i_ce );
- static bool IsBound(
- const CodeEntity & i_ce );
- static Type_id Type(
- const CodeEntity & i_ce );
- static void Get_GetExceptions(
- Dyn_TypeIterator & o_result,
- const CodeEntity & i_ce );
- static void Get_SetExceptions(
- Dyn_TypeIterator & o_result,
- const CodeEntity & i_ce );
-};
-
-struct xref : public ifc_ce::xref
-{
-};
-
-struct doc : public ifc_ce::doc
-{
-};
-
-
-} // namespace ifc_attribute
-
-} // namespace idl
-} // namespace ary
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/inc/ary/idl/ik_ce.hxx b/autodoc/inc/ary/idl/ik_ce.hxx
deleted file mode 100644
index f86994d2132d..000000000000
--- a/autodoc/inc/ary/idl/ik_ce.hxx
+++ /dev/null
@@ -1,135 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_IDL_IK_CE_HXX
-#define ARY_IDL_IK_CE_HXX
-// KORR_DEPRECATED_3.0
-
-
-
-// USED SERVICES
- // BASE CLASSES
- // COMPONENTS
- // PARAMETERS
-#include <ary/idl/i_types4idl.hxx>
-#include <ary/stdconstiter.hxx>
-
-namespace ary
-{
-namespace info
-{
- class Text;
-}
-namespace idl
-{
-
-
-namespace ifc_ce
-{
-
-
-typedef ::ary::Dyn_StdConstIterator<Ce_id> Dyn_CeIterator;
-typedef ::ary::Dyn_StdConstIterator<Type_id> Dyn_TypeIterator;
-typedef ::ary::info::Text DocText;
-
-
-
-struct attr
-{
- static Ce_id CeId(
- const CodeEntity & i_ce );
- static const String &
- LocalName(
- const CodeEntity & i_ce );
- static Ce_id NameRoom(
- const CodeEntity & i_ce );
- static Rid Owner(
- const CodeEntity & i_ce );
- static E_SightLevel SightLevel(
- const CodeEntity & i_ce );
- static bool Search_Member(
- const CodeEntity & ,
- const String & )
- { return true; } // KORR_FUTURE
-};
-
-struct xref
-{
-};
-
-struct doc
-{
- static const DocText &
- ShortInfo( /// @return a short description of the CodeEntity
- const CodeEntity & i_ce );
-
- static const DocText &
- TagAuthor(
- const CodeEntity & i_ce );
- static const DocText &
- TagExample(
- const CodeEntity & i_ce );
- static const DocText &
- TagDescr(
- const CodeEntity & i_ce );
- static const DocText &
- TagGuarantees(
- const CodeEntity & i_ce );
- static const DocText &
- TagKey(
- const CodeEntity & i_ce );
- static const DocText &
- TagMissing(
- const CodeEntity & i_ce );
- static const DocText &
- TagSee(
- const CodeEntity & i_ce );
- static const DocText &
- TagShort(
- const CodeEntity & i_ce );
- static const DocText &
- TagVersion(
- const CodeEntity & i_ce );
-
- bool IsDeprecated(
- const CodeEntity & i_ce );
- bool IsIncomplete(
- const CodeEntity & i_ce );
- bool IsInternal(
- const CodeEntity & i_ce );
- bool IsNodoc(
- const CodeEntity & i_ce );
- bool IsOptional(
- const CodeEntity & i_ce );
- bool IsSuspicious(
- const CodeEntity & i_ce );
-
-};
-
-
-} // namespace ifc_ce
-
-
-} // namspace idl
-} // namspace ary
-
-#endif
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/inc/ary/idl/ik_constant.hxx b/autodoc/inc/ary/idl/ik_constant.hxx
deleted file mode 100644
index 74b86e8687df..000000000000
--- a/autodoc/inc/ary/idl/ik_constant.hxx
+++ /dev/null
@@ -1,69 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_IDL_IK_CONSTANT_HXX
-#define ARY_IDL_IK_CONSTANT_HXX
-
-
-
-// USED SERVICES
- // BASE CLASSES
-#include <ary/idl/ik_ce.hxx>
- // COMPONENTS
- // PARAMETERS
-
-
-namespace ary
-{
-namespace idl
-{
-
-namespace ifc_constant
-{
-
-using ifc_ce::DocText;
-
-
-struct attr: public ifc_ce::attr
-{
- static Type_id Type(
- const CodeEntity & i_ce );
- static const String &
- Value(
- const CodeEntity & i_ce );
-};
-
-struct xref : public ifc_ce::xref
-{
-};
-
-struct doc : public ifc_ce::doc
-{
-};
-
-
-} // namespace ifc_constant
-
-} // namespace idl
-} // namespace ary
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/inc/ary/idl/ik_constgroup.hxx b/autodoc/inc/ary/idl/ik_constgroup.hxx
deleted file mode 100644
index bc68d1588647..000000000000
--- a/autodoc/inc/ary/idl/ik_constgroup.hxx
+++ /dev/null
@@ -1,66 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_IDL_IK_CONSTGROUP_HXX
-#define ARY_IDL_IK_CONSTGROUP_HXX
-
-
-// USED SERVICES
- // BASE CLASSES
-#include <ary/idl/ik_ce.hxx>
- // COMPONENTS
- // PARAMETERS
-
-
-namespace ary
-{
-namespace idl
-{
-
-namespace ifc_constgroup
-{
-
-using ifc_ce::Dyn_CeIterator;
-using ifc_ce::DocText;
-
-
-struct attr: public ifc_ce::attr
-{
- static void Get_Constants(
- Dyn_CeIterator & o_result,
- const CodeEntity & i_ce );
-};
-
-struct xref : public ifc_ce::xref
-{
-};
-
-struct doc : public ifc_ce::doc
-{
-};
-
-} // namespace ifc_constgroup
-
-} // namespace idl
-} // namespace ary
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/inc/ary/idl/ik_enum.hxx b/autodoc/inc/ary/idl/ik_enum.hxx
deleted file mode 100644
index 52c05d0b2a86..000000000000
--- a/autodoc/inc/ary/idl/ik_enum.hxx
+++ /dev/null
@@ -1,78 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_IDL_IK_ENUM_HXX
-#define ARY_IDL_IK_ENUM_HXX
-
-
-// USED SERVICES
- // BASE CLASSES
-#include <ary/idl/ik_ce.hxx>
- // COMPONENTS
- // PARAMETERS
-
-
-namespace ary
-{
-namespace idl
-{
-
-namespace ifc_enum
-{
-
-using ifc_ce::Dyn_CeIterator;
-using ifc_ce::DocText;
-
-
-struct attr: public ifc_ce::attr
-{
- static void Get_Values(
- Dyn_CeIterator & o_result,
- const CodeEntity & i_ce );
-};
-
-struct xref : public ifc_ce::xref
-{
- static void Get_SynonymTypedefs(
- Dyn_CeIterator & o_result,
- const CodeEntity & i_ce );
- static void Get_AsReturns(
- Dyn_CeIterator & o_result,
- const CodeEntity & i_ce );
- static void Get_AsParameters(
- Dyn_CeIterator & o_result,
- const CodeEntity & i_ce );
- static void Get_AsDataTypes(
- Dyn_CeIterator & o_result,
- const CodeEntity & i_ce );
-};
-
-struct doc : public ifc_ce::doc
-{
-};
-
-} // namespace ifc_enum
-
-} // namespace idl
-} // namespace ary
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/inc/ary/idl/ik_enumvalue.hxx b/autodoc/inc/ary/idl/ik_enumvalue.hxx
deleted file mode 100644
index c039b024b61d..000000000000
--- a/autodoc/inc/ary/idl/ik_enumvalue.hxx
+++ /dev/null
@@ -1,67 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_IDL_IK_ENUMVALUE_HXX
-#define ARY_IDL_IK_ENUMVALUE_HXX
-
-
-
-// USED SERVICES
- // BASE CLASSES
-#include <ary/idl/ik_ce.hxx>
- // COMPONENTS
- // PARAMETERS
-
-
-namespace ary
-{
-namespace idl
-{
-
-namespace ifc_enumvalue
-{
-
-using ifc_ce::DocText;
-
-
-struct attr: public ifc_ce::attr
-{
- static const String &
- Value(
- const CodeEntity & i_ce );
-};
-
-struct xref : public ifc_ce::xref
-{
-};
-
-struct doc : public ifc_ce::doc
-{
-};
-
-
-} // namespace ifc_enumvalue
-
-} // namespace idl
-} // namespace ary
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/inc/ary/idl/ik_exception.hxx b/autodoc/inc/ary/idl/ik_exception.hxx
deleted file mode 100644
index fc149dc7d1cc..000000000000
--- a/autodoc/inc/ary/idl/ik_exception.hxx
+++ /dev/null
@@ -1,75 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_IDL_IK_EXCEPTION_HXX
-#define ARY_IDL_IK_EXCEPTION_HXX
-
-
-
-// USED SERVICES
- // BASE CLASSES
-#include <ary/idl/ik_ce.hxx>
- // COMPONENTS
- // PARAMETERS
-
-
-namespace ary
-{
-namespace idl
-{
-
-namespace ifc_exception
-{
-
-using ifc_ce::Dyn_CeIterator;
-using ifc_ce::DocText;
-
-
-struct attr: public ifc_ce::attr
-{
- static Type_id Base(
- const CodeEntity & i_ce );
- static void Get_Elements(
- Dyn_CeIterator & o_result,
- const CodeEntity & i_ce );
-};
-
-struct xref : public ifc_ce::xref
-{
- static void Get_Derivations(
- Dyn_CeIterator & o_result,
- const CodeEntity & i_ce );
- static void Get_RaisingFunctions(
- Dyn_CeIterator & o_result,
- const CodeEntity & i_ce );
-};
-
-struct doc : public ifc_ce::doc
-{
-};
-
-} // namespace ifc_exception
-
-} // namespace idl
-} // namespace ary
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/inc/ary/idl/ik_function.hxx b/autodoc/inc/ary/idl/ik_function.hxx
deleted file mode 100644
index 1b1ec51bea75..000000000000
--- a/autodoc/inc/ary/idl/ik_function.hxx
+++ /dev/null
@@ -1,89 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_IDL_IK_SERVICE_HXX
-#define ARY_IDL_IK_SERVICE_HXX
-
-
-
-// USED SERVICES
- // BASE CLASSES
-#include <ary/idl/i_param.hxx>
-#include <ary/idl/ik_ce.hxx>
- // COMPONENTS
- // PARAMETERS
-
-
-namespace ary
-{
-namespace idl
-{
-
-
-
-namespace ifc_function
-{
-
-using ::ary::idl::ifc_ce::Dyn_CeIterator;
-using ::ary::idl::ifc_ce::Dyn_TypeIterator;
-using ::ary::idl::ifc_ce::DocText;
-
-
-struct attr: public ifc_ce::attr
-{
- static Type_id ReturnType(
- const CodeEntity & i_ce );
- static bool IsOneway(
- const CodeEntity & i_ce );
- static bool HasEllipse(
- const CodeEntity & i_ce );
- static void Get_Parameters(
- Dyn_StdConstIterator<ary::idl::Parameter> &
- o_result,
- const CodeEntity & i_ce );
- static void Get_Exceptions(
- Dyn_TypeIterator & o_result,
- const CodeEntity & i_ce );
-};
-
-struct xref : public ifc_ce::xref
-{
-};
-
-struct doc : public ifc_ce::doc
-{
-// aStateMachine.AddToken( "@param", nTok_at_param, A_nAtTagDefStatus, finAtTag );
-// aStateMachine.AddToken( "@throws", nTok_at_throws, A_nAtTagDefStatus, finAtTag );
-// aStateMachine.AddToken( "@exception",
-// aStateMachine.AddToken( "@return", nTok_at_return, A_nAtTagDefStatus, finAtTag );
-// aStateMachine.AddToken( "@returns", nTok_at_return, A_nAtTagDefStatus, finAtTag );
-};
-
-
-} // namespace ifc_function
-
-
-
-} // namespace idl
-} // namespace ary
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/inc/ary/idl/ik_interface.hxx b/autodoc/inc/ary/idl/ik_interface.hxx
deleted file mode 100644
index d3eec82d795f..000000000000
--- a/autodoc/inc/ary/idl/ik_interface.hxx
+++ /dev/null
@@ -1,94 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_IDL_IK_INTERFACE_HXX
-#define ARY_IDL_IK_INTERFACE_HXX
-
-
-// USED SERVICES
- // BASE CLASSES
-#include <ary/idl/ik_ce.hxx>
- // COMPONENTS
- // PARAMETERS
-
-
-namespace ary
-{
-namespace idl
-{
-class CommentedRelation;
-
-namespace ifc_interface
-{
-
-using ifc_ce::Dyn_CeIterator;
-using ifc_ce::DocText;
-
-
-struct attr: public ifc_ce::attr
-{
- static void Get_Bases(
- Dyn_StdConstIterator<CommentedRelation> &
- o_result,
- const CodeEntity & i_ce );
- static void Get_Functions(
- Dyn_CeIterator & o_result,
- const CodeEntity & i_ce );
- static void Get_Attributes(
- Dyn_CeIterator & o_result,
- const CodeEntity & i_ce );
-};
-
-struct xref : public ifc_ce::xref
-{
- static void Get_Derivations(
- Dyn_CeIterator & o_result,
- const CodeEntity & i_ce );
- static void Get_SynonymTypedefs( /// like: typedef i_ce.LocalName() newName;
- Dyn_CeIterator & o_result,
- const CodeEntity & i_ce );
- static void Get_ExportingServices(
- Dyn_CeIterator & o_result,
- const CodeEntity & i_ce );
- static void Get_ExportingSingletons(
- Dyn_CeIterator & o_result,
- const CodeEntity & i_ce );
- static void Get_AsReturns(
- Dyn_CeIterator & o_result,
- const CodeEntity & i_ce );
- static void Get_AsParameters(
- Dyn_CeIterator & o_result,
- const CodeEntity & i_ce );
- static void Get_AsDataTypes(
- Dyn_CeIterator & o_result,
- const CodeEntity & i_ce );
-};
-
-struct doc : public ifc_ce::doc
-{
-};
-
-} // namespace ifc_interface
-
-} // namespace idl
-} // namespace ary
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/inc/ary/idl/ik_module.hxx b/autodoc/inc/ary/idl/ik_module.hxx
deleted file mode 100644
index 162831bfd008..000000000000
--- a/autodoc/inc/ary/idl/ik_module.hxx
+++ /dev/null
@@ -1,108 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_IDL_IK_MODULE_HXX
-#define ARY_IDL_IK_MODULE_HXX
-
-
-
-// USED SERVICES
- // BASE CLASSES
-#include <ary/idl/ik_ce.hxx>
- // COMPONENTS
- // PARAMETERS
-
-
-namespace ary
-{
-namespace idl
-{
-
-class CePilot;
-
-namespace ifc_module
-{
-
-using ifc_ce::Dyn_CeIterator;
-using ifc_ce::DocText;
-
-
-struct attr : public ifc_ce::attr
-{
- // KORR_FUTURE
- // This has to be changed that way, that the differencing takes place
- // within hfi_module.cxx and not here.
- // So the class CePilot is not needed here, etc.
- // Too much scope pollution.
- static void Get_AllChildrenSeparated(
- std::vector< const CodeEntity* > & o_nestedModules,
- std::vector< const CodeEntity* > & o_services,
- std::vector< const CodeEntity* > & o_interfaces,
- std::vector< const CodeEntity* > & o_structs,
- std::vector< const CodeEntity* > & o_exceptions,
- std::vector< const CodeEntity* > & o_enums,
- std::vector< const CodeEntity* > & o_typedefs,
- std::vector< const CodeEntity* > & o_constantGroups,
- std::vector< const CodeEntity* > & o_singletons,
- const CePilot & i_pilot,
- const CodeEntity & i_ce );
-
- static void Get_SubModules(
- Dyn_CeIterator & o_result,
- const CodeEntity & i_ce );
- static void Get_Services(
- Dyn_CeIterator & o_result,
- const CodeEntity & i_ce );
- static void Get_Interfaces(
- Dyn_CeIterator & o_result,
- const CodeEntity & i_ce );
- static void Get_Structs(
- Dyn_CeIterator & o_result,
- const CodeEntity & i_ce );
- static void Get_Exceptions(
- Dyn_CeIterator & o_result,
- const CodeEntity & i_ce );
- static void Get_Enums(
- Dyn_CeIterator & o_result,
- const CodeEntity & i_ce );
- static void Get_Typedefs(
- Dyn_CeIterator & o_result,
- const CodeEntity & i_ce );
- static void Get_ConstantsGroups(
- Dyn_CeIterator & o_result,
- const CodeEntity & i_ce );
-};
-
-struct xref : public ifc_ce::xref
-{
-};
-
-struct doc : public ifc_ce::doc
-{
-};
-
-} // namespace ifc_module
-
-} // namespace idl
-} // namespace ary
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/inc/ary/idl/ik_property.hxx b/autodoc/inc/ary/idl/ik_property.hxx
deleted file mode 100644
index 66bd609ae410..000000000000
--- a/autodoc/inc/ary/idl/ik_property.hxx
+++ /dev/null
@@ -1,83 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_IDL_IK_PROPERTY_HXX
-#define ARY_IDL_IK_PROPERTY_HXX
-
-
-// USED SERVICES
- // BASE CLASSES
-#include <ary/idl/ik_ce.hxx>
- // COMPONENTS
- // PARAMETERS
-
-
-namespace ary
-{
-namespace idl
-{
-
-namespace ifc_property
-{
-
-using ifc_ce::DocText;
-
-
-struct attr: public ifc_ce::attr
-{
- static bool HasAnyStereotype(
- const CodeEntity & i_ce );
- static bool IsReadOnly(
- const CodeEntity & i_ce );
- static bool IsBound(
- const CodeEntity & i_ce );
- static bool IsConstrained(
- const CodeEntity & i_ce );
- static bool IsMayBeAmbiguous(
- const CodeEntity & i_ce );
- static bool IsMayBeDefault(
- const CodeEntity & i_ce );
- static bool IsMayBeVoid(
- const CodeEntity & i_ce );
- static bool IsRemovable(
- const CodeEntity & i_ce );
- static bool IsTransient(
- const CodeEntity & i_ce );
- static Type_id Type(
- const CodeEntity & i_ce );
-};
-
-struct xref : public ifc_ce::xref
-{
-};
-
-struct doc : public ifc_ce::doc
-{
-};
-
-
-} // namespace ifc_property
-
-} // namespace idl
-} // namespace ary
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/inc/ary/idl/ik_service.hxx b/autodoc/inc/ary/idl/ik_service.hxx
deleted file mode 100644
index 9e96f2e4a991..000000000000
--- a/autodoc/inc/ary/idl/ik_service.hxx
+++ /dev/null
@@ -1,82 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_IDL_IK_SERVICE_HXX
-#define ARY_IDL_IK_SERVICE_HXX
-
-
-
-// USED SERVICES
- // BASE CLASSES
-#include <ary/idl/ik_ce.hxx>
- // COMPONENTS
- // PARAMETERS
-
-
-namespace ary
-{
-namespace idl
-{
-
-namespace ifc_service
-{
-
-using ifc_ce::Dyn_CeIterator;
-using ifc_ce::DocText;
-
-
-struct attr: public ifc_ce::attr
-{
- static void Get_IncludedServices(
- Dyn_StdConstIterator<CommentedRelation> &
- o_result,
- const CodeEntity & i_ce );
- static void Get_ExportedInterfaces(
- Dyn_StdConstIterator<CommentedRelation> &
- o_result,
- const CodeEntity & i_ce );
- static void Get_Properties(
- Dyn_CeIterator & o_result,
- const CodeEntity & i_ce );
-};
-
-struct xref : public ifc_ce::xref
-{
- static void Get_IncludingServices(
- Dyn_CeIterator & o_result,
- const CodeEntity & i_ce );
- static void Get_InstantiatingSingletons(
- Dyn_CeIterator & o_result,
- const CodeEntity & i_ce );
-};
-
-struct doc : public ifc_ce::doc
-{
-};
-
-
-} // namespace ifc_service
-
-} // namespace idl
-} // namespace ary
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/inc/ary/idl/ik_singleton.hxx b/autodoc/inc/ary/idl/ik_singleton.hxx
deleted file mode 100644
index b8698855d4de..000000000000
--- a/autodoc/inc/ary/idl/ik_singleton.hxx
+++ /dev/null
@@ -1,67 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_IDL_IK_SINGLETON_HXX
-#define ARY_IDL_IK_SINGLETON_HXX
-
-
-
-// USED SERVICES
- // BASE CLASSES
-#include <ary/idl/ik_ce.hxx>
- // COMPONENTS
- // PARAMETERS
-
-
-namespace ary
-{
-namespace idl
-{
-
-namespace ifc_singleton
-{
-
-using ifc_ce::Dyn_CeIterator;
-using ifc_ce::DocText;
-
-
-struct attr: public ifc_ce::attr
-{
- static Type_id AssociatedService(
- const CodeEntity & i_ce );
-};
-
-struct xref : public ifc_ce::xref
-{
-};
-
-struct doc : public ifc_ce::doc
-{
-};
-
-
-} // namespace ifc_singleton
-
-} // namespace idl
-} // namespace ary
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/inc/ary/idl/ik_siservice.hxx b/autodoc/inc/ary/idl/ik_siservice.hxx
deleted file mode 100644
index 7ca3f27c86b6..000000000000
--- a/autodoc/inc/ary/idl/ik_siservice.hxx
+++ /dev/null
@@ -1,69 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_IDL_IK_SISERVICE_HXX
-#define ARY_IDL_IK_SISERVICE_HXX
-
-
-
-// USED SERVICES
- // BASE CLASSES
-#include <ary/idl/ik_ce.hxx>
- // COMPONENTS
- // PARAMETERS
-
-
-namespace ary
-{
-namespace idl
-{
-
-namespace ifc_sglifcservice
-{
-
-using ifc_ce::Dyn_CeIterator;
-
-
-struct attr: public ifc_ce::attr
-{
- static Type_id BaseInterface(
- const CodeEntity & i_ce );
- static void Get_Constructors(
- Dyn_CeIterator & o_result,
- const CodeEntity & i_ce );
-};
-
-struct xref : public ifc_ce::xref
-{
-};
-
-struct doc : public ifc_ce::doc
-{
-};
-
-
-} // namespace ifc_sglifcservice
-
-} // namespace idl
-} // namespace ary
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/inc/ary/idl/ik_sisingleton.hxx b/autodoc/inc/ary/idl/ik_sisingleton.hxx
deleted file mode 100644
index 3a4809dc9621..000000000000
--- a/autodoc/inc/ary/idl/ik_sisingleton.hxx
+++ /dev/null
@@ -1,67 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_IDL_IK_SISINGLETON_HXX
-#define ARY_IDL_IK_SISINGLETON_HXX
-
-
-
-// USED SERVICES
- // BASE CLASSES
-#include <ary/idl/ik_ce.hxx>
- // COMPONENTS
- // PARAMETERS
-
-
-namespace ary
-{
-namespace idl
-{
-
-namespace ifc_sglifcsingleton
-{
-
-using ifc_ce::Dyn_CeIterator;
-using ifc_ce::DocText;
-
-
-struct attr: public ifc_ce::attr
-{
- static Type_id BaseInterface(
- const CodeEntity & i_ce );
-};
-
-struct xref : public ifc_ce::xref
-{
-};
-
-struct doc : public ifc_ce::doc
-{
-};
-
-
-} // namespace ifc_sglifcsingleton
-
-} // namespace idl
-} // namespace ary
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/inc/ary/idl/ik_struct.hxx b/autodoc/inc/ary/idl/ik_struct.hxx
deleted file mode 100644
index 5a8a9eff7904..000000000000
--- a/autodoc/inc/ary/idl/ik_struct.hxx
+++ /dev/null
@@ -1,84 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_IDL_IK_STRUCT_HXX
-#define ARY_IDL_IK_STRUCT_HXX
-
-
-
-// USED SERVICES
- // BASE CLASSES
-#include <ary/idl/ik_ce.hxx>
- // COMPONENTS
- // PARAMETERS
-
-
-namespace ary
-{
-namespace idl
-{
-
-namespace ifc_struct
-{
-
-using ifc_ce::Dyn_CeIterator;
-using ifc_ce::DocText;
-
-
-struct attr: public ifc_ce::attr
-{
- static Type_id Base(
- const CodeEntity & i_ce );
- static void Get_Elements(
- Dyn_CeIterator & o_result,
- const CodeEntity & i_ce );
-};
-
-struct xref : public ifc_ce::xref
-{
- static void Get_Derivations(
- Dyn_CeIterator & o_result,
- const CodeEntity & i_ce );
- static void Get_SynonymTypedefs(
- Dyn_CeIterator & o_result,
- const CodeEntity & i_ce );
- static void Get_AsReturns(
- Dyn_CeIterator & o_result,
- const CodeEntity & i_ce );
- static void Get_AsParameters(
- Dyn_CeIterator & o_result,
- const CodeEntity & i_ce );
- static void Get_AsDataTypes(
- Dyn_CeIterator & o_result,
- const CodeEntity & i_ce );
-};
-
-struct doc : public ifc_ce::doc
-{
-};
-
-} // namespace ifc_struct
-
-} // namespace idl
-} // namespace ary
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/inc/ary/idl/ik_structelem.hxx b/autodoc/inc/ary/idl/ik_structelem.hxx
deleted file mode 100644
index 8db683f51fc2..000000000000
--- a/autodoc/inc/ary/idl/ik_structelem.hxx
+++ /dev/null
@@ -1,66 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_IDL_IK_STRUCTELEM_HXX
-#define ARY_IDL_IK_STRUCTELEM_HXX
-
-
-
-// USED SERVICES
- // BASE CLASSES
-#include <ary/idl/ik_ce.hxx>
- // COMPONENTS
- // PARAMETERS
-
-
-namespace ary
-{
-namespace idl
-{
-
-namespace ifc_structelement
-{
-
-using ifc_ce::DocText;
-
-
-struct attr: public ifc_ce::attr
-{
- static Type_id Type(
- const CodeEntity & i_ce );
-};
-
-struct xref : public ifc_ce::xref
-{
-};
-
-struct doc : public ifc_ce::doc
-{
-};
-
-
-} // namespace ifc_structelement
-
-} // namespace idl
-} // namespace ary
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/inc/ary/idl/ik_typedef.hxx b/autodoc/inc/ary/idl/ik_typedef.hxx
deleted file mode 100644
index 549b45ab848c..000000000000
--- a/autodoc/inc/ary/idl/ik_typedef.hxx
+++ /dev/null
@@ -1,77 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_IDL_IK_TYPEDEF_HXX
-#define ARY_IDL_IK_TYPEDEF_HXX
-
-
-
-// USED SERVICES
- // BASE CLASSES
-#include <ary/idl/ik_ce.hxx>
- // COMPONENTS
- // PARAMETERS
-
-namespace ary
-{
-namespace idl
-{
-
-namespace ifc_typedef
-{
-
-using ifc_ce::Dyn_CeIterator;
-using ifc_ce::DocText;
-
-
-struct attr: public ifc_ce::attr
-{
- static Type_id DefiningType(
- const CodeEntity & i_ce );
-};
-
-struct xref : public ifc_ce::xref
-{
- static void Get_SynonymTypedefs(
- Dyn_CeIterator & o_result,
- const CodeEntity & i_ce );
- static void Get_AsReturns(
- Dyn_CeIterator & o_result,
- const CodeEntity & i_ce );
- static void Get_AsParameters(
- Dyn_CeIterator & o_result,
- const CodeEntity & i_ce );
- static void Get_AsDataTypes(
- Dyn_CeIterator & o_result,
- const CodeEntity & i_ce );
-};
-
-struct doc : public ifc_ce::doc
-{
-};
-
-} // namespace ifc_typedef
-
-} // namespace idl
-} // namespace ary
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/inc/ary/idl/ip_ce.hxx b/autodoc/inc/ary/idl/ip_ce.hxx
deleted file mode 100644
index 144ee5921c9c..000000000000
--- a/autodoc/inc/ary/idl/ip_ce.hxx
+++ /dev/null
@@ -1,203 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_IDL_IP_CE_HXX
-#define ARY_IDL_IP_CE_HXX
-
-// USED SERVICES
-#include <ary/idl/i_types4idl.hxx>
-#include <ary/idl/i_property.hxx>
-
-
-
-
-namespace ary
-{
-namespace idl
-{
- class Module;
-
- class ConstantsGroup;
- class Enum;
- class Exception;
- class Interface;
- class Service;
- class SglIfcService;
- class Singleton;
- class SglIfcSingleton;
- class Struct;
- class Typedef;
-
- class Attribute;
- class Constant;
- class EnumValue;
- class Function;
- class Property;
- class StructElement;
-
- class NameLookup;
-
-
-/** Provides the access logic for all code entities.
-*/
-class CePilot
-{
- public:
- // LIFECYCLE
- virtual ~CePilot() {}
-
- // OPERATIONS
- virtual Module & CheckIn_Module(
- Ce_id i_nParentId,
- const String & i_sName ) = 0;
- virtual Service & Store_Service(
- Ce_id i_nOwner,
- const String & i_sName ) = 0;
- virtual SglIfcService &
- Store_SglIfcService(
- Ce_id i_nOwner,
- const String & i_sName,
- Type_id i_nBaseInterface ) = 0;
- virtual Interface & Store_Interface(
- Ce_id i_nOwner,
- const String & i_sName,
- Type_id i_nBase ) = 0;
- virtual Struct & Store_Struct(
- Ce_id i_nOwner,
- const String & i_sName,
- Type_id i_nBase,
- const String & i_sTemplateParam = String::Null_() ) = 0;
- virtual Exception & Store_Exception(
- Ce_id i_nOwner,
- const String & i_sName,
- Type_id i_nBase ) = 0;
- virtual Enum & Store_Enum(
- Ce_id i_nOwner,
- const String & i_sName ) = 0;
- virtual Typedef & Store_Typedef(
- Ce_id i_nOwner,
- const String & i_sName,
- Type_id i_nDefiningType ) = 0;
- virtual ConstantsGroup &
- Store_ConstantsGroup(
- Ce_id i_nOwner,
- const String & i_sName ) = 0;
- virtual Singleton & Store_Singleton(
- Ce_id i_nOwner,
- const String & i_sName ) = 0;
- virtual SglIfcSingleton &
- Store_SglIfcSingleton(
- Ce_id i_nOwner,
- const String & i_sName,
- Type_id i_nBaseInterface ) = 0;
-
- virtual Constant & Store_Constant(
- Ce_id i_nOwner,
- const String & i_sName,
- Type_id i_nType,
- const String & i_sValue ) = 0;
- virtual Property & Store_Property(
- Ce_id i_nOwner,
- const String & i_sName,
- Type_id i_nType,
- Property::Stereotypes
- i_stereotypes ) = 0;
- virtual Function & Store_Function(
- Ce_id i_nOwner,
- const String & i_sName,
- Type_id i_nReturnType,
- bool i_bOneWay ) = 0;
- virtual Function & Store_ServiceConstructor(
- Ce_id i_nOwner,
- const String & i_sName ) = 0;
- virtual StructElement &
- Store_StructMember(
- Ce_id i_nOwner,
- const String & i_sName,
- Type_id i_nType ) = 0;
- virtual StructElement &
- Store_ExceptionMember(
- Ce_id i_nOwner,
- const String & i_sName,
- Type_id i_nType ) = 0;
- virtual EnumValue & Store_EnumValue(
- Ce_id i_nOwner,
- const String & i_sName,
- const String & i_sValue ) = 0;
- virtual Attribute & Store_Attribute(
- Ce_id i_nOwner,
- const String & i_sName,
- Type_id i_nType,
- bool i_bReadOnly,
- bool i_bBound ) = 0;
- // INQUIRY
- virtual const Module &
- GlobalNamespace() const = 0;
- virtual const CodeEntity &
- Find_Ce(
- Ce_id i_nId ) const = 0;
-
- virtual const Module &
- Find_Module(
- Ce_id i_nId ) const = 0;
- virtual const Module *
- Search_Module(
- Ce_id i_nId ) const = 0;
- virtual const Function &
- Find_Function(
- Ce_id i_nId ) const = 0;
- virtual const Property &
- Find_Property(
- Ce_id i_nId ) const = 0;
- virtual const EnumValue &
- Find_EnumValue(
- Ce_id i_nId ) const = 0;
- virtual const Constant &
- Find_Constant(
- Ce_id i_nId ) const = 0;
- virtual const StructElement &
- Find_StructElement(
- Ce_id i_nId ) const = 0;
- virtual void Get_Text(
- StringVector & o_module,
- String & o_ce,
- String & o_member,
- const CodeEntity & i_ce ) const = 0;
- virtual const NameLookup &
- NameDictionary() const = 0;
- virtual void Get_AlphabeticalIndex(
- std::vector<Ce_id> &
- o_rResult,
- alphabetical_index::E_Letter
- i_cLetter) const = 0;
- // ACCESS
- virtual Module & GlobalNamespace() = 0;
- virtual CodeEntity &
- Find_Ce(
- Ce_id i_nId ) = 0;
-};
-
-
-
-
-} // namespace idl
-} // namespace ary
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/inc/ary/idl/ip_type.hxx b/autodoc/inc/ary/idl/ip_type.hxx
deleted file mode 100644
index 84fea43368e3..000000000000
--- a/autodoc/inc/ary/idl/ip_type.hxx
+++ /dev/null
@@ -1,77 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_IDL_IP_TYPE_HXX
-#define ARY_IDL_IP_TYPE_HXX
-
-// USED SERVICES
-#include <ary/idl/i_types4idl.hxx>
-
-
-
-
-namespace ary
-{
- class QualifiedName;
-
-namespace idl
-{
- class Type;
- class ExplicitNameRoom;
-
-
-/** Access point to all {->Type}s in IDL.
-*/
-class TypePilot
-{
- public:
- // LIFECYCLE
- virtual ~TypePilot() {}
-
- // OPERATIONS
- virtual const Type &
- CheckIn_Type(
- QualifiedName & i_rFullName,
- uintt i_nSequenceCount,
- Ce_id i_nModuleOfOccurrence,
- const std::vector<Type_id> *
- i_templateParameters ) = 0;
- // INQUIRY
- virtual const Type &
- Find_Type(
- Type_id i_nType ) const = 0;
- virtual String Search_LocalNameOf(
- Type_id i_nType ) const = 0;
- virtual Ce_id Search_CeRelatedTo(
- Type_id i_nType ) const = 0;
- virtual const ExplicitNameRoom &
- Find_XNameRoom(
- Type_id i_nType ) const = 0;
- virtual bool IsBuiltInOrRelated(
- const Type & i_rType ) const = 0;
-};
-
-
-
-
-} // namespace idl
-} // namespace ary
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/inc/ary/info/all_dts.hxx b/autodoc/inc/ary/info/all_dts.hxx
deleted file mode 100644
index 9fcee0abd2bf..000000000000
--- a/autodoc/inc/ary/info/all_dts.hxx
+++ /dev/null
@@ -1,153 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_INFO_ALL_DTS_HXX
-#define ARY_INFO_ALL_DTS_HXX
-
-
-
-// USED SERVICES
- // BASE CLASSES
- // COMPONENTS
- // PARAMETERS
-
-
-namespace ary
-{
-namespace info
-{
-
-class DocuDisplay;
-
-class DocuToken
-{
- public:
- virtual ~DocuToken() {}
-
- void StoreAt(
- DocuDisplay & o_rDisplay ) const;
- bool IsWhite() const;
-
- private:
- virtual void do_StoreAt(
- DocuDisplay & o_rDisplay ) const = 0;
- virtual bool inq_IsWhite() const = 0;
-};
-
-class DT_Text : public DocuToken
-{
- public:
- DT_Text(
- const char * i_sText )
- : sText( i_sText ) {}
-
- const String & Text() const { return sText; }
-
- private:
- virtual void do_StoreAt(
- DocuDisplay & o_rDisplay ) const;
- virtual bool inq_IsWhite() const;
-
- String sText;
-};
-
-class DT_MaybeLink : public DocuToken
-{
- public:
- DT_MaybeLink(
- const char * i_sText,
- bool i_bIsGlobal,
- bool i_bIsFunction )
- : sText( i_sText ),
- bIsGlobal(i_bIsGlobal),
- bIsFunction(i_bIsFunction) { }
-
- const String & Text() const { return sText; }
- bool IsAbsolute() const { return bIsGlobal; }
- bool IsFunction() const { return bIsFunction; }
-
- private:
- virtual void do_StoreAt(
- DocuDisplay & o_rDisplay ) const;
- virtual bool inq_IsWhite() const;
-
- String sText;
- bool bIsGlobal;
- bool bIsFunction;
-};
-
-class DT_Whitespace : public DocuToken
-{
- public:
- DT_Whitespace(
- UINT8 i_nLength )
- : nLength( i_nLength ) {}
- UINT8 Length() const { return nLength; }
-
- private:
- virtual void do_StoreAt(
- DocuDisplay & o_rDisplay ) const;
- virtual bool inq_IsWhite() const;
-
- UINT8 nLength;
-};
-
-
-class DT_Eol : public DocuToken
-{
- virtual void do_StoreAt(
- DocuDisplay & o_rDisplay ) const;
- virtual bool inq_IsWhite() const;
-};
-
-class DT_Xml : public DocuToken
-{
- public:
- DT_Xml(
- const char * i_sText )
- : sText( i_sText ) {}
-
- const String & Text() const { return sText; }
-
- private:
- virtual void do_StoreAt(
- DocuDisplay & o_rDisplay ) const;
- virtual bool inq_IsWhite() const;
-
- String sText;
-};
-
-
-// IMPLEMENTATION
-
-inline void
-DocuToken::StoreAt( DocuDisplay & o_rDisplay ) const
- { do_StoreAt(o_rDisplay); }
-inline bool
-DocuToken::IsWhite() const
- { return inq_IsWhite(); }
-
-
-
-}
-}
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/inc/ary/info/all_tags.hxx b/autodoc/inc/ary/info/all_tags.hxx
deleted file mode 100644
index 5493979af1c8..000000000000
--- a/autodoc/inc/ary/info/all_tags.hxx
+++ /dev/null
@@ -1,191 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_INFO_ALL_TAGS_HXX
-#define ARY_INFO_ALL_TAGS_HXX
-
-
-
-// USED SERVICES
- // BASE CLASSES
-#include <ary/info/ci_attag.hxx>
- // COMPONENTS
-#include <ary/info/inftypes.hxx>
-#include <ary/info/ci_text.hxx>
-#include <ary/qualiname.hxx>
- // PARAMETERS
-
-
-
-namespace ary
-{
-namespace info
-{
-
-
-class StdTag : public AtTag
-{
- public:
- StdTag(
- E_AtTagId i_eId );
-
- virtual bool Add_SpecialMeaningToken(
- const char * i_sText,
- intt i_nNr );
- void ChangeId2(
- E_AtTagId i_eId )
- { eId = i_eId; }
-
- virtual UINT8 NrOfSpecialMeaningTokens() const;
- virtual AtTag * GetFollower();
-
- E_AtTagId Std_Id() const { return eId; }
-
- private:
- virtual void do_StoreAt(
- DocuDisplay & o_rDisplay ) const;
- virtual DocuText * Text();
-
- E_AtTagId eId;
- DocuText aText;
- StdTag * pNext;
-};
-
-class BaseTag : public AtTag
-{
- public:
- BaseTag();
-
- virtual bool Add_SpecialMeaningToken(
- const char * i_sText,
- intt i_nNr );
- virtual const char *
- Title() const;
- virtual UINT8 NrOfSpecialMeaningTokens() const;
- virtual AtTag * GetFollower();
-
- private:
- virtual DocuText * Text();
-
- QualifiedName sBase;
- DocuText aText;
- AtTag * pNext;
-};
-
-class ExceptionTag : public AtTag
-{
- public:
- ExceptionTag();
-
- virtual bool Add_SpecialMeaningToken(
- const char * i_sText,
- intt i_nNr );
- virtual const char *
- Title() const;
- virtual UINT8 NrOfSpecialMeaningTokens() const;
- virtual AtTag * GetFollower();
-
- private:
- virtual DocuText * Text();
-
- QualifiedName sException;
- DocuText aText;
- AtTag * pNext;
-};
-
-class ImplementsTag : public AtTag
-{
- public:
- ImplementsTag();
-
- virtual bool Add_SpecialMeaningToken(
- const char * i_sText,
- intt i_nNr );
- virtual const char *
- Title() const;
- virtual UINT8 NrOfSpecialMeaningTokens() const;
- virtual AtTag * GetFollower();
-
- private:
- virtual DocuText * Text();
-
- QualifiedName sName;
- AtTag * pNext;
-};
-
-class ParameterTag : public AtTag
-{
- public:
- ParameterTag();
-
- virtual bool Add_SpecialMeaningToken(
- const char * i_sText,
- intt i_nNr );
-
- const String & ParamName() const { return sName; }
- const DocuText & CText() const { return aText; }
- virtual UINT8 NrOfSpecialMeaningTokens() const;
- virtual const ParameterTag *
- GetNext() const { return dynamic_cast< ParameterTag* >(pNext); }
- virtual AtTag * GetFollower();
-
- private:
- virtual void do_StoreAt(
- DocuDisplay & o_rDisplay ) const;
- virtual DocuText * Text();
-
- String sName;
- String sValidRange;
- DocuText aText;
- AtTag * pNext;
-};
-
-class TemplateTag : public AtTag
-{
- public:
- TemplateTag();
-
- virtual bool Add_SpecialMeaningToken(
- const char * i_sText,
- intt i_nNr );
- const DocuText & CText() const { return aText; }
- virtual const char *
- Title() const;
- const String & TplParamName() const { return sName; }
- virtual UINT8 NrOfSpecialMeaningTokens() const;
- virtual const TemplateTag *
- GetNext() const { return dynamic_cast< TemplateTag* >(pNext); }
- virtual AtTag * GetFollower();
-
- private:
- virtual void do_StoreAt(
- DocuDisplay & o_rDisplay ) const;
- virtual DocuText * Text();
-
- String sName;
- DocuText aText;
- AtTag * pNext;
-};
-
-}
-}
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/inc/ary/info/ci_attag.hxx b/autodoc/inc/ary/info/ci_attag.hxx
deleted file mode 100644
index 20286e38c881..000000000000
--- a/autodoc/inc/ary/info/ci_attag.hxx
+++ /dev/null
@@ -1,92 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_INFO_CI_ATTAG_HXX
-#define ARY_INFO_CI_ATTAG_HXX
-
-
-
-// USED SERVICES
- // BASE CLASSES
- // COMPONENTS
- // PARAMETERS
-
-
-
-namespace ary
-{
-namespace info
-{
-
-class DocuText;
-class DocuDisplay;
-
-class AtTag
-{
- public:
- virtual ~AtTag() {}
-
- virtual bool Add_SpecialMeaningToken( /// @return false, if token was not spüecial.
- const char * i_sText,
- intt i_nNr ) = 0;
- virtual void Add_Token(
- const char * i_sText );
- virtual void Add_PotentialLink(
- const char * i_sText,
- bool i_bIsGlobal,
- bool i_bIsFunction );
- virtual void Add_Whitespace(
- UINT8 i_nLength );
- virtual void Add_Eol();
-
- virtual UINT8 NrOfSpecialMeaningTokens() const = 0;
- virtual AtTag * GetFollower() = 0;
-
- void StoreAt(
- DocuDisplay & o_rDisplay ) const;
- const DocuText & CText() const;
-
- private:
- virtual void do_StoreAt(
- DocuDisplay & o_rDisplay ) const; // later becoming abstract
-
- virtual DocuText * Text() = 0;
-};
-
-
-
-// IMPLEMENTATION
-
-inline void
-AtTag::StoreAt( DocuDisplay & o_rDisplay ) const
- { do_StoreAt(o_rDisplay); }
-inline const DocuText &
-AtTag::CText() const
- { DocuText * ret = const_cast< AtTag* >(this)->Text();
- csv_assert( ret != 0 );
- return *ret;
- }
-
-
-}
-}
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/inc/ary/info/ci_text.hxx b/autodoc/inc/ary/info/ci_text.hxx
deleted file mode 100644
index b84d9a269c43..000000000000
--- a/autodoc/inc/ary/info/ci_text.hxx
+++ /dev/null
@@ -1,75 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_INFO_CI_TEXT_HXX
-#define ARY_INFO_CI_TEXT_HXX
-
-
-
-// USED SERVICES
- // BASE CLASSES
- // COMPONENTS
- // PARAMETERS
-
-
-namespace ary
-{
-namespace info
-{
-
-class DocuToken;
-
-
-class DocuText
-{
- public:
- typedef std::vector< DocuToken * > TokenList;
-
- DocuText();
- ~DocuText();
-
- void Set_HtmlUse(
- bool i_bUseIt )
- { bUsesHtml = i_bUseIt; }
- void Add_Token(
- DYN DocuToken & let_drToken )
- { aTokens.push_back(&let_drToken); }
- const TokenList & Tokens() const { return aTokens; }
- bool IsNoHtml() const { return NOT bUsesHtml; }
- bool IsEmpty() const { return aTokens.empty(); }
-
- private:
- TokenList aTokens;
- bool bUsesHtml;
-};
-
-
-
-
-
-
-// IMPLEMENTATION
-
-
-}
-}
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/inc/ary/info/infodisp.hxx b/autodoc/inc/ary/info/infodisp.hxx
deleted file mode 100644
index a24ce7b7507d..000000000000
--- a/autodoc/inc/ary/info/infodisp.hxx
+++ /dev/null
@@ -1,95 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_INFO_INFODISP_HXX
-#define ARY_INFO_INFODISP_HXX
-// KORR_DEPRECATED_3.0
-
-// BASE CLASSES
-// USED SERVICES
-
-
-
-
-namespace ary
-{
-namespace info
-{
- class StdTag;
- class BaseTag;
- class ExceptionTag;
- class ImplementsTag;
- class ParameterTag;
- class TemplateTag;
- class DT_Text;
- class DT_MaybeLink;
- class DT_Whitespace;
- class DT_Eol;
- class DT_Xml;
-
-
-
-/** Displaying an ary::doc::OldCppDocu.
-
- @descr
- This class is an interface, but the functions are defaulted,
- to do nothing. so a derived class needn't implement all of them.
-*/
-class DocuDisplay
-{
- public:
- virtual ~DocuDisplay() {}
-
- virtual void Display_StdTag(
- const StdTag & i_rData ) = 0;
- virtual void Display_BaseTag(
- const BaseTag & i_rData ) = 0;
- virtual void Display_ExceptionTag(
- const ExceptionTag &
- i_rData ) = 0;
- virtual void Display_ImplementsTag(
- const ImplementsTag &
- i_rData ) = 0;
- virtual void Display_ParameterTag(
- const ParameterTag &
- i_rData ) = 0;
- virtual void Display_TemplateTag(
- const TemplateTag & i_rData ) = 0;
- virtual void Display_DT_Text(
- const DT_Text & i_rData ) = 0;
- virtual void Display_DT_MaybeLink(
- const DT_MaybeLink& i_rData ) = 0;
- virtual void Display_DT_Whitespace(
- const DT_Whitespace &
- i_rData ) = 0;
- virtual void Display_DT_Eol(
- const DT_Eol & i_rData ) = 0;
- virtual void Display_DT_Xml(
- const ary::info::DT_Xml &
- i_rData ) = 0;
-};
-
-
-
-
-}
-}
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/inc/ary/info/inftypes.hxx b/autodoc/inc/ary/info/inftypes.hxx
deleted file mode 100644
index e16c8bfb2f01..000000000000
--- a/autodoc/inc/ary/info/inftypes.hxx
+++ /dev/null
@@ -1,115 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_INFO_INFTYPES_HXX
-#define ARY_INFO_INFTYPES_HXX
-
-
-// USED SERVICES
- // BASE CLASSES
- // COMPONENTS
- // PARAMETERS
-
-
-namespace ary
-{
-namespace info
-{
-
-
-
-
-typedef uintt GlobalTextId;
-
-
-
-/** Because this enum is used as index list for displayed
- tag headlines, the items must neither be moved nor deleted.
- Only adding to the end is allowed. atid_MAX always has to exist
- and to be the last used value.
- Also assigning numbers to the values is forbidden.
-*/
-enum E_AtTagId
-{
- atid_ATT = 0,
- atid_author,
- atid_change,
- atid_collab,
- atid_contact,
-
- atid_copyright,
- atid_deprecated,
- atid_descr,
- atid_docdate,
- atid_derive,
-
- atid_dyn,
- atid_instance,
- atid_interface,
- atid_invariant,
- atid_life,
-
- atid_multi,
- atid_onerror,
- atid_persist,
- atid_postcond,
- atid_precond,
-
- atid_resp,
- atid_return,
- atid_short,
- atid_todo,
- atid_version,
-
- atid_MAX
-};
-
-/** Because this enum is used as index list for displayed
- tag headlines, the items must neither be moved nor deleted.
- Only adding to the end is allowed. C_eAtTag_NrOfClasses always has to exist
- and to be the last used value.
- Also assigning other numbers to the values, than in this
- existing scheme, is forbidden.
-*/
-enum E_AtTagClass
-{
- atc_std = 0,
-
- atc_base = atid_MAX,
- atc_exception = atid_MAX + 1,
- atc_implements = atid_MAX + 2,
- atc_keyword = atid_MAX + 3,
- atc_parameter = atid_MAX + 4,
-
- atc_see = atid_MAX + 5,
- atc_template = atid_MAX + 6,
- atc_label = atid_MAX + 7,
- atc_since = atid_MAX + 8,
- C_eAtTag_NrOfClasses
-};
-
-
-
-} // namespace info
-} // namespace ary
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/inc/ary/namesort.hxx b/autodoc/inc/ary/namesort.hxx
deleted file mode 100644
index 825e6e0006cf..000000000000
--- a/autodoc/inc/ary/namesort.hxx
+++ /dev/null
@@ -1,69 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_NAMESORT_HXX
-#define ARY_NAMESORT_HXX
-
-
-
-// USED SERVICES
- // BASE CLASSES
- // COMPONENTS
- // PARAMETERS
-
-namespace ary
-{
-
-/** Provides sensible sorting of ASCII names in programming languages.
-
- @descr
- Names are compared case insensitive first. Only after they appear
- equal that way, there is an additional case sensitive comparison.
- The second comparison sorts upper case before lower case.
-
-*/
-struct LesserName
-{
- bool operator()(
- const String & i_s1,
- const String & i_s2 ) const;
- private:
- // DATA
-
- static const csv::CharOrder_Table
- aOrdering1_;
- static const csv::CharOrder_Table
- aOrdering2_;
-};
-
-inline bool
-LesserName::operator()( const String & i_s1,
- const String & i_s2 ) const
-{
- int result = i_s1.compare(aOrdering1_,i_s2);
- if (result == 0)
- result = i_s1.compare(aOrdering2_,i_s2);
- return result < 0;
-}
-
-
-} // namespace ary
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/inc/ary/object.hxx b/autodoc/inc/ary/object.hxx
deleted file mode 100644
index c305ee6317a9..000000000000
--- a/autodoc/inc/ary/object.hxx
+++ /dev/null
@@ -1,64 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_OBJECT_HXX
-#define ARY_OBJECT_HXX
-
-
-
-// USED SERVICES
- // BASE CLASSES
-#include <cosv/tpl/processor.hxx>
- // COMPONENTS
- // PARAMETERS
-#include <ary/types.hxx>
-
-
-namespace ary
-{
-
-
-/** Interface for every class, that is stored within the
- Autodoc Repository.
-*/
-class Object : public csv::ConstProcessorClient
-{
- public:
- virtual ~Object() {}
-
- /// @return Type id of most derived class.
- ClassId AryClass() const;
-
- private:
- virtual ClassId get_AryClass() const = 0;
-};
-
-
-
-inline ClassId
-Object::AryClass() const
-{
- return get_AryClass();
-}
-
-
-} // namespace ary
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/inc/ary/qualiname.hxx b/autodoc/inc/ary/qualiname.hxx
deleted file mode 100644
index 862516151f3b..000000000000
--- a/autodoc/inc/ary/qualiname.hxx
+++ /dev/null
@@ -1,97 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_QUALINAME_HXX
-#define ARY_QUALINAME_HXX
-
-
-
-// USED SERVICES
- // BASE CLASSES
- // COMPONENTS
- // PARAMETERS
-#include <cosv/tpl/tpltools.hxx>
-
-
-namespace ary
-{
-
-class QualifiedName
-{
- public:
- typedef StringVector::const_iterator namespace_iterator;
-
- QualifiedName(
- uintt i_nSize = 0);
-
- /// @see AssignText()
- QualifiedName(
- const char * i_sText,
- const char * i_sSeparator );
- ~QualifiedName();
-
- QualifiedName & operator+=(
- const String & i_sNamespaceName )
- { if (i_sNamespaceName.length() > 0)
- aNamespace.push_back(i_sNamespaceName);
- return *this; }
- /// @precond i_nIndex < NamespaceDepth().
- String & operator[](
- uintt i_nIndex )
- { csv_assert(i_nIndex < aNamespace.size());
- return aNamespace[i_nIndex]; }
- void Init(
- bool i_bAbsolute )
- { Empty(); bIsAbsolute = i_bAbsolute; }
- /** Reads a qualified name from a string.
- If the last two characters are "()", the inquiry IsFunction() will return
- true.
- */
- void AssignText(
- const char * i_sText,
- const char * i_sSeparator );
- void SetLocalName(
- const String & i_sLocalName )
- { sLocalName = i_sLocalName; }
- void Empty() { csv::erase_container(aNamespace); sLocalName.clear(); bIsAbsolute = false; }
-
- const String & LocalName() const { return sLocalName; }
- namespace_iterator first_namespace() const { return aNamespace.begin(); }
- namespace_iterator end_namespace() const { return aNamespace.end(); }
- uintt NamespaceDepth() const { return aNamespace.size(); }
-
- bool IsAbsolute() const { return bIsAbsolute; }
- bool IsQualified() const { return aNamespace.size() > 0; }
- bool IsFunction() const { return bIsFunction; }
-
- private:
- // DATA
- StringVector aNamespace;
- String sLocalName;
- bool bIsAbsolute; /// true := beginning with "::".
- bool bIsFunction; /// true := ending with "()"
-};
-
-
-
-
-} // namespace ary
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/inc/ary/stdconstiter.hxx b/autodoc/inc/ary/stdconstiter.hxx
deleted file mode 100644
index 0f7c00146baf..000000000000
--- a/autodoc/inc/ary/stdconstiter.hxx
+++ /dev/null
@@ -1,92 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_STDCONSTITER_HXX
-#define ARY_STDCONSTITER_HXX
-// KORR_DEPRECATED_3.0
-
-
-// USED SERVICES
- // BASE CLASSES
- // COMPONENTS
- // PARAMETERS
-
-
-namespace ary
-{
-
-template <class ELEM>
-
-class StdConstIterator
-{
- public:
- virtual ~StdConstIterator() {}
-
- void operator++() { do_Advance(); }
- const ELEM & operator*() const { return *inq_CurElement(); }
- operator bool() const { return inq_CurElement() != 0; }
-
- /// Needed as replacement for operator bool() in gcc 2.95.
- bool IsValid() const { return operator bool(); }
- bool IsSorted() const { return inq_IsSorted(); }
-
- protected:
- StdConstIterator() {}
-
- private:
- //Locals
- virtual void do_Advance() = 0;
- virtual const ELEM *
- inq_CurElement() const = 0;
- virtual bool inq_IsSorted() const = 0;
-
- // Forbidden:
- StdConstIterator(const StdConstIterator<ELEM>&);
- StdConstIterator<ELEM> & operator=(const StdConstIterator<ELEM>&);
-};
-
-
-template <class ELEM>
-class Dyn_StdConstIterator
-{
- public:
- typedef StdConstIterator<ELEM> client_type;
-
- Dyn_StdConstIterator(
- DYN client_type * pass_dpIterator = 0 )
- : pClient(pass_dpIterator) {}
- Dyn_StdConstIterator<ELEM> &
- operator=(
- DYN client_type * pass_dpIterator )
- { pClient = pass_dpIterator;
- return *this; }
- client_type & operator*() const { return *pClient.MutablePtr(); }
-
- private:
- Dyn<client_type> pClient;
-};
-
-
-
-
-
-} // namespace ary
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/inc/ary/types.hxx b/autodoc/inc/ary/types.hxx
deleted file mode 100644
index a92088a2a74e..000000000000
--- a/autodoc/inc/ary/types.hxx
+++ /dev/null
@@ -1,124 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_TYPES_HXX
-#define ARY_TYPES_HXX
-
-// USED SERVICES
- // BASE CLASSES
- // OTHER
-
-
-namespace ary
-{
-
-
-typedef uintt Rid;
-typedef uintt ClassId;
-
-
-
-// Deprecated:
-typedef Rid Gid; /// Group Id. Id of a group.
-typedef UINT8 SlotAccessId; /// Access to a Slot
-typedef std::set< Rid, std::less< Rid > > Set_Rid;
-typedef std::vector<Rid> List_Rid;
-
-
-
-
-
-/** This is a global id, providing as well an entity's class as its
- id.
-*/
-class GlobalId
-{
- public:
- GlobalId()
- : nClass(0),
- nId(0) {}
- GlobalId(
- ClassId i_class,
- Rid i_id )
- : nClass(i_class),
- nId(i_id) {}
- ~GlobalId() {}
-
- bool IsValid() const { return nClass != 0
- AND
- nId != 0; }
- ClassId Class() const { return nClass; }
- Rid Id() const { return nId; }
-
- private:
- // DATA
- ClassId nClass;
- Rid nId;
-};
-
-
-typedef std::vector<GlobalId> List_GlobalIds;
-
-
-/** This is a typed repository id. It allows to get
- an object of a specific type.
-*/
-template <class IFC>
-class TypedId
-{
- public:
- typedef TypedId<IFC> self;
-
-
- explicit TypedId(
- Rid i_nId = 0 )
- : nId(i_nId) {}
- TypedId<IFC> & operator=(
- Rid i_nId )
- { nId = i_nId; return *this; }
- bool operator==(
- const TypedId<IFC> &
- i_nId ) const
- { return nId == i_nId.nId; }
- bool operator!=(
- const TypedId<IFC> &
- i_nId ) const
- { return NOT operator==(i_nId); }
- bool operator<(
- const TypedId<IFC> &
- i_nId ) const
- { return nId < i_nId.nId; }
-
- bool IsValid() const { return nId != 0; }
- Rid Value() const { return nId; }
-
- static self Null_() { return self(0); }
-
- private:
- // DATA
- Rid nId;
-};
-
-
-
-
-} // namespace ary
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/inc/ary_i/ci_atag2.hxx b/autodoc/inc/ary_i/ci_atag2.hxx
deleted file mode 100644
index 7aa80bc4a4ea..000000000000
--- a/autodoc/inc/ary_i/ci_atag2.hxx
+++ /dev/null
@@ -1,72 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_CI_ATAG2_HXX
-#define ARY_CI_ATAG2_HXX
-
-
-
-// USED SERVICES
- // BASE CLASSES
- // COMPONENTS
-#include <ary_i/ci_text2.hxx>
- // PARAMETERS
-
-
-
-namespace ary
-{
-namespace inf
-{
-
-
-class DocumentationDisplay;
-
-class AtTag2
-{
- public:
- virtual ~AtTag2() {}
-
- virtual void DisplayAt(
- DocumentationDisplay &
- o_rDisplay ) const = 0;
-
- const char * Title() const { return sTitle; }
- const DocuTex2 & Text() const { return aText; }
- DocuTex2 & Access_Text() { return aText; }
-
- protected:
- AtTag2(
- const char * i_sTitle)
- : sTitle(i_sTitle) {}
- String sTitle;
- DocuTex2 aText;
-};
-
-
-
-// IMPLEMENTATION
-
-} // namespace inf
-} // namespace ary
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/inc/ary_i/ci_text2.hxx b/autodoc/inc/ary_i/ci_text2.hxx
deleted file mode 100644
index 5de39fac9696..000000000000
--- a/autodoc/inc/ary_i/ci_text2.hxx
+++ /dev/null
@@ -1,85 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_CINFO_CI_TEXT2_HXX
-#define ARY_CINFO_CI_TEXT2_HXX
-
-
-
-// USED SERVICES
- // BASE CLASSES
- // COMPONENTS
- // PARAMETERS
-
-
-namespace ary
-{
-namespace inf
-{
-
-
-class DocumentationDisplay;
-
-
-class DocuToken
-{
- public:
- virtual ~DocuToken() {}
- virtual void DisplayAt(
- DocumentationDisplay &
- o_rDisplay ) const = 0;
- virtual bool IsWhiteOnly() const = 0;
-};
-
-
-class DocuTex2
-{
- public:
- typedef std::vector< DocuToken * > TokenList;
-
- DocuTex2();
- virtual ~DocuTex2();
-
- virtual void DisplayAt(
- DocumentationDisplay &
- o_rDisplay ) const;
- void AddToken(
- DYN DocuToken & let_drToken );
-
- const TokenList & Tokens() const { return aTokens; }
- bool IsEmpty() const { return aTokens.empty(); }
- const String & TextOfFirstToken() const;
-
- String & Access_TextOfFirstToken();
-
- private:
- TokenList aTokens;
-};
-
-
-
-// IMPLEMENTATION
-
-} // namespace inf
-} // namespace ary
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/inc/ary_i/d_token.hxx b/autodoc/inc/ary_i/d_token.hxx
deleted file mode 100644
index e04c6bf58217..000000000000
--- a/autodoc/inc/ary_i/d_token.hxx
+++ /dev/null
@@ -1,259 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef CSI_DSAPI_D_TOKEN_HXX
-#define CSI_DSAPI_D_TOKEN_HXX
-
-// BASE CLASSES
-#include <ary_i/ci_text2.hxx>
-#include <ary_i/ci_atag2.hxx>
-
-
-namespace ary
-{
-namespace inf
-{
- class DocumentationDisplay;
-}
-}
-
-
-
-namespace csi
-{
-namespace dsapi
-{
-
-using ary::inf::DocumentationDisplay;
-
-
-class DT_Dsapi : public ary::inf::DocuToken
-{
- public:
- virtual void DisplayAt(
- DocumentationDisplay &
- o_rDisplay ) const = 0;
- virtual bool IsWhiteOnly() const;
-};
-
-
-
-class DT_TextToken : public DT_Dsapi
-{
- public:
- explicit DT_TextToken(
- const char * i_sText )
- : sText(i_sText) {}
- explicit DT_TextToken(
- const String & i_sText )
- : sText(i_sText) {}
- virtual ~DT_TextToken();
-
- virtual void DisplayAt(
- DocumentationDisplay &
- o_rDisplay ) const;
- const char * GetText() const { return sText; }
- const String & GetTextStr() const { return sText; }
-
- String & Access_Text() { return sText; }
-
- virtual bool IsWhiteOnly() const;
-
- private:
- String sText;
-};
-
-class DT_White : public DT_Dsapi
-{
- public:
- DT_White() {}
- virtual ~DT_White();
-
- virtual void DisplayAt(
- DocumentationDisplay &
- o_rDisplay ) const;
- virtual bool IsWhiteOnly() const;
-};
-
-class DT_MupType : public DT_Dsapi
-{
- public:
- explicit DT_MupType() /// Constructor for End-Tag
- : bIsBegin(false) {}
- explicit DT_MupType( /// Constructor for Begin-Tag
- const String & i_sScope )
- : sScope(i_sScope), bIsBegin(true) {}
- virtual ~DT_MupType();
-
- virtual void DisplayAt(
- DocumentationDisplay &
- o_rDisplay ) const;
- const String & Scope() const { return sScope; }
- bool IsBegin() const { return bIsBegin; }
-
- private:
- String sScope;
- bool bIsBegin;
-};
-
-class DT_MupMember : public DT_Dsapi
-{
- public:
- explicit DT_MupMember() /// Constructor for End-Tag
- : bIsBegin(false) {}
- DT_MupMember( /// Constructor for Begin-Tag
- const String & i_sScope )
- : sScope(i_sScope), bIsBegin(true) {}
- virtual ~DT_MupMember();
-
- virtual void DisplayAt(
- DocumentationDisplay &
- o_rDisplay ) const;
- const String & Scope() const { return sScope; }
- bool IsBegin() const { return bIsBegin; }
-
- private:
- String sScope;
- bool bIsBegin;
-};
-
-class DT_MupConst : public DT_Dsapi
-{
- public:
- DT_MupConst(
- const char * i_sConstText )
- : sConstText(i_sConstText) {}
- virtual ~DT_MupConst();
-
- virtual void DisplayAt(
- DocumentationDisplay &
- o_rDisplay ) const;
- const char * GetText() const { return sConstText; }
-
- private:
- String sConstText; /// Without HTML.
-};
-
-
-class DT_Style : public DT_Dsapi
-{
- public:
- DT_Style(
- const char * i_sPlainHtmlTag,
- bool i_bNewLine )
- : sText(i_sPlainHtmlTag), bNewLine(i_bNewLine) {}
- virtual ~DT_Style();
-
- virtual void DisplayAt(
- DocumentationDisplay &
- o_rDisplay ) const;
- const char * GetText() const { return sText; }
- bool IsStartOfNewLine() const
- { return bNewLine; }
- private:
- String sText; /// With HTML.
- bool bNewLine;
-};
-
-class DT_EOL : public DT_Dsapi
-{
- public:
- DT_EOL() {}
- virtual ~DT_EOL();
-
- virtual void DisplayAt(
- DocumentationDisplay &
- o_rDisplay ) const;
- virtual bool IsWhiteOnly() const;
-};
-
-
-class DT_AtTag : public ary::inf::AtTag2
-{
- public:
- void AddToken(
- DYN ary::inf::DocuToken &
- let_drToken )
- { aText.AddToken(let_drToken); }
- void SetName(
- const char * i_sName )
- { sTitle = i_sName; }
-
- protected:
- DT_AtTag(
- const char * i_sTitle )
- : ary::inf::AtTag2(i_sTitle) {}
-};
-
-class DT_StdAtTag : public DT_AtTag
-{
- public:
- explicit DT_StdAtTag(
- const char * i_sTitle )
- : DT_AtTag(i_sTitle) {}
- virtual ~DT_StdAtTag();
-
- virtual void DisplayAt(
- DocumentationDisplay &
- o_rDisplay ) const;
-};
-
-class DT_SeeAlsoAtTag : public DT_AtTag
-{
- public:
- DT_SeeAlsoAtTag() : DT_AtTag("") {}
- virtual ~DT_SeeAlsoAtTag();
-
- virtual void DisplayAt(
- DocumentationDisplay &
- o_rDisplay ) const;
- const String & LinkText() const { return sTitle; } // abuse of sTitle
-};
-
-class DT_ParameterAtTag : public DT_AtTag
-{
- public:
- DT_ParameterAtTag() : DT_AtTag("") {}
- virtual ~DT_ParameterAtTag();
-
- void SetTitle(
- const char * i_sTitle );
- virtual void DisplayAt(
- DocumentationDisplay &
- o_rDisplay ) const;
-};
-
-class DT_SinceAtTag : public DT_AtTag
-{
- public:
- DT_SinceAtTag() : DT_AtTag("Since version") {}
- virtual ~DT_SinceAtTag();
-
- virtual void DisplayAt(
- DocumentationDisplay &
- o_rDisplay ) const;
-};
-
-
-} // namespace dsapi
-} // namespace csi
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/inc/ary_i/disdocum.hxx b/autodoc/inc/ary_i/disdocum.hxx
deleted file mode 100644
index 7c6af4599df7..000000000000
--- a/autodoc/inc/ary_i/disdocum.hxx
+++ /dev/null
@@ -1,138 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_DISDOCUM_HXX
-#define ARY_DISDOCUM_HXX
-
-
-
-// USED SERVICES
- // BASE CLASSES
- // COMPONENTS
- // PARAMETERS
-
-
-namespace csi
-{
-namespace dsapi
-{
-class DT_TextToken;
-class DT_MupType;
-class DT_MupMember;
-class DT_MupConst;
-class DT_Style;
-class DT_StdAtTag;
-class DT_SeeAlsoAtTag;
-class DT_ParameterAtTag;
-class DT_SinceAtTag;
-} // namespace dsapi
-} // namespace csi
-
-
-namespace ary
-{
-namespace inf
-{
-
-
-
-class DocumentationDisplay
-{
- public:
-
- virtual ~DocumentationDisplay() { }
-
- virtual void Display_TextToken(
- const csi::dsapi::DT_TextToken &
- i_rToken ) = 0;
- virtual void Display_White() = 0;
- virtual void Display_MupType(
- const csi::dsapi::DT_MupType & i_rToken ) = 0;
- virtual void Display_MupMember(
- const csi::dsapi::DT_MupMember &
- i_rToken ) = 0;
- virtual void Display_MupConst(
- const csi::dsapi::DT_MupConst &
- i_rToken ) = 0;
- virtual void Display_Style(
- const csi::dsapi::DT_Style & i_rToken ) = 0;
- virtual void Display_EOL() = 0;
- virtual void Display_StdAtTag(
- const csi::dsapi::DT_StdAtTag &
- i_rToken ) = 0;
- virtual void Display_SeeAlsoAtTag(
- const csi::dsapi::DT_SeeAlsoAtTag &
- i_rToken ) = 0;
- virtual void Display_ParameterAtTag(
- const csi::dsapi::DT_ParameterAtTag &
- i_rToken ) = 0;
- virtual void Display_SinceAtTag(
- const csi::dsapi::DT_SinceAtTag &
- i_rToken ) = 0;
-};
-
-
-class DocuTag_Display : public DocumentationDisplay
-{
- public:
- // Dummies, implemented in source\ary_i\kernel\ci_atag2.cxx
- virtual void Display_TextToken(
- const csi::dsapi::DT_TextToken &
- i_rToken );
- virtual void Display_White();
- virtual void Display_MupType(
- const csi::dsapi::DT_MupType & i_rToken );
- virtual void Display_MupMember(
- const csi::dsapi::DT_MupMember &
- i_rToken );
- virtual void Display_MupConst(
- const csi::dsapi::DT_MupConst &
- i_rToken );
- virtual void Display_Style(
- const csi::dsapi::DT_Style & i_rToken );
- virtual void Display_EOL();
-};
-
-class DocuText_Display : public DocumentationDisplay
-{
- public:
- // Dummies, implemented in source\ary_i\kernel\ci_text2.cxx
- virtual void Display_StdAtTag(
- const csi::dsapi::DT_StdAtTag &
- i_rToken );
- virtual void Display_SeeAlsoAtTag(
- const csi::dsapi::DT_SeeAlsoAtTag &
- i_rToken );
- virtual void Display_ParameterAtTag(
- const csi::dsapi::DT_ParameterAtTag &
- i_rToken );
- virtual void Display_SinceAtTag(
- const csi::dsapi::DT_SinceAtTag &
- i_rToken );
-};
-
-
-
-} // namespace inf
-} // namespace ary
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/inc/autodoc/displaying.hxx b/autodoc/inc/autodoc/displaying.hxx
deleted file mode 100644
index a42f9af84451..000000000000
--- a/autodoc/inc/autodoc/displaying.hxx
+++ /dev/null
@@ -1,61 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef AUTODOC_DISPLAYING_HXX
-#define AUTODOC_DISPLAYING_HXX
-
-
-namespace display
-{
- class CorporateFrame;
-}
-
-
-
-namespace autodoc
-{
-
-class HtmlDisplay_Idl_Ifc;
-
-
-/** Interface for parsing code of a programming language and
- delivering the information into an Autodoc Repository.
-**/
-class DisplayToolsFactory_Ifc
-{
- public:
- virtual ~DisplayToolsFactory_Ifc() {}
- static DisplayToolsFactory_Ifc &
- GetIt_();
-
- virtual DYN autodoc::HtmlDisplay_Idl_Ifc *
- Create_HtmlDisplay_Idl() const = 0;
-
- virtual const display::CorporateFrame &
- Create_StdFrame() const = 0;
-};
-
-
-} // namespace autodoc
-
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/inc/autodoc/dsp_html_std.hxx b/autodoc/inc/autodoc/dsp_html_std.hxx
deleted file mode 100644
index c3a7d84606c3..000000000000
--- a/autodoc/inc/autodoc/dsp_html_std.hxx
+++ /dev/null
@@ -1,82 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef AUTODOC_DSP_HTML_STD_HXX
-#define AUTODOC_DSP_HTML_STD_HXX
-
-
-
-namespace ary
-{
- namespace idl
- {
- class Gate;
- }
-}
-
-namespace display
-{
- class CorporateFrame;
-}
-
-
-namespace autodoc
-{
-
-// class HtmlDisplay_Idl_Ifc
-
-class HtmlDisplay_Idl_Ifc
-{
- public:
- virtual ~HtmlDisplay_Idl_Ifc() {}
-
- void Run(
- const char * i_sOutputDirectory,
- const ary::idl::Gate &
- i_rAryGate,
- const display::CorporateFrame &
- i_rLayout );
- private:
- virtual void do_Run(
- const char * i_sOutputDirectory,
- const ary::idl::Gate &
- i_rAryGate,
- const display::CorporateFrame &
- i_rLayout ) = 0;
-};
-
-
-
-
-// IMPLEMENTATION
-inline void
-HtmlDisplay_Idl_Ifc::Run( const char * i_sOutputDirectory,
- const ary::idl::Gate & i_rAryGate,
- const display::CorporateFrame & i_rLayout )
-{
- do_Run( i_sOutputDirectory, i_rAryGate, i_rLayout );
-}
-
-
-
-
-} // namespace autodoc
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/inc/autodoc/filecoli.hxx b/autodoc/inc/autodoc/filecoli.hxx
deleted file mode 100644
index a904b8f2adda..000000000000
--- a/autodoc/inc/autodoc/filecoli.hxx
+++ /dev/null
@@ -1,65 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_PARSER_FILECOLI_HXX
-#define ADC_PARSER_FILECOLI_HXX
-
-
-namespace autodoc
-{
-
-class FileCollector_Ifc
-{
- public:
- // TYPES
- typedef StringVector::const_iterator const_iterator;
-
- enum E_SearchMode
- {
- flat,
- recursive
- };
-
- // LIFECYCLE
- virtual ~FileCollector_Ifc() {}
-
- // OPERATIONS
- virtual uintt AddFilesFrom(
- const char * i_sRootDir,
- const char * i_sFilter,
- E_SearchMode i_eSearchMode ) = 0;
- virtual uintt AddFile(
- const char * i_sFilePath ) = 0;
- virtual void EraseAll() = 0;
-
- // INQUIRY
- virtual const_iterator
- Begin() const = 0;
- virtual const_iterator
- End() const = 0;
- virtual uintt Size() const = 0;
-};
-
-
-} // namespace autodoc
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/inc/autodoc/parsing.hxx b/autodoc/inc/autodoc/parsing.hxx
deleted file mode 100644
index 93f5a50407a1..000000000000
--- a/autodoc/inc/autodoc/parsing.hxx
+++ /dev/null
@@ -1,57 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef AUTODOC_PARSING_HXX
-#define AUTODOC_PARSING_HXX
-
-
-
-namespace autodoc
-{
-
-class DocumentationParser_Ifc;
-class FileCollector_Ifc;
-
-
-/** Interface for parsing code of a programming language and
- delivering the information into an Autodoc Repository.
-**/
-class ParseToolsFactory_Ifc
-{
- public:
- virtual ~ParseToolsFactory_Ifc() {}
- static ParseToolsFactory_Ifc &
- GetIt_();
-
-// virtual DYN autodoc::DocumentationParser_Ifc *
-// CreateDocuParser_StarOfficeAPIStyle() const = 0;
-
- virtual DYN autodoc::FileCollector_Ifc *
- Create_FileCollector(
- uintt i_nEstimatedNrOfFiles ) const = 0; /// Should be somewhat larger than the maximal estimated number of files.
-};
-
-
-} // namespace autodoc
-
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/inc/autodoc/prs_docu.hxx b/autodoc/inc/autodoc/prs_docu.hxx
deleted file mode 100644
index 698b955721f2..000000000000
--- a/autodoc/inc/autodoc/prs_docu.hxx
+++ /dev/null
@@ -1,52 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_PARSER_PRS_DOCU_HXX
-#define ADC_PARSER_PRS_DOCU_HXX
-
-
-
-// USED SERVICES
- // BASE CLASSES
- // COMPONENTS
- // PARAMETERS
-
-
-
-namespace autodoc
-{
-
-class TkpDocuContext;
-
-class DocumentationParser_Ifc
-{
- public:
- virtual ~DocumentationParser_Ifc() {}
-
- virtual DYN TkpDocuContext *
- Create_DocuContext() const = 0;
-};
-
-
-} // namespace autodoc
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/inc/autodoc/x_parsing.hxx b/autodoc/inc/autodoc/x_parsing.hxx
deleted file mode 100644
index bf22e935376d..000000000000
--- a/autodoc/inc/autodoc/x_parsing.hxx
+++ /dev/null
@@ -1,67 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef AUTODOC_X_PARSING_HXX
-#define AUTODOC_X_PARSING_HXX
-
-// USED SERVICES
-#include <iostream>
-
-
-
-
-namespace autodoc
-{
-
-class X_Parser_Ifc
-{
- public:
- // TYPES
- enum E_Event
- {
- x_Any = 0,
- x_InvalidChar,
- x_UnexpectedToken,
- x_UnexpectedEOF,
- x_UnspecifiedSyntaxError
- };
-
- // LIFECYCLE
- virtual ~X_Parser_Ifc() {}
-
- // INQUIRY
- virtual E_Event GetEvent() const = 0;
- virtual void GetInfo(
- std::ostream & o_rOutputMedium ) const = 0;
-};
-
-
-} // namespace autodoc
-
-std::ostream & operator<<(
- std::ostream & o_rOut,
- const autodoc::X_Parser_Ifc &
- i_rException );
-
-
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/inc/display/corframe.hxx b/autodoc/inc/display/corframe.hxx
deleted file mode 100644
index e362b6dbab93..000000000000
--- a/autodoc/inc/display/corframe.hxx
+++ /dev/null
@@ -1,73 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_CORFRAME_HXX
-#define ADC_CORFRAME_HXX
-
-
-
-// USED SERVICES
- // BASE CLASSES
- // COMPONENTS
- // PARAMETERS
-
-class Html_Image;
-
-
-namespace display
-{
-
-
-class CorporateFrame
-{
- public:
- // LIFECYCLE
- virtual ~CorporateFrame() {}
-
- // INQUIRY
- virtual DYN Html_Image *
- LogoSrc() const = 0;
- virtual const char *
- LogoLink() const = 0;
- virtual const char *
- CopyrightText() const = 0;
-
- virtual const char *
- CssStyle() const = 0;
- virtual const char *
- CssStylesExplanation() const = 0;
- virtual const char *
- DevelopersGuideHtmlRoot() const = 0;
-
- // ACCESS
- virtual void Set_DevelopersGuideHtmlRoot(
- const String & i_directory ) = 0;
-};
-
-
-
-// IMPLEMENTATION
-
-
-} // namespace display
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/inc/parser/parser.hxx b/autodoc/inc/parser/parser.hxx
deleted file mode 100644
index 9fa63c5ea240..000000000000
--- a/autodoc/inc/parser/parser.hxx
+++ /dev/null
@@ -1,50 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_PARSER_HXX
-#define ADC_PARSER_HXX
-
-
-
-// USED SERVICES
- // BASE CLASSES
- // COMPONENTS
- // PARAMETERS
-
-namespace autodoc
-{
- class FileCollector_Ifc;
-}
-
-
-class CodeParser
-{
- public:
- virtual ~CodeParser() {}
-
- virtual void Run(
- const autodoc::FileCollector_Ifc &
- i_rFiles ) = 0;
-};
-
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/inc/parser/parserinfo.hxx b/autodoc/inc/parser/parserinfo.hxx
deleted file mode 100644
index da40fae9b0e3..000000000000
--- a/autodoc/inc/parser/parserinfo.hxx
+++ /dev/null
@@ -1,58 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_PARSERINFO_HXX
-#define ADC_PARSERINFO_HXX
-
-// USED SERVICES
- // BASE CLASSES
- // COMPONENTS
- // PARAMETERS
-
-/** Interface about current state of parsing.
-*/
-class ParserInfo
-{
- public:
- // OPERATIONS
- void Set_CurFile(
- const String & i_file,
- bool i_bUseLines = false)
- { sCurFile = i_file;
- nCurLine = i_bUseLines ? 1 : 0; }
- void Increment_CurLine()
- { ++nCurLine; }
-
- // INQUIRY
- const String & CurFile() const { return sCurFile; }
- uintt CurLine() const { return nCurLine; }
-
- protected:
- // LIFECYCLE
- ParserInfo() : sCurFile(), nCurLine(0) {}
- ~ParserInfo() {}
- private:
- String sCurFile;
- uintt nCurLine;
-
-};
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/inc/parser/unoidl.hxx b/autodoc/inc/parser/unoidl.hxx
deleted file mode 100644
index f9ecbf8db652..000000000000
--- a/autodoc/inc/parser/unoidl.hxx
+++ /dev/null
@@ -1,72 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_UNOIDL_HXX
-#define ADC_UNOIDL_HXX
-
-
-
-// USED SERVICES
- // BASE CLASSES
-#include <parser/parser.hxx>
-#include <parser/parserinfo.hxx>
- // COMPONENTS
- // PARAMETERS
-
-
-namespace ary
-{
- class Repository;
-}
-namespace autodoc
-{
- class FileCollector_Ifc;
-}
-
-namespace autodoc
-{
-
-
-class IdlParser : public ::CodeParser,
- public ::ParserInfo
-{
- public:
- IdlParser(
- ary::Repository & io_rRepository );
-
- virtual void Run(
- const autodoc::FileCollector_Ifc &
- i_rFiles );
-
- private:
- // DATA
- ary::Repository * pRepository;
-};
-
-
-
-// IMPLEMENTATION
-
-
-} // namespace autodoc
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/ary/doc/d_docu.cxx b/autodoc/source/ary/doc/d_docu.cxx
deleted file mode 100644
index 3d5170545047..000000000000
--- a/autodoc/source/ary/doc/d_docu.cxx
+++ /dev/null
@@ -1,53 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <ary/doc/d_docu.hxx>
-
-
-// NOT FULLY DEFINED SERVICES
-#include <ary/doc/d_node.hxx>
-
-namespace ary
-{
-namespace doc
-{
-
-Documentation::Documentation()
- : pData(0)
-{
-}
-
-Documentation::~Documentation()
-{
-}
-
-void
-Documentation::do_Accept(csv::ProcessorIfc & io_processor) const
-{
- csv::CheckedCall(io_processor,*this);
-}
-
-
-
-
-} // namespace doc
-} // namespace ary
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/ary/doc/d_node.cxx b/autodoc/source/ary/doc/d_node.cxx
deleted file mode 100644
index 1d160c0c84f6..000000000000
--- a/autodoc/source/ary/doc/d_node.cxx
+++ /dev/null
@@ -1,63 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <ary/doc/d_node.hxx>
-
-
-namespace ary
-{
-namespace doc
-{
-
-
-
-Node::~Node()
-{
-}
-
-Node::Node(nodetype::id i_type)
- : nType(i_type),
- pNext(0)
-{
-}
-
-void
-Node::Add_toChain( DYN Node & pass_nextNode )
-{
- if (NOT pNext)
- pNext = &pass_nextNode;
- else
- pNext->Add_toChain(pass_nextNode);
-}
-
-uintt
-Node::ListSize() const
-{
- return pNext
- ? pNext->ListSize() + 1
- : 1;
-}
-
-
-
-} // namespace doc
-} // namespace ary
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/ary/doc/d_oldidldocu.cxx b/autodoc/source/ary/doc/d_oldidldocu.cxx
deleted file mode 100644
index 90e28f7c264f..000000000000
--- a/autodoc/source/ary/doc/d_oldidldocu.cxx
+++ /dev/null
@@ -1,70 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <ary/doc/d_oldidldocu.hxx>
-
-// NOT FULLY DEFINED SERVICES
-#include <docu_node_ids.hxx>
-
-
-
-namespace ary
-{
-namespace doc
-{
-
-using namespace ::ary::inf;
-
-
-OldIdlDocu::OldIdlDocu()
- : Node(docnt::nt_OldIdlDocu),
- aShort(),
- aDescription(),
- aDeprecatedText(),
- aTags(),
- pExternShort(0),
- bIsPublished(false),
- bIsDeprecated(false),
- bIsOptional(false)
-{
-}
-
-OldIdlDocu::~OldIdlDocu()
-{
-}
-
-void
-OldIdlDocu::AddToken2DeprecatedText( DYN DocuToken & let_drToken )
-{
- aDeprecatedText.AddToken(let_drToken);
-}
-
-void
-OldIdlDocu::do_Accept(csv::ProcessorIfc & io_processor) const
-{
- csv::CheckedCall(io_processor, *this);
-}
-
-
-
-} // namespace info
-} // namespace ary
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/ary/idl/i2s_calculator.cxx b/autodoc/source/ary/idl/i2s_calculator.cxx
deleted file mode 100644
index b4e369c84ff2..000000000000
--- a/autodoc/source/ary/idl/i2s_calculator.cxx
+++ /dev/null
@@ -1,965 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include "i2s_calculator.hxx"
-
-// NOT FULLY DEFINED SERVICES
-#include <algorithm>
-#include <string.h>
-#include <cosv/file.hxx>
-#include <ary/qualiname.hxx>
-#include <ary/idl/i_enum.hxx>
-#include <ary/idl/i_exception.hxx>
-#include <ary/idl/i_function.hxx>
-#include <ary/idl/i_gate.hxx>
-#include <ary/idl/i_interface.hxx>
-#include <ary/idl/ik_interface.hxx>
-#include <ary/idl/i_module.hxx>
-#include <ary/idl/i_property.hxx>
-#include <ary/idl/i_service.hxx>
-#include <ary/idl/i_singleton.hxx>
-#include <ary/idl/i_siservice.hxx>
-#include <ary/idl/i_sisingleton.hxx>
-#include <ary/idl/i_struct.hxx>
-#include <ary/idl/i_structelem.hxx>
-#include <ary/idl/i_typedef.hxx>
-#include <ary/idl/ip_ce.hxx>
-#include <ary/idl/ip_type.hxx>
-#include <ary/namesort.hxx>
-#include <nametreenode.hxx>
-#include "i_nnfinder.hxx"
-#include "ia_ce.hxx"
-#include "ia_type.hxx"
-#include "is_ce.hxx"
-#include "is_type.hxx"
-#include "it_ce.hxx"
-#include "it_explicit.hxx"
-#include "it_sequence.hxx"
-#include "it_xnameroom.hxx"
-
-
-namespace ary
-{
-namespace idl
-{
-
-template <class DEST>
-DEST *
-SecondariesCalculator::SearchCe4Type(Type_id i_type)
-{
- Ce_id
- ce = lhf_Search_CeFromTypeId(i_type);
- if (ce.IsValid())
- return ary_cast<DEST>(& my_CeStorage()[ce]);
- return 0;
-}
-
-
-typedef stg::const_iterator<CodeEntity> stg_citerator;
-typedef stg::iterator<CodeEntity> stg_iterator;
-
-typedef stg::filter_iterator<CodeEntity,Interface>
- interface_iterator;
-
-typedef stg::filter_iterator<Type,ExplicitType>
- explicittype_iterator;
-
-typedef ary::stg::const_filter_iterator<CodeEntity,Typedef>
- typedef_citerator;
-
-
-inline Service *
-SecondariesCalculator::lhf_SearchService( Type_id i_nType )
-{
- return SearchCe4Type<Service>(i_nType);
-}
-
-inline Interface *
-SecondariesCalculator::lhf_SearchInterface( Type_id i_nType )
-{
- return SearchCe4Type<Interface>(i_nType);
-}
-
-inline Struct *
-SecondariesCalculator::lhf_SearchStruct( Type_id i_nType )
-{
- return SearchCe4Type<Struct>(i_nType);
-}
-
-inline Exception *
-SecondariesCalculator::lhf_SearchException( Type_id i_nType )
-{
- return SearchCe4Type<Exception>(i_nType);
-}
-
-inline const Ce_Storage &
-SecondariesCalculator::my_CeStorage() const
-{
- csv_assert(pCes != 0);
- return pCes->Storage();
-}
-
-inline const Type_Storage &
-SecondariesCalculator::my_TypeStorage() const
-{
- csv_assert(pTypes != 0);
- return pTypes->Storage();
-}
-
-inline Ce_Storage &
-SecondariesCalculator::my_CeStorage()
-{
- csv_assert(pCes != 0);
- return pCes->Storage();
-}
-
-inline Type_Storage &
-SecondariesCalculator::my_TypeStorage()
-{
- csv_assert(pTypes != 0);
- return pTypes->Storage();
-}
-
-inline void
-SecondariesCalculator::insert_into2sList( CodeEntity & o_out,
- int i_listIndex,
- Ce_id i_nCe )
- { o_out.Secondaries().Access_List(i_listIndex).push_back(i_nCe); }
-
-
-SecondariesCalculator::SecondariesCalculator( CeAdmin & i_ces,
- TypeAdmin & i_types )
- : pCes(&i_ces),
- pTypes(&i_types)
-{
-}
-
-SecondariesCalculator::~SecondariesCalculator()
-{
-}
-
-
-void
-SecondariesCalculator::CheckAllInterfaceBases()
-{
- Module &
- rGlobalNamespace = pCes->GlobalNamespace();
- QualifiedName
- aXInterface("::com::sun::star::uno::XInterface","::");
-
- const Type &
- rType = pTypes->CheckIn_Type( aXInterface,
- 0,
- rGlobalNamespace.CeId(),
- 0 );
- Type_id
- nTypeXInterface = rType.TypeId();
- const ExplicitType &
- rExplType = ary_cast<ExplicitType>(rType);
- Ce_id
- nCeXInterface = lhf_Search_CeForType(rExplType);
-
- interface_iterator itEnd( my_CeStorage().End() );
- for ( interface_iterator it( my_CeStorage().BeginUnreserved() );
- it != itEnd;
- ++it )
- {
- if (NOT it.IsValid())
- continue;
-
- Interface &
- rInterface = *it;
- if ( NOT rInterface.HasBase() // According to UNO IDL syntax, an interface without base has com::sun::star::uno::XInterface as base.
- AND rInterface.CeId() != nCeXInterface ) // XInterface must not be base of itself.
- {
- rInterface.Add_Base(nTypeXInterface, 0);
- }
- } // end for
-}
-
-void
-SecondariesCalculator::Connect_Types2Ces()
-{
- explicittype_iterator itEnd( my_TypeStorage().End() );
- for ( explicittype_iterator it( my_TypeStorage().BeginUnreserved() );
- it != itEnd;
- ++it )
- {
- if (NOT it.IsValid())
- continue;
-
- ExplicitType &
- rType = ary_cast<ExplicitType>(*it);
- Ce_id
- nRelatedCe = lhf_Search_CeForType(rType);
- if (nRelatedCe.IsValid())
- {
- Ce_Type *
- pNew = new Ce_Type(nRelatedCe, rType.TemplateParameters());
- my_TypeStorage().Replace_Entity( rType.TypeId(),
- *pNew );
- }
- } // end for
-}
-
-void
-SecondariesCalculator::Gather_CrossReferences()
-{
- gather_Synonyms();
-
- for ( stg_iterator it = my_CeStorage().Begin();
- it != my_CeStorage().End();
- ++it )
- {
- (*it).Accept( static_cast< SPInst_asHost& >(*this) );
-
- } // end for
-
- sort_All2s();
-}
-
-void
-SecondariesCalculator::Make_Links2DeveloperManual(
- const String & i_devman_reffilepath )
-{
- csv::File
- aFile(i_devman_reffilepath, csv::CFM_READ);
- csv::OpenCloseGuard
- aFileOpener(aFile);
- if (aFileOpener)
- {
- Read_Links2DevManual(aFile);
- }
-}
-
-namespace
-{
-
-enum E_LinkMode
-{
- link2descr,
- link2ref
-};
-
-struct OrderCeIdsByName
-{
- OrderCeIdsByName(
- const Ce_Storage & i_storage )
- : rStorage(i_storage),
- aNameComparison() {}
- bool operator()(
- Ce_id i_ce1,
- Ce_id i_ce2 ) const
- {
- return aNameComparison( rStorage[i_ce1].LocalName(),
- rStorage[i_ce2].LocalName() );
- }
-
- private:
- const Ce_Storage & rStorage;
- LesserName aNameComparison;
-};
-
-
-}
-
-
-
-void
-SecondariesCalculator::do_Process( const Service & i_rData )
-{
- const Service &
- rService = ary_cast<Service>(i_rData);
-
- // Interfaces:
- assignImplementation_toAServicesInterfaces( rService.CeId(),
- rService.CeId(),
- interface_2s_ExportingServices );
- // Services and their interfaces:
- recursive_AssignIncludingService(rService.CeId(), rService);
-}
-
-void
-SecondariesCalculator::do_Process( const Interface & i_rData )
-{
- assign_AsDerivedInterface( ary_cast<Interface>(i_rData) );
-}
-
-void
-SecondariesCalculator::do_Process( const Struct & i_rData )
-{
- assign_AsDerivedStruct( ary_cast<Struct>(i_rData) );
-}
-
-void
-SecondariesCalculator::do_Process( const Exception & i_rData )
-{
- assign_AsDerivedException( ary_cast<Exception>(i_rData) );
-}
-
-void
-SecondariesCalculator::do_Process( const Typedef & )
-{
- // KORR_FUTURE
- // Find out what was meant here ???
-
-// const Typedef &
-// rTypedef = ary_cast<Typedef>(i_rData);
-}
-
-void
-SecondariesCalculator::do_Process( const Singleton & i_rData )
-{
- const Singleton &
- rSingleton = ary_cast<Singleton>(i_rData);
-
- Service *
- pServ = lhf_SearchService(rSingleton.AssociatedService());
- if (pServ != 0)
- {
- insert_into2sUnique( *pServ,
- service_2s_InstantiatingSingletons,
- rSingleton.CeId() );
- }
-
- // Interfaces:
- assignImplementation_toAServicesInterfaces( rSingleton.CeId(),
- lhf_Search_CeFromTypeId(rSingleton.AssociatedService()),
- interface_2s_ExportingSingletons );
-}
-
-void
-SecondariesCalculator::do_Process( const SglIfcService & i_rData )
-{
- const SglIfcService &
- rSglIfcService = ary_cast<SglIfcService>(i_rData);
-
- assignImplementation_toAServicesInterfaces( rSglIfcService.CeId(),
- rSglIfcService.CeId(),
- interface_2s_ExportingServices );
-}
-
-void
-SecondariesCalculator::do_Process( const SglIfcSingleton & i_rData )
-{
- const SglIfcSingleton &
- rSglIfcSingleton = ary_cast<SglIfcSingleton>(i_rData);
-
- Type_id nBase = rSglIfcSingleton.BaseInterface();
- recursive_AssignImplementation_toExportedInterface( rSglIfcSingleton.CeId(),
- nBase,
- interface_2s_ExportingSingletons );
-}
-
-void
-SecondariesCalculator::do_Process( const Function & i_rData )
-{
- const Function &
- rFunction = ary_cast<Function>(i_rData);
-
- recursive_AssignFunction_toCeAsReturn(rFunction.CeId(), rFunction.ReturnType());
-
- for ( Function::ParamList::const_iterator itp = rFunction.Parameters().begin();
- itp != rFunction.Parameters().end();
- ++itp )
- {
- recursive_AssignFunction_toCeAsParameter(rFunction.CeId(), (*itp).Type());
- } // end for (itp)
-
- for ( Function::ExceptionList::const_iterator itx = rFunction.Exceptions().begin();
- itx != rFunction.Exceptions().end();
- ++itx )
- {
- Exception *
- pX = lhf_SearchException(*itx);
- if (pX != 0)
- {
- insert_into2sUnique(*pX, exception_2s_RaisingFunctions, rFunction.CeId());
- }
- } // end for (itx)
-}
-
-void
-SecondariesCalculator::do_Process( const StructElement & i_rData )
-{
- const StructElement &
- rStructElement = ary_cast<StructElement>(i_rData);
-
- recursive_AssignStructElement_toCeAsDataType(rStructElement.CeId(), rStructElement.Type());
-}
-
-void
-SecondariesCalculator::do_Process( const Property & i_rData )
-{
- const Property &
- rProperty = ary_cast<Property>(i_rData);
-
- recursive_AssignStructElement_toCeAsDataType(rProperty.CeId(), rProperty.Type());
-}
-
-Ce_id
-SecondariesCalculator::lhf_Search_CeForType( const ExplicitType & i_rType ) const
-{
- const ExplicitNameRoom &
- rExplicitNameRoom = ary_cast<ExplicitNameRoom>(
- my_TypeStorage()[i_rType.NameRoom()] );
- Find_ModuleNode
- rNodeFinder( my_CeStorage(),
- rExplicitNameRoom.NameChain_Begin(),
- rExplicitNameRoom.NameChain_End(),
- i_rType.Name() );
-
- if ( rExplicitNameRoom.IsAbsolute() )
- {
- const Module &
- rGlobalNamespace = ary_cast<Module>(
- my_CeStorage()[predefined::ce_GlobalNamespace]);
- return Search_SubTree( rGlobalNamespace,
- rNodeFinder );
- }
- else
- {
- const Module &
- rStartModule = ary_cast<Module>(
- my_CeStorage()[i_rType.ModuleOfOccurrence()]);
- Ce_id ret = Search_SubTree_UpTillRoot( rStartModule,
- rNodeFinder );
- return ret;
- } // endif (rExplicitNameRoom.IsAbsolute()) else
-}
-
-Ce_id
-SecondariesCalculator::lhf_Search_CeFromTypeId( Type_id i_nType ) const
-{
- if (NOT i_nType.IsValid())
- return Ce_id(0);
- const Ce_Type *
- pType = ary_cast<Ce_Type>( & my_TypeStorage()[i_nType] );
- return pType != 0
- ? pType->RelatedCe()
- : Ce_id_Null();
-}
-
-void
-SecondariesCalculator::assign_CurLink( char * i_text,
- const String & i_link,
- const String & i_linkUI,
- bool i_isDescr,
- int i_lineCount )
-{
- csv_assert(i_text != 0);
-
- const ary::idl::Module *
- pModule = & ary_cast<Module>(
- my_CeStorage()[predefined::ce_GlobalNamespace]);
-
- char * pPastNext = 0;
- char * pNext = i_text;
- for ( ;
- (pPastNext = strstr(pNext,".")) != 0;
- pNext = pPastNext + 1 )
- {
- String sNext(pNext, pPastNext-pNext);
- Ce_id nModule = pModule->Search_Name(sNext);
- if (nModule.IsValid())
- {
- pModule = ary_cast<Module>( & my_CeStorage()[nModule] );
- }
- else
- {
- pModule = 0;
- }
-
- if (pModule == 0)
- {
- Cerr() << "Warning: Invalid line nr. "
- << i_lineCount
- << " in DevelopersGuide reference file:\n"
- << reinterpret_cast< const char* >(i_text)
- << "\n"
- << Endl();
- return;
- }
- } // end for
-
- pPastNext = strchr(pNext,':');
- bool bMember = pPastNext != 0;
- String sCe( pNext, (bMember ? csv::str::size(pPastNext-pNext) : csv::str::maxsize) );
-
-// KORR_FUTURE
-// String sMember(bMember ? pPastNext+1, "");
-
- Ce_id nCe = pModule->Search_Name(sCe);
- if (NOT nCe.IsValid())
- {
- Cerr() << "Warning: Invalid line nr. "
- << i_lineCount
- << " in DevelopersGuide reference file:\n"
- << reinterpret_cast< const char* >(i_text)
- << "\n"
- << Endl();
- return;
- }
-
- CodeEntity &
- rCe = my_CeStorage()[nCe];
- if (NOT bMember)
- {
- if (i_isDescr)
- rCe.Secondaries().Add_Link2DescriptionInManual(i_link, i_linkUI);
- else
- rCe.Secondaries().Add_Link2RefInManual(i_link, i_linkUI);
- return;
- }
- else
- {
- // KORR_FUTURE
- // Provisorial just doing nothing (or may be
- // adding a link at main Ces lists).
-// if (i_isDescr)
-// rCe.Secondaries().Add_Link2DescriptionInManual(i_link);
-// else
-// rCe.Secondaries().Add_Link2RefInManual(i_link);
- }
-}
-
-void
-SecondariesCalculator::gather_Synonyms()
-{
- const Ce_Storage &
- cstrg = my_CeStorage();
- typedef_citerator itEnd(cstrg.End());
- for ( typedef_citerator it(cstrg.Begin());
- it != itEnd;
- ++it )
- {
- if (NOT it.IsValid())
- continue;
-
- const Typedef &
- rTypedef = *it;
- recursive_AssignAsSynonym(rTypedef.CeId(), rTypedef);
- } // end for (itTd)
-}
-
-void
-SecondariesCalculator::recursive_AssignAsSynonym( Ce_id i_synonymousTypedefsId,
- const Typedef & i_TypedefToCheck )
-{
- Ce_id
- nCe = lhf_Search_CeFromTypeId(i_TypedefToCheck.DefiningType());
- if (NOT nCe.IsValid())
- return;
- CodeEntity &
- rCe = my_CeStorage()[nCe];
-
- switch (rCe.AryClass()) // KORR_FUTURE: make this faster, remove switch.
- {
- case Interface::class_id:
- insert_into2sList( rCe,
- interface_2s_SynonymTypedefs,
- i_synonymousTypedefsId );
- break;
- case Struct::class_id:
- insert_into2sList( rCe,
- struct_2s_SynonymTypedefs,
- i_synonymousTypedefsId );
- break;
- case Enum::class_id:
- insert_into2sList( rCe,
- enum_2s_SynonymTypedefs,
- i_synonymousTypedefsId );
- break;
- case Typedef::class_id:
- insert_into2sList( rCe,
- typedef_2s_SynonymTypedefs,
- i_synonymousTypedefsId );
- recursive_AssignAsSynonym( i_synonymousTypedefsId,
- static_cast< Typedef& >(rCe) );
- break;
- // default: do nothing.
- }
-}
-
-void
-SecondariesCalculator::recursive_AssignIncludingService( Ce_id i_includingServicesId,
- const Service & i_ServiceToCheckItsIncludes )
-{
- Dyn_StdConstIterator<CommentedRelation>
- pIncludedServices;
- i_ServiceToCheckItsIncludes.Get_IncludedServices(pIncludedServices);
-
- for ( StdConstIterator<CommentedRelation> &
- itServ = *pIncludedServices;
- itServ;
- ++itServ )
- {
- Service *
- pServ = lhf_SearchService((*itServ).Type());
- if (pServ != 0)
- {
- insert_into2sUnique( *pServ,
- service_2s_IncludingServices,
- i_includingServicesId
- );
- recursive_AssignIncludingService(i_includingServicesId, *pServ);
-
- } // end if
-
- assignImplementation_toAServicesInterfaces( i_includingServicesId,
- lhf_Search_CeFromTypeId( (*itServ).Type() ),
- interface_2s_ExportingServices );
- } // end for
-}
-
-void
-SecondariesCalculator::assign_AsDerivedInterface( const Interface & i_rDerived )
-{
- ary::Dyn_StdConstIterator<ary::idl::CommentedRelation>
- pHelp;
- ary::idl::ifc_interface::attr::Get_Bases(pHelp, i_rDerived);
-
- for ( ary::StdConstIterator<ary::idl::CommentedRelation> & it = *pHelp;
- it.operator bool();
- ++it )
- {
- Interface *
- pIfc = lhf_SearchInterface( (*it).Type() );
- if (pIfc == 0)
- continue;
-
- insert_into2sList( *pIfc,
- interface_2s_Derivations,
- i_rDerived.CeId() );
- } // end for
-}
-
-void
-SecondariesCalculator::assign_AsDerivedStruct( const Struct & i_rDerived )
-{
- Type_id
- nBase = i_rDerived.Base();
- if (nBase.IsValid())
- {
- Struct *
- pParent = lhf_SearchStruct(nBase);
- if (pParent != 0)
- {
- insert_into2sList( *pParent,
- struct_2s_Derivations,
- i_rDerived.CeId() );
- }
- }
-}
-
-void
-SecondariesCalculator::assign_AsDerivedException( const Exception & i_rDerived )
-{
- Type_id
- nBase = i_rDerived.Base();
- if (nBase.IsValid())
- {
- Exception *
- pParent = lhf_SearchException(nBase);
- if (pParent != 0)
- {
- insert_into2sList( *pParent,
- exception_2s_Derivations,
- i_rDerived.CeId() );
- } // end if
- } // end if
-}
-
-void
-SecondariesCalculator::assignImplementation_toAServicesInterfaces(
- Ce_id i_nImpl,
- Ce_id i_nService,
- E_2s_of_Interface i_eList )
-{
- if (NOT i_nService.IsValid())
- return;
- Service *
- pService = ary_cast<Service>( & my_CeStorage()[i_nService] );
- SglIfcService *
- pSglIfcService = ary_cast<SglIfcService>( & my_CeStorage()[i_nService] );
-
- if (pService != 0)
- {
- Dyn_StdConstIterator<CommentedRelation>
- pSupportedInterfaces;
- pService->Get_SupportedInterfaces(pSupportedInterfaces);
-
- for ( StdConstIterator<CommentedRelation> &
- itInfc = *pSupportedInterfaces;
- itInfc.operator bool();
- ++itInfc )
- {
- recursive_AssignImplementation_toExportedInterface( i_nImpl,
- (*itInfc).Type(),
- i_eList );
- } // end for
- }
- else if (pSglIfcService != 0)
- {
- Type_id nBase = pSglIfcService->BaseInterface();
- recursive_AssignImplementation_toExportedInterface( i_nImpl,
- nBase,
- i_eList );
- } // end if
-}
-
-void
-SecondariesCalculator::recursive_AssignImplementation_toExportedInterface(
- Ce_id i_nService,
- Type_id i_nExportedInterface,
- E_2s_of_Interface i_eList )
-{
- Interface *
- pIfc = lhf_SearchInterface(i_nExportedInterface);
- if (pIfc == 0)
- return;
-
- insert_into2sUnique( *pIfc,
- i_eList,
- i_nService );
- Dyn_StdConstIterator<CommentedRelation>
- pBases;
- ary::idl::ifc_interface::attr::Get_Bases(pBases, *pIfc);
- for ( StdConstIterator<CommentedRelation> & it = *pBases;
- it.operator bool();
- ++it )
- {
- recursive_AssignImplementation_toExportedInterface(i_nService, (*it).Type(), i_eList);
- }
-}
-
-void
-SecondariesCalculator::recursive_AssignFunction_toCeAsReturn( Ce_id i_nFunction,
- Type_id i_nReturnType )
-{
- Ce_id
- nCe = lhf_Search_CeFromTypeId(i_nReturnType);
- if (NOT nCe.IsValid())
- return;
-
- CodeEntity &
- rCe = my_CeStorage()[nCe];
- switch (rCe.AryClass()) // KORR_FUTURE: make this faster, remove switch.
- {
- case Interface::class_id:
- insert_into2sList( rCe,
- interface_2s_AsReturns,
- i_nFunction );
- break;
- case Struct::class_id:
- insert_into2sList( rCe,
- struct_2s_AsReturns,
- i_nFunction );
- break;
- case Enum::class_id:
- insert_into2sList( rCe,
- enum_2s_AsReturns,
- i_nFunction );
- break;
- case Typedef::class_id:
- insert_into2sList( rCe,
- typedef_2s_AsReturns,
- i_nFunction );
- recursive_AssignFunction_toCeAsReturn( i_nFunction,
- static_cast< Typedef& >(rCe).DefiningType() );
- break;
- // default: do nothing.
- }
-}
-
-void
-SecondariesCalculator::recursive_AssignFunction_toCeAsParameter( Ce_id i_nFunction,
- Type_id i_nParameterType )
-{
- Ce_id
- nCe = lhf_Search_CeFromTypeId(i_nParameterType);
- if (NOT nCe.IsValid())
- return;
-
- CodeEntity &
- rCe = my_CeStorage()[nCe];
- switch (rCe.AryClass()) // KORR_FUTURE: make this faster, remove switch.
- {
- case Interface::class_id:
- insert_into2sList( rCe,
- interface_2s_AsParameters,
- i_nFunction );
- break;
- case Struct::class_id:
- insert_into2sList( rCe,
- struct_2s_AsParameters,
- i_nFunction );
- break;
- case Enum::class_id:
- insert_into2sList( rCe,
- enum_2s_AsParameters,
- i_nFunction );
- break;
- case Typedef::class_id:
- insert_into2sList( rCe,
- typedef_2s_AsParameters,
- i_nFunction );
- recursive_AssignFunction_toCeAsParameter( i_nFunction,
- static_cast< Typedef& >(rCe).DefiningType() );
- break;
- // default: do nothing.
- }
-}
-
-void
-SecondariesCalculator::recursive_AssignStructElement_toCeAsDataType( Ce_id i_nDataElement,
- Type_id i_nDataType )
-{
- Ce_id
- nCe = lhf_Search_CeFromTypeId(i_nDataType);
- if (NOT nCe.IsValid())
- return;
-
- CodeEntity &
- rCe = my_CeStorage()[nCe];
- switch (rCe.AryClass()) // KORR_FUTURE: make this faster, remove switch.
- {
- case Interface::class_id:
- insert_into2sList( rCe,
- interface_2s_AsDataTypes,
- i_nDataElement );
- break;
- case Struct::class_id:
- insert_into2sList( rCe,
- struct_2s_AsDataTypes,
- i_nDataElement );
- break;
- case Enum::class_id:
- insert_into2sList( rCe,
- enum_2s_AsDataTypes,
- i_nDataElement );
- break;
- case Typedef::class_id:
- insert_into2sList( rCe,
- typedef_2s_AsDataTypes,
- i_nDataElement );
- recursive_AssignFunction_toCeAsParameter( i_nDataElement,
- static_cast< Typedef& >(rCe).DefiningType() );
- break;
- // default: do nothing.
- } // end switch
-}
-
-void
-SecondariesCalculator::insert_into2sUnique( CodeEntity & o_out,
- int i_listIndex,
- Ce_id i_nCe )
-{
- std::vector<Ce_id> &
- rOut = o_out.Secondaries().Access_List(i_listIndex);
- if (std::find(rOut.begin(),rOut.end(),i_nCe) != rOut.end())
- return;
- rOut.push_back(i_nCe);
-}
-
-void
-SecondariesCalculator::sort_All2s()
-{
- OrderCeIdsByName
- aIdOrdering(my_CeStorage());
-
- for ( stg_iterator it = my_CeStorage().Begin();
- it != my_CeStorage().End();
- ++it )
- {
- Ce_2s &
- r2s = (*it).Secondaries();
- int iCount = r2s.CountXrefLists();
- for (int i = 0; i < iCount; ++i)
- {
- std::sort( r2s.Access_List(i).begin(),
- r2s.Access_List(i).end(),
- aIdOrdering );
- } // end for (i)
- } // end for (it)
-}
-
-void
-SecondariesCalculator::Read_Links2DevManual( csv::bstream & i_file )
-{
- StreamLock aLine(300);
- StreamStr & rLine = aLine();
-
-
- String sCurLink;
- String sCurLinkUI;
- E_LinkMode eCurMode = link2ref;
-
- int lineCount = 0;
- const char * sLink = "LINK:";
- const char * sDescr = "DESCR:";
- const char * sTopic = "TOPIC:";
- const char * sRef = "REF:";
- const UINT8 cMaxASCIINumWhiteSpace = 32;
-
- while (NOT i_file.eod())
- {
- ++lineCount;
-
- rLine.reset();
- rLine.operator_read_line(i_file);
-
- if ( *rLine.c_str() >= 'a' )
- {
- assign_CurLink(rLine.begin(), sCurLink, sCurLinkUI, eCurMode == link2descr, lineCount);
- }
- else if ( strncmp(rLine.c_str(), sLink, strlen(sLink)) == 0 )
- {
- sCurLink = rLine.c_str()+5;
- sCurLinkUI.clear();
- }
- else if ( strncmp(rLine.c_str(), sDescr, strlen(sDescr)) == 0 )
- {
- sCurLinkUI = rLine.c_str()+6;
- }
- else if ( strncmp(rLine.c_str(), sTopic, strlen(sTopic)) == 0 )
- {
- eCurMode = link2descr;
- }
- else if ( strncmp(rLine.c_str(), sRef, strlen(sRef)) == 0 )
- {
- eCurMode = link2ref;
- }
- else if (static_cast<UINT8>(*rLine.c_str()) > cMaxASCIINumWhiteSpace)
- {
- assign_CurLink(rLine.begin(), sCurLink, sCurLinkUI, eCurMode == link2descr, lineCount);
- }
- // else
- // Ignore empty line.
-
- } // end while
-}
-
-
-
-} // namespace idl
-} // namespace ary
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/ary/idl/i2s_calculator.hxx b/autodoc/source/ary/idl/i2s_calculator.hxx
deleted file mode 100644
index dde4df5cb65c..000000000000
--- a/autodoc/source/ary/idl/i2s_calculator.hxx
+++ /dev/null
@@ -1,288 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_IDL_I2S_CALCULATOR_HXX
-#define ARY_IDL_I2S_CALCULATOR_HXX
-
-
-// USED SERVICES
- // BASE CLASSES
-#include <cosv/tpl/processor.hxx>
- // PARAMETERS
-#include <ary/idl/i_types4idl.hxx>
-
-
-namespace ary
-{
-namespace idl
-{
- class CeAdmin;
- class Ce_Storage;
- class TypeAdmin;
- class Type_Storage;
- class ExplicitType;
- class Function;
- class Interface;
- class Property;
- class Typedef;
- class Service;
- class Singleton;
- class SglIfcService;
- class SglIfcSingleton;
- class Struct;
- class StructElement;
- class Exception;
- class Ce_2s;
-}
-}
-
-
-
-
-
-
-namespace ary
-{
-namespace idl
-{
-
-
-enum E_2s_of_Service
-{
- service_2s_IncludingServices,
- service_2s_InstantiatingSingletons
-};
-
-enum E_2s_of_Interface
-{
- interface_2s_Derivations,
- interface_2s_ExportingServices,
- interface_2s_ExportingSingletons,
- interface_2s_SynonymTypedefs,
-// interface_2s_UsingTypedefs,
- interface_2s_AsReturns,
-// interface_2s_AsIndirectReturns,
- interface_2s_AsParameters,
-// interface_2s_AsIndirectParameters,
- interface_2s_AsDataTypes
-};
-
-enum E_2s_of_Struct
-{
- struct_2s_Derivations,
- struct_2s_SynonymTypedefs,
-// struct_2s_UsingTypedefs,
- struct_2s_AsReturns,
-// struct_2s_AsIndirectReturns,
- struct_2s_AsParameters,
-// struct_2s_AsIndirectParameters,
- struct_2s_AsDataTypes
-};
-
-enum E_2s_of_Enum
-{
- enum_2s_SynonymTypedefs,
-// enum_2s_UsingTypedefs,
- enum_2s_AsReturns,
-// enum_2s_AsIndirectReturns,
- enum_2s_AsParameters,
-// enum_2s_AsIndirectParameters,
- enum_2s_AsDataTypes
-};
-
-enum E_2s_of_Typedef
-{
- typedef_2s_SynonymTypedefs,
-// typedef_2s_UsingTypedefs,
- typedef_2s_AsReturns,
-// typedef_2s_AsIndirectReturns,
- typedef_2s_AsParameters,
-// typedef_2s_AsIndirectParameters,
- typedef_2s_AsDataTypes
-};
-
-enum E_2s_of_Exceptions
-{
- exception_2s_Derivations,
- exception_2s_RaisingFunctions
-};
-
-
-
-class SPInst_asHost : public csv::ProcessorIfc,
- public csv::ConstProcessor<Service>,
- public csv::ConstProcessor<Interface>,
- public csv::ConstProcessor<Struct>,
- public csv::ConstProcessor<Exception>,
- public csv::ConstProcessor<Typedef>,
- public csv::ConstProcessor<Singleton>,
- public csv::ConstProcessor<Function>,
- public csv::ConstProcessor<StructElement>,
- public csv::ConstProcessor<Property>,
- public csv::ConstProcessor<SglIfcService>,
- public csv::ConstProcessor<SglIfcSingleton>
-{
-};
-
-
-
-
-/** This class scans the parsed data and produces several
- secondary data like cross references and alphabetical indices.
-
- In this declaration "Secondaries" or "2s" mean those secondary data.
-
- @see Ce_2s
-*/
-class SecondariesCalculator : public SPInst_asHost
-{
- public:
- // LIFECYCLE
- SecondariesCalculator(
- CeAdmin & i_ces,
- TypeAdmin & i_types );
- virtual ~SecondariesCalculator();
-
- // OPERATIONS
- void CheckAllInterfaceBases();
- void Connect_Types2Ces();
- void Gather_CrossReferences();
- void Make_Links2DeveloperManual(
- const String & i_devman_reffilepath );
-
- private:
- // Interface CeHost These are the points to gather cross
- // references:
- virtual void do_Process(
- const Service & i_rData );
- virtual void do_Process(
- const Interface & i_rData );
- virtual void do_Process(
- const Struct & i_rData );
- virtual void do_Process(
- const Exception & i_rData );
- virtual void do_Process(
- const Typedef & i_rData );
- virtual void do_Process(
- const Singleton & i_rData );
- virtual void do_Process(
- const Function & i_rData );
- virtual void do_Process(
- const StructElement &
- i_rData );
- virtual void do_Process(
- const Property & i_rData );
- virtual void do_Process(
- const SglIfcService &
- i_rData );
- virtual void do_Process(
- const SglIfcSingleton &
- i_rData );
-
- // Locals
- const Ce_Storage & my_CeStorage() const;
- const Type_Storage &
- my_TypeStorage() const;
- Ce_Storage & my_CeStorage();
- Type_Storage & my_TypeStorage();
-
- template <class DEST>
- DEST * SearchCe4Type(
- Type_id i_type );
- Ce_id lhf_Search_CeForType(
- const ExplicitType &
- i_rType ) const;
- Ce_id lhf_Search_CeFromTypeId(
- Type_id i_nType ) const;
- Service * lhf_SearchService(
- Type_id i_nServ );
- Interface * lhf_SearchInterface(
- Type_id i_nIfc );
- Struct * lhf_SearchStruct(
- Type_id i_nIfc );
- Exception * lhf_SearchException(
- Type_id i_nIfc );
- void assign_CurLink(
- char * i_text,
- const String & i_link,
- const String & i_linkUI,
- bool i_isDescr, /// @descr true: description, false: reference.
- int i_lineCount );
- void gather_Synonyms();
- void recursive_AssignAsSynonym(
- Ce_id i_synonymousTypedefsId,
- const Typedef & i_TypedefToCheck );
- void recursive_AssignIncludingService(
- Ce_id i_includingServicesId,
- const Service & i_ServiceToCheckItsIncludes );
- void assign_AsDerivedInterface(
- const Interface & i_rDerived );
- void assign_AsDerivedStruct(
- const Struct & i_rDerived );
- void assign_AsDerivedException(
- const Exception & i_rDerived );
- void assignImplementation_toAServicesInterfaces(
- Ce_id i_nImpl,
- Ce_id i_nService,
- E_2s_of_Interface i_eList );
- void recursive_AssignImplementation_toExportedInterface(
- Ce_id i_nService,
- Type_id i_nExportedInterface,
- E_2s_of_Interface i_eList );
- void recursive_AssignFunction_toCeAsReturn(
- Ce_id i_nFunction,
- Type_id i_nReturnType );
- void recursive_AssignFunction_toCeAsParameter(
- Ce_id i_nFunction,
- Type_id i_nParameterType );
-
- /** @param i_nDataElement
- May be the ID of an struct element as well as an exception element
- or a property.
- */
- void recursive_AssignStructElement_toCeAsDataType(
- Ce_id i_nDataElement,
- Type_id i_nDataType );
- void insert_into2sList(
- CodeEntity & o_out,
- int i_listIndex,
- Ce_id i_nCe );
- void insert_into2sUnique(
- CodeEntity & o_out,
- int i_listIndex,
- Ce_id i_nCe );
- /// Sorts secondary production lists alphabetical.
- void sort_All2s();
-
- void Read_Links2DevManual(
- csv::bstream & i_file );
-
- // DATA
- CeAdmin * pCes;
- TypeAdmin * pTypes;
-};
-
-
-
-
-} // namespace idl
-} // namespace ary
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/ary/idl/i_attribute.cxx b/autodoc/source/ary/idl/i_attribute.cxx
deleted file mode 100644
index 774c3694845b..000000000000
--- a/autodoc/source/ary/idl/i_attribute.cxx
+++ /dev/null
@@ -1,153 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <ary/idl/i_attribute.hxx>
-#include <ary/idl/ik_attribute.hxx>
-
-
-// NOT FULLY DECLARED SERVICES
-#include <cosv/tpl/processor.hxx>
-#include <ary/getncast.hxx>
-#include <sci_impl.hxx>
-
-
-namespace ary
-{
-namespace idl
-{
-
-
-Attribute::Attribute( const String & i_sName,
- Ce_id i_nService,
- Ce_id i_nModule,
- Type_id i_nType,
- bool i_bReadonly,
- bool i_bBound )
- : sName(i_sName),
- nOwner(i_nService),
- nNameRoom(i_nModule),
- nType(i_nType),
- aGetExceptions(),
- aSetExceptions(),
- bReadonly(i_bReadonly),
- bBound(i_bBound)
-{
-}
-
-Attribute::~Attribute()
-{
-}
-
-
-void
-Attribute::do_Accept(csv::ProcessorIfc & io_processor) const
-{
- csv::CheckedCall(io_processor,*this);
-}
-
-ClassId
-Attribute::get_AryClass() const
-{
- return class_id;
-}
-
-const String &
-Attribute::inq_LocalName() const
-{
- return sName;
-}
-
-Ce_id
-Attribute::inq_NameRoom() const
-{
- return nNameRoom;
-}
-
-Ce_id
-Attribute::inq_Owner() const
-{
- return nOwner;
-}
-
-E_SightLevel
-Attribute::inq_SightLevel() const
-{
- return sl_Member;
-}
-
-namespace ifc_attribute
-{
-
-inline const Attribute &
-attribute_cast( const CodeEntity & i_ce )
-{
- csv_assert( is_type<Attribute>(i_ce) );
- return static_cast< const Attribute& >(i_ce);
-}
-
-bool
-attr::HasAnyStereotype( const CodeEntity & i_ce )
-{
- const Attribute & rAttr = attribute_cast(i_ce);
- return rAttr.bReadonly OR rAttr.bBound;
-}
-
-bool
-attr::IsReadOnly( const CodeEntity & i_ce )
-{
- return attribute_cast(i_ce).bReadonly;
-}
-
-bool
-attr::IsBound( const CodeEntity & i_ce )
-{
- return attribute_cast(i_ce).bBound;
-}
-
-Type_id
-attr::Type( const CodeEntity & i_ce )
-{
- return attribute_cast(i_ce).nType;
-}
-
-void
-attr::Get_GetExceptions( Dyn_TypeIterator & o_result,
- const CodeEntity & i_ce )
-{
- o_result
- = new SCI_Vector<Type_id>( attribute_cast(i_ce).aGetExceptions );
-}
-
-void
-attr::Get_SetExceptions( Dyn_TypeIterator & o_result,
- const CodeEntity & i_ce )
-{
- o_result
- = new SCI_Vector<Type_id>( attribute_cast(i_ce).aSetExceptions );
-}
-
-
-} // namespace ifc_attribute
-
-
-} // namespace idl
-} // namespace ary
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/ary/idl/i_ce.cxx b/autodoc/source/ary/idl/i_ce.cxx
deleted file mode 100644
index a1076a355f0a..000000000000
--- a/autodoc/source/ary/idl/i_ce.cxx
+++ /dev/null
@@ -1,62 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <ary/idl/i_ce.hxx>
-
-
-// NOT FULLY DEFINED SERVICES
-#include <ary/doc/d_oldidldocu.hxx>
-#include <ary/getncast.hxx>
-
-
-namespace ary
-{
-namespace idl
-{
-
-CodeEntity::CodeEntity()
- : aDocu(),
- p2s(0)
-{
-}
-
-CodeEntity::~CodeEntity()
-{
-}
-
-const Ce_2s &
-CodeEntity::Secondaries() const
-{
- return const_cast<CodeEntity*>(this)->Secondaries();
-}
-
-Ce_2s &
-CodeEntity::Secondaries()
-{
- if (p2s)
- return *p2s;
- p2s = Ce_2s::Create_();
- return *p2s;
-}
-
-} // namespace idl
-} // namespace ary
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/ary/idl/i_ce2s.cxx b/autodoc/source/ary/idl/i_ce2s.cxx
deleted file mode 100644
index d002cd2868bc..000000000000
--- a/autodoc/source/ary/idl/i_ce2s.cxx
+++ /dev/null
@@ -1,78 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <ary/idl/i_ce.hxx>
-
-
-// NOT FULLY DEFINED SERVICES
-#include <cosv/tpl/tpltools.hxx>
-#include <ary/doc/d_oldidldocu.hxx>
-#include <ary/getncast.hxx>
-
-
-namespace ary
-{
-namespace idl
-{
-
-namespace
-{
-const std::vector<Ce_id> C_sNullVector_Ce_ids;
-}
-
-
-Ce_2s::~Ce_2s()
-{
- csv::erase_container_of_heap_ptrs(aXrefLists);
-}
-
-DYN Ce_2s *
-Ce_2s::Create_()
-{
- return new Ce_2s;
-}
-
-
-std::vector<Ce_id> &
-Ce_2s::Access_List( int i_indexOfList )
-{
- csv_assert(i_indexOfList >= 0 AND i_indexOfList < 1000);
-
- while (i_indexOfList >= (int) aXrefLists.size())
- {
- aXrefLists.push_back(new std::vector<Ce_id>);
- }
- return *aXrefLists[i_indexOfList];
-}
-
-const std::vector<Ce_id> &
-Ce_2s::List( int i_indexOfList ) const
-{
- if (uintt(i_indexOfList) < aXrefLists.size())
- return *aXrefLists[i_indexOfList];
- else
- return C_sNullVector_Ce_ids;
-}
-
-
-} // namespace idl
-} // namespace ary
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/ary/idl/i_comrela.cxx b/autodoc/source/ary/idl/i_comrela.cxx
deleted file mode 100644
index 337676b99630..000000000000
--- a/autodoc/source/ary/idl/i_comrela.cxx
+++ /dev/null
@@ -1,41 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <ary/idl/i_comrela.hxx>
-
-
-// NOT FULLY DEFINED SERVICES
-#include <ary/ary.hxx>
-#include <ary/idl/i_gate.hxx>
-#include <ary/idl/ip_ce.hxx>
-#include <ary/idl/ip_type.hxx>
-
-
-namespace ary
-{
-namespace idl
-{
-
-// KORR_FUTURE Currently unneeded file. May become useful later.
-
-} // namespace idl
-} // namespace ary
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/ary/idl/i_constant.cxx b/autodoc/source/ary/idl/i_constant.cxx
deleted file mode 100644
index edef2aece14c..000000000000
--- a/autodoc/source/ary/idl/i_constant.cxx
+++ /dev/null
@@ -1,117 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <ary/idl/i_constant.hxx>
-
-
-// NOT FULLY DECLARED SERVICES
-#include <cosv/tpl/processor.hxx>
-#include <ary/idl/ik_constant.hxx>
-
-
-namespace ary
-{
-namespace idl
-{
-
-Constant::Constant( const String & i_sName,
- Ce_id i_nOwner,
- Ce_id i_nNameRoom,
- Type_id i_nType,
- const String & i_sInitValue )
- : sName(i_sName),
- nNameRoom(i_nNameRoom),
- nOwner(i_nOwner),
- nType(i_nType),
- sInitValue(i_sInitValue)
-{
-}
-
-Constant::~Constant()
-{
-}
-
-void
-Constant::do_Accept( csv::ProcessorIfc & io_processor ) const
-{
- csv::CheckedCall(io_processor, *this);
-}
-
-
-ClassId
-Constant::get_AryClass() const
-{
- return class_id;
-}
-
-const String &
-Constant::inq_LocalName() const
-{
- return sName;
-}
-
-Ce_id
-Constant::inq_NameRoom() const
-{
- return nNameRoom;
-}
-
-Ce_id
-Constant::inq_Owner() const
-{
- return nOwner;
-}
-
-E_SightLevel
-Constant::inq_SightLevel() const
-{
- return sl_Member;
-}
-
-
-namespace ifc_constant
-{
-
-inline const Constant &
-constant_cast( const CodeEntity & i_ce )
-{
- csv_assert( i_ce.AryClass() == Constant::class_id );
- return static_cast< const Constant& >(i_ce);
-}
-
-Type_id
-attr::Type( const CodeEntity & i_ce )
-{
- return constant_cast(i_ce).nType;
-}
-
-const String &
-attr::Value( const CodeEntity & i_ce )
-{
- return constant_cast(i_ce).sInitValue;
-}
-
-} // namespace ifc_constant
-
-
-} // namespace idl
-} // namespace ary
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/ary/idl/i_constgroup.cxx b/autodoc/source/ary/idl/i_constgroup.cxx
deleted file mode 100644
index 2e3ec84d2ceb..000000000000
--- a/autodoc/source/ary/idl/i_constgroup.cxx
+++ /dev/null
@@ -1,108 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <ary/idl/i_constgroup.hxx>
-#include <ary/idl/ik_constgroup.hxx>
-
-
-// NOT FULLY DECLARED SERVICES
-#include <cosv/tpl/processor.hxx>
-#include <sci_impl.hxx>
-
-
-namespace ary
-{
-namespace idl
-{
-
-
-ConstantsGroup::ConstantsGroup( const String & i_sName,
- Ce_id i_nModule )
- : sName(i_sName),
- nModule(i_nModule),
- aConstants()
-{
-}
-
-ConstantsGroup::~ConstantsGroup()
-{
-}
-
-void
-ConstantsGroup::do_Accept( csv::ProcessorIfc & io_processor ) const
-{
- csv::CheckedCall(io_processor, *this);
-}
-
-ClassId
-ConstantsGroup::get_AryClass() const
-{
- return class_id;
-}
-
-const String &
-ConstantsGroup::inq_LocalName() const
-{
- return sName;
-}
-
-Ce_id
-ConstantsGroup::inq_NameRoom() const
-{
- return nModule;
-}
-
-Ce_id
-ConstantsGroup::inq_Owner() const
-{
- return nModule;
-}
-
-E_SightLevel
-ConstantsGroup::inq_SightLevel() const
-{
- return sl_File;
-}
-
-
-namespace ifc_constgroup
-{
-
-inline const ConstantsGroup &
-constgroup_cast( const CodeEntity & i_ce )
-{
- csv_assert( i_ce.AryClass() == ConstantsGroup::class_id );
- return static_cast< const ConstantsGroup& >(i_ce);
-}
-
-void
-attr::Get_Constants( Dyn_CeIterator & o_result,
- const CodeEntity & i_ce )
-{
- o_result = new SCI_Vector<Ce_id>(constgroup_cast(i_ce).aConstants);
-}
-
-} // namespace ifc_constgroup
-
-
-} // namespace idl
-} // namespace ary
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/ary/idl/i_enum.cxx b/autodoc/source/ary/idl/i_enum.cxx
deleted file mode 100644
index eb33ac7aee53..000000000000
--- a/autodoc/source/ary/idl/i_enum.cxx
+++ /dev/null
@@ -1,137 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <ary/idl/i_enum.hxx>
-#include <ary/idl/ik_enum.hxx>
-
-
-// NOT FULLY DECLARED SERVICES
-#include <cosv/tpl/processor.hxx>
-#include <sci_impl.hxx>
-#include "i2s_calculator.hxx"
-
-
-namespace ary
-{
-namespace idl
-{
-
-Enum::Enum( const String & i_sName,
- Ce_id i_nOwner )
- : sName(i_sName),
- nOwner(i_nOwner),
- aValues()
-{
-}
-
-Enum::~Enum()
-{
-}
-
-void
-Enum::do_Accept( csv::ProcessorIfc & io_processor ) const
-{
- csv::CheckedCall(io_processor, *this);
-}
-
-ClassId
-Enum::get_AryClass() const
-{
- return class_id;
-}
-
-const String &
-Enum::inq_LocalName() const
-{
- return sName;
-}
-
-Ce_id
-Enum::inq_NameRoom() const
-{
- return nOwner;
-}
-
-Ce_id
-Enum::inq_Owner() const
-{
- return nOwner;
-}
-
-E_SightLevel
-Enum::inq_SightLevel() const
-{
- return sl_File;
-}
-
-
-namespace ifc_enum
-{
-
-inline const Enum &
-enum_cast( const CodeEntity & i_ce )
-{
- csv_assert( i_ce.AryClass() == Enum::class_id );
- return static_cast< const Enum& >(i_ce);
-}
-
-void
-attr::Get_Values( Dyn_CeIterator & o_result,
- const CodeEntity & i_ce )
-{
- o_result = new SCI_Vector<Ce_id>(enum_cast(i_ce).aValues);
-}
-
-
-void
-xref::Get_SynonymTypedefs( Dyn_CeIterator & o_result,
- const CodeEntity & i_ce )
-{
- o_result = new SCI_Vector<Ce_id>(i_ce.Secondaries().List(enum_2s_SynonymTypedefs));
-}
-
-void
-xref::Get_AsReturns( Dyn_CeIterator & o_result,
- const CodeEntity & i_ce )
-{
- o_result = new SCI_Vector<Ce_id>(i_ce.Secondaries().List(enum_2s_AsReturns));
-}
-
-void
-xref::Get_AsParameters( Dyn_CeIterator & o_result,
- const CodeEntity & i_ce )
-{
- o_result = new SCI_Vector<Ce_id>(i_ce.Secondaries().List(enum_2s_AsParameters));
-}
-
-void
-xref::Get_AsDataTypes( Dyn_CeIterator & o_result,
- const CodeEntity & i_ce )
-{
- o_result = new SCI_Vector<Ce_id>(i_ce.Secondaries().List(enum_2s_AsDataTypes));
-}
-
-} // namespace ifc_enum
-
-
-} // namespace idl
-} // namespace ary
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/ary/idl/i_enumvalue.cxx b/autodoc/source/ary/idl/i_enumvalue.cxx
deleted file mode 100644
index 795c743c723f..000000000000
--- a/autodoc/source/ary/idl/i_enumvalue.cxx
+++ /dev/null
@@ -1,110 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <ary/idl/i_enumvalue.hxx>
-
-
-// NOT FULLY DECLARED SERVICES
-#include <cosv/tpl/processor.hxx>
-#include <ary/idl/ik_enumvalue.hxx>
-
-
-namespace ary
-{
-namespace idl
-{
-
-EnumValue::EnumValue( const String & i_sName,
- Ce_id i_nOwner,
- Ce_id i_nNameRoom,
- const String & i_sInitValue )
- : sName(i_sName),
- nOwner(i_nOwner),
- nNameRoom(i_nNameRoom),
- sValue(i_sInitValue)
-{
-}
-
-EnumValue::~EnumValue()
-{
-}
-
-void
-EnumValue::do_Accept( csv::ProcessorIfc & io_processor ) const
-{
- csv::CheckedCall(io_processor, *this);
-}
-
-ClassId
-EnumValue::get_AryClass() const
-{
- return class_id;
-}
-
-const String &
-EnumValue::inq_LocalName() const
-{
- return sName;
-}
-
-Ce_id
-EnumValue::inq_NameRoom() const
-{
- return nNameRoom;
-}
-
-Ce_id
-EnumValue::inq_Owner() const
-{
- return nOwner;
-}
-
-E_SightLevel
-EnumValue::inq_SightLevel() const
-{
- return sl_Member;
-}
-
-
-
-namespace ifc_enumvalue
-{
-
-inline const EnumValue &
-enumvalue_cast( const CodeEntity & i_ce )
-{
- csv_assert( i_ce.AryClass() == EnumValue::class_id );
- return static_cast< const EnumValue& >(i_ce);
-}
-
-const String &
-attr::Value( const CodeEntity & i_ce )
-{
- return enumvalue_cast(i_ce).sValue;
-}
-
-
-} // namespace ifc_enumvalue
-
-
-} // namespace idl
-} // namespace ary
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/ary/idl/i_exception.cxx b/autodoc/source/ary/idl/i_exception.cxx
deleted file mode 100644
index 234e0744ccd5..000000000000
--- a/autodoc/source/ary/idl/i_exception.cxx
+++ /dev/null
@@ -1,133 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <ary/idl/i_exception.hxx>
-#include <ary/idl/ik_exception.hxx>
-
-
-// NOT FULLY DECLARED SERVICES
-#include <cosv/tpl/processor.hxx>
-#include <sci_impl.hxx>
-#include "i2s_calculator.hxx"
-
-
-
-namespace ary
-{
-namespace idl
-{
-
-Exception::Exception( const String & i_sName,
- Ce_id i_nOwner,
- Type_id i_nBase )
- : sName(i_sName),
- nOwner(i_nOwner),
- nBase(i_nBase),
- aElements()
-{
-}
-
-Exception::~Exception()
-{
-}
-
-void
-Exception::do_Accept( csv::ProcessorIfc & io_processor ) const
-{
- csv::CheckedCall(io_processor, *this);
-}
-
-ClassId
-Exception::get_AryClass() const
-{
- return class_id;
-}
-
-const String &
-Exception::inq_LocalName() const
-{
- return sName;
-}
-
-Ce_id
-Exception::inq_NameRoom() const
-{
- return nOwner;
-}
-
-Ce_id
-Exception::inq_Owner() const
-{
- return nOwner;
-}
-
-E_SightLevel
-Exception::inq_SightLevel() const
-{
- return sl_File;
-}
-
-
-namespace ifc_exception
-{
-
-inline const Exception &
-exception_cast( const CodeEntity & i_ce )
-{
- csv_assert( i_ce.AryClass() == Exception::class_id );
- return static_cast< const Exception& >(i_ce);
-}
-
-Type_id
-attr::Base( const CodeEntity & i_ce )
-{
- return exception_cast(i_ce).nBase;
-}
-
-void
-attr::Get_Elements( Dyn_CeIterator & o_result,
- const CodeEntity & i_ce )
-{
- o_result = new SCI_Vector<Ce_id>( exception_cast(i_ce).aElements );
-}
-
-
-void
-xref::Get_Derivations( Dyn_CeIterator & o_result,
- const CodeEntity & i_ce )
-{
- o_result = new SCI_Vector<Ce_id>(i_ce.Secondaries().List(exception_2s_Derivations));
-}
-
-void
-xref::Get_RaisingFunctions( Dyn_CeIterator & o_result,
- const CodeEntity & i_ce )
-{
- o_result = new SCI_Vector<Ce_id>(i_ce.Secondaries().List(exception_2s_RaisingFunctions));
-}
-
-
-} // namespace ifc_exception
-
-
-} // namespace idl
-} // namespace ary
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/ary/idl/i_function.cxx b/autodoc/source/ary/idl/i_function.cxx
deleted file mode 100644
index 084b91ecbad1..000000000000
--- a/autodoc/source/ary/idl/i_function.cxx
+++ /dev/null
@@ -1,159 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <ary/idl/i_function.hxx>
-
-
-// NOT FULLY DECLARED SERVICES
-#include <cosv/tpl/processor.hxx>
-#include <sci_impl.hxx>
-
-
-
-namespace ary
-{
-namespace idl
-{
-
-Function::Function( const String & i_sName,
- Ce_id i_nOwner,
- Ce_id i_nNameRoom,
- Type_id i_nReturnType,
- bool i_bOneWay )
- : sName(i_sName),
- nOwner(i_nOwner),
- nNameRoom(i_nNameRoom),
- nReturnType(i_nReturnType),
- aParameters(),
- aExceptions(),
- bOneWay(i_bOneWay),
- bEllipse(false)
-{
-}
-
-Function::Function( const String & i_sName,
- Ce_id i_nOwner,
- Ce_id i_nNameRoom )
- : sName(i_sName),
- nOwner(i_nOwner),
- nNameRoom(i_nNameRoom),
- nReturnType(0),
- aParameters(),
- aExceptions(),
- bOneWay(false),
- bEllipse(false)
-{
-}
-
-Function::~Function()
-{
-}
-
-void
-Function::do_Accept( csv::ProcessorIfc & io_processor ) const
-{
- csv::CheckedCall(io_processor, *this);
-}
-
-ClassId
-Function::get_AryClass() const
-{
- return class_id;
-}
-
-const String &
-Function::inq_LocalName() const
-{
- return sName;
-}
-
-Ce_id
-Function::inq_NameRoom() const
-{
- return nNameRoom;
-}
-
-Ce_id
-Function::inq_Owner() const
-{
- return nOwner;
-}
-
-E_SightLevel
-Function::inq_SightLevel() const
-{
- return sl_Member;
-}
-
-
-namespace ifc_function
-{
-
-inline const Function &
-function_cast( const CodeEntity & i_ce )
-{
- csv_assert( i_ce.AryClass() == Function::class_id );
- return static_cast< const Function& >(i_ce);
-}
-
-Type_id
-attr::ReturnType( const CodeEntity & i_ce )
-{
- return function_cast(i_ce).nReturnType;
-}
-
-bool
-attr::IsOneway( const CodeEntity & i_ce )
-{
- return function_cast(i_ce).bOneWay;
-}
-
-bool
-attr::HasEllipse( const CodeEntity & i_ce )
-{
- return function_cast(i_ce).bEllipse;
-}
-
-void
-attr::Get_Parameters( Dyn_StdConstIterator<ary::idl::Parameter> & o_result,
- const CodeEntity & i_ce )
-{
- o_result
- = new SCI_Vector<Parameter>( function_cast(i_ce).aParameters );
-}
-
-void
-attr::Get_Exceptions( Dyn_TypeIterator & o_result,
- const CodeEntity & i_ce )
-{
- o_result
- = new SCI_Vector<Type_id>( function_cast(i_ce).aExceptions );
-}
-
-
-
-
-
-} // namespace ifc_function
-
-} // namespace idl
-} // namespace ary
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/ary/idl/i_interface.cxx b/autodoc/source/ary/idl/i_interface.cxx
deleted file mode 100644
index 6c74fe95d2fb..000000000000
--- a/autodoc/source/ary/idl/i_interface.cxx
+++ /dev/null
@@ -1,190 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <ary/idl/i_interface.hxx>
-
-
-// NOT FULLY DECLARED SERVICES
-#include <cosv/tpl/processor.hxx>
-#include <ary/idl/ik_interface.hxx>
-#include <ary/doc/d_oldidldocu.hxx>
-#include <sci_impl.hxx>
-#include "i2s_calculator.hxx"
-
-
-namespace ary
-{
-namespace idl
-{
-
-
-class Interface_2s
-{
-};
-
-
-Interface::Interface( const String & i_sName,
- Ce_id i_nOwner )
- : sName(i_sName),
- nOwner(i_nOwner),
- aBases(),
- aFunctions(),
- aAttributes(),
- p2s()
-{
-}
-
-Interface::~Interface()
-{
- for ( RelationList::iterator it = aBases.begin();
- it != aBases.end();
- ++it )
- {
- delete (*it).Info();
- }
-}
-
-void
-Interface::do_Accept( csv::ProcessorIfc & io_processor ) const
-{
- csv::CheckedCall(io_processor, *this);
-}
-
-ClassId
-Interface::get_AryClass() const
-{
- return class_id;
-}
-
-const String &
-Interface::inq_LocalName() const
-{
- return sName;
-}
-
-Ce_id
-Interface::inq_NameRoom() const
-{
- return nOwner;
-}
-
-Ce_id
-Interface::inq_Owner() const
-{
- return nOwner;
-}
-
-E_SightLevel
-Interface::inq_SightLevel() const
-{
- return sl_File;
-}
-
-
-namespace ifc_interface
-{
-
-inline const Interface &
-interface_cast( const CodeEntity & i_ce )
-{
- csv_assert( i_ce.AryClass() == Interface::class_id );
- return static_cast< const Interface& >(i_ce);
-}
-
-void
-attr::Get_Bases( Dyn_StdConstIterator<CommentedRelation> & o_result,
- const CodeEntity & i_ce )
-{
- o_result = new SCI_Vector<CommentedRelation>(interface_cast(i_ce).aBases);
-}
-
-void
-attr::Get_Functions( Dyn_CeIterator & o_result,
- const CodeEntity & i_ce )
-{
- o_result = new SCI_Vector<Ce_id>(interface_cast(i_ce).aFunctions);
-}
-
-void
-attr::Get_Attributes( Dyn_CeIterator & o_result,
- const CodeEntity & i_ce )
-{
- o_result = new SCI_Vector<Ce_id>(interface_cast(i_ce).aAttributes);
-}
-
-void
-xref::Get_Derivations( Dyn_CeIterator & o_result,
- const CodeEntity & i_ce )
-{
- o_result = new SCI_Vector<Ce_id>(i_ce.Secondaries().List(interface_2s_Derivations));
-}
-
-void
-xref::Get_SynonymTypedefs( Dyn_CeIterator & o_result,
- const CodeEntity & i_ce )
-{
- o_result = new SCI_Vector<Ce_id>(i_ce.Secondaries().List(interface_2s_SynonymTypedefs));
-}
-
-void
-xref::Get_ExportingServices( Dyn_CeIterator & o_result,
- const CodeEntity & i_ce )
-{
- o_result = new SCI_Vector<Ce_id>(i_ce.Secondaries().List(interface_2s_ExportingServices));
-}
-
-void
-xref::Get_ExportingSingletons( Dyn_CeIterator & o_result,
- const CodeEntity & i_ce )
-{
- o_result = new SCI_Vector<Ce_id>(i_ce.Secondaries().List(interface_2s_ExportingSingletons));
-}
-
-void
-xref::Get_AsReturns( Dyn_CeIterator & o_result,
- const CodeEntity & i_ce )
-{
- o_result = new SCI_Vector<Ce_id>(i_ce.Secondaries().List(interface_2s_AsReturns));
-}
-
-void
-xref::Get_AsParameters( Dyn_CeIterator & o_result,
- const CodeEntity & i_ce )
-{
- o_result = new SCI_Vector<Ce_id>(i_ce.Secondaries().List(interface_2s_AsParameters));
-}
-
-void
-xref::Get_AsDataTypes( Dyn_CeIterator & o_result,
- const CodeEntity & i_ce )
-{
- o_result = new SCI_Vector<Ce_id>(i_ce.Secondaries().List(interface_2s_AsDataTypes));
-}
-
-
-
-
-} // namespace ifc_interface
-
-
-} // namespace idl
-} // namespace ary
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/ary/idl/i_module.cxx b/autodoc/source/ary/idl/i_module.cxx
deleted file mode 100644
index a6a7b871b377..000000000000
--- a/autodoc/source/ary/idl/i_module.cxx
+++ /dev/null
@@ -1,197 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <ary/idl/i_module.hxx>
-#include <ary/idl/ik_module.hxx>
-
-// NOT FULLY DECLARED SERVICES
-#include <cosv/tpl/processor.hxx>
-#include <ary/idl/i_gate.hxx>
-#include <ary/idl/i_service.hxx>
-#include <ary/idl/i_interface.hxx>
-#include <ary/idl/i_struct.hxx>
-#include <ary/idl/i_exception.hxx>
-#include <ary/idl/i_enum.hxx>
-#include <ary/idl/i_typedef.hxx>
-#include <ary/idl/i_constgroup.hxx>
-#include <ary/idl/i_singleton.hxx>
-#include <ary/idl/i_siservice.hxx>
-#include <ary/idl/i_sisingleton.hxx>
-#include <ary/idl/ip_ce.hxx>
-#include <nametreenode.hxx>
-
-
-namespace ary
-{
-namespace idl
-{
-
-Module::Module()
- : pImpl( new NameTreeNode<Ce_id> )
-{
-}
-
-Module::Module( const String & i_sName,
- const Module & i_rParent )
- : pImpl( new NameTreeNode<Ce_id>( i_sName,
- *i_rParent.pImpl,
- i_rParent.CeId() ) )
-{
-}
-
-Module::~Module()
-{
-}
-
-void
-Module::Add_Name( const String & i_sName,
- Ce_id i_nCodeEntity )
-{
- pImpl->Add_Name(i_sName, i_nCodeEntity);
-}
-
-Ce_id
-Module::Search_Name( const String & i_sName ) const
-{
- return pImpl->Search_Name(i_sName);
-}
-
-void
-Module::Get_Names( Dyn_StdConstIterator<Ce_id> & o_rResult ) const
-{
- pImpl->Get_Names( o_rResult );
-}
-
-void
-Module::do_Accept( csv::ProcessorIfc & io_processor ) const
-{
- csv::CheckedCall(io_processor, *this);
-}
-
-ClassId
-Module::get_AryClass() const
-{
- return class_id;
-}
-
-const String &
-Module::inq_LocalName() const
-{
- return pImpl->Name();
-}
-
-Ce_id
-Module::inq_NameRoom() const
-{
- return pImpl->Parent();
-}
-
-Ce_id
-Module::inq_Owner() const
-{
- return pImpl->Parent();
-}
-
-E_SightLevel
-Module::inq_SightLevel() const
-{
- return sl_Module;
-}
-
-
-namespace ifc_module
-{
-
-inline const Module &
-module_cast( const CodeEntity & i_ce )
-{
- csv_assert( i_ce.AryClass() == Module::class_id );
- return static_cast< const Module& >(i_ce);
-}
-
-typedef NameTreeNode<Ce_id>::Map_LocalNames NameMap;
-
-void
-attr::Get_AllChildrenSeparated( std::vector< const CodeEntity* > & o_nestedModules,
- std::vector< const CodeEntity* > & o_services,
- std::vector< const CodeEntity* > & o_interfaces,
- std::vector< const CodeEntity* > & o_structs,
- std::vector< const CodeEntity* > & o_exceptions,
- std::vector< const CodeEntity* > & o_enums,
- std::vector< const CodeEntity* > & o_typedefs,
- std::vector< const CodeEntity* > & o_constantGroups,
- std::vector< const CodeEntity* > & o_singletons,
- const CePilot & i_pilot,
- const CodeEntity & i_ce )
-{
- const CodeEntity *
- pCe = 0;
- NameMap::const_iterator
- itEnd = module_cast(i_ce).pImpl->LocalNames().end();
- for ( NameMap::const_iterator
- it = module_cast(i_ce).pImpl->LocalNames().begin();
- it != itEnd;
- ++it )
- {
- pCe = &i_pilot.Find_Ce( (*it).second );
- switch (pCe->AryClass())
- {
- case Module::class_id:
- o_nestedModules.push_back(pCe);
- break;
- case SglIfcService::class_id:
- case Service::class_id:
- o_services.push_back(pCe);
- break;
- case Interface::class_id:
- o_interfaces.push_back(pCe);
- break;
- case Struct::class_id:
- o_structs.push_back(pCe);
- break;
- case Exception::class_id:
- o_exceptions.push_back(pCe);
- break;
- case Enum::class_id:
- o_enums.push_back(pCe);
- break;
- case Typedef::class_id:
- o_typedefs.push_back(pCe);
- break;
- case ConstantsGroup::class_id:
- o_constantGroups.push_back(pCe);
- break;
- case SglIfcSingleton::class_id:
- case Singleton::class_id:
- o_singletons.push_back(pCe);
- break;
- }
- } // end for
-}
-
-
-} // namespace ifc_module
-
-
-
-} // namespace idl
-} // namespace ary
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/ary/idl/i_namelookup.cxx b/autodoc/source/ary/idl/i_namelookup.cxx
deleted file mode 100644
index 9a4db34bd290..000000000000
--- a/autodoc/source/ary/idl/i_namelookup.cxx
+++ /dev/null
@@ -1,56 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <ary/idl/i_namelookup.hxx>
-
-// NOT FULLY DECLARED SERVICES
-#include <sci_impl.hxx>
-
-namespace ary
-{
-namespace idl
-{
-
-NameLookup::NameLookup()
- : aNames()
-{
-}
-
-NameLookup::~NameLookup()
-{
-}
-
-void
-NameLookup::Add_Name( const String & i_name,
- Ce_id i_id,
- ClassId i_class,
- Ce_id i_owner )
-{
- aNames.insert( std::pair< const String, NameProperties>(
- i_name,
- NameProperties( i_id,
- i_class,
- i_owner )));
-}
-
-} // namespace idl
-} // namespace ary
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/ary/idl/i_nnfinder.hxx b/autodoc/source/ary/idl/i_nnfinder.hxx
deleted file mode 100644
index e5239158ecd4..000000000000
--- a/autodoc/source/ary/idl/i_nnfinder.hxx
+++ /dev/null
@@ -1,112 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_IDL_NNFINDER_HXX
-#define ARY_IDL_NNFINDER_HXX
-
-// USED SERVICES
-#include "is_ce.hxx"
-
-
-
-
-namespace ary
-{
-namespace idl
-{
-
-
-/** Gives context info for tree search functions.
-
- @collab ->ary::Search_SubTree<>()
- @collab ->ary::Search_SubTree_UpTillRoot<>()
-*/
-class Find_ModuleNode
-{
- public:
- typedef Ce_id id_type;
- typedef StringVector::const_iterator name_iterator;
-
- // LIFECYCLE
- Find_ModuleNode(
- const Ce_Storage & i_rStorage,
- name_iterator it_begin,
- name_iterator it_end,
- const String & i_sName )
- : rStorage(i_rStorage),
- itBegin(it_begin),
- itEnd(it_end),
- sName2Search(i_sName) { if (itBegin != itEnd ? (*itBegin).empty() : false) ++itBegin; }
- // OPERATIONS
- const Module * operator()(
- id_type i_id ) const
- { return i_id.IsValid()
- ? & ary_cast<Module>(rStorage[i_id])
- : 0; }
-
- name_iterator Begin() const { return itBegin; }
- name_iterator End() const { return itEnd; }
- const String & Name2Search() const { return sName2Search; }
-
- private:
- // DATA
- const Ce_Storage & rStorage;
- name_iterator itBegin;
- name_iterator itEnd;
- String sName2Search;
-};
-
-
-
-
-class Types_forSetCe_Id
-{
- public:
- typedef Ce_id element_type;
- typedef Ce_Storage find_type;
-
- // KORR_FUTURE: Check, if this sorting is right or the ary standard
- // sorting should be used.
- struct sort_type
- {
- sort_type(
- const find_type & i_rFinder )
- : rFinder(i_rFinder) {}
- bool operator()(
- const element_type &
- i_r1,
- const element_type &
- i_r2 ) const
- {
- return rFinder[i_r1].LocalName()
- < rFinder[i_r2].LocalName();
- }
-
- private:
- const find_type & rFinder;
-
- };
-};
-
-
-} // namespace idl
-} // namespace ary
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/ary/idl/i_param.cxx b/autodoc/source/ary/idl/i_param.cxx
deleted file mode 100644
index 312652226758..000000000000
--- a/autodoc/source/ary/idl/i_param.cxx
+++ /dev/null
@@ -1,51 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <ary/idl/i_param.hxx>
-
-
-// NOT FULLY DEFINED SERVICES
-
-
-
-namespace ary
-{
-namespace idl
-{
-
-Parameter::Parameter( const String & i_sName,
- Type_id i_nType,
- E_ParameterDirection i_eDirection )
- : sName(i_sName),
- nType(i_nType),
- eDirection(i_eDirection)
-{
-}
-
-Parameter::~Parameter()
-{
-}
-
-
-
-} // namespace idl
-} // namespace ary
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/ary/idl/i_property.cxx b/autodoc/source/ary/idl/i_property.cxx
deleted file mode 100644
index dfbd0a277bbc..000000000000
--- a/autodoc/source/ary/idl/i_property.cxx
+++ /dev/null
@@ -1,165 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <ary/idl/i_property.hxx>
-#include <ary/idl/ik_property.hxx>
-
-
-// NOT FULLY DECLARED SERVICES
-#include <cosv/tpl/processor.hxx>
-
-
-namespace ary
-{
-namespace idl
-{
-
-
-Property::Property( const String & i_sName,
- Ce_id i_nService,
- Ce_id i_nModule,
- Type_id i_nType,
- Stereotypes i_stereotypes )
- : sName(i_sName),
- nOwner(i_nService),
- nNameRoom(i_nModule),
- nType(i_nType),
- aStereotypes(i_stereotypes)
-{
-}
-
-Property::~Property()
-{
-}
-
-
-void
-Property::do_Accept( csv::ProcessorIfc & io_processor ) const
-{
- csv::CheckedCall(io_processor, *this);
-}
-
-ClassId
-Property::get_AryClass() const
-{
- return class_id;
-}
-
-const String &
-Property::inq_LocalName() const
-{
- return sName;
-}
-
-Ce_id
-Property::inq_NameRoom() const
-{
- return nNameRoom;
-}
-
-Ce_id
-Property::inq_Owner() const
-{
- return nOwner;
-}
-
-E_SightLevel
-Property::inq_SightLevel() const
-{
- return sl_Member;
-}
-
-namespace ifc_property
-{
-
-inline const Property &
-property_cast( const CodeEntity & i_ce )
-{
- csv_assert( i_ce.AryClass() == Property::class_id );
- return static_cast< const Property& >(i_ce);
-}
-
-bool
-attr::HasAnyStereotype( const CodeEntity & i_ce )
-{
- return property_cast(i_ce).aStereotypes.HasAny();
-}
-
-bool
-attr::IsReadOnly( const CodeEntity & i_ce )
-{
- return property_cast(i_ce).aStereotypes.IsReadOnly();
-}
-
-bool
-attr::IsBound( const CodeEntity & i_ce )
-{
- return property_cast(i_ce).aStereotypes.IsBound();
-}
-
-bool
-attr::IsConstrained( const CodeEntity & i_ce )
-{
- return property_cast(i_ce).aStereotypes.IsConstrained();
-}
-
-bool
-attr::IsMayBeAmbiguous( const CodeEntity & i_ce )
-{
- return property_cast(i_ce).aStereotypes.IsMayBeAmbiguous();
-}
-
-bool
-attr::IsMayBeDefault( const CodeEntity & i_ce )
-{
- return property_cast(i_ce).aStereotypes.IsMayBeDefault();
-}
-
-bool
-attr::IsMayBeVoid( const CodeEntity & i_ce )
-{
- return property_cast(i_ce).aStereotypes.IsMayBeVoid();
-}
-
-bool
-attr::IsRemovable( const CodeEntity & i_ce )
-{
- return property_cast(i_ce).aStereotypes.IsRemovable();
-}
-
-bool
-attr::IsTransient( const CodeEntity & i_ce )
-{
- return property_cast(i_ce).aStereotypes.IsTransient();
-}
-
-Type_id
-attr::Type( const CodeEntity & i_ce )
-{
- return property_cast(i_ce).nType;
-}
-
-} // namespace ifc_property
-
-
-} // namespace idl
-} // namespace ary
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/ary/idl/i_reposypart.cxx b/autodoc/source/ary/idl/i_reposypart.cxx
deleted file mode 100644
index 62a7d51fdee0..000000000000
--- a/autodoc/source/ary/idl/i_reposypart.cxx
+++ /dev/null
@@ -1,112 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include "i_reposypart.hxx"
-
-
-// NOT FULLY DEFINED SERVICES
-#include <ary/idl/i_namelookup.hxx>
-#include <idl_internalgate.hxx>
-#include "ia_ce.hxx"
-#include "ia_type.hxx"
-#include "i2s_calculator.hxx"
-#include "is_ce.hxx"
-#include "is_type.hxx"
-
-
-
-
-namespace ary
-{
-namespace idl
-{
-
-
-DYN InternalGate &
-InternalGate::Create_Partition_()
-{
- return *new RepositoryPartition;
-}
-
-
-
-RepositoryPartition::RepositoryPartition()
- : pCes(0),
- pTypes(0),
- pNamesDictionary(new NameLookup)
-{
- pTypes = new TypeAdmin;
- pCes = new CeAdmin(*pNamesDictionary, *pTypes);
-}
-
-RepositoryPartition::~RepositoryPartition()
-{
-}
-
-void
-RepositoryPartition::Calculate_AllSecondaryInformation(
- const String & i_devman_reffilepath )
-{
- // KORR_FUTURE
- // Forward the options from here.
-
- SecondariesCalculator
- secalc(*pCes,*pTypes);
-
- secalc.CheckAllInterfaceBases();
- secalc.Connect_Types2Ces();
- secalc.Gather_CrossReferences();
-
- if ( NOT i_devman_reffilepath.empty() )
- {
- secalc.Make_Links2DeveloperManual(i_devman_reffilepath);
- }
-}
-
-const CePilot &
-RepositoryPartition::Ces() const
-{
- return *pCes;
-}
-
-const TypePilot &
-RepositoryPartition::Types() const
-{
- return *pTypes;
-}
-
-CePilot &
-RepositoryPartition::Ces()
-{
- return *pCes;
-}
-
-TypePilot &
-RepositoryPartition::Types()
-{
- return *pTypes;
-}
-
-
-
-} // namespace idl
-} // namespace ary
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/ary/idl/i_reposypart.hxx b/autodoc/source/ary/idl/i_reposypart.hxx
deleted file mode 100644
index 31c814836872..000000000000
--- a/autodoc/source/ary/idl/i_reposypart.hxx
+++ /dev/null
@@ -1,87 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_IDL_I_REPOSYPART_HXX
-#define ARY_IDL_I_REPOSYPART_HXX
-
-
-
-// USED SERVICES
- // BASE CLASSES
-#include <idl_internalgate.hxx>
- // OTHER
-
-
-namespace ary
-{
-namespace idl
-{
- class CeAdmin;
- class TypeAdmin;
- class NameLookup;
-}
-}
-
-
-
-
-
-namespace ary
-{
-namespace idl
-{
-
-
-
-/** The idl part of the Autodoc repository.
-*/
-class RepositoryPartition : public InternalGate
-{
- public:
- // LIFECYCLE
- RepositoryPartition();
- ~RepositoryPartition();
- // INHERITED
- // Interface Gate:
- virtual void Calculate_AllSecondaryInformation(
- const String & i_devman_reffilepath );
-// const ::autodoc::Options &
-// i_options );
- virtual const CePilot &
- Ces() const;
- virtual const TypePilot &
- Types() const;
- virtual CePilot & Ces();
- virtual TypePilot & Types();
-
- private:
- // DATA
- Dyn<CeAdmin> pCes;
- Dyn<TypeAdmin> pTypes;
- Dyn<NameLookup> pNamesDictionary;
-};
-
-
-
-
-} // namespace idl
-} // namespace ary
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/ary/idl/i_service.cxx b/autodoc/source/ary/idl/i_service.cxx
deleted file mode 100644
index a95375ed06d4..000000000000
--- a/autodoc/source/ary/idl/i_service.cxx
+++ /dev/null
@@ -1,165 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <ary/idl/i_service.hxx>
-
-
-// NOT FULLY DECLARED SERVICES
-#include <cosv/tpl/processor.hxx>
-#include <ary/idl/ik_service.hxx>
-#include <ary/doc/d_oldidldocu.hxx>
-#include <sci_impl.hxx>
-#include "i2s_calculator.hxx"
-
-
-namespace ary
-{
-namespace idl
-{
-
-Service::Service( const String & i_sName,
- Ce_id i_nOwner )
- : sName(i_sName),
- nOwner(i_nOwner),
- aIncludedServices(),
- aSupportedInterfaces(),
- aProperties()
-{
-}
-
-Service::~Service()
-{
- for ( RelationList::iterator it = aIncludedServices.begin();
- it != aIncludedServices.end();
- ++it )
- {
- delete (*it).Info();
- }
-
- for ( RelationList::iterator it = aSupportedInterfaces.begin();
- it != aSupportedInterfaces.end();
- ++it )
- {
- delete (*it).Info();
- }
-}
-
-void
-Service::Get_SupportedInterfaces( Dyn_StdConstIterator<CommentedRelation> & o_rResult ) const
-{
- o_rResult = new SCI_Vector<CommentedRelation>(aSupportedInterfaces);
-}
-
-void
-Service::Get_IncludedServices( Dyn_StdConstIterator<CommentedRelation> & o_rResult ) const
-{
- o_rResult = new SCI_Vector<CommentedRelation>(aIncludedServices);
-}
-
-void
-Service::do_Accept( csv::ProcessorIfc & io_processor ) const
-{
- csv::CheckedCall(io_processor, *this);
-}
-
-ClassId
-Service::get_AryClass() const
-{
- return class_id;
-}
-
-const String &
-Service::inq_LocalName() const
-{
- return sName;
-}
-
-Ce_id
-Service::inq_NameRoom() const
-{
- return nOwner;
-}
-
-Ce_id
-Service::inq_Owner() const
-{
- return nOwner;
-}
-
-E_SightLevel
-Service::inq_SightLevel() const
-{
- return sl_File;
-}
-
-
-namespace ifc_service
-{
-
-inline const Service &
-service_cast( const CodeEntity & i_ce )
-{
- csv_assert( i_ce.AryClass() == Service::class_id );
- return static_cast< const Service& >(i_ce);
-}
-
-void
-attr::Get_IncludedServices( Dyn_StdConstIterator<CommentedRelation> & o_result,
- const CodeEntity & i_ce )
-{
- o_result = new SCI_Vector<CommentedRelation>( service_cast(i_ce).aIncludedServices );
-}
-
-void
-attr::Get_ExportedInterfaces( Dyn_StdConstIterator<CommentedRelation> & o_result,
- const CodeEntity & i_ce )
-{
- o_result = new SCI_Vector<CommentedRelation>( service_cast(i_ce).aSupportedInterfaces );
-}
-
-void
-attr::Get_Properties( Dyn_CeIterator & o_result,
- const CodeEntity & i_ce )
-{
- o_result = new SCI_Vector<Ce_id>( service_cast(i_ce).aProperties );
-}
-
-void
-xref::Get_IncludingServices( Dyn_CeIterator & o_result,
- const CodeEntity & i_ce )
-{
- o_result = new SCI_Vector<Ce_id>(i_ce.Secondaries().List(service_2s_IncludingServices));
-}
-
-void
-xref::Get_InstantiatingSingletons( Dyn_CeIterator & o_result,
- const CodeEntity & i_ce )
-{
- o_result = new SCI_Vector<Ce_id>(i_ce.Secondaries().List(service_2s_InstantiatingSingletons));
-}
-
-
-} // namespace ifc_service
-
-
-} // namespace idl
-} // namespace ary
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/ary/idl/i_singleton.cxx b/autodoc/source/ary/idl/i_singleton.cxx
deleted file mode 100644
index 30489cc41d58..000000000000
--- a/autodoc/source/ary/idl/i_singleton.cxx
+++ /dev/null
@@ -1,106 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <ary/idl/i_singleton.hxx>
-
-
-// NOT FULLY DECLARED SERVICES
-#include <cosv/tpl/processor.hxx>
-#include <ary/idl/ik_singleton.hxx>
-#include <sci_impl.hxx>
-
-
-namespace ary
-{
-namespace idl
-{
-
-Singleton::Singleton( const String & i_sName,
- Ce_id i_nOwner )
- : sName(i_sName),
- nOwner(i_nOwner),
- nService()
-{
-}
-
-Singleton::~Singleton()
-{
-}
-
-void
-Singleton::do_Accept( csv::ProcessorIfc & io_processor ) const
-{
- csv::CheckedCall(io_processor, *this);
-}
-
-ClassId
-Singleton::get_AryClass() const
-{
- return class_id;
-}
-
-const String &
-Singleton::inq_LocalName() const
-{
- return sName;
-}
-
-Ce_id
-Singleton::inq_NameRoom() const
-{
- return nOwner;
-}
-
-Ce_id
-Singleton::inq_Owner() const
-{
- return nOwner;
-}
-
-E_SightLevel
-Singleton::inq_SightLevel() const
-{
- return sl_File;
-}
-
-
-namespace ifc_singleton
-{
-
-inline const Singleton &
-singleton_cast( const CodeEntity & i_ce )
-{
- csv_assert( i_ce.AryClass() == Singleton::class_id );
- return static_cast< const Singleton& >(i_ce);
-}
-
-Type_id
-attr::AssociatedService( const CodeEntity & i_ce )
-{
- return singleton_cast(i_ce).nService;
-}
-
-} // namespace ifc_singleton
-
-
-} // namespace idl
-} // namespace ary
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/ary/idl/i_siservice.cxx b/autodoc/source/ary/idl/i_siservice.cxx
deleted file mode 100644
index eb922b78137e..000000000000
--- a/autodoc/source/ary/idl/i_siservice.cxx
+++ /dev/null
@@ -1,115 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <ary/idl/i_siservice.hxx>
-#include <ary/idl/ik_siservice.hxx>
-
-
-// NOT FULLY DECLARED SERVICES
-#include <cosv/tpl/processor.hxx>
-#include <sci_impl.hxx>
-
-
-namespace ary
-{
-namespace idl
-{
-
-SglIfcService::SglIfcService( const String & i_sName,
- Ce_id i_nOwner,
- Type_id i_nBaseInterface )
- : sName(i_sName),
- nOwner(i_nOwner),
- nBaseInterface(i_nBaseInterface),
- aConstructors()
-{
-}
-
-SglIfcService::~SglIfcService()
-{
-}
-
-void
-SglIfcService::do_Accept( csv::ProcessorIfc & io_processor ) const
-{
- csv::CheckedCall(io_processor, *this);
-}
-
-ClassId
-SglIfcService::get_AryClass() const
-{
- return class_id;
-}
-
-const String &
-SglIfcService::inq_LocalName() const
-{
- return sName;
-}
-
-Ce_id
-SglIfcService::inq_NameRoom() const
-{
- return nOwner;
-}
-
-Ce_id
-SglIfcService::inq_Owner() const
-{
- return nOwner;
-}
-
-E_SightLevel
-SglIfcService::inq_SightLevel() const
-{
- return sl_File;
-}
-
-
-namespace ifc_sglifcservice
-{
-
-inline const SglIfcService &
-sglifcservice_cast( const CodeEntity & i_ce )
-{
- csv_assert( i_ce.AryClass() == SglIfcService::class_id );
- return static_cast< const SglIfcService& >(i_ce);
-}
-
-Type_id
-attr::BaseInterface( const CodeEntity & i_ce )
-{
- return sglifcservice_cast(i_ce).nBaseInterface;
-}
-
-void
-attr::Get_Constructors( Dyn_CeIterator & o_result,
- const CodeEntity & i_ce )
-{
- o_result = new SCI_Vector<Ce_id>( sglifcservice_cast(i_ce).aConstructors );
-}
-
-} // namespace ifc_sglifcservice
-
-
-} // namespace idl
-} // namespace ary
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/ary/idl/i_sisingleton.cxx b/autodoc/source/ary/idl/i_sisingleton.cxx
deleted file mode 100644
index 3338ceeb8f7c..000000000000
--- a/autodoc/source/ary/idl/i_sisingleton.cxx
+++ /dev/null
@@ -1,107 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <ary/idl/i_sisingleton.hxx>
-
-
-// NOT FULLY DECLARED SERVICES
-#include <cosv/tpl/processor.hxx>
-#include <ary/idl/ik_sisingleton.hxx>
-
-
-
-namespace ary
-{
-namespace idl
-{
-
-SglIfcSingleton::SglIfcSingleton( const String & i_sName,
- Ce_id i_nOwner,
- Type_id i_nBaseInterface )
- : sName(i_sName),
- nOwner(i_nOwner),
- nBaseInterface(i_nBaseInterface)
-{
-}
-
-SglIfcSingleton::~SglIfcSingleton()
-{
-}
-
-void
-SglIfcSingleton::do_Accept( csv::ProcessorIfc & io_processor ) const
-{
- csv::CheckedCall(io_processor, *this);
-}
-
-ClassId
-SglIfcSingleton::get_AryClass() const
-{
- return class_id;
-}
-
-const String &
-SglIfcSingleton::inq_LocalName() const
-{
- return sName;
-}
-
-Ce_id
-SglIfcSingleton::inq_NameRoom() const
-{
- return nOwner;
-}
-
-Ce_id
-SglIfcSingleton::inq_Owner() const
-{
- return nOwner;
-}
-
-E_SightLevel
-SglIfcSingleton::inq_SightLevel() const
-{
- return sl_File;
-}
-
-namespace ifc_sglifcsingleton
-{
-
-inline const SglIfcSingleton &
-sglifcsingleton_cast( const CodeEntity & i_ce )
-{
- csv_assert( i_ce.AryClass() == SglIfcSingleton::class_id );
- return static_cast< const SglIfcSingleton& >(i_ce);
-}
-
-Type_id
-attr::BaseInterface( const CodeEntity & i_ce )
-{
- return sglifcsingleton_cast(i_ce).nBaseInterface;
-}
-
-
-} // namespace ifc_sglifcsingleton
-
-
-} // namespace idl
-} // namespace ary
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/ary/idl/i_struct.cxx b/autodoc/source/ary/idl/i_struct.cxx
deleted file mode 100644
index 4ace19bfaea2..000000000000
--- a/autodoc/source/ary/idl/i_struct.cxx
+++ /dev/null
@@ -1,157 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <ary/idl/i_struct.hxx>
-#include <ary/idl/ik_struct.hxx>
-
-
-// NOT FULLY DECLARED SERVICES
-#include <cosv/tpl/processor.hxx>
-#include <sci_impl.hxx>
-#include "i2s_calculator.hxx"
-
-
-namespace ary
-{
-namespace idl
-{
-
-Struct::Struct( const String & i_sName,
- Ce_id i_nOwner,
- Type_id i_nBase,
- const String & i_sTemplateParameter,
- Type_id i_nTemplateParameterType )
- : sName(i_sName),
- nOwner(i_nOwner),
- nBase(i_nBase),
- sTemplateParameter(i_sTemplateParameter),
- nTemplateParameterType(i_nTemplateParameterType),
- aElements()
-{
-}
-
-Struct::~Struct()
-{
-}
-
-void
-Struct::do_Accept( csv::ProcessorIfc & io_processor ) const
-{
- csv::CheckedCall(io_processor, *this);
-}
-
-ClassId
-Struct::get_AryClass() const
-{
- return class_id;
-}
-
-const String &
-Struct::inq_LocalName() const
-{
- return sName;
-}
-
-Ce_id
-Struct::inq_NameRoom() const
-{
- return nOwner;
-}
-
-Ce_id
-Struct::inq_Owner() const
-{
- return nOwner;
-}
-
-E_SightLevel
-Struct::inq_SightLevel() const
-{
- return sl_File;
-}
-
-
-namespace ifc_struct
-{
-
-inline const Struct &
-struct_cast( const CodeEntity & i_ce )
-{
- csv_assert( i_ce.AryClass() == Struct::class_id );
- return static_cast< const Struct& >(i_ce);
-}
-
-Type_id
-attr::Base( const CodeEntity & i_ce )
-{
- return struct_cast(i_ce).nBase;
-}
-
-void
-attr::Get_Elements( Dyn_CeIterator & o_result,
- const CodeEntity & i_ce )
-{
- o_result = new SCI_Vector<Ce_id>( struct_cast(i_ce).aElements );
-}
-
-
-void
-xref::Get_Derivations( Dyn_CeIterator & o_result,
- const CodeEntity & i_ce )
-{
- o_result = new SCI_Vector<Ce_id>(i_ce.Secondaries().List(struct_2s_Derivations));
-}
-
-void
-xref::Get_SynonymTypedefs( Dyn_CeIterator & o_result,
- const CodeEntity & i_ce )
-{
- o_result = new SCI_Vector<Ce_id>(i_ce.Secondaries().List(struct_2s_SynonymTypedefs));
-}
-
-void
-xref::Get_AsReturns( Dyn_CeIterator & o_result,
- const CodeEntity & i_ce )
-{
- o_result = new SCI_Vector<Ce_id>(i_ce.Secondaries().List(struct_2s_AsReturns));
-}
-
-void
-xref::Get_AsParameters( Dyn_CeIterator & o_result,
- const CodeEntity & i_ce )
-{
- o_result = new SCI_Vector<Ce_id>(i_ce.Secondaries().List(struct_2s_AsParameters));
-}
-
-void
-xref::Get_AsDataTypes( Dyn_CeIterator & o_result,
- const CodeEntity & i_ce )
-{
- o_result = new SCI_Vector<Ce_id>(i_ce.Secondaries().List(struct_2s_AsDataTypes));
-}
-
-} // namespace ifc_struct
-
-
-
-} // namespace idl
-} // namespace ary
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/ary/idl/i_structelem.cxx b/autodoc/source/ary/idl/i_structelem.cxx
deleted file mode 100644
index f02e42e12c00..000000000000
--- a/autodoc/source/ary/idl/i_structelem.cxx
+++ /dev/null
@@ -1,111 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <ary/idl/i_structelem.hxx>
-#include <ary/idl/ik_structelem.hxx>
-
-
-// NOT FULLY DECLARED SERVICES
-#include <cosv/tpl/processor.hxx>
-#include <sci_impl.hxx>
-
-
-namespace ary
-{
-namespace idl
-{
-
-
-StructElement::StructElement( const String & i_sName,
- Ce_id i_nOwner,
- Ce_id i_nNameRoom,
- Type_id i_nType )
- : sName(i_sName),
- nOwner(i_nOwner),
- nNameRoom(i_nNameRoom),
- nType(i_nType)
-{
-}
-
-StructElement::~StructElement()
-{
-}
-
-void
-StructElement::do_Accept( csv::ProcessorIfc & io_processor ) const
-{
- csv::CheckedCall(io_processor, *this);
-}
-
-ClassId
-StructElement::get_AryClass() const
-{
- return class_id;
-}
-
-const String &
-StructElement::inq_LocalName() const
-{
- return sName;
-}
-
-Ce_id
-StructElement::inq_NameRoom() const
-{
- return nNameRoom;
-}
-
-Ce_id
-StructElement::inq_Owner() const
-{
- return nOwner;
-}
-
-E_SightLevel
-StructElement::inq_SightLevel() const
-{
- return sl_Member;
-}
-
-
-namespace ifc_structelement
-{
-
-inline const StructElement &
-selem_cast( const CodeEntity & i_ce )
-{
- csv_assert( i_ce.AryClass() == StructElement::class_id );
- return static_cast< const StructElement& >(i_ce);
-}
-
-Type_id
-attr::Type( const CodeEntity & i_ce )
-{
- return selem_cast(i_ce).nType;
-}
-
-} // namespace ifc_structelement
-
-
-
-} // namespace idl
-} // namespace ary
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/ary/idl/i_traits.cxx b/autodoc/source/ary/idl/i_traits.cxx
deleted file mode 100644
index 6944985259aa..000000000000
--- a/autodoc/source/ary/idl/i_traits.cxx
+++ /dev/null
@@ -1,66 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <ary/idl/i_traits.hxx>
-
-
-// NOT FULLY DEFINED SERVICES
-#include <ary/namesort.hxx>
-#include "is_ce.hxx"
-
-
-
-namespace ary
-{
-namespace idl
-{
-
-
-
-//******************** Ce_Traits ********************//
-Ce_Traits::entity_base_type &
-Ce_Traits::EntityOf_(id_type i_id)
-{
- csv_assert(i_id.IsValid());
- return Ce_Storage::Instance_()[i_id];
-}
-
-//******************** Ce_Compare ********************//
-const Ce_Compare::key_type &
-Ce_Compare::KeyOf_(const entity_base_type & i_entity)
-{
- return i_entity.LocalName();
-}
-
-bool
-Ce_Compare::Lesser_( const key_type & i_1,
- const key_type & i_2 )
-{
- static ::ary::LesserName less_;
- return less_(i_1,i_2);
-}
-
-
-
-
-} // namespace idl
-} // namespace ary
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/ary/idl/i_typedef.cxx b/autodoc/source/ary/idl/i_typedef.cxx
deleted file mode 100644
index 9e79168d7f12..000000000000
--- a/autodoc/source/ary/idl/i_typedef.cxx
+++ /dev/null
@@ -1,139 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <ary/idl/i_typedef.hxx>
-#include <ary/idl/ik_typedef.hxx>
-
-
-// NOT FULLY DECLARED SERVICES
-#include <cosv/tpl/processor.hxx>
-#include <sci_impl.hxx>
-#include "i2s_calculator.hxx"
-
-
-namespace ary
-{
-namespace idl
-{
-
-
-Typedef::Typedef( const String & i_sName,
- Ce_id i_nOwner,
- Type_id i_nDefiningType )
- : sName(i_sName),
- nOwner(i_nOwner),
- nDefiningType(i_nDefiningType)
-{
-}
-
-Typedef::~Typedef()
-{
-}
-
-void
-Typedef::do_Accept( csv::ProcessorIfc & io_processor ) const
-{
- csv::CheckedCall(io_processor, *this);
-}
-
-ClassId
-Typedef::get_AryClass() const
-{
- return class_id;
-}
-
-const String &
-Typedef::inq_LocalName() const
-{
- return sName;
-}
-
-Ce_id
-Typedef::inq_NameRoom() const
-{
- return nOwner;
-}
-
-Ce_id
-Typedef::inq_Owner() const
-{
- return nOwner;
-}
-
-E_SightLevel
-Typedef::inq_SightLevel() const
-{
- return sl_File;
-}
-
-
-namespace ifc_typedef
-{
-
-inline const Typedef &
-typedef_cast( const CodeEntity & i_ce )
-{
- csv_assert( i_ce.AryClass() == Typedef::class_id );
- return static_cast< const Typedef& >(i_ce);
-}
-
-Type_id
-attr::DefiningType( const CodeEntity & i_ce )
-{
- return typedef_cast(i_ce).nDefiningType;
-}
-
-
-void
-xref::Get_SynonymTypedefs( Dyn_CeIterator & o_result,
- const CodeEntity & i_ce )
-{
- o_result = new SCI_Vector<Ce_id>(i_ce.Secondaries().List(typedef_2s_SynonymTypedefs));
-}
-
-void
-xref::Get_AsReturns( Dyn_CeIterator & o_result,
- const CodeEntity & i_ce )
-{
- o_result = new SCI_Vector<Ce_id>(i_ce.Secondaries().List(typedef_2s_AsReturns));
-}
-
-void
-xref::Get_AsParameters( Dyn_CeIterator & o_result,
- const CodeEntity & i_ce )
-{
- o_result = new SCI_Vector<Ce_id>(i_ce.Secondaries().List(typedef_2s_AsParameters));
-}
-
-void
-xref::Get_AsDataTypes( Dyn_CeIterator & o_result,
- const CodeEntity & i_ce )
-{
- o_result = new SCI_Vector<Ce_id>(i_ce.Secondaries().List(typedef_2s_AsDataTypes));
-}
-
-} // namespace ifc_typedef
-
-
-
-} // namespace idl
-} // namespace ary
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/ary/idl/ia_ce.cxx b/autodoc/source/ary/idl/ia_ce.cxx
deleted file mode 100644
index 248b01bbb987..000000000000
--- a/autodoc/source/ary/idl/ia_ce.cxx
+++ /dev/null
@@ -1,575 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include "ia_ce.hxx"
-
-
-// NOT FULLY DEFINED SERVICES
-#include <algorithm>
-#include <cosv/tpl/tpltools.hxx>
-#include <ary/idl/i_attribute.hxx>
-#include <ary/idl/i_constant.hxx>
-#include <ary/idl/i_constgroup.hxx>
-#include <ary/idl/i_enum.hxx>
-#include <ary/idl/i_enumvalue.hxx>
-#include <ary/idl/i_exception.hxx>
-#include <ary/idl/i_function.hxx>
-#include <ary/idl/i_interface.hxx>
-#include <ary/idl/i_module.hxx>
-#include <ary/idl/i_namelookup.hxx>
-#include <ary/idl/i_property.hxx>
-#include <ary/idl/i_service.hxx>
-#include <ary/idl/i_singleton.hxx>
-#include <ary/idl/i_siservice.hxx>
-#include <ary/idl/i_sisingleton.hxx>
-#include <ary/idl/i_struct.hxx>
-#include <ary/idl/i_structelem.hxx>
-#include <ary/idl/i_traits.hxx>
-#include <ary/idl/i_typedef.hxx>
-#include <idsort.hxx>
-#include "ia_type.hxx"
-#include "is_ce.hxx"
-#include "it_tplparam.hxx"
-
-
-
-
-namespace ary
-{
-namespace idl
-{
-
-inline Module &
-CeAdmin::lhf_Access_Module( Ce_id i_nId )
- { return ary_cast<Module>(Storage()[i_nId]); }
-
-inline void
-CeAdmin::lhf_Put2Storage_and_AssignId( CodeEntity & pass_io_rCe )
- { // This also assigns an ID to pass_io_rCe:
- Storage().Store_Entity(pass_io_rCe);
- my_NameDictionary().Add_Name( pass_io_rCe.LocalName(),
- pass_io_rCe.CeId(),
- pass_io_rCe.AryClass(),
- pass_io_rCe.Owner() );
- }
-
-inline void
-CeAdmin::lhf_Store_NewEntity( DYN CodeEntity & pass_io_rCe,
- Module & i_rOwner )
-{
- lhf_Put2Storage_and_AssignId(pass_io_rCe);
- i_rOwner.Add_Name(pass_io_rCe.LocalName(), pass_io_rCe.CeId());
-}
-
-inline void
-CeAdmin::lhf_Store_NewEntity( DYN CodeEntity & pass_io_rCe,
- Ce_id i_nOwnerModule )
-{
- lhf_Store_NewEntity(pass_io_rCe, lhf_Access_Module(i_nOwnerModule));
-}
-
-
-
-CeAdmin::CeAdmin( NameLookup & io_rNameDictionary,
- TypeAdmin & io_rTypePilot )
- : pStorage(new Ce_Storage),
- pGlobalNamespace(0),
- pNameDictionary(&io_rNameDictionary),
- pTypePilot(&io_rTypePilot)
-{
- Storage().Set_Reserved(
- predefined::ce_GlobalNamespace,
- *new Module );
- pGlobalNamespace = &lhf_Access_Module(Ce_id(predefined::ce_GlobalNamespace));
-}
-
-CeAdmin::~CeAdmin()
-{
-}
-
-
-
-Module &
-CeAdmin::CheckIn_Module( Ce_id i_nParentId,
- const String & i_sName )
-{
- Module & rOwner = lhf_Access_Module(i_nParentId);
- Ce_id nId = rOwner.Search_Name(i_sName);
- if (nId.IsValid())
- {
- return lhf_Access_Module(nId);
- }
-
- Module & ret = *new Module( i_sName,
- rOwner );
- lhf_Store_NewEntity(ret, rOwner);
- return ret;
-}
-
-Service &
-CeAdmin::Store_Service( Ce_id i_nOwner,
- const String & i_sName )
-{
- Service & ret = *new Service( i_sName,
- i_nOwner );
- lhf_Store_NewEntity(ret, i_nOwner);
- return ret;
-}
-
-SglIfcService &
-CeAdmin::Store_SglIfcService( Ce_id i_nOwner,
- const String & i_sName,
- Type_id i_nBaseInterface )
-{
- SglIfcService &
- ret = *new SglIfcService( i_sName,
- i_nOwner,
- i_nBaseInterface );
- lhf_Store_NewEntity(ret, i_nOwner);
- return ret;
-}
-
-Interface &
-CeAdmin::Store_Interface( Ce_id i_nOwner,
- const String & i_sName,
- Type_id i_nBase )
-{
- Interface & ret = *new Interface( i_sName,
- i_nOwner );
- lhf_Store_NewEntity(ret, i_nOwner);
- if (i_nBase.IsValid())
- ret.Add_Base(i_nBase, 0);
- return ret;
-}
-
-Struct &
-CeAdmin::Store_Struct( Ce_id i_nOwner,
- const String & i_sName,
- Type_id i_nBase,
- const String & i_sTemplateParam )
-{
- if (NOT i_sTemplateParam.empty())
- {
- return lhf_Store_TplStruct( i_nOwner,
- i_sName,
- i_nBase,
- i_sTemplateParam );
- }
-
- Struct & ret = *new Struct( i_sName,
- i_nOwner,
- i_nBase,
- String::Null_(),
- Type_id::Null_() );
- lhf_Store_NewEntity(ret, i_nOwner);
-
- return ret;
-}
-
-Exception &
-CeAdmin::Store_Exception( Ce_id i_nOwner,
- const String & i_sName,
- Type_id i_nBase )
-{
- Exception & ret = *new Exception( i_sName,
- i_nOwner,
- i_nBase );
- lhf_Store_NewEntity(ret, i_nOwner);
- return ret;
-}
-
-Enum &
-CeAdmin::Store_Enum( Ce_id i_nOwner,
- const String & i_sName )
-{
- Enum & ret = *new Enum( i_sName,
- i_nOwner );
- lhf_Store_NewEntity(ret, i_nOwner);
- return ret;
-}
-
-Typedef &
-CeAdmin::Store_Typedef( Ce_id i_nOwner,
- const String & i_sName,
- Type_id i_nDefiningType )
-{
- Typedef & ret = *new Typedef( i_sName,
- i_nOwner,
- i_nDefiningType );
- lhf_Store_NewEntity(ret, i_nOwner);
- return ret;
-}
-
-
-ConstantsGroup &
-CeAdmin::Store_ConstantsGroup( Ce_id i_nOwner,
- const String & i_sName )
-{
- ConstantsGroup & ret = *new ConstantsGroup( i_sName,
- i_nOwner );
- lhf_Store_NewEntity(ret, i_nOwner);
- return ret;
-}
-
-Singleton &
-CeAdmin::Store_Singleton( Ce_id i_nOwner,
- const String & i_sName )
-{
- Singleton & ret = *new Singleton( i_sName,
- i_nOwner );
- lhf_Store_NewEntity(ret, i_nOwner);
- return ret;
-}
-
-SglIfcSingleton &
-CeAdmin::Store_SglIfcSingleton( Ce_id i_nOwner,
- const String & i_sName,
- Type_id i_nBaseInterface )
-{
- SglIfcSingleton &
- ret = *new SglIfcSingleton( i_sName,
- i_nOwner,
- i_nBaseInterface );
- lhf_Store_NewEntity(ret, i_nOwner);
- return ret;
-}
-
-Constant &
-CeAdmin::Store_Constant( Ce_id i_nOwner,
- const String & i_sName,
- Type_id i_nType,
- const String & i_sValue )
-{
- ConstantsGroup &
- rOwner = ary_cast<ConstantsGroup>(Storage()[i_nOwner]);
- Constant & ret = *new Constant( i_sName,
- i_nOwner,
- rOwner.NameRoom(),
- i_nType,
- i_sValue );
- lhf_Put2Storage_and_AssignId(ret);
- rOwner.Add_Constant(ret.CeId());
- return ret;
-}
-
-Property &
-CeAdmin::Store_Property( Ce_id i_nOwner,
- const String & i_sName,
- Type_id i_nType,
- Property::Stereotypes i_stereotypes )
-{
- Service &
- rOwner = ary_cast<Service>(Storage()[i_nOwner]);
- Property & ret = *new Property( i_sName,
- i_nOwner,
- rOwner.NameRoom(),
- i_nType,
- i_stereotypes );
- lhf_Put2Storage_and_AssignId(ret);
- rOwner.Add_Property(ret.CeId());
- return ret;
-}
-
-Function &
-CeAdmin::Store_Function( Ce_id i_nOwner,
- const String & i_sName,
- Type_id i_nReturnType,
- bool i_bOneWay )
-{
- Interface &
- rOwner = ary_cast<Interface>(Storage()[i_nOwner]);
- Function & ret = *new Function( i_sName,
- i_nOwner,
- rOwner.NameRoom(),
- i_nReturnType,
- i_bOneWay);
- lhf_Put2Storage_and_AssignId(ret);
- rOwner.Add_Function(ret.CeId());
- return ret;
-}
-
-Function &
-CeAdmin::Store_ServiceConstructor( Ce_id i_nOwner,
- const String & i_sName )
-{
- SglIfcService &
- rOwner = ary_cast<SglIfcService>(Storage()[i_nOwner]);
- Function & ret = *new Function( i_sName,
- i_nOwner,
- rOwner.NameRoom() );
- lhf_Put2Storage_and_AssignId(ret);
- rOwner.Add_Constructor(ret.CeId());
- return ret;
-}
-
-StructElement &
-CeAdmin::Store_StructMember( Ce_id i_nOwner,
- const String & i_sName,
- Type_id i_nType )
-{
- Struct &
- rOwner = ary_cast<Struct>(Storage()[i_nOwner]);
- StructElement & ret = *new StructElement( i_sName,
- i_nOwner,
- rOwner.NameRoom(),
- i_nType );
- lhf_Put2Storage_and_AssignId(ret);
- rOwner.Add_Member(ret.CeId());
- return ret;
-}
-
-StructElement &
-CeAdmin::Store_ExceptionMember( Ce_id i_nOwner,
- const String & i_sName,
- Type_id i_nType )
-{
- Exception &
- rOwner = ary_cast<Exception>(Storage()[i_nOwner]);
- StructElement & ret = *new StructElement( i_sName,
- i_nOwner,
- rOwner.NameRoom(),
- i_nType );
- lhf_Put2Storage_and_AssignId(ret);
- rOwner.Add_Member(ret.CeId());
- return ret;
-}
-
-EnumValue &
-CeAdmin::Store_EnumValue( Ce_id i_nOwner,
- const String & i_sName,
- const String & i_sValue )
-{
- Enum &
- rOwner = ary_cast<Enum>(Storage()[i_nOwner]);
- EnumValue & ret = *new EnumValue( i_sName,
- i_nOwner,
- rOwner.NameRoom(),
- i_sValue );
- lhf_Put2Storage_and_AssignId(ret);
- rOwner.Add_Value(ret.CeId());
- return ret;
-}
-
-Attribute &
-CeAdmin::Store_Attribute( Ce_id i_nOwner,
- const String & i_sName,
- Type_id i_nType,
- bool i_bReadOnly,
- bool i_bBound )
-{
- Interface &
- rOwner = ary_cast<Interface>(Storage()[i_nOwner]);
-
- Attribute & ret = *new Attribute ( i_sName,
- i_nOwner,
- rOwner.NameRoom(),
- i_nType,
- i_bReadOnly,
- i_bBound );
- lhf_Put2Storage_and_AssignId(ret);
- rOwner.Add_Attribute(ret.CeId());
- return ret;
-}
-
-const Module &
-CeAdmin::GlobalNamespace() const
-{
- csv_assert(pGlobalNamespace);
- return *pGlobalNamespace;
-}
-
-const CodeEntity &
-CeAdmin::Find_Ce( Ce_id i_nId ) const
-{
- return Storage()[i_nId];
-
-}
-
-const Module &
-CeAdmin::Find_Module( Ce_id i_nId ) const
-{
- return ary_cast<Module>(Storage()[i_nId]);
-}
-
-const Module *
-CeAdmin::Search_Module( Ce_id i_nId ) const
-{
- if (NOT i_nId.IsValid())
- return 0;
- return ary_cast<Module>( & Storage()[i_nId] );
-}
-
-const Function &
-CeAdmin::Find_Function( Ce_id i_nId ) const
-{
- return ary_cast<Function>(Storage()[i_nId]);
-}
-
-const Property &
-CeAdmin::Find_Property( Ce_id i_nId ) const
-{
- return ary_cast<Property>(Storage()[i_nId]);
-}
-
-const EnumValue &
-CeAdmin::Find_EnumValue( Ce_id i_nId ) const
-{
- return ary_cast<EnumValue>(Storage()[i_nId]);
-}
-
-const Constant &
-CeAdmin::Find_Constant( Ce_id i_nId ) const
-{
- return ary_cast<Constant>(Storage()[i_nId]);
-}
-
-const StructElement &
-CeAdmin::Find_StructElement( Ce_id i_nId ) const
-{
- return ary_cast<StructElement>(Storage()[i_nId]);
-}
-
-void
-CeAdmin::Get_Text( StringVector & o_module,
- String & o_ce,
- String & o_member,
- const CodeEntity & i_ce ) const
-{
- const CodeEntity * pCe = &i_ce;
- csv::erase_container(o_module);
- o_ce.clear();
- o_member.clear();
-
- switch ( pCe->SightLevel() )
- {
- // Here are intentionally no breaks!
- case sl_Member:
- if ( is_type<Function>(*pCe) )
- o_member = StreamLock(200)()
- << pCe->LocalName()
- << "()"
- << c_str;
- else
- o_member = pCe->LocalName();
- pCe = & Storage()[pCe->Owner()];
- case sl_File:
- o_ce = pCe->LocalName();
- pCe = & Storage()[pCe->NameRoom()];
- case sl_Module:
- get_ModuleText(o_module,*pCe);
- break;
- default:
- csv_assert(false);
- } // end switch
-}
-
-const NameLookup &
-CeAdmin::NameDictionary() const
-{
- return *pNameDictionary;
-}
-
-
-void
-CeAdmin::Get_AlphabeticalIndex( std::vector<Ce_id> & o_rResult,
- alphabetical_index::E_Letter i_cLetter ) const
-{
- const int C_nLowerUpperDiff = 'a'-'A';
-
- // Establishing filter:
- UINT8 filter[256];
-
- UINT8 nLetter = static_cast<UINT8>(i_cLetter);
- memset(filter, 0, 256);
- filter[nLetter] = 1;
- if ( i_cLetter != alphabetical_index::non_alpha )
- filter[nLetter - C_nLowerUpperDiff] = 1;
-
- // Gather entities which start with i_cLetter:
- o_rResult.reserve(1000);
- idl::Ce_Storage::c_iter
- itEnd = Storage().End();
- for ( idl::Ce_Storage::c_iter it = Storage().BeginUnreserved();
- it != itEnd;
- ++it )
- {
- if ( filter[ static_cast<UINT8>(*(*it).LocalName().c_str()) ] == 1 )
- o_rResult.push_back( (*it).CeId() );
- }
-
- std::sort( o_rResult.begin(),
- o_rResult.end(),
- IdSorter<Ce_Compare>() );
-}
-
-
-Module &
-CeAdmin::GlobalNamespace()
-{
- csv_assert(pGlobalNamespace);
- return *pGlobalNamespace;
-}
-
-CodeEntity &
-CeAdmin::Find_Ce( Ce_id i_nId )
-{
- return Storage()[i_nId];
-}
-
-void
-CeAdmin::get_ModuleText( StringVector & o_module,
- const CodeEntity & i_ce ) const
-{
- if (i_ce.NameRoom().IsValid())
- {
- const CodeEntity &
- rParent = Storage()[i_ce.NameRoom()];
- get_ModuleText(o_module, rParent);
- o_module.push_back(i_ce.LocalName());
- }
-}
-
-Struct &
-CeAdmin::lhf_Store_TplStruct( Ce_id i_nOwner,
- const String & i_sName,
- Type_id i_nBase,
- const String & i_sTemplateParam )
-{
- csv_assert(NOT i_sTemplateParam.empty());
-
- TemplateParamType &
- rTpt = pTypePilot->Store_TemplateParamType(i_sTemplateParam);
-
- Struct & ret = *new Struct( i_sName,
- i_nOwner,
- i_nBase,
- i_sTemplateParam,
- rTpt.TypeId() );
- lhf_Store_NewEntity(ret, i_nOwner);
- rTpt.Set_StructId(ret.CeId());
-
- return ret;
-}
-
-
-} // namespace idl
-} // namespace ary
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/ary/idl/ia_ce.hxx b/autodoc/source/ary/idl/ia_ce.hxx
deleted file mode 100644
index 9949f5c26397..000000000000
--- a/autodoc/source/ary/idl/ia_ce.hxx
+++ /dev/null
@@ -1,247 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_IDL_IA_CE_HXX
-#define ARY_IDL_IA_CE_HXX
-
-
-// USED SERVICES
- // BASE CLASSES
-#include <ary/idl/ip_ce.hxx>
- // COMPONENTS
- // PARAMETERS
-
-
-namespace ary
-{
-namespace idl
-{
-
-class Ce_Storage;
-class TypeAdmin;
-
-
-/** @resp
- Implements ::ary::idl::CePilot. Provides the access logic for all
- IDL code entities.
-
- @collab Ce_Storage
- @collab TypeAdmin
-
- @see CodeEntity
-*/
-class CeAdmin : public CePilot
-{
- public:
- // LIFECYCLE
- CeAdmin(
- NameLookup & io_rNameDictionary,
- TypeAdmin & io_rTypePilot );
- virtual ~CeAdmin();
-
- // OPERATIONS
-
- // INQUIRY
- const Ce_Storage & Storage() const;
-
- // ACCESS
- Ce_Storage & Storage();
-
- // INHERITED
- // Interface ::ary::idl::CePilot:
- virtual Module & CheckIn_Module(
- Ce_id i_nParentId,
- const String & i_sName );
- virtual Service & Store_Service(
- Ce_id i_nOwner,
- const String & i_sName );
- virtual SglIfcService &
- Store_SglIfcService(
- Ce_id i_nOwner,
- const String & i_sName,
- Type_id i_nBaseInterface );
- virtual Interface & Store_Interface(
- Ce_id i_nOwner,
- const String & i_sName,
- Type_id i_nBase );
- virtual Struct & Store_Struct(
- Ce_id i_nOwner,
- const String & i_sName,
- Type_id i_nBase,
- const String & i_sTemplateParam );
- virtual Exception & Store_Exception(
- Ce_id i_nOwner,
- const String & i_sName,
- Type_id i_nBase );
- virtual Enum & Store_Enum(
- Ce_id i_nOwner,
- const String & i_sName );
- virtual Typedef & Store_Typedef(
- Ce_id i_nOwner,
- const String & i_sName,
- Type_id i_nDefiningType );
- virtual ConstantsGroup &
- Store_ConstantsGroup(
- Ce_id i_nOwner,
- const String & i_sName );
- virtual Singleton & Store_Singleton(
- Ce_id i_nOwner,
- const String & i_sName );
- virtual SglIfcSingleton &
- Store_SglIfcSingleton(
- Ce_id i_nOwner,
- const String & i_sName,
- Type_id i_nBaseInterface );
-
- virtual Constant & Store_Constant(
- Ce_id i_nOwner,
- const String & i_sName,
- Type_id i_nType,
- const String & i_sValue );
- virtual Property & Store_Property(
- Ce_id i_nOwner,
- const String & i_sName,
- Type_id i_nType,
- Property::Stereotypes
- i_stereotypes );
- virtual Function & Store_Function(
- Ce_id i_nOwner,
- const String & i_sName,
- Type_id i_nReturnType,
- bool i_bOneWay );
- virtual Function & Store_ServiceConstructor(
- Ce_id i_nOwner,
- const String & i_sName );
- virtual StructElement &
- Store_StructMember(
- Ce_id i_nOwner,
- const String & i_sName,
- Type_id i_nType );
- virtual StructElement &
- Store_ExceptionMember(
- Ce_id i_nOwner,
- const String & i_sName,
- Type_id i_nType );
- virtual EnumValue & Store_EnumValue(
- Ce_id i_nOwner,
- const String & i_sName,
- const String & i_sValue );
- virtual Attribute & Store_Attribute(
- Ce_id i_nOwner,
- const String & i_sName,
- Type_id i_nType,
- bool i_bReadOnly,
- bool i_bBound );
-
- virtual const Module &
- GlobalNamespace() const;
- virtual const CodeEntity &
- Find_Ce(
- Ce_id i_nId ) const;
- virtual const Module &
- Find_Module(
- Ce_id i_nId ) const;
- virtual const Module *
- Search_Module(
- Ce_id i_nId ) const;
- virtual const Function &
- Find_Function(
- Ce_id i_nId ) const;
- virtual const Property &
- Find_Property(
- Ce_id i_nId ) const;
- virtual const EnumValue &
- Find_EnumValue(
- Ce_id i_nId ) const;
- virtual const Constant &
- Find_Constant(
- Ce_id i_nId ) const;
- virtual const StructElement &
- Find_StructElement(
- Ce_id i_nId ) const;
- virtual void Get_Text(
- StringVector & o_module,
- String & o_ce,
- String & o_member,
- const CodeEntity & i_ce ) const;
- virtual const NameLookup &
- NameDictionary() const;
- virtual void Get_AlphabeticalIndex(
- std::vector<Ce_id> &
- o_rResult,
- alphabetical_index::E_Letter
- i_cLetter) const;
- // ACCESS
- virtual Module & GlobalNamespace();
- virtual CodeEntity &
- Find_Ce(
- Ce_id i_nId );
- private:
- // Locals
- Module & lhf_Access_Module(
- Ce_id i_nId );
- void lhf_Put2Storage_and_AssignId(
- CodeEntity & pass_io_rCe );
- void lhf_Store_NewEntity(
- DYN CodeEntity & pass_io_rCe,
- Module & i_rOwner );
- void lhf_Store_NewEntity(
- DYN CodeEntity & pass_io_rCe,
- Ce_id i_nOwnerModule );
- void get_ModuleText(
- StringVector & o_module,
- const CodeEntity & i_ce ) const;
- Struct & lhf_Store_TplStruct(
- Ce_id i_nOwner,
- const String & i_sName,
- Type_id i_nBase,
- const String & i_sTemplateParam );
-
- const Ce_Storage & my_Storage() const;
- Ce_Storage & my_Storage();
- NameLookup & my_NameDictionary() { return *pNameDictionary; }
-
- // DATA
- Dyn<Ce_Storage> pStorage; /// @inv pStorage != 0;
- Module * pGlobalNamespace;
- NameLookup * pNameDictionary;
- TypeAdmin * pTypePilot;
-};
-
-
-// IMPLEMENTATION
-inline const Ce_Storage &
-CeAdmin::Storage() const
-{
- return *pStorage;
-}
-
-inline Ce_Storage &
-CeAdmin::Storage()
-{
- return *pStorage;
-}
-
-
-
-} // namespace idl
-} // namespace ary
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/ary/idl/ia_type.cxx b/autodoc/source/ary/idl/ia_type.cxx
deleted file mode 100644
index 82bdea1b1fdb..000000000000
--- a/autodoc/source/ary/idl/ia_type.cxx
+++ /dev/null
@@ -1,353 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include "ia_type.hxx"
-
-
-// NOT FULLY DEFINED SERVICES
-#include <ary/qualiname.hxx>
-#include <ary/idl/i_module.hxx>
-#include <ary/idl/i_type.hxx>
-#include <ary/idl/ip_ce.hxx>
-#include "ia_ce.hxx"
-#include "is_type.hxx"
-#include "it_builtin.hxx"
-#include "it_ce.hxx"
-#include "it_explicit.hxx"
-#include "it_sequence.hxx"
-#include "it_tplparam.hxx"
-#include "it_xnameroom.hxx"
-
-
-
-namespace ary
-{
-namespace idl
-{
-
-String MakeTemplateName(
- const String & i_localName );
-
-
-
-inline CeAdmin &
-TypeAdmin::my_Ces() const
- { return *pCes; }
-
-inline void
-TypeAdmin::lhf_Put2Storage_and_AssignId( DYN Type & pass_io_rType )
- { // This also assigns an ID to pass_io_rType:
- Storage().Store_Entity(pass_io_rType); }
-
-inline Type_id
-TypeAdmin::lhf_findBuiltInType( const String & i_sName )
- { return ary_cast<ExplicitNameRoom>(Storage()[nXNameRoom_Root])
- .Search_Name(i_sName); }
-
-inline const ExplicitNameRoom &
-TypeAdmin::find_ExplicitNameRoom( Type_id i_nType ) const
-{
- return ary_cast<ExplicitNameRoom>(Storage()[i_nType]);
-}
-
-inline ExplicitNameRoom &
-TypeAdmin::find_ExplicitNameRoom( Type_id i_nType )
-{
- return ary_cast<ExplicitNameRoom>(Storage()[i_nType]);
-}
-
-ExplicitNameRoom &
-TypeAdmin::lhf_CheckIn_XNameRoom( const QualifiedName & i_rName,
- Ce_id i_nModuleOfOccurrence )
-{
- Type_id nRoot = i_rName.IsAbsolute()
- ? Type_id( predefined::type_GlobalXNameRoom )
- : lhf_Get_NameRoomRoot_forModuleofOccurrence( i_nModuleOfOccurrence ).TypeId();
-
- if ( i_rName.NamespaceDepth() == 0 )
- return find_ExplicitNameRoom(nRoot);
-
- QualifiedName::namespace_iterator it = i_rName.first_namespace();
- ExplicitNameRoom *
- ret = & find_ExplicitNameRoom(nRoot);
- for ( ; it != i_rName.end_namespace(); ++it )
- {
- Type_id
- found = ret->Search_Name(*it);
- if (found.IsValid())
- {
- ret = & find_ExplicitNameRoom(found);
- }
- else
- {
- ExplicitNameRoom &
- rNew = *new ExplicitNameRoom(*it, *ret);
- lhf_Put2Storage_and_AssignId(rNew);
- ret->Add_Name( rNew.Name(), rNew.TypeId() );
- ret = &rNew;
- }
-
- } // end for
- return *ret;
-}
-
-Type_id
-TypeAdmin::lhf_CheckIn_TypeName( const String & i_sLocalName,
- ExplicitNameRoom & io_rXNameRoom,
- Ce_id i_nModuleOfOccurrence,
- const std::vector<Type_id> * i_templateParameters )
-{
- String sSearchLocalName( i_sLocalName );
- if ( i_templateParameters != 0
- ? (!i_templateParameters->empty())
- : false )
- {
- sSearchLocalName = MakeTemplateName(i_sLocalName);
- }
-
- Type_id
- ret = io_rXNameRoom.Search_Name(sSearchLocalName);
- if (NOT ret.IsValid())
- {
- DYN Type &
- rNewType = *new ExplicitType( i_sLocalName,
- io_rXNameRoom.TypeId(),
- i_nModuleOfOccurrence,
- i_templateParameters );
- lhf_Put2Storage_and_AssignId(rNewType);
- ret = rNewType.TypeId();
- io_rXNameRoom.Add_Name( sSearchLocalName, ret );
- }
- return ret;
-}
-
-Type_id
-TypeAdmin::lhf_CheckIn_Sequence(Type_id i_nType)
-{
- Type_id
- ret = Storage().Search_SequenceOf(i_nType);
-
- if (NOT ret.IsValid())
- {
- DYN Type &
- rNewSeq = *new Sequence(i_nType);
- lhf_Put2Storage_and_AssignId(rNewSeq);
- ret = rNewSeq.Id();
- Storage().Add_Sequence(i_nType, ret);
- }
- return ret;
-}
-
-void
-TypeAdmin::lhf_CheckIn_BuiltInType( const char * i_sName,
- Rid i_nId )
-{
- DYN BuiltInType &
- rNewType = *new BuiltInType(i_sName);
- Storage().Set_Reserved(i_nId, rNewType);
-
- // Put them into both roots, to catch the syntactically correct
- // (though unlikely) ::Any, ::long etc.
- Type_id
- nId(i_nId);
- find_ExplicitNameRoom(nXNameRoom_Root).Add_Name(i_sName, nId);
- find_ExplicitNameRoom(nXNameRoom_Global).Add_Name(i_sName, nId);
-}
-
-ExplicitNameRoom &
-TypeAdmin::lhf_Get_NameRoomRoot_forModuleofOccurrence( Ce_id i_nModuleOfOccurrence )
-{
- const Type_id *
- pFound = csv::find_in_map( aMap_ModuleOfOccurrence2NameRoomRoot,
- i_nModuleOfOccurrence );
- if (pFound != 0)
- return find_ExplicitNameRoom(*pFound);
-
- ExplicitNameRoom &
- ret = *new ExplicitNameRoom;
- lhf_Put2Storage_and_AssignId(ret);
- aMap_ModuleOfOccurrence2NameRoomRoot.insert(std::pair< const Ce_id, Type_id>(i_nModuleOfOccurrence,ret.TypeId()));
- return ret;
-}
-
-TypeAdmin::TypeAdmin()
- : pStorage(new Type_Storage),
- pCes(0), // Needs to be set directly after creation.
- nXNameRoom_Root( static_cast<ary::Rid>(predefined::type_Root_ofXNameRooms) ),
- nXNameRoom_Global( static_cast<ary::Rid>(predefined::type_GlobalXNameRoom) ),
- aMap_ModuleOfOccurrence2NameRoomRoot()
-{
- DYN ExplicitNameRoom &
- drRoot = *new ExplicitNameRoom;
- Storage().Set_Reserved( nXNameRoom_Root.Value(), drRoot );
-
- DYN ExplicitNameRoom &
- drGlobal = *new ExplicitNameRoom(String::Null_(), drRoot);
- Storage().Set_Reserved( nXNameRoom_Global.Value(), drGlobal );
- drRoot.Add_Name( drGlobal.Name(), nXNameRoom_Global );
-
- lhf_Setup_BuildInTypes();
-}
-
-TypeAdmin::~TypeAdmin()
-{
-}
-
-void
-TypeAdmin::lhf_Setup_BuildInTypes()
-{
- lhf_CheckIn_BuiltInType("any", predefined::type_any);
- lhf_CheckIn_BuiltInType("boolean", predefined::type_boolean);
- lhf_CheckIn_BuiltInType("byte", predefined::type_byte);
- lhf_CheckIn_BuiltInType("char", predefined::type_char);
- lhf_CheckIn_BuiltInType("double", predefined::type_double);
- lhf_CheckIn_BuiltInType("float", predefined::type_float);
- lhf_CheckIn_BuiltInType("hyper", predefined::type_hyper);
- lhf_CheckIn_BuiltInType("long", predefined::type_long);
- lhf_CheckIn_BuiltInType("short", predefined::type_short);
- lhf_CheckIn_BuiltInType("string", predefined::type_string);
- lhf_CheckIn_BuiltInType("type", predefined::type_type);
- lhf_CheckIn_BuiltInType("void", predefined::type_void);
- lhf_CheckIn_BuiltInType("unsigned hyper", predefined::type_u_hyper);
- lhf_CheckIn_BuiltInType("unsigned long", predefined::type_u_long);
- lhf_CheckIn_BuiltInType("unsigned short", predefined::type_u_short);
-}
-
-const Type &
-TypeAdmin::CheckIn_Type( QualifiedName & i_rFullName,
- uintt i_nSequenceCount,
- Ce_id i_nModuleOfOccurrence,
- const std::vector<Type_id> * i_templateParameters )
-{
- // Look in built-in types:
- Type_id
- nType = lhf_findBuiltInType(i_rFullName.LocalName());
- if (NOT nType.IsValid())
- { // No built-in type:
- ExplicitNameRoom &
- rNameRoom = lhf_CheckIn_XNameRoom(i_rFullName,i_nModuleOfOccurrence);
- nType = lhf_CheckIn_TypeName( i_rFullName.LocalName(),
- rNameRoom,
- i_nModuleOfOccurrence,
- i_templateParameters );
- } // endif
-
- for ( uintt s = 0; s < i_nSequenceCount; ++s )
- {
- nType = lhf_CheckIn_Sequence(nType);
- }
-
- return Storage()[nType];
-}
-
-TemplateParamType &
-TypeAdmin::Store_TemplateParamType( String i_sName )
-{
- DYN TemplateParamType &
- ret = *new TemplateParamType( i_sName );
- lhf_Put2Storage_and_AssignId(ret);
- return ret;
-}
-
-const Type &
-TypeAdmin::Find_Type( Type_id i_nType ) const
-{
- return Storage()[i_nType];
-}
-
-String
-TypeAdmin::Search_LocalNameOf( Type_id i_nType ) const
-{
- const Type *
- pType = Storage().Exists(i_nType)
- ? 0
- : & Storage()[i_nType];
- if (pType != 0)
- {
- switch (pType->AryClass())
- {
- case Ce_Type::class_id:
- case ExplicitType::class_id:
- case BuiltInType::class_id:
- return static_cast< const Named_Type& >(*pType).Name();
- }
- }
- return String::Null_();
-}
-
-Ce_id
-TypeAdmin::Search_CeRelatedTo( Type_id i_nType ) const
-{
- const Ce_Type *
- ret = ary_cast<Ce_Type>( & Storage()[i_nType] );
- return ret != 0
- ? ret->RelatedCe()
- : Ce_id_Null();
-}
-
-const ExplicitNameRoom &
-TypeAdmin::Find_XNameRoom( Type_id i_nType ) const
-{
- return find_ExplicitNameRoom(i_nType);
-}
-
-bool
-TypeAdmin::IsBuiltInOrRelated( const Type & i_rType ) const
-{
- if ( is_type<BuiltInType>(i_rType) )
- return true;
- else
- {
- const Type *
- pType = &i_rType;
- while (is_type<Sequence>(*pType))
- {
- Type_id
- nt = ary_cast<Sequence>(pType)->RelatedType();
- if (NOT nt.IsValid())
- return false;
- pType = & Storage()[nt];
- }
- return is_type<BuiltInType>(*pType);
- }
-}
-
-
-String
-MakeTemplateName( const String & i_localName )
-{
- StreamLock
- sl(200);
-
- // This is the simple solution, assuming that there is only
- // one version of templatisation allowed with a given name.
- return
- sl()
- << i_localName
- << C_cTemplateDelimiter
- << c_str;
-}
-
-
-
-} // namespace idl
-} // namespace ary
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/ary/idl/ia_type.hxx b/autodoc/source/ary/idl/ia_type.hxx
deleted file mode 100644
index 5f12eb319a22..000000000000
--- a/autodoc/source/ary/idl/ia_type.hxx
+++ /dev/null
@@ -1,164 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_IDL_IA_TYPE_HXX
-#define ARY_IDL_IA_TYPE_HXX
-
-
-// USED SERVICES
- // BASE CLASSES
-#include <ary/idl/ip_type.hxx>
- // COMPONENTS
- // PARAMETERS
-#include "is_type.hxx"
-
-
-namespace ary
-{
-namespace idl
-{
-
-
-class Type_Storage;
-class CeAdmin;
-class TemplateParamType;
-
-
-class TypeAdmin : public TypePilot
-{
- public:
- // LIFECYCLE
- TypeAdmin();
-
- void Assign_CePilot(
- CeAdmin & io_rCes );
- virtual ~TypeAdmin();
-
- // OPERATIONS
- TemplateParamType & Store_TemplateParamType(
- String i_sName );
- // INQUIRY
- const Type_Storage &
- Storage() const;
- // ACCESS
- Type_Storage & Storage();
-
- // INHERITED
- // Interface TypePilot:
- virtual const Type &
- CheckIn_Type(
- QualifiedName & i_rFullName,
- uintt i_nSequenceCount,
- Ce_id i_nModuleOfOccurrence,
- const std::vector<Type_id> *
- i_templateParameters );
- virtual const Type &
- Find_Type(
- Type_id i_nType ) const;
- virtual String Search_LocalNameOf(
- Type_id i_nType ) const;
- virtual Ce_id Search_CeRelatedTo(
- Type_id i_nType ) const;
- virtual const ExplicitNameRoom &
- Find_XNameRoom(
- Type_id i_nType ) const;
- virtual bool IsBuiltInOrRelated(
- const Type & i_rType ) const;
- private:
- // Locals
- CeAdmin & my_Ces() const;
-
- void lhf_Put2Storage_and_AssignId(
- DYN Type & pass_io_rType );
-
- ExplicitNameRoom & lhf_CheckIn_XNameRoom(
- const QualifiedName &
- i_rName,
- Ce_id i_nModuleOfOccurrence );
- Type_id lhf_CheckIn_TypeName(
- const String & i_sLocalName,
- ExplicitNameRoom & io_rExplicitNameRoom,
- Ce_id i_nModuleOfOccurrence,
- const std::vector<Type_id> *
- i_templateParameters );
- Type_id lhf_CheckIn_Sequence(
- Type_id i_nType );
- void lhf_CheckIn_BuiltInType(
- const char * i_sName,
- Rid i_nId );
- const ExplicitNameRoom &
- find_ExplicitNameRoom(
- Type_id i_nType ) const;
- ExplicitNameRoom & find_ExplicitNameRoom(
- Type_id i_nType );
- ExplicitNameRoom & lhf_Get_NameRoomRoot_forModuleofOccurrence(
- Ce_id i_nModuleOfOccurrence );
-
- /// @return Type_id::Null_(), if not found.
- Type_id lhf_findBuiltInType(
- const String & i_sName );
- /// @precond nGlobalNamespace must be valid.
- void lhf_Setup_BuildInTypes();
-
- // DATA
- Type_Storage * pStorage; /// @inv pStorage != 0
- CeAdmin * pCes; /// @inv pCes != 0
-
- // Data for saving time:
- Type_id nXNameRoom_Root; /** @descr This is different from nXNameRoom_Global, because
- the root of explicit name rooms in code without leading "::" is unknown.
- */
- Type_id nXNameRoom_Global;
-
- // HACK, because this needs to be saved somehow and is not in storage:
- std::map<Ce_id, Type_id>
- aMap_ModuleOfOccurrence2NameRoomRoot;
-};
-
-
-
-
-
-// IMPLEMENTATION
-inline const Type_Storage &
-TypeAdmin::Storage() const
-{
- return *pStorage;
-}
-
-inline Type_Storage &
-TypeAdmin::Storage()
-{
- return *pStorage;
-}
-
-inline void
-TypeAdmin::Assign_CePilot( CeAdmin & io_rCes )
-{
- pCes = &io_rCes;
-}
-
-
-
-
-} // namespace idl
-} // namespace ary
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/ary/idl/is_ce.cxx b/autodoc/source/ary/idl/is_ce.cxx
deleted file mode 100644
index 068fc2be6904..000000000000
--- a/autodoc/source/ary/idl/is_ce.cxx
+++ /dev/null
@@ -1,59 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include "is_ce.hxx"
-
-// NOT FULLY DEFINED SERVICES
-
-namespace
-{
- const uintt
- C_nReservedElements = ary::idl::predefined::ce_MAX; // Skipping "0" and the GlobalNamespace
-}
-
-
-namespace ary
-{
-namespace idl
-{
-
-Ce_Storage * Ce_Storage::pInstance_ = 0;
-
-
-
-
-Ce_Storage::Ce_Storage()
- : stg::Storage<CodeEntity>(C_nReservedElements)
-{
- csv_assert(pInstance_ == 0);
- pInstance_ = this;
-}
-
-Ce_Storage::~Ce_Storage()
-{
- csv_assert(pInstance_ != 0);
- pInstance_ = 0;
-}
-
-
-} // namespace idl
-} // namespace ary
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/ary/idl/is_ce.hxx b/autodoc/source/ary/idl/is_ce.hxx
deleted file mode 100644
index 3dc04c3dd47e..000000000000
--- a/autodoc/source/ary/idl/is_ce.hxx
+++ /dev/null
@@ -1,73 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_IDL_IS_CE_HXX
-#define ARY_IDL_IS_CE_HXX
-
-// BASE CLASSES
-#include <store/s_storage.hxx>
-// USED SERVICES
-#include <ary/idl/i_ce.hxx>
-
-
-
-
-namespace ary
-{
-namespace idl
-{
-
-
-/** The data base for all ->ary::idl::CodeEntity objects.
-*/
-class Ce_Storage : public ::ary::stg::Storage< ::ary::idl::CodeEntity >
-{
- public:
- Ce_Storage();
- virtual ~Ce_Storage();
-
- static Ce_Storage & Instance_() { csv_assert(pInstance_ != 0);
- return *pInstance_; }
- private:
- // DATA
- static Ce_Storage * pInstance_;
-};
-
-
-
-
-namespace predefined
-{
-
-enum E_CodeEntity
-{
- ce_GlobalNamespace = 1,
- ce_MAX
-};
-
-} // namespace predefined
-
-
-
-
-} // namespace idl
-} // namespace ary
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/ary/idl/is_type.cxx b/autodoc/source/ary/idl/is_type.cxx
deleted file mode 100644
index 959a6384301b..000000000000
--- a/autodoc/source/ary/idl/is_type.cxx
+++ /dev/null
@@ -1,77 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include "is_type.hxx"
-
-
-// NOT FULLY DEFINED SERVICES
-#include <cosv/tpl/tpltools.hxx>
-
-namespace
-{
-
-const uintt
- C_nReservedElements = ary::idl::predefined::type_MAX; // Skipping "0" and the built in types.
-}
-
-
-namespace ary
-{
-namespace idl
-{
-
-Type_Storage * Type_Storage::pInstance_ = 0;
-
-
-
-Type_Storage::Type_Storage()
- : stg::Storage<Type>(C_nReservedElements),
- aSequenceIndex()
-{
- csv_assert(pInstance_ == 0);
- pInstance_ = this;
-}
-
-Type_Storage::~Type_Storage()
-{
- csv_assert(pInstance_ != 0);
- pInstance_ = 0;
-}
-
-void
-Type_Storage::Add_Sequence( Type_id i_nRelatedType,
- Type_id i_nSequence )
-{
- aSequenceIndex[i_nRelatedType] = i_nSequence;
-}
-
-Type_id
-Type_Storage::Search_SequenceOf( Type_id i_nRelatedType )
-{
- return csv::value_from_map(aSequenceIndex, i_nRelatedType);
-}
-
-
-
-
-} // namespace idl
-} // namespace ary
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/ary/idl/is_type.hxx b/autodoc/source/ary/idl/is_type.hxx
deleted file mode 100644
index 1b7766ee310a..000000000000
--- a/autodoc/source/ary/idl/is_type.hxx
+++ /dev/null
@@ -1,116 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_IDL_IS_TYPE_HXX
-#define ARY_IDL_IS_TYPE_HXX
-
-// BASE CLASSES
-#include <store/s_storage.hxx>
-// USED SERVICES
-#include <ary/idl/i_type.hxx>
-
-
-
-
-namespace ary
-{
-namespace idl
-{
-
-
-/** The data base for all ->ary::idl::CodeEntity objects.
-*/
-class Type_Storage : public ::ary::stg::Storage< ::ary::idl::Type >
-{
- public:
- Type_Storage();
- ~Type_Storage();
-
-
- void Add_Sequence(
- Type_id i_nRelatedType,
- Type_id i_nSequence );
-
- Type_id Search_SequenceOf(
- Type_id i_nRelatedType );
-
- static Type_Storage &
- Instance_();
- private:
- /** value_type.first := id of the base type
- value_type.second := id of the sequence<base type>
- */
- typedef std::map<Type_id,Type_id> Map_Sequences;
-
- // DATA
- Map_Sequences aSequenceIndex;
-
- static Type_Storage *
- pInstance_;
-};
-
-
-
-namespace predefined
-{
-
-enum E_Type
-{
- type_Root_ofXNameRooms = 1,
- type_GlobalXNameRoom,
- type_any,
- type_boolean,
- type_byte,
- type_char,
- type_double,
- type_float,
- type_hyper,
- type_long,
- type_short,
- type_string,
- type_type,
- type_void,
- type_u_hyper,
- type_u_long,
- type_u_short,
- type_ellipse, // ...
- type_MAX
-};
-
-} // namespace predefined
-
-
-
-
-// IMPLEMENTATION
-inline Type_Storage &
-Type_Storage::Instance_()
-{
- csv_assert(pInstance_ != 0);
- return *pInstance_;
-}
-
-
-
-
-} // namespace idl
-} // namespace ary
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/ary/idl/it_builtin.cxx b/autodoc/source/ary/idl/it_builtin.cxx
deleted file mode 100644
index 7dd941a3538a..000000000000
--- a/autodoc/source/ary/idl/it_builtin.cxx
+++ /dev/null
@@ -1,73 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include "it_builtin.hxx"
-
-
-// NOT FULLY DEFINED SERVICES
-#include <cosv/tpl/processor.hxx>
-
-
-
-namespace ary
-{
-namespace idl
-{
-
-
-
-BuiltInType::BuiltInType( const char * i_sName )
- : Named_Type(i_sName)
-{
-}
-
-BuiltInType::~BuiltInType()
-{
-}
-
-ClassId
-BuiltInType::get_AryClass() const
-{
- return class_id;
-}
-
-void
-BuiltInType::do_Accept( csv::ProcessorIfc & io_processor ) const
-{
- csv::CheckedCall(io_processor, *this);
-}
-
-void
-BuiltInType::inq_Get_Text( StringVector & , // o_module
- String & o_name,
- Ce_id & , // o_nRelatedCe
- int & , // o_nSequenceCount
- const Gate & ) const // i_rGate
-{
- o_name = Name();
-}
-
-
-
-
-} // namespace idl
-} // namespace ary
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/ary/idl/it_builtin.hxx b/autodoc/source/ary/idl/it_builtin.hxx
deleted file mode 100644
index d9db79467c5f..000000000000
--- a/autodoc/source/ary/idl/it_builtin.hxx
+++ /dev/null
@@ -1,70 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_IDL_IT_BUILTIN_HXX
-#define ARY_IDL_IT_BUILTIN_HXX
-
-// BASE CLASSES
-#include "it_named.hxx"
-
-
-
-
-namespace ary
-{
-namespace idl
-{
-
-
-/** A type defined by the IDL language.
-*/
-class BuiltInType : public Named_Type
-{
- public:
- enum E_ClassId { class_id = 2200 };
-
- // LIFECYCLE
- BuiltInType(
- const char * i_sName );
- virtual ~BuiltInType();
-
- private:
- // Interface csv::ConstProcessorClient:
- virtual void do_Accept(
- csv::ProcessorIfc & io_processor ) const;
- // Interface Object:
- virtual ClassId get_AryClass() const;
-
- // Interface Type:
- virtual void inq_Get_Text(
- StringVector & o_module,
- String & o_name,
- Ce_id & o_nRelatedCe,
- int & o_nSequenceCount,
- const Gate & i_rGate ) const;
-};
-
-
-
-
-} // namespace idl
-} // namespace ary
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/ary/idl/it_ce.cxx b/autodoc/source/ary/idl/it_ce.cxx
deleted file mode 100644
index f0861d11d51e..000000000000
--- a/autodoc/source/ary/idl/it_ce.cxx
+++ /dev/null
@@ -1,94 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include "it_ce.hxx"
-
-
-// NOT FULLY DEFINED SERVICES
-#include <cosv/tpl/processor.hxx>
-#include <ary/idl/i_ce.hxx>
-#include <ary/idl/i_gate.hxx>
-#include <ary/idl/i_module.hxx>
-#include <ary/idl/ip_ce.hxx>
-
-
-
-namespace ary
-{
-namespace idl
-{
-
-
-Ce_Type::Ce_Type( Ce_id i_relatedCe,
- const std::vector<Type_id> * i_templateParameters )
- : nRelatedCe(i_relatedCe),
- pTemplateParameters(0)
-{
- if (i_templateParameters != 0)
- pTemplateParameters = new std::vector<Type_id>(*i_templateParameters);
-}
-
-Ce_Type::~Ce_Type()
-{
-}
-
-ClassId
-Ce_Type::get_AryClass() const
-{
- return class_id;
-}
-
-void
-Ce_Type::do_Accept( csv::ProcessorIfc & io_processor ) const
-{
- csv::CheckedCall(io_processor, *this);
-}
-
-void
-Ce_Type::inq_Get_Text( StringVector & o_module,
- String & o_name,
- Ce_id & o_nRelatedCe,
- int & , // o_nSequenceCount
- const Gate & i_rGate ) const
-{
- String sDummyMember;
-
- const CodeEntity &
- rCe = i_rGate.Ces().Find_Ce(nRelatedCe);
- i_rGate.Ces().Get_Text( o_module,
- o_name,
- sDummyMember,
- rCe );
- o_nRelatedCe = nRelatedCe;
-}
-
-const std::vector<Type_id> *
-Ce_Type::inq_TemplateParameters() const
-{
- return pTemplateParameters.Ptr();
-}
-
-
-
-
-} // namespace idl
-} // namespace ary
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/ary/idl/it_ce.hxx b/autodoc/source/ary/idl/it_ce.hxx
deleted file mode 100644
index c3cfdf860b22..000000000000
--- a/autodoc/source/ary/idl/it_ce.hxx
+++ /dev/null
@@ -1,82 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_IDL_IT_CE_HXX
-#define ARY_IDL_IT_CE_HXX
-
-// BASE CLASSES
-#include <ary/idl/i_type.hxx>
-
-
-
-
-namespace ary
-{
-namespace idl
-{
-
-
-/** A named ->Type related to its corresponding
- ->CodeEntity.
-*/
-class Ce_Type : public Type
-{
- public:
- enum E_ClassId { class_id = 2201 };
-
- // LIFECYCLE
- Ce_Type(
- Ce_id i_relatedCe,
- const std::vector<Type_id> *
- i_templateParameters );
- virtual ~Ce_Type();
-
- // INQUIRY
- Ce_id RelatedCe() const { return nRelatedCe; }
-
- private:
- // Interface csv::ConstProcessorClient:
- virtual void do_Accept(
- csv::ProcessorIfc & io_processor ) const;
- // Interface Object:
- virtual ClassId get_AryClass() const;
-
- // Interface Type:
- virtual void inq_Get_Text(
- StringVector & o_module,
- String & o_name,
- Ce_id & o_nRelatedCe,
- int & o_nSequemceCount,
- const Gate & i_rGate ) const;
- virtual const std::vector<Type_id> *
- inq_TemplateParameters() const;
- // DATA
- Ce_id nRelatedCe;
- Dyn< std::vector<Type_id> >
- pTemplateParameters;
-};
-
-
-
-
-} // namespace idl
-} // namespace ary
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/ary/idl/it_explicit.cxx b/autodoc/source/ary/idl/it_explicit.cxx
deleted file mode 100644
index 3a4ad53bebb7..000000000000
--- a/autodoc/source/ary/idl/it_explicit.cxx
+++ /dev/null
@@ -1,94 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include "it_explicit.hxx"
-
-
-// NOT FULLY DEFINED SERVICES
-#include <cosv/tpl/processor.hxx>
-#include <ary/idl/i_module.hxx>
-#include <ary/idl/i_gate.hxx>
-#include <ary/idl/ip_ce.hxx>
-#include <ary/idl/ip_type.hxx>
-#include "it_xnameroom.hxx"
-
-
-
-namespace ary
-{
-namespace idl
-{
-
-
-ExplicitType::ExplicitType( const String & i_sName,
- Type_id i_nXNameRoom,
- Ce_id i_nModuleOfOccurrence,
- const std::vector<Type_id> *
- i_templateParameters )
- : Named_Type(i_sName),
- nXNameRoom(i_nXNameRoom),
- nModuleOfOccurrence(i_nModuleOfOccurrence),
- pTemplateParameters(0)
-{
- if (i_templateParameters != 0)
- pTemplateParameters = new std::vector<Type_id>(*i_templateParameters);
-}
-
-ExplicitType::~ExplicitType()
-{
-}
-
-ClassId
-ExplicitType::get_AryClass() const
-{
- return class_id;
-}
-
-void
-ExplicitType::do_Accept( csv::ProcessorIfc & io_processor ) const
-{
- csv::CheckedCall(io_processor, *this);
-}
-
-void
-ExplicitType::inq_Get_Text( StringVector & o_module,
- String & o_name,
- Ce_id & o_nRelatedCe,
- int & o_nSequenceCount,
- const Gate & i_rGate ) const
-{
- const ExplicitNameRoom &
- rNameRoom = i_rGate.Types().Find_XNameRoom(nXNameRoom);
- rNameRoom.Get_Text(o_module,o_name,o_nRelatedCe,o_nSequenceCount,i_rGate);
-
- o_name = Name();
-}
-
-const std::vector<Type_id> *
-ExplicitType::inq_TemplateParameters() const
-{
- return pTemplateParameters.Ptr();
-}
-
-
-} // namespace idl
-} // namespace ary
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/ary/idl/it_explicit.hxx b/autodoc/source/ary/idl/it_explicit.hxx
deleted file mode 100644
index 6538f07a5483..000000000000
--- a/autodoc/source/ary/idl/it_explicit.hxx
+++ /dev/null
@@ -1,87 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_IDL_IT_EXPLICIT_HXX
-#define ARY_IDL_IT_EXPLICIT_HXX
-
-// BASE CLASSES
-#include "it_named.hxx"
-
-
-
-
-namespace ary
-{
-namespace idl
-{
-
-
-/** A named @->Type, not yet related to its corresponding
- @->CodeEntity.
-*/
-class ExplicitType : public Named_Type
-{
- public:
- enum E_ClassId { class_id = 2203 };
-
- // LIFECYCLE
- ExplicitType(
- const String & i_sName,
- Type_id i_nXNameRoom,
- Ce_id i_nModuleOfOccurrence,
- const std::vector<Type_id> *
- i_templateParameters );
- virtual ~ExplicitType();
-
- // INQUIRY
- Ce_id ModuleOfOccurrence() const
- { return nModuleOfOccurrence; }
- Type_id NameRoom() const { return nXNameRoom; }
-
- private:
- // Interface csv::ConstProcessorClient:
- virtual void do_Accept(
- csv::ProcessorIfc & io_processor ) const;
- // Interface CppEntity:
- virtual ClassId get_AryClass() const;
-
- // Interface Type:
- virtual void inq_Get_Text(
- StringVector & o_module,
- String & o_name,
- Ce_id & o_nRelatedCe,
- int & o_nSequemceCount,
- const Gate & i_rGate ) const;
- virtual const std::vector<Type_id> *
- inq_TemplateParameters() const;
- // DATA
- Type_id nXNameRoom; // As written in code.
- Ce_id nModuleOfOccurrence;
- Dyn< const std::vector<Type_id> >
- pTemplateParameters;
-};
-
-
-
-
-} // namespace idl
-} // namespace ary
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/ary/idl/it_named.hxx b/autodoc/source/ary/idl/it_named.hxx
deleted file mode 100644
index 0119d45130ef..000000000000
--- a/autodoc/source/ary/idl/it_named.hxx
+++ /dev/null
@@ -1,69 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_IDL_IT_NAMED_HXX
-#define ARY_IDL_IT_NAMED_HXX
-
-
-
-// USED SERVICES
- // BASE CLASSES
-#include <ary/idl/i_type.hxx>
- // COMPONENTS
- // PARAMETERS
-
-
-namespace ary
-{
-namespace idl
-{
-
-
-
-
-/** Represents types with a name - in opposite to e.g. sequences,
- which do not have one.
-*/
-class Named_Type : public Type
-{
- public:
- // LIFECYCLE
- virtual ~Named_Type() {}
-
- // INQUIRY
- const String & Name() const { return sName; }
-
- protected:
- Named_Type(
- const String & i_sName )
- : sName(i_sName) { }
- private:
- // DATA
- String sName;
-};
-
-
-
-} // namespace idl
-} // namespace ary
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/ary/idl/it_sequence.cxx b/autodoc/source/ary/idl/it_sequence.cxx
deleted file mode 100644
index c95b3183ea61..000000000000
--- a/autodoc/source/ary/idl/it_sequence.cxx
+++ /dev/null
@@ -1,85 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include "it_sequence.hxx"
-
-
-// NOT FULLY DEFINED SERVICES
-#include <cosv/tpl/processor.hxx>
-#include <ary/idl/i_gate.hxx>
-#include <ary/idl/ip_type.hxx>
-
-
-
-namespace ary
-{
-namespace idl
-{
-
-
-Sequence::Sequence( Type_id i_nRelatedType )
- : nRelatedType(i_nRelatedType)
-{
-}
-
-Sequence::~Sequence()
-{
-}
-
-ClassId
-Sequence::get_AryClass() const
-{
- return class_id;
-}
-
-void
-Sequence::do_Accept( csv::ProcessorIfc & io_processor ) const
-{
- csv::CheckedCall(io_processor, *this);
-}
-
-void
-Sequence::inq_Get_Text( StringVector & o_module,
- String & o_name,
- Ce_id & o_nRelatedCe,
- int & o_nSequenceCount,
- const Gate & i_rGate ) const
-{
- ++o_nSequenceCount;
-
- i_rGate.Types().Find_Type(nRelatedType)
- .Get_Text( o_module,
- o_name,
- o_nRelatedCe,
- o_nSequenceCount,
- i_rGate );
-}
-
-const Type &
-Sequence::inq_FirstEnclosedNonSequenceType(const Gate & i_rGate) const
-{
- return i_rGate.Types().Find_Type(nRelatedType).FirstEnclosedNonSequenceType(i_rGate);
-}
-
-
-} // namespace idl
-} // namespace ary
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/ary/idl/it_sequence.hxx b/autodoc/source/ary/idl/it_sequence.hxx
deleted file mode 100644
index a4933601e335..000000000000
--- a/autodoc/source/ary/idl/it_sequence.hxx
+++ /dev/null
@@ -1,78 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_IDL_IT_SEQUENCE_HXX
-#define ARY_IDL_IT_SEQUENCE_HXX
-
-// BASE CLASSES
-#include <ary/idl/i_type.hxx>
-
-
-
-
-namespace ary
-{
-namespace idl
-{
-
-
-/** A sequence (an array of a type).
-*/
-class Sequence : public Type
-{
- public:
- enum E_ClassId { class_id = 2202 };
-
- // LIFECYCLE
- Sequence(
- Type_id i_nRelatedType );
- virtual ~Sequence();
-
- // INQUIRY
- Type_id RelatedType() const { return nRelatedType; }
-
- private:
- // Interface csv::ConstProcessorClient:
- virtual void do_Accept(
- csv::ProcessorIfc & io_processor ) const;
- // Interface Object:
- virtual ClassId get_AryClass() const;
-
- // Interface Type:
- virtual void inq_Get_Text(
- StringVector & o_module,
- String & o_name,
- Ce_id & o_nRelatedCe,
- int & o_nSequemceCount,
- const Gate & i_rGate ) const;
- virtual const Type &
- inq_FirstEnclosedNonSequenceType(
- const Gate & i_rGate ) const;
- // DATA
- Type_id nRelatedType;
-};
-
-
-
-
-} // namespace idl
-} // namespace ary
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/ary/idl/it_tplparam.cxx b/autodoc/source/ary/idl/it_tplparam.cxx
deleted file mode 100644
index 8b47ee43e02f..000000000000
--- a/autodoc/source/ary/idl/it_tplparam.cxx
+++ /dev/null
@@ -1,86 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include "it_tplparam.hxx"
-
-
-// NOT FULLY DEFINED SERVICES
-#include <cosv/tpl/processor.hxx>
-
-
-
-namespace ary
-{
-namespace idl
-{
-
-
-
-TemplateParamType::TemplateParamType( const char * i_sName )
- : Named_Type(i_sName)
-{
-}
-
-TemplateParamType::~TemplateParamType()
-{
-}
-
-ClassId
-TemplateParamType::get_AryClass() const
-{
- return class_id;
-}
-
-void
-TemplateParamType::do_Accept( csv::ProcessorIfc & io_processor ) const
-{
- csv::CheckedCall(io_processor, *this);
-}
-
-void
-TemplateParamType::inq_Get_Text( StringVector & , // o_module
- String & o_name,
- Ce_id & , // o_nRelatedCe
- int & , // o_nSequenceCount
- const Gate & ) const // i_rGate
-{
- o_name = Name();
-}
-
-
-//************* Implemented default function for idl::Type ********//
-
-const std::vector<Type_id> *
-Type::inq_TemplateParameters() const
-{
- return 0;
-}
-
-const Type &
-Type::inq_FirstEnclosedNonSequenceType(const Gate & ) const
-{
- return *this;
-}
-
-
-} // namespace idl
-} // namespace ary
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/ary/idl/it_tplparam.hxx b/autodoc/source/ary/idl/it_tplparam.hxx
deleted file mode 100644
index e38fcfed1f15..000000000000
--- a/autodoc/source/ary/idl/it_tplparam.hxx
+++ /dev/null
@@ -1,92 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_IDL_IT_TPLPARAM_HXX
-#define ARY_IDL_IT_TPLPARAM_HXX
-
-// BASE CLASSES
-#include "it_named.hxx"
-
-
-
-
-namespace ary
-{
-namespace idl
-{
-
-
-/** @resp Represents a template type when it is used within the
- declaring struct.
-*/
-class TemplateParamType : public Named_Type
-{
- public:
- enum E_ClassId { class_id = 2205 };
-
- // LIFECYCLE
- TemplateParamType(
- const char * i_sName );
- virtual ~TemplateParamType();
-
- Ce_id StructId() const; /// The struct which declares this type.
- void Set_StructId(
- Ce_id i_nStruct );
- private:
- // Interface csv::ConstProcessorClient:
- virtual void do_Accept(
- csv::ProcessorIfc & io_processor ) const;
- // Interface Object:
- virtual ClassId get_AryClass() const;
-
- // Interface Type:
- virtual void inq_Get_Text(
- StringVector & o_module,
- String & o_name,
- Ce_id & o_nRelatedCe,
- int & o_nSequenceCount,
- const Gate & i_rGate ) const;
- // DATA
- Ce_id nStruct; /// The struct which declares this type.
-};
-
-
-
-
-// IMPLEMENTATION
-inline Ce_id
-TemplateParamType::StructId() const
-{
- return nStruct;
-}
-
-inline void
-TemplateParamType::Set_StructId( Ce_id i_nStruct )
-{
- nStruct = i_nStruct;
-}
-
-
-
-
-} // namespace idl
-} // namespace ary
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/ary/idl/it_xnameroom.cxx b/autodoc/source/ary/idl/it_xnameroom.cxx
deleted file mode 100644
index e3d265de9bad..000000000000
--- a/autodoc/source/ary/idl/it_xnameroom.cxx
+++ /dev/null
@@ -1,94 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include "it_xnameroom.hxx"
-
-
-// NOT FULLY DEFINED SERVICES
-#include <cosv/tpl/processor.hxx>
-#include <cosv/tpl/tpltools.hxx>
-#include <ary/idl/i_gate.hxx>
-#include <ary/idl/ip_type.hxx>
-
-
-
-namespace ary
-{
-namespace idl
-{
-
-
-ExplicitNameRoom::ExplicitNameRoom()
- : aImpl()
-{
-}
-
-ExplicitNameRoom::ExplicitNameRoom( const String & i_sName,
- const ExplicitNameRoom & i_rParent )
- : aImpl( i_sName, i_rParent.aImpl, i_rParent.TypeId() )
-{
-}
-
-ExplicitNameRoom::~ExplicitNameRoom()
-{
-}
-
-ClassId
-ExplicitNameRoom::get_AryClass() const
-{
- return class_id;
-}
-
-void
-ExplicitNameRoom::do_Accept( csv::ProcessorIfc & io_processor ) const
-{
- csv::CheckedCall(io_processor, *this);
-}
-
-void
-ExplicitNameRoom::inq_Get_Text( StringVector & o_module,
- String & , // o_name
- Ce_id & , // o_nRelatedCe
- int & , // o_nSequemceCount
- const Gate & ) const // i_rGate
-{
- StringVector::const_iterator it = NameChain_Begin();
- if ( it != NameChain_End()
- ? (*it).empty()
- : false )
- { // Don't put out the root global namespace
- ++it;
- }
-
- for ( ;
- it != NameChain_End();
- ++it )
- {
- o_module.push_back(*it);
- }
-}
-
-
-
-
-} // namespace idl
-} // namespace ary
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/ary/idl/it_xnameroom.hxx b/autodoc/source/ary/idl/it_xnameroom.hxx
deleted file mode 100644
index e827d4814980..000000000000
--- a/autodoc/source/ary/idl/it_xnameroom.hxx
+++ /dev/null
@@ -1,117 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_IDL_IT_XNAMEROOM_HXX
-#define ARY_IDL_IT_XNAMEROOM_HXX
-
-// BASE CLASSES
-#include <ary/idl/i_type.hxx>
-#include <nametreenode.hxx>
-
-
-
-
-namespace ary
-{
-namespace idl
-{
-
-
-/** A namespace for ->Type s, as they are explicitly written in code.
-
- The search/identification string is usually the local name of
- the Type. But for templated structs, the search string has this
- pattern:
- <LocalName> '<' <StringOfTemplateTypeId>
-*/
-class ExplicitNameRoom : public Type
-{
- public:
- enum E_ClassId { class_id = 2204 };
-
- // LIFECYCLE
- ExplicitNameRoom();
- ExplicitNameRoom(
- const String & i_sName,
- const ExplicitNameRoom &
- i_rParent );
- virtual ~ExplicitNameRoom();
-
- // OPERATIONS
- /** @param i_sSearchString
- A local type name usually.
- For templated types see class docu.
- @see ExplicitNameRoom
- */
- void Add_Name(
- const String & i_sSearchString,
- Type_id i_nId )
- { aImpl.Add_Name(i_sSearchString,i_nId); }
- // INQUIRY
- const String & Name() const { return aImpl.Name(); }
- intt Depth() const { return aImpl.Depth(); }
- void Get_FullName(
- StringVector & o_rText,
- Ce_idList * o_pRelatedCes,
- const Gate & i_rGate ) const;
- bool IsAbsolute() const { return Depth() > 0
- ? (*NameChain_Begin()).empty()
- : false; }
- /** @param i_sSearchString
- A local type name usually.
- For templated types see class docu.
- @see ExplicitNameRoom
- */
- Type_id Search_Name(
- const String & i_sSearchString ) const
- { return aImpl.Search_Name(i_sSearchString); }
-
- StringVector::const_iterator
- NameChain_Begin() const
- { return aImpl.NameChain_Begin(); }
- StringVector::const_iterator
- NameChain_End() const
- { return aImpl.NameChain_End(); }
- private:
- // Interface csv::ConstProcessorClient:
- virtual void do_Accept(
- csv::ProcessorIfc & io_processor ) const;
- // Interface Object:
- virtual ClassId get_AryClass() const;
-
- // Interface Type:
- virtual void inq_Get_Text(
- StringVector & o_module,
- String & o_name,
- Ce_id & o_nRelatedCe,
- int & o_nSequemceCount,
- const Gate & i_rGate ) const;
- // DATA
- NameTreeNode<Type_id>
- aImpl;
-};
-
-
-
-
-} // namespace idl
-} // namespace ary
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/ary/inc/idl_internalgate.hxx b/autodoc/source/ary/inc/idl_internalgate.hxx
deleted file mode 100644
index 23e6dff26640..000000000000
--- a/autodoc/source/ary/inc/idl_internalgate.hxx
+++ /dev/null
@@ -1,51 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_IDL_INTERNALGATE_HXX
-#define ARY_IDL_INTERNALGATE_HXX
-
-// BASE CLASSES
-#include <ary/idl/i_gate.hxx>
-
-namespace ary
-{
-namespace idl
-{
-
-
-/** Provides access to the ->idl::RepositoryPartition as far as is needed
- by the ->RepositoryCenter.
-*/
-class InternalGate : public ::ary::idl::Gate
-{
- public:
- virtual ~InternalGate() {}
-
- static DYN InternalGate &
- Create_Partition_();
-};
-
-
-
-
-} // namespace idl
-} // namespace ary
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/ary/inc/idsort.hxx b/autodoc/source/ary/inc/idsort.hxx
deleted file mode 100644
index 327a52173f3f..000000000000
--- a/autodoc/source/ary/inc/idsort.hxx
+++ /dev/null
@@ -1,46 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_IDSORT_HXX
-#define ARY_IDSORT_HXX
-
-
-/** A compare function that sorts ids of repository entities in the same
- storage.
-
- @see ::ary::SortedIds
-*/
-template<class COMPARE>
-struct IdSorter
-{
- bool operator()(
- typename COMPARE::id_type
- i_1,
- typename COMPARE::id_type
- i_2 ) const
- { return COMPARE::Lesser_(
- COMPARE::KeyOf_(COMPARE::EntityOf_(i_1)),
- COMPARE::KeyOf_(COMPARE::EntityOf_(i_2)) );
- }
-};
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/ary/inc/nametreenode.hxx b/autodoc/source/ary/inc/nametreenode.hxx
deleted file mode 100644
index b4d684018d76..000000000000
--- a/autodoc/source/ary/inc/nametreenode.hxx
+++ /dev/null
@@ -1,204 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_NAMETREENODE_HXX
-#define ARY_NAMETREENODE_HXX
-// KORR_DEPRECATED_3.0
-// Replace by ::ary::symtree::Node.
-
-// USED SERVICES
-#include <cosv/tpl/tpltools.hxx>
-#include <sci_impl.hxx>
-// HACK because of SunPro 5.2 compiler bug with templates:
-#include <ary/idl/i_module.hxx>
-
-
-
-
-namespace ary
-{
-
-
-/** Implementation of a node in a namespace-tree.
-*/
-template<class ITEM_ID>
-class NameTreeNode
-{
- public:
- typedef NameTreeNode self;
- typedef ITEM_ID item_id;
- typedef StringVector::const_iterator name_iterator;
- typedef std::map<String, item_id> Map_LocalNames;
-
- // LIFECYCLE
- NameTreeNode();
- NameTreeNode(
- const String & i_sName,
- const self & i_rParent,
- ITEM_ID i_nParentId );
- virtual ~NameTreeNode();
-
- // OPERATIONS
- void Add_Name(
- const String & i_sName,
- item_id i_nId );
- // INQUIRY
- const String & Name() const { return Depth() > 0 ? aCompleteNameChain.back() : String::Null_(); }
- item_id Parent() const { return nParent; }
- intt Depth() const { return aCompleteNameChain.size(); }
-
- bool IsEquivalent(
- const NameTreeNode &
- i_rNode ) const;
- name_iterator NameChain_Begin() const { return aCompleteNameChain.begin(); }
- name_iterator NameChain_End() const { return aCompleteNameChain.end(); }
-
- item_id Search_Name(
- const String & i_sName ) const;
- void Get_Names(
- Dyn_StdConstIterator<ITEM_ID> &
- o_rResult ) const;
- const Map_LocalNames &
- LocalNames() const { return aLocalNames; }
- private:
- // Locals
- Map_LocalNames & LocalNames() { return aLocalNames; }
-
- // DATA
- Map_LocalNames aLocalNames;
- StringVector aCompleteNameChain;
- item_id nParent;
-};
-
-
-
-
-// IMPLEMENTATION
-template<class ITEM_ID>
-NameTreeNode<ITEM_ID>::NameTreeNode()
- : aLocalNames(),
- aCompleteNameChain(),
- nParent(0)
-{
-}
-
-template<class ITEM_ID>
-NameTreeNode<ITEM_ID>::NameTreeNode( const String & i_sName,
- const self & i_rParent,
- ITEM_ID i_nParentId )
- : aLocalNames(),
- aCompleteNameChain(),
- nParent(i_nParentId)
-{
- aCompleteNameChain.reserve(i_rParent.Depth()+1);
- for ( name_iterator it = i_rParent.NameChain_Begin();
- it != i_rParent.NameChain_End();
- ++it )
- {
- aCompleteNameChain.push_back(*it);
- }
- aCompleteNameChain.push_back(i_sName);
-}
-
-template<class ITEM_ID>
-NameTreeNode<ITEM_ID>::~NameTreeNode()
-{
-}
-
-
-template<class ITEM_ID>
-inline void
-NameTreeNode<ITEM_ID>::Add_Name( const String & i_sName,
- item_id i_nId )
-{
- LocalNames().insert( typename Map_LocalNames::value_type(i_sName, i_nId) );
-}
-
-
-template<class ITEM_ID>
-inline bool
-NameTreeNode<ITEM_ID>::IsEquivalent( const NameTreeNode & i_rNode ) const
-{
- return aCompleteNameChain == i_rNode.aCompleteNameChain;
-}
-
-template<class ITEM_ID>
-inline ITEM_ID
-NameTreeNode<ITEM_ID>::Search_Name( const String & i_sName ) const
-{
- return csv::value_from_map(LocalNames(),i_sName, ITEM_ID(0));
-}
-
-template<class ITEM_ID>
-inline void
-NameTreeNode<ITEM_ID>::Get_Names( Dyn_StdConstIterator<ITEM_ID> & o_rResult ) const
-{
- o_rResult = new SCI_DataInMap<String,item_id>(LocalNames());
-}
-
-
-// HACK because of SunPro 5.2 compiler bug with templates:
-// ary::idl::Module has to be "FIND_NODE::node_type"
-// must be solved later somehow.
-template <class FIND_NODE>
-typename FIND_NODE::id_type
-Search_SubTree( const ary::idl::Module & i_rStart,
- const FIND_NODE & i_rNodeFinder )
-{
- const ary::idl::Module *
- ret = &i_rStart;
-
- for ( StringVector::const_iterator it = i_rNodeFinder.Begin();
- it != i_rNodeFinder.End() AND ret != 0;
- ++it )
- {
- ret = i_rNodeFinder(ret->Search_Name(*it));
- }
-
- typename FIND_NODE::id_type nret(0);
- return ret != 0
- ? ret->Search_Name(i_rNodeFinder.Name2Search())
- : nret;
-}
-
-template <class FIND_NODE>
-typename FIND_NODE::id_type
-Search_SubTree_UpTillRoot( const ary::idl::Module & i_rStart,
- const FIND_NODE & i_rNodeFinder )
-{
- typename FIND_NODE::id_type
- ret(0);
- for ( const ary::idl::Module * start = &i_rStart;
- start != 0 AND NOT ret.IsValid();
- start = i_rNodeFinder(start->Owner()) )
- {
- ret = Search_SubTree( *start,
- i_rNodeFinder );
- }
- return ret;
-}
-// END Hack for SunPro 5.2 compiler bug.
-
-
-
-
-} // namespace ary
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/ary/inc/reposy.hxx b/autodoc/source/ary/inc/reposy.hxx
deleted file mode 100644
index f906cd5c255a..000000000000
--- a/autodoc/source/ary/inc/reposy.hxx
+++ /dev/null
@@ -1,77 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_REPOSY_HXX
-#define ARY_REPOSY_HXX
-
-// BASE CLASSES
-#include <ary/ary.hxx>
-// USED SERVICES
-#include <cosv/ploc_dir.hxx>
-
-namespace ary
-{
-namespace idl
-{
- class InternalGate;
-}
-} // namespace ary
-
-
-
-
-namespace ary
-{
-
-
-/** Implements ::ary::Repository.
-
- @see Repository
-*/
-
-class RepositoryCenter : public ::ary::Repository
-{
- public:
- // LIFECYCLE
- RepositoryCenter();
- virtual ~RepositoryCenter();
-
- // INHERITED
- // Interface Repository:
- virtual const idl::Gate & Gate_Idl() const;
- virtual const String & Title() const;
- virtual idl::Gate & Gate_Idl();
- virtual void Set_Title(const String & i_sName );
-
- private:
- // DATA
- String sDisplayedName; /// Name to be displayed for human users.
- csv::ploc::Directory
- aLocation;
- Dyn<idl::InternalGate>
- pIdlPartition;
-};
-
-
-
-
-} // namespace ary
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/ary/inc/sci_impl.hxx b/autodoc/source/ary/inc/sci_impl.hxx
deleted file mode 100644
index 8c766ba50ba9..000000000000
--- a/autodoc/source/ary/inc/sci_impl.hxx
+++ /dev/null
@@ -1,407 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_SCI_IMPL_HXX
-#define ARY_SCI_IMPL_HXX
-
-
-
-// USED SERVICES
- // BASE CLASSES
-#include <ary/stdconstiter.hxx>
- // COMPONENTS
- // PARAMETERS
-
-
-namespace ary
-{
-
-
-//************************* SCI_Vector **********************************//
-
-template <class ELEM>
-class SCI_Vector : public StdConstIterator<ELEM>
-{
- public:
- typedef std::vector<ELEM> source;
- typedef typename source::const_iterator source_iterator;
-
- SCI_Vector(
- const source & i_rSource );
- virtual ~SCI_Vector();
-
- private:
- // Interface StdConstIterator<>:
- virtual void do_Advance();
- virtual const ELEM *
- inq_CurElement() const;
- virtual bool inq_IsSorted() const;
-
- // DATA
- source_iterator itRun;
- source_iterator itEnd;
-};
-
-
-
-//************************* SCI_Map **********************************//
-
-template <class KEY, class VALUE>
-class SCI_Map : public StdConstIterator< typename std::map<KEY,VALUE>::value_type >
-{
- public:
- typedef std::map<KEY,VALUE> source;
- typedef typename source::const_iterator source_iterator;
-
- SCI_Map(
- const source & i_rSource );
- virtual ~SCI_Map();
-
- private:
- // Interface StdConstIterator<>:
- virtual void do_Advance();
- virtual const typename std::map<KEY,VALUE>::value_type *
- inq_CurElement() const;
- virtual bool inq_IsSorted() const;
-
- // DATA
- source_iterator itRun;
- source_iterator itEnd;
-};
-
-
-//************************* SCI_MultiMap **********************************//
-
-template <class KEY, class VALUE>
-class SCI_MultiMap : public StdConstIterator< typename std::multimap<KEY,VALUE>::value_type >
-{
- public:
- typedef std::multimap<KEY,VALUE> source;
- typedef typename source::const_iterator source_iterator;
-
- SCI_MultiMap(
- const source & i_rSource );
- SCI_MultiMap(
- source_iterator i_begin,
- source_iterator i_end );
- virtual ~SCI_MultiMap();
-
- private:
- // Interface StdConstIterator<>:
- virtual void do_Advance();
- virtual const typename std::multimap<KEY,VALUE>::value_type *
- inq_CurElement() const;
- virtual bool inq_IsSorted() const;
-
- // DATA
- source_iterator itRun;
- source_iterator itEnd;
-};
-
-
-
-//************************* SCI_Set **********************************//
-
-
-template <class TYPES>
-class SCI_Set : public StdConstIterator<typename TYPES::element_type>
-{
- public:
- typedef typename TYPES::element_type element;
- typedef typename TYPES::sort_type sorter;
- typedef std::set<element, sorter> source;
- typedef typename source::const_iterator source_iterator;
-
- SCI_Set(
- const source & i_rSource );
- virtual ~SCI_Set();
-
- private:
- // Interface StdConstIterator<>:
- virtual void do_Advance();
- virtual const element *
- inq_CurElement() const;
- virtual bool inq_IsSorted() const;
-
- // DATA
- source_iterator itRun;
- source_iterator itEnd;
-};
-
-//************************* SCI_DataInMap **********************************//
-
-template <class KEY, class VALUE>
-class SCI_DataInMap : public StdConstIterator<VALUE>
-{
- public:
- typedef std::map<KEY,VALUE> source;
- typedef typename source::const_iterator source_iterator;
-
- SCI_DataInMap(
- const source & i_rSource );
- virtual ~SCI_DataInMap();
-
- private:
- // Interface StdConstIterator<>:
- virtual void do_Advance();
- virtual const VALUE *
- inq_CurElement() const;
- virtual bool inq_IsSorted() const;
-
- // DATA
- source_iterator itRun;
- source_iterator itEnd;
-};
-
-
-
-
-
-//********************************************************************//
-
-
-// IMPLEMENTATION
-
-template <class ELEM>
-SCI_Vector<ELEM>::SCI_Vector( const source & i_rSource )
- : itRun(i_rSource.begin()),
- itEnd(i_rSource.end())
-{
-}
-
-template <class ELEM>
-SCI_Vector<ELEM>::~SCI_Vector()
-{
-}
-
-
-template <class ELEM>
-void
-SCI_Vector<ELEM>::do_Advance()
-{
- if (itRun != itEnd)
- ++itRun;
-}
-
-template <class ELEM>
-const ELEM *
-SCI_Vector<ELEM>::inq_CurElement() const
-{
- if (itRun != itEnd)
- return &(*itRun);
- return 0;
-}
-
-template <class ELEM>
-bool
-SCI_Vector<ELEM>::inq_IsSorted() const
-{
- return false;
-}
-
-
-
-
-template <class KEY, class VALUE>
-SCI_Map<KEY,VALUE>::SCI_Map( const source & i_rSource )
- : itRun(i_rSource.begin()),
- itEnd(i_rSource.end())
-{
-}
-
-template <class KEY, class VALUE>
-SCI_Map<KEY,VALUE>::~SCI_Map()
-{
-}
-
-template <class KEY, class VALUE>
-void
-SCI_Map<KEY,VALUE>::do_Advance()
-{
- if (itRun != itEnd)
- ++itRun;
-}
-
-template <class KEY, class VALUE>
-const typename std::map<KEY,VALUE>::value_type *
-SCI_Map<KEY,VALUE>::inq_CurElement() const
-{
- if (itRun != itEnd)
- return &(*itRun);
- return 0;
-}
-
-
-template <class KEY, class VALUE>
-bool
-SCI_Map<KEY,VALUE>::inq_IsSorted() const
-{
- return true;
-}
-
-
-
-
-
-
-
-template <class KEY, class VALUE>
-SCI_MultiMap<KEY,VALUE>::SCI_MultiMap( const source & i_rSource )
- : itRun(i_rSource.begin()),
- itEnd(i_rSource.end())
-{
-}
-
-template <class KEY, class VALUE>
-SCI_MultiMap<KEY,VALUE>::SCI_MultiMap( source_iterator i_begin,
- source_iterator i_end )
- : itRun(i_begin),
- itEnd(i_end)
-{
-}
-
-template <class KEY, class VALUE>
-SCI_MultiMap<KEY,VALUE>::~SCI_MultiMap()
-{
-}
-
-template <class KEY, class VALUE>
-void
-SCI_MultiMap<KEY,VALUE>::do_Advance()
-{
- if (itRun != itEnd)
- ++itRun;
-}
-
-template <class KEY, class VALUE>
-const typename std::multimap<KEY,VALUE>::value_type *
-SCI_MultiMap<KEY,VALUE>::inq_CurElement() const
-{
- if (itRun != itEnd)
- return &(*itRun);
- return 0;
-}
-
-
-template <class KEY, class VALUE>
-bool
-SCI_MultiMap<KEY,VALUE>::inq_IsSorted() const
-{
- return true;
-}
-
-
-
-
-
-
-
-
-template <class ELEM>
-SCI_Set<ELEM>::SCI_Set( const source & i_rSource )
- : itRun(i_rSource.begin()),
- itEnd(i_rSource.end())
-{
-}
-
-template <class ELEM>
-SCI_Set<ELEM>::~SCI_Set()
-{
-}
-
-
-template <class ELEM>
-void
-SCI_Set<ELEM>::do_Advance()
-{
- if (itRun != itEnd)
- ++itRun;
-}
-
-template <class ELEM>
-const typename SCI_Set<ELEM>::element *
-SCI_Set<ELEM>::inq_CurElement() const
-{
- if (itRun != itEnd)
- return &(*itRun);
- return 0;
-}
-
-template <class ELEM>
-bool
-SCI_Set<ELEM>::inq_IsSorted() const
-{
- return true;
-}
-
-
-
-
-
-
-
-template <class KEY, class VALUE>
-SCI_DataInMap<KEY,VALUE>::SCI_DataInMap( const source & i_rSource )
- : itRun(i_rSource.begin()),
- itEnd(i_rSource.end())
-{
-}
-
-template <class KEY, class VALUE>
-SCI_DataInMap<KEY,VALUE>::~SCI_DataInMap()
-{
-}
-
-template <class KEY, class VALUE>
-void
-SCI_DataInMap<KEY,VALUE>::do_Advance()
-{
- if (itRun != itEnd)
- ++itRun;
-}
-
-template <class KEY, class VALUE>
-const VALUE *
-SCI_DataInMap<KEY,VALUE>::inq_CurElement() const
-{
- if (itRun != itEnd)
- return &(*itRun).second;
- return 0;
-}
-
-
-template <class KEY, class VALUE>
-bool
-SCI_DataInMap<KEY,VALUE>::inq_IsSorted() const
-{
- return true;
-}
-
-
-
-
-
-
-
-} // namespace ary
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/ary/inc/store/s_base.hxx b/autodoc/source/ary/inc/store/s_base.hxx
deleted file mode 100644
index 085db7616a34..000000000000
--- a/autodoc/source/ary/inc/store/s_base.hxx
+++ /dev/null
@@ -1,174 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_STORE_S_BASE_HXX
-#define ARY_STORE_S_BASE_HXX
-
-// USED SERVICES
-#include <deque>
-#include <cosv/tpl/tpltools.hxx>
-
-
-
-
-namespace ary
-{
-namespace stg
-{
-
-
-/** The basic storage container of the repository.
-
- @collab Storage
- Implements Storage. Not used elsewhere.
-
- @tpl ENTITY
- The type of *it, where it is of type c_iter, has to be ENTITY * const.
-*/
-template <class ENTITY>
-class Base
-{
- public:
- // LIFECYCLE
- typedef std::deque< ENTITY* > impl_type;
- typedef typename impl_type::const_iterator c_iter;
-
-
- /** @param i_nrOfReservedItems
- The number of actual items to reserve, including the item
- at index [0] that is always empty and unused.
- */
- Base(
- uintt i_nrOfReservedItems );
- ~Base();
-
- // OPERATORS
- ENTITY * operator[](
- uintt i_index ) const;
- // OPERATIONS
- uintt Add_Entity( /// @return the index of the new element.
- DYN ENTITY & pass_newEntity );
- DYN ENTITY * Set_Entity( /// @return the previous value.
- uintt i_index,
- DYN ENTITY & pass_newEntity );
- // INQUIRY
- uintt Size() const; /// Incl. reserved size.
- uintt ReservedSize() const; /// Incl. zero for element at [0].
-
- c_iter Begin() const; /// @return location of index 1, because 0 is always empty.
- c_iter BeginUnreserved() const;
- c_iter End() const;
-
- private:
- // DATA
- impl_type aData;
- uintt nReservedSize;
-};
-
-
-
-// IMPLEMENTATION
-
-template <class ENTITY>
-Base<ENTITY>::Base(uintt i_nrOfReservedItems)
- : aData(i_nrOfReservedItems, 0),
- nReservedSize(i_nrOfReservedItems)
-{
-}
-
-template <class ENTITY>
-Base<ENTITY>::~Base()
-{
- csv::erase_container_of_heap_ptrs(aData);
-}
-
-
-template <class ENTITY>
-ENTITY *
-Base<ENTITY>::operator[](uintt i_index) const
-{
- if (i_index < aData.size())
- return aData[i_index];
- return 0;
-}
-
-template <class ENTITY>
-uintt
-Base<ENTITY>::Add_Entity(DYN ENTITY & pass_newEntity)
-{
- aData.push_back(&pass_newEntity);
- return aData.size() - 1;
-}
-
-template <class ENTITY>
-DYN ENTITY *
-Base<ENTITY>::Set_Entity( uintt i_index,
- DYN ENTITY & pass_newEntity )
-{
- csv_assert(i_index != 0 AND i_index < aData.size());
-
- Dyn<ENTITY>
- ret(aData[i_index]);
- aData[i_index] = &pass_newEntity;
- return ret.Release();
-}
-
-template <class ENTITY>
-uintt
-Base<ENTITY>::Size() const
-{
- return aData.size();
-}
-
-template <class ENTITY>
-uintt
-Base<ENTITY>::ReservedSize() const
-{
- return nReservedSize;
-}
-
-template <class ENTITY>
-typename Base<ENTITY>::c_iter
-Base<ENTITY>::Begin() const
-{
- return aData.begin() + 1;
-}
-
-template <class ENTITY>
-typename Base<ENTITY>::c_iter
-Base<ENTITY>::BeginUnreserved() const
-{
- return aData.begin() + nReservedSize;
-}
-
-template <class ENTITY>
-typename Base<ENTITY>::c_iter
-Base<ENTITY>::End() const
-{
- return aData.end();
-}
-
-
-
-
-} // namespace stg
-} // namespace ary
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/ary/inc/store/s_iterator.hxx b/autodoc/source/ary/inc/store/s_iterator.hxx
deleted file mode 100644
index 1e5bd488449c..000000000000
--- a/autodoc/source/ary/inc/store/s_iterator.hxx
+++ /dev/null
@@ -1,231 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_STORE_S_ITERATOR_HXX
-#define ARY_STORE_S_ITERATOR_HXX
-
-// USED SERVICES
-#include <ary/getncast.hxx>
-#include "s_base.hxx"
-
-
-
-
-namespace ary
-{
-namespace stg
-{
-
-
-template <class> class const_iterator;
-template <class, class> class const_filter_iterator;
-
-
-/** A non-const iterator that runs on a ->Storage<>.
-
- @collab Storage<>
-*/
-template <class ENTITY>
-class iterator : public std::iterator<std::forward_iterator_tag, ENTITY>
-{
- public:
- typedef iterator<ENTITY> self;
- typedef typename Base<ENTITY>::impl_type impl_container;
- typedef typename impl_container::const_iterator impl_type;
-
- // OPERATORS
- iterator()
- : itImpl() {}
- explicit iterator(
- impl_type i_impl)
- : itImpl(i_impl) {}
- ~iterator() {}
-
- bool operator==(
- self i_other ) const
- { return itImpl == i_other.itImpl; }
- bool operator!=(
- self i_other ) const
- { return itImpl != i_other.itImpl; }
- ENTITY & operator*() const { csv_assert(*itImpl != 0);
- return *(*itImpl); }
- self & operator++() { ++itImpl; return *this; }
- self operator++(int) { return self(itImpl++); }
-
- private:
- friend class const_iterator<ENTITY>; // For const_iterator(iterator);
- impl_type ImplIterator() const { return itImpl; }
-
- // DATA
- impl_type itImpl;
-};
-
-
-/** A const iterator that runs on a ->Storage<>.
-
- @collab Storage<>
-*/
-template <class ENTITY>
-class const_iterator :
- public std::iterator<std::forward_iterator_tag, const ENTITY>
-{
- public:
- typedef const_iterator<ENTITY> self;
- typedef typename Base<ENTITY>::impl_type impl_container;
- typedef typename impl_container::const_iterator impl_type;
-
- // OPERATORS
- const_iterator()
- : itImpl() {}
- explicit const_iterator(
- impl_type i_impl)
- : itImpl(i_impl) {}
- const_iterator( // implicit conversions allowed
- ::ary::stg::iterator<ENTITY> i_it )
- : itImpl(i_it.ImplIterator()) {}
- ~const_iterator() {}
-
- bool operator==(
- self i_other ) const
- { return itImpl == i_other.itImpl; }
- bool operator!=(
- self i_other ) const
- { return itImpl != i_other.itImpl; }
- const ENTITY & operator*() const { csv_assert(*itImpl != 0);
- return *(*itImpl); }
- self & operator++() { ++itImpl; return *this; }
- self operator++(int) { return self(itImpl++); }
-
- private:
- // DATA
- impl_type itImpl;
-};
-
-
-
-
-
-/** A non const iterator that runs on a ->Storage<> and returns only
- the elements of a specific type.
-
- @tpl ENTITY
- The element type of the ->Storage<>
-
- @tpl FILTER
- The actual type of the returned items. FILTER needs to be derived from
- ENTITY.
-
- @collab Storage<>
-*/
-template <class ENTITY, class FILTER>
-class filter_iterator :
- public std::iterator<std::forward_iterator_tag, FILTER>
-{
- public:
- typedef filter_iterator<ENTITY,FILTER> self;
- typedef ::ary::stg::iterator<ENTITY> impl_type;
-
- // OPERATORS
- filter_iterator()
- : itCur() {}
- explicit filter_iterator(
- impl_type i_cur )
- : itCur(i_cur) {}
- ~filter_iterator() {}
-
- bool operator==(
- self i_other ) const
- { return itCur == i_other.itCur; }
- bool operator!=(
- self i_other ) const
- { return itCur != i_other.itCur; }
- FILTER & operator*() const { csv_assert(IsValid());
- return static_cast< FILTER& >(*itCur); }
- self & operator++() { ++itCur;
- return *this; }
- self operator++(int) { return self(itCur++); }
- bool IsValid() const { return ary::is_type<FILTER>(*itCur); }
-
- private:
- friend class const_filter_iterator<ENTITY,FILTER>; // For const_filter_iterator(filter_iterator);
- impl_type ImplCur() const { return itCur; }
-
- // DATA
- impl_type itCur;
-};
-
-
-/** A const iterator that runs on a ->Storage<> and returns only
- the elements of a specific type.
-
- @tpl ENTITY
- The element type of the ->Storage<>
-
- @tpl FILTER
- The actual type of the returned items. FILTER needs to be derived from
- ENTITY.
-
- @collab Storage<>
-*/
-template <class ENTITY, class FILTER>
-class const_filter_iterator :
- public std::iterator<std::forward_iterator_tag, const FILTER>
-{
- public:
- typedef const_filter_iterator<ENTITY,FILTER> self;
- typedef ::ary::stg::const_iterator<ENTITY> impl_type;
-
- // OPERATORS
- const_filter_iterator()
- : itCur() {}
- explicit const_filter_iterator(
- impl_type i_cur )
- : itCur(i_cur) {}
- explicit const_filter_iterator( // implicit conversions allowed
- filter_iterator<ENTITY,FILTER>
- i_it )
- : itCur(i_it.ImplCur()) {}
- ~const_filter_iterator()
- {}
- bool operator==(
- self i_other ) const
- { return itCur == i_other.itCur; }
- bool operator!=(
- self i_other ) const
- { return itCur != i_other.itCur; }
- const FILTER & operator*() const { csv_assert(IsValid());
- return static_cast< const FILTER& >(*itCur); }
- self & operator++() { ++itCur;
- return *this; }
- self operator++(int) { return self(itCur++); }
- bool IsValid() const { return ary::is_type<FILTER>(*itCur); }
-
- private:
- // DATA
- impl_type itCur;
-};
-
-
-
-
-} // namespace stg
-} // namespace ary
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/ary/inc/store/s_storage.hxx b/autodoc/source/ary/inc/store/s_storage.hxx
deleted file mode 100644
index 4bb393b48f93..000000000000
--- a/autodoc/source/ary/inc/store/s_storage.hxx
+++ /dev/null
@@ -1,288 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_STORE_S_STORAGE_HXX
-#define ARY_STORE_S_STORAGE_HXX
-
-// USED SERVICES
-#include <ary/types.hxx>
-#include "s_iterator.hxx"
-
-
-
-
-namespace ary
-{
-namespace stg
-{
-
-
-/** The storage unit of one class of commomly stored repository
- entities.
-*/
-template <class ENTITY>
-class Storage
-{
- public:
- typedef Base<ENTITY> container_type;
- typedef ary::TypedId<ENTITY> key_type;
- typedef stg::const_iterator<ENTITY> c_iter;
- typedef stg::iterator<ENTITY> iter;
-
- // LIFECYCLE
- virtual ~Storage() {}
-
- // OPERATORS
- const ENTITY & operator[](
- key_type i_id ) const;
- ENTITY & operator[](
- key_type i_id );
- const ENTITY & operator[](
- Rid i_index ) const;
- ENTITY & operator[](
- Rid i_index );
- // OPERATIONS
- /// Sets the id of the new entity.
- key_type Store_Entity(
- DYN ENTITY & pass_newEntity );
- /// Sets the id of the new entity.
- void Set_Reserved(
- uintt i_index,
- DYN ENTITY & pass_newEntity );
- /// Sets the id of the new entity.
- void Replace_Entity(
- key_type i_index,
- DYN ENTITY & pass_newEntity );
- // INQUIRY
- bool Exists(
- key_type i_id ) const;
- bool Exists(
- Rid i_index ) const;
-
- c_iter Begin() const;
- c_iter BeginUnreserved() const;
- c_iter End() const;
-
- // ACCESS
- iter Begin();
- iter BeginUnreserved();
- iter End();
-
- protected:
- Storage(
- uintt i_nrOfReservedItems );
- private:
- // DATA
- container_type aData;
-};
-
-
-
-
-
-
-// IMPLEMENTATION
-
-// Used later, so implemented first.
-template <class ENTITY>
-inline bool
-Storage<ENTITY>::Exists(Rid i_index) const
-{
- return 0 < i_index AND i_index < aData.Size();
-}
-
-template <class ENTITY>
-inline bool
-Storage<ENTITY>::Exists(key_type i_id) const
-{
- return Exists(i_id.Value());
-}
-
-template <class ENTITY>
-inline const ENTITY &
-Storage<ENTITY>::operator[](Rid i_index) const
-{
- csv_assert(Exists(i_index));
- return * aData[i_index];
-}
-
-template <class ENTITY>
-inline ENTITY &
-Storage<ENTITY>::operator[](Rid i_index)
-{
- csv_assert(Exists(i_index));
- return * aData[i_index];
-}
-
-template <class ENTITY>
-inline const ENTITY &
-Storage<ENTITY>::operator[](key_type i_id) const
-{
- return operator[](i_id.Value());
-}
-
-template <class ENTITY>
-inline ENTITY &
-Storage<ENTITY>::operator[](key_type i_id)
-{
- return operator[](i_id.Value());
-}
-
-template <class ENTITY>
-typename Storage<ENTITY>::key_type
-Storage<ENTITY>::Store_Entity(DYN ENTITY & pass_newEntity)
-{
- csv_assert( aData.Size() >= aData.ReservedSize() );
- Rid
- ret( aData.Add_Entity(pass_newEntity) );
- pass_newEntity.Set_Id(ret);
- return key_type(ret);
-}
-
-template <class ENTITY>
-void
-Storage<ENTITY>::Set_Reserved(uintt i_index,
- DYN ENTITY & pass_newEntity)
-{
- // 0 must not be used.
- csv_assert( i_index != 0 );
- // Make sure, i_index actually is the id of a reserved item.
- csv_assert( i_index < aData.ReservedSize() );
-
- // If there was a previous entity, it will be deleted by
- // the destructor of pOldEntity.
- Dyn<ENTITY>
- pOldEntity(aData.Set_Entity(i_index, pass_newEntity));
- pass_newEntity.Set_Id(i_index);
-}
-
-template <class ENTITY>
-void
-Storage<ENTITY>::Replace_Entity( key_type i_index,
- DYN ENTITY & pass_newEntity )
-{
- uintt
- nIndex = i_index.Value();
- // Make sure, i_index actually is the id of an existing,
- // non reserved entity.
- csv_assert( csv::in_range(aData.ReservedSize(), nIndex, aData.Size()) );
-
- // If there was a previous entity, it will be deleted by
- // the destructor of pOldEntity.
- Dyn<ENTITY>
- pOldEntity(aData.Set_Entity(nIndex, pass_newEntity));
- pass_newEntity.Set_Id(nIndex);
-}
-
-template <class ENTITY>
-inline
-typename Storage<ENTITY>::c_iter
-Storage<ENTITY>::Begin() const
-{
- return c_iter(aData.Begin());
-}
-
-template <class ENTITY>
-inline
-typename Storage<ENTITY>::c_iter
-Storage<ENTITY>::BeginUnreserved() const
-{
- return c_iter(aData.BeginUnreserved());
-}
-
-template <class ENTITY>
-inline
-typename Storage<ENTITY>::c_iter
-Storage<ENTITY>::End() const
-{
- return c_iter(aData.End());
-}
-
-template <class ENTITY>
-inline
-typename Storage<ENTITY>::iter
-Storage<ENTITY>::Begin()
-{
- return iter(aData.Begin());
-}
-
-template <class ENTITY>
-inline
-typename Storage<ENTITY>::iter
-Storage<ENTITY>::BeginUnreserved()
-{
- return iter(aData.BeginUnreserved());
-}
-
-template <class ENTITY>
-inline
-typename Storage<ENTITY>::iter
-Storage<ENTITY>::End()
-{
- return iter(aData.End());
-}
-
-template <class ENTITY>
-inline
-Storage<ENTITY>::Storage(uintt i_nrOfReservedItems)
- : aData(i_nrOfReservedItems)
-{
- // Make sure Rid and uintt are the same type, because
- // the interface of this uses Rid, but the interface of
- // container_type uses uintt.
- csv_assert( sizeof(uintt) == sizeof(Rid) );
-}
-
-
-
-
-// HELPER FUNCTIONS
-
-/** @return 0, if data are not there.
-*/
-template <class ENTITY>
-inline const ENTITY *
-Search( const Storage<ENTITY> & i_storage,
- Rid i_id )
-{
- if (NOT i_storage.Exists(i_id))
- return 0;
- return &i_storage[i_id];
-}
-
-/** @return 0, if data are not there.
-*/
-template <class ENTITY>
-inline ENTITY *
-SearchAccess( const Storage<ENTITY> & i_storage,
- Rid i_id )
-{
- if (NOT i_storage.Exists(i_id))
- return 0;
- return &i_storage[i_id];
-}
-
-
-
-
-} // namespace stg
-} // namespace ary
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/ary/info/all_dts.cxx b/autodoc/source/ary/info/all_dts.cxx
deleted file mode 100644
index 3a1f2daa3c90..000000000000
--- a/autodoc/source/ary/info/all_dts.cxx
+++ /dev/null
@@ -1,98 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <ary/info/all_dts.hxx>
-
-
-// NOT FULLY DEFINED SERVICES
-#include <ary/info/infodisp.hxx>
-
-
-namespace ary
-{
-namespace info
-{
-
-
-void
-DT_Text::do_StoreAt( DocuDisplay & o_rDisplay ) const
-{
- o_rDisplay.Display_DT_Text(*this);
-}
-
-bool
-DT_Text::inq_IsWhite() const
-{
- return false;
-}
-
-void
-DT_MaybeLink::do_StoreAt( DocuDisplay & o_rDisplay ) const
-{
- o_rDisplay.Display_DT_MaybeLink(*this);
-}
-
-bool
-DT_MaybeLink::inq_IsWhite() const
-{
- return false;
-}
-
-void
-DT_Whitespace::do_StoreAt( DocuDisplay & o_rDisplay ) const
-{
- o_rDisplay.Display_DT_Whitespace(*this);
-}
-
-bool
-DT_Whitespace::inq_IsWhite() const
-{
- return true;
-}
-
-void
-DT_Eol::do_StoreAt( DocuDisplay & o_rDisplay ) const
-{
- o_rDisplay.Display_DT_Eol(*this);
-}
-
-bool
-DT_Eol::inq_IsWhite() const
-{
- return true;
-}
-
-void
-DT_Xml::do_StoreAt( DocuDisplay & o_rDisplay ) const
-{
- o_rDisplay.Display_DT_Xml(*this);
-}
-
-bool
-DT_Xml::inq_IsWhite() const
-{
- return false;
-}
-
-
-} // namespace info
-} // namespace ary
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/ary/info/all_tags.cxx b/autodoc/source/ary/info/all_tags.cxx
deleted file mode 100644
index 8009cb4f1513..000000000000
--- a/autodoc/source/ary/info/all_tags.cxx
+++ /dev/null
@@ -1,353 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <ary/info/all_tags.hxx>
-
-
-// NOT FULLY DEFINED SERVICES
-#include <limits>
-#include <ary/info/infodisp.hxx>
-#include <adc_cl.hxx>
-
-
-namespace ary
-{
-namespace info
-{
-
-
-
-//***************************** StdTag ***********************//
-
-
-StdTag::StdTag( E_AtTagId i_eId )
- : eId(i_eId),
- // aText,
- pNext(0)
-{
-}
-
-bool
-StdTag::Add_SpecialMeaningToken( const char * ,
- intt )
-{
- // Does nothing
-
- // KORR_FUTURE
- // Should be a logical exception:
- // csv_assert(false);
- return false;
-}
-
-UINT8
-StdTag::NrOfSpecialMeaningTokens() const
-{
- return 0;
-}
-
-AtTag *
-StdTag::GetFollower()
-{
- if (pNext != 0)
- return pNext->GetFollower();
- pNext = new StdTag(eId);
- return pNext;
-}
-
-void
-StdTag::do_StoreAt( DocuDisplay & o_rDisplay ) const
-{
- o_rDisplay.Display_StdTag( *this );
-}
-
-DocuText *
-StdTag::Text()
-{
- return &aText;
-}
-
-
-
-//***************************** BaseTag ***********************//
-
-BaseTag::BaseTag()
- : // sBase
- // aText
- pNext(0)
-{
-}
-
-bool
-BaseTag::Add_SpecialMeaningToken( const char * i_sText,
- intt i_nNr )
-{
- if ( i_nNr == 1 )
- {
- sBase.AssignText(i_sText,"::");
- return true;
- }
- return false;
-}
-
-const char *
-BaseTag::Title() const
-{
- return "Base Classes";
-}
-
-UINT8
-BaseTag::NrOfSpecialMeaningTokens() const
-{
- return 1;
-}
-
-AtTag *
-BaseTag::GetFollower()
-{
- if (pNext != 0)
- return pNext->GetFollower();
- pNext = new BaseTag;
- return pNext;
-}
-
-DocuText *
-BaseTag::Text()
-{
- return &aText;
-}
-
-
-
-//***************************** ExceptionTag ***********************//
-
-ExceptionTag::ExceptionTag()
- : // sException,
- // aText
- pNext(0)
-{
-}
-
-bool
-ExceptionTag::Add_SpecialMeaningToken( const char * i_sText,
- intt i_nNr )
-{
- if ( i_nNr == 1 )
- {
- sException.AssignText(i_sText,"::");
- return true;
- }
- return false;
-}
-
-const char *
-ExceptionTag::Title() const
-{
- return "Thrown Exceptions";
-}
-
-UINT8
-ExceptionTag::NrOfSpecialMeaningTokens() const
-{
- return 1;
-}
-
-AtTag *
-ExceptionTag::GetFollower()
-{
- if (pNext != 0)
- return pNext->GetFollower();
- pNext = new ExceptionTag;
- return pNext;
-}
-
-DocuText *
-ExceptionTag::Text()
-{
- return &aText;
-}
-
-
-//***************************** ImplementsTag ***********************//
-
-ImplementsTag::ImplementsTag()
- : // sBase
- // aText
- pNext(0)
-{
-}
-
-bool
-ImplementsTag::Add_SpecialMeaningToken( const char * i_sText,
- intt i_nNr )
-{
- if ( i_nNr == 1 )
- {
- sName.AssignText(i_sText,"::");
- }
- else
- {
- GetFollower()->Add_SpecialMeaningToken(i_sText,1);
- }
- return true;
-}
-
-const char *
-ImplementsTag::Title() const
-{
- return "Implements";
-}
-
-UINT8
-ImplementsTag::NrOfSpecialMeaningTokens() const
-{
- return std::numeric_limits<UINT8>::max();
-}
-
-AtTag *
-ImplementsTag::GetFollower()
-{
- if (pNext != 0)
- return pNext->GetFollower();
- pNext = new ImplementsTag;
- return pNext;
-}
-
-DocuText *
-ImplementsTag::Text()
-{
- return 0;
-}
-
-//***************************** ParameterTag ***********************//
-
-
-ParameterTag::ParameterTag()
- : // sName
- // aText
- pNext(0)
-{
-}
-
-bool
-ParameterTag::Add_SpecialMeaningToken( const char * i_sText,
- intt i_nNr )
-{
- if ( i_nNr == 1 )
- {
- sName = i_sText;
- return true;
- }
- else if (i_nNr == 2)
- {
- uintt nLen = strlen(i_sText);
- if (*i_sText == '[' AND i_sText[nLen-1] == ']')
- {
- sValidRange = String(i_sText+1, nLen-2);
- return true;
- }
- }
- return false;
-}
-
-UINT8
-ParameterTag::NrOfSpecialMeaningTokens() const
-{
- return 2;
-}
-
-AtTag *
-ParameterTag::GetFollower()
-{
- if (pNext != 0)
- return pNext->GetFollower();
- return pNext = new ParameterTag;
-}
-
-DocuText *
-ParameterTag::Text()
-{
- return &aText;
-}
-
-void
-ParameterTag::do_StoreAt( DocuDisplay & o_rDisplay ) const
-{
- o_rDisplay.Display_ParameterTag( *this );
-}
-
-//***************************** TemplateTag ***********************//
-
-
-TemplateTag::TemplateTag()
- : // sName
- // aText
- pNext(0)
-{
-}
-
-bool
-TemplateTag::Add_SpecialMeaningToken( const char * i_sText,
- intt i_nNr )
-{
- if ( i_nNr == 1 )
- {
- sName = i_sText;
- return true;
- }
- return false;
-}
-
-const char *
-TemplateTag::Title() const
-{
- return "Template Parameters";
-}
-
-UINT8
-TemplateTag::NrOfSpecialMeaningTokens() const
-{
- return 1;
-}
-
-AtTag *
-TemplateTag::GetFollower()
-{
- if (pNext != 0)
- return pNext->GetFollower();
- return pNext = new TemplateTag;
-}
-
-void
-TemplateTag::do_StoreAt( DocuDisplay & o_rDisplay ) const
-{
- o_rDisplay.Display_TemplateTag( *this );
-}
-
-
-DocuText *
-TemplateTag::Text()
-{
- return &aText;
-}
-
-} // namespace info
-} // namespace ary
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/ary/info/ci_attag.cxx b/autodoc/source/ary/info/ci_attag.cxx
deleted file mode 100644
index 7bf36c441aa4..000000000000
--- a/autodoc/source/ary/info/ci_attag.cxx
+++ /dev/null
@@ -1,78 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <ary/info/ci_attag.hxx>
-
-
-// NOT FULLY DEFINED SERVICES
-#include <ary/info/all_dts.hxx>
-#include <ary/info/ci_text.hxx>
-
-
-namespace ary
-{
-namespace info
-{
-
-void
-AtTag::Add_Token( const char * i_sText )
-{
- DocuText * pText = Text();
- if (pText != 0)
- pText->Add_Token( *new DT_Text(i_sText) );
-}
-
-void
-AtTag::Add_PotentialLink( const char * i_sText,
- bool i_bIsGlobal,
- bool i_bIsFunction )
-{
- DocuText * pText = Text();
- if (pText != 0)
- pText->Add_Token( *new DT_MaybeLink(i_sText, i_bIsGlobal, i_bIsFunction) );
-}
-
-void
-AtTag::Add_Whitespace( UINT8 i_nLength )
-{
- DocuText * pText = Text();
- if (pText != 0)
- pText->Add_Token( *new DT_Whitespace(i_nLength) );
-}
-
-void
-AtTag::Add_Eol()
-{
- DocuText * pText = Text();
- if (pText != 0)
- pText->Add_Token( *new DT_Eol );
-}
-
-void
-AtTag::do_StoreAt( DocuDisplay & ) const
-{
- // Dummy
-}
-
-} // namespace info
-} // namespace ary
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/ary/info/ci_text.cxx b/autodoc/source/ary/info/ci_text.cxx
deleted file mode 100644
index 0edf58627bda..000000000000
--- a/autodoc/source/ary/info/ci_text.cxx
+++ /dev/null
@@ -1,52 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <ary/info/ci_text.hxx>
-
-
-// NOT FULLY DEFINED SERVICES
-#include <ary/info/all_dts.hxx>
-
-
-namespace ary
-{
-namespace info
-{
-
-DocuText::DocuText()
- : bUsesHtml(false)
-{
-}
-
-DocuText::~DocuText()
-{
- for ( TokenList::iterator iter = aTokens.begin();
- iter != aTokens.end();
- ++iter )
- {
- delete (*iter);
- }
-}
-
-} // namespace info
-} // namespace ary
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/ary/kernel/namesort.cxx b/autodoc/source/ary/kernel/namesort.cxx
deleted file mode 100644
index f6e8eb11fec3..000000000000
--- a/autodoc/source/ary/kernel/namesort.cxx
+++ /dev/null
@@ -1,94 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <ary/namesort.hxx>
-
-
-// NOT FULLY DEFINED SERVICES
-
-
-
-namespace
-{
-
-
-int C_cAutodocNameOrdering1[256] =
- { 0,255,255,255, 255,255,255,255, 255,255,255,255, 255,255,255,255, // 0 ..
- 255,255,255,255, 255,255,255,255, 255,255,255,255, 255,255,255,255,
- 255,255,255,255, 255,255,255,255, 255,255,255,255, 255,255,255,255, // 32 ..
- 70, 71, 72, 73, 74, 75, 76, 77, 78, 79,255,255, 255,255,255,255,
-
- 255, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, // 64 ..
- 41, 43, 45, 47, 49, 51, 53, 55, 57, 59, 61,255, 255,255,255, 63,
- 255, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, // 96 ..
- 41, 43, 45, 47, 49, 51, 53, 55, 57, 59, 61,255, 255,255,255,255,
-
- 255,255,255,255, 255,255,255,255, 255,255,255,255, 255,255,255,255, //128 ..
- 255,255,255,255, 255,255,255,255, 255,255,255,255, 255,255,255,255,
- 255,255,255,255, 255,255,255,255, 255,255,255,255, 255,255,255,255, //160 ..
- 255,255,255,255, 255,255,255,255, 255,255,255,255, 255,255,255,255,
-
- 255,255,255,255, 255,255,255,255, 255,255,255,255, 255,255,255,255,
- 255,255,255,255, 255,255,255,255, 255,255,255,255, 255,255,255,255,
- 255,255,255,255, 255,255,255,255, 255,255,255,255, 255,255,255,255,
- 255,255,255,255, 255,255,255,255, 255,255,255,255, 255,255,255,255
- };
-
-int C_cAutodocNameOrdering2[256] =
- { 0,255,255,255, 255,255,255,255, 255,255,255,255, 255,255,255,255, // 0 ..
- 255,255,255,255, 255,255,255,255, 255,255,255,255, 255,255,255,255,
- 255,255,255,255, 255,255,255,255, 255,255,255,255, 255,255,255,255, // 32 ..
- 70, 71, 72, 73, 74, 75, 76, 77, 78, 79,255,255, 255,255,255,255,
-
- 255, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, // 64 ..
- 41, 43, 45, 47, 49, 51, 53, 55, 57, 59, 61,255, 255,255,255, 63,
- 255, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, // 96 ..
- 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62,255, 255,255,255,255,
-
- 255,255,255,255, 255,255,255,255, 255,255,255,255, 255,255,255,255, //128 ..
- 255,255,255,255, 255,255,255,255, 255,255,255,255, 255,255,255,255,
- 255,255,255,255, 255,255,255,255, 255,255,255,255, 255,255,255,255, //160 ..
- 255,255,255,255, 255,255,255,255, 255,255,255,255, 255,255,255,255,
-
- 255,255,255,255, 255,255,255,255, 255,255,255,255, 255,255,255,255,
- 255,255,255,255, 255,255,255,255, 255,255,255,255, 255,255,255,255,
- 255,255,255,255, 255,255,255,255, 255,255,255,255, 255,255,255,255,
- 255,255,255,255, 255,255,255,255, 255,255,255,255, 255,255,255,255
- };
-
-
-} // namespace anonymous
-
-
-namespace ary
-{
-
-
-const csv::CharOrder_Table
-LesserName::aOrdering1_(C_cAutodocNameOrdering1);
-
-const csv::CharOrder_Table
-LesserName::aOrdering2_(C_cAutodocNameOrdering2);
-
-
-
-} // namespace ary
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/ary/kernel/qualiname.cxx b/autodoc/source/ary/kernel/qualiname.cxx
deleted file mode 100644
index dd2ed5a9011c..000000000000
--- a/autodoc/source/ary/kernel/qualiname.cxx
+++ /dev/null
@@ -1,99 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <ary/qualiname.hxx>
-
-
-// NOT FULLY DECLARED SERVICES
-
-
-namespace ary
-{
-
-
-QualifiedName::QualifiedName( uintt i_nSize )
- : aNamespace(),
- sLocalName(),
- bIsAbsolute(false),
- bIsFunction()
-{
- if (i_nSize > 0)
- aNamespace.reserve(i_nSize);
-}
-
-QualifiedName::QualifiedName( const char * i_sText,
- const char * i_sSeparator )
- : aNamespace(),
- sLocalName(),
- bIsAbsolute(false),
- bIsFunction()
-{
- AssignText(i_sText,i_sSeparator);
-}
-
-QualifiedName::~QualifiedName()
-{
-}
-
-void
-QualifiedName::AssignText( const char * i_sText,
- const char * i_sSeparator )
-{
- csv_assert(NOT csv::no_str(i_sText) AND NOT csv::no_str(i_sSeparator));
- bIsAbsolute = false;
- bIsFunction = false;
- csv::erase_container( aNamespace );
-
- uintt nSepLen = strlen(i_sSeparator);
- const char * sNext = i_sText;
-
- const char * ps = strstr( i_sText, i_sSeparator );
- if (ps == i_sText)
- {
- bIsAbsolute = true;
- sNext = ps + nSepLen;
- }
-
- for ( ps = strstr(sNext, i_sSeparator);
- ps != 0;
- ps = strstr(sNext, i_sSeparator) )
- {
- String sPart(sNext, ps - sNext);
- aNamespace.push_back(sPart);
- sNext = ps + nSepLen;
- }
-
- uintt sNameLen = strlen(sNext);
- if ( sNameLen > 2 )
- {
- ps = sNext + sNameLen - 2;
- if (*ps == '(' AND *(ps+1) == ')')
- {
- sNameLen -= 2;
- bIsFunction = true;
- }
- }
- sLocalName = String(sNext,sNameLen);
-}
-
-
-} // namespace ary
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/ary/kernel/reposy.cxx b/autodoc/source/ary/kernel/reposy.cxx
deleted file mode 100644
index 5436f844883e..000000000000
--- a/autodoc/source/ary/kernel/reposy.cxx
+++ /dev/null
@@ -1,144 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <reposy.hxx>
-
-
-// NOT FULLY DECLARED SERVICES
-#include <idl_internalgate.hxx>
-
-
-namespace ary
-{
-
-
-//***************** Repository ************//
-
-DYN Repository &
-Repository::Create_()
-{
- return *new RepositoryCenter;
-}
-
-
-
-
-RepositoryCenter::RepositoryCenter()
- : sDisplayedName(),
- aLocation(),
- pIdlPartition(0)
-{
- pIdlPartition = & idl::InternalGate::Create_Partition_();
-}
-
-RepositoryCenter::~RepositoryCenter()
-{
-}
-
-const ::ary::idl::Gate &
-RepositoryCenter::Gate_Idl() const
-{
- csv_assert(pIdlPartition);
- return *pIdlPartition;
-}
-
-const String &
-RepositoryCenter::Title() const
-{
- return sDisplayedName;
-}
-
-::ary::idl::Gate &
-RepositoryCenter::Gate_Idl()
-{
- csv_assert(pIdlPartition);
- return *pIdlPartition;
-}
-
-void
-RepositoryCenter::Set_Title(const String & i_sName)
-{
- sDisplayedName = i_sName;
-}
-
-
-
-
-//********************* Repository Type Info Data ****************//
-
-// !!! IMPORTANT - NEVER DELETE OR CHANGE - ADDING ALLOWED
-
-
-
-/* ClassType-Ids
- -------------
-
- idl 2000
- information 5000
- logic location 6000
- phys location 7000
- sec. prod. 8000
-
-
- idl
- ---
-
- Module 2000
- Interface 2001
- Function 2002
- Service 2003
- Property 2004
- Enum 2005
- EnumValue 2006
- Typedef 2007
- Struct 2008
- StructElement 2009
- Exception 2010
- ConstantGroup 2011
- Constant 2012
- Singleton 2013
- Attribute 2014
- SglIfcService 2015
- SglIfcSingleton 2016
-
- BuiltInType 2200
- CeType 2201
- Sequence 2202
- ExplicitType 2203
- ExplicitNameRoom 2204
- TemplateParamType 2205
-
- physical location
- -----------------
- Root 7000
- Directory 7030
- File 7100
-
-
- info
- ----
- CodeInformation
- (IDL) 11002
-*/
-
-
-} // namespace ary
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/ary_i/kernel/ci_atag2.cxx b/autodoc/source/ary_i/kernel/ci_atag2.cxx
deleted file mode 100644
index 1d604d97f874..000000000000
--- a/autodoc/source/ary_i/kernel/ci_atag2.cxx
+++ /dev/null
@@ -1,50 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <ary_i/ci_atag2.hxx>
-
-
-// NOT FULLY DEFINED SERVICES
-#include <ary_i/disdocum.hxx>
-
-
-namespace ary
-{
-namespace inf
-{
-
-void DocuTag_Display::Display_TextToken(
- const csi::dsapi::DT_TextToken & ) {}
-void DocuTag_Display::Display_White() {}
-void DocuTag_Display::Display_MupType(
- const csi::dsapi::DT_MupType & ) {}
-void DocuTag_Display::Display_MupMember(
- const csi::dsapi::DT_MupMember & ) {}
-void DocuTag_Display::Display_MupConst(
- const csi::dsapi::DT_MupConst & ) {}
-void DocuTag_Display::Display_Style(
- const csi::dsapi::DT_Style & ) {}
-void DocuTag_Display::Display_EOL() {}
-
-
-} // namespace inf
-} // namespace ary
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/ary_i/kernel/ci_text2.cxx b/autodoc/source/ary_i/kernel/ci_text2.cxx
deleted file mode 100644
index a92561e1400a..000000000000
--- a/autodoc/source/ary_i/kernel/ci_text2.cxx
+++ /dev/null
@@ -1,120 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <ary_i/ci_text2.hxx>
-
-
-// NOT FULLY DEFINED SERVICES
-#include <ary_i/disdocum.hxx>
-#include <ary_i/d_token.hxx>
-
-
-namespace ary
-{
-namespace inf
-{
-
-DocuTex2::DocuTex2()
-{
-}
-
-DocuTex2::~DocuTex2()
-{
- for ( TokenList::iterator iter = aTokens.begin();
- iter != aTokens.end();
- ++iter )
- {
- delete (*iter);
- }
-}
-
-void
-DocuTex2::DisplayAt( DocumentationDisplay & o_rDisplay ) const
-{
- for ( ary::inf::DocuTex2::TokenList::const_iterator
- iter = aTokens.begin();
- iter != aTokens.end();
- ++iter )
- {
- (*iter)->DisplayAt(o_rDisplay);
- }
-}
-
-void
-DocuTex2::AddToken( DYN DocuToken & let_drToken )
-{
- if (aTokens.empty())
- {
- if (let_drToken.IsWhiteOnly())
- return;
- }
- aTokens.push_back(&let_drToken);
-}
-
-
-using csi::dsapi::DT_TextToken;
-
-const String &
-DocuTex2::TextOfFirstToken() const
-{
- if (NOT aTokens.empty())
- {
- const DT_TextToken *
- pTok = dynamic_cast< const DT_TextToken* >(*aTokens.begin());
-
- if (pTok != 0)
- return pTok->GetTextStr();
- }
- return String::Null_();
-}
-
-String &
-DocuTex2::Access_TextOfFirstToken()
-{
- if (NOT aTokens.empty())
- {
- DT_TextToken *
- pTok = dynamic_cast< DT_TextToken* >(*aTokens.begin());
-
- if (pTok != 0)
- return pTok->Access_Text();
- }
-
- static String sDummy_;
- return sDummy_;
-}
-
-
-
-void DocuText_Display::Display_StdAtTag(
- const csi::dsapi::DT_StdAtTag & ) {}
-void DocuText_Display::Display_SeeAlsoAtTag(
- const csi::dsapi::DT_SeeAlsoAtTag & ) {}
-void DocuText_Display::Display_ParameterAtTag(
- const csi::dsapi::DT_ParameterAtTag & ) {}
-void DocuText_Display::Display_SinceAtTag(
- const csi::dsapi::DT_SinceAtTag & ) {}
-
-
-
-} // namespace inf
-} // namespace ary
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/ary_i/kernel/d_token.cxx b/autodoc/source/ary_i/kernel/d_token.cxx
deleted file mode 100644
index d330c0b788ac..000000000000
--- a/autodoc/source/ary_i/kernel/d_token.cxx
+++ /dev/null
@@ -1,180 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <ary_i/d_token.hxx>
-
-
-// NOT FULLY DEFINED SERVICES
-#include <ary_i/disdocum.hxx>
-
-
-
-
-namespace csi
-{
-namespace dsapi
-{
-
-bool
-DT_Dsapi::IsWhiteOnly() const
-{
- return false;
-}
-
-DT_TextToken::~DT_TextToken()
-{
-}
-
-void
-DT_TextToken::DisplayAt( DocumentationDisplay & o_rDisplay ) const
-{
- o_rDisplay.Display_TextToken( *this );
-}
-
-bool
-DT_TextToken::IsWhiteOnly() const
-{
- const char *it = sText.c_str();
- while (static_cast<UINT8>(*it++) > 32)
- {
- return false;
- }
- return true;
-}
-
-DT_White::~DT_White()
-{
-}
-
-void
-DT_White::DisplayAt( DocumentationDisplay & o_rDisplay ) const
-{
- o_rDisplay.Display_White();
-}
-
-bool
-DT_White::IsWhiteOnly() const
-{
- return true;
-}
-
-DT_MupType::~DT_MupType()
-{
-}
-
-void
-DT_MupType::DisplayAt( DocumentationDisplay & o_rDisplay ) const
-{
- o_rDisplay.Display_MupType( *this );
-}
-
-DT_MupMember::~DT_MupMember()
-{
-}
-
-void
-DT_MupMember::DisplayAt( DocumentationDisplay & o_rDisplay ) const
-{
- o_rDisplay.Display_MupMember( *this );
-}
-
-DT_MupConst::~DT_MupConst()
-{
-}
-
-void
-DT_MupConst::DisplayAt( DocumentationDisplay & o_rDisplay ) const
-{
- o_rDisplay.Display_MupConst( *this );
-}
-
-DT_Style::~DT_Style()
-{
-}
-
-void
-DT_Style::DisplayAt( DocumentationDisplay & o_rDisplay ) const
-{
- o_rDisplay.Display_Style( *this );
-}
-
-DT_EOL::~DT_EOL()
-{
-}
-
-void
-DT_EOL::DisplayAt( DocumentationDisplay & o_rDisplay ) const
-{
- o_rDisplay.Display_EOL();
-}
-
-bool
-DT_EOL::IsWhiteOnly() const
-{
- return true;
-}
-
-DT_StdAtTag::~DT_StdAtTag()
-{
-}
-
-void
-DT_StdAtTag::DisplayAt( DocumentationDisplay & o_rDisplay ) const
-{
- o_rDisplay.Display_StdAtTag( *this );
-}
-
-DT_SeeAlsoAtTag::~DT_SeeAlsoAtTag()
-{
-}
-
-void
-DT_SeeAlsoAtTag::DisplayAt( DocumentationDisplay & o_rDisplay ) const
-{
- o_rDisplay.Display_SeeAlsoAtTag( *this );
-}
-
-DT_ParameterAtTag::~DT_ParameterAtTag()
-{
-}
-
-void
-DT_ParameterAtTag::DisplayAt( DocumentationDisplay & o_rDisplay ) const
-{
- o_rDisplay.Display_ParameterAtTag( *this );
-}
-
-DT_SinceAtTag::~DT_SinceAtTag()
-{
-}
-
-void
-DT_SinceAtTag::DisplayAt( DocumentationDisplay & o_rDisplay ) const
-{
- o_rDisplay.Display_SinceAtTag( *this );
-}
-
-
-
-
-} // namespace dsapi
-} // namespace csi
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/display/html/cfrstd.cxx b/autodoc/source/display/html/cfrstd.cxx
deleted file mode 100644
index 566273aa8b62..000000000000
--- a/autodoc/source/display/html/cfrstd.cxx
+++ /dev/null
@@ -1,329 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <cfrstd.hxx>
-
-
-// NOT FULLY DEFINED SERVICES
-#include <time.h>
-
-
-/* CSS Styles
- ----------
-
-Colors:
-- light background color #eeeeff
-- dark background color #ccccff
-- self in navibar background color #2222ad
-
-
-Fonts:
-- page title 20, bold, Arial
-- navibar main 12, bold, Arial
-- navibar sub 8, Arial, small caps
-- attrtable title line 8, bold, Arial, small caps
-- attrtable value line 8, Arial small caps
-
-- namespace chain 13, bold
-- table title 13, bold
-- template line 13
-
-- member paragraph title 12, bold
-
-- docu paragraph title 11, bold
-- standard text 11
-
-- hierarchy 11, monospace
-
-
-classes:
-
- td.title page title
- h3 table title
- h4 member paragraph title
-
- td.nmain navigation main bar
- td.nsub navigation sub bar
- a.nmain links in navigation main bar
- a.nsub links in navigation sub bar
-
- td.attr1 attribute table head line
- td.attr2 attribute table value line
-
- p.namechain namespace chain in head of pages
- p.tpl template line in head of pages
-
- pre.doc preformatted docu
- pre.hierarchy class bases hierarchy graphic
-
- dl.syntax function- or variable-declaration field
- a.syntax link in function- or variable-declaration field
-
- p.dt docu paragraph title
- dl.dt docu paragraph title
-
- p standard text
- dl standard text
- dd standard text
-*/
-
-
-#define CRLF "\n"
-
-namespace
-{
-
-bool bUse_OOoFrameDiv = true;
-
-
-//*************** These are used for IDL currently only! ********************
-
-const char * const C_sStdStyle =
- "/*See bottom of file for explanations.*/" CRLF
- CRLF
- "body { background-color:#ffffff; }" CRLF
- CRLF
- "h3 { font-size:13pt; font-weight:bold;" CRLF
- " margin-top:3pt; margin-bottom:1pt; }" CRLF
- "p, dt, dd, pre { font-size:11pt;" CRLF
- " margin-top:3pt; margin-bottom:1pt; }" CRLF
- "pre { font-family:monospace; }" CRLF
- CRLF
- "table.navimain { background-color:#eeeeff; }" CRLF
- "table.subtitle { margin-top:6pt; margin-bottom:6pt; }" CRLF
- CRLF
- "td { font-size:11pt; }" CRLF
- "td.title { font-family: Arial; font-size:19pt; font-weight:bold;" CRLF
- " line-height:30pt; background-color:#ccccff; text-align:center; }" CRLF
- "td.subtitle { font-family: Arial; font-size:13pt;" CRLF
- " line-height:20pt; background-color:#ccccff; }" CRLF
- "td.crosstitle { font-size:12pt; font-weight:bold;" CRLF
- " line-height:15pt; background-color:#eeeeff; }" CRLF
- "td.imdetail { width:100%; background-color:#eeeeff; }" CRLF
- CRLF
- "td.imsum_left { width:30%; }" CRLF
- "td.imsum_right { width:70%; }" CRLF
- CRLF
- "td.navimain, a.navimain" CRLF
- " { text-align:center; font-family: Arial; font-size:12pt; font-weight:bold; }" CRLF
- "td.navimainself { text-align:center; font-family: Arial; font-size:12pt; font-weight:bold;" CRLF
- " color:#ffffff; background-color:#2222ad; }" CRLF
- "td.navimainnone { text-align:center; font-family: Arial; font-size:12pt; }" CRLF
- "td.navisub, a.navisub" CRLF
- " { text-align:center; font-family: Arial; font-size:9pt; font-variant:small-caps; }" CRLF
- "td.navimain, td.navisub" CRLF
- " { padding-left:7pt; padding-right:7pt; }" CRLF
- CRLF
- "a.membertitle { font-size:12pt; font-weight:bold; line-height:18pt; }" CRLF
- "a.navimain, a.navisub { color:#000000; }" CRLF
- ".dt { font-weight:bold; }" CRLF
- ".namechain { font-size:13pt; font-weight:bold;" CRLF
- " margin-top:3pt; margin-bottom:6pt; }" CRLF
- ".title2 { font-size:13pt; font-style:italic; font-weight:bold; text-align:left; }" CRLF
- ;
-
-
-const char * const C_sCssExplanations =
- "/* Explanation of CSS classes:" CRLF
- CRLF
- ".navimain Text in main navigation bar." CRLF
- ".navisub Text in lower navigation bar." CRLF
- "td.navimainself Cell in main navigation bar with \"selected\" shadow: You are here." CRLF
- "td.navimainnone Cell in main navigation bar with no link." CRLF
- CRLF
- ".namechain Line with current module path." CRLF
- CRLF
- "td.crosstitle Comment box for bases (base interfaces etc.)" CRLF
- "td.imsum_left Left part of such boxes." CRLF
- "td.imsum_right Right part of such boxes." CRLF
- CRLF
- "td.title Main title of the page like \"interface XYz\"" CRLF
- ".subtitle Tables, and head cells of those, which list members" CRLF
- " like \"method summary\" and \"method details\"." CRLF
- CRLF
- "td.imdetail Background table of method's detail description." CRLF
- "a.membertitle Method name (as jump label) in method's detail" CRLF
- " description." CRLF
- ".title2 smaller font prefixes to page titles" CRLF
- "*/" CRLF
- ;
-
-const char * const C_sStdStyle_withDivFrame =
- "/*See bottom of file for explanations.*/" CRLF
- CRLF
- "body { background-color:#ffffff; }" CRLF
- CRLF
- "#adc-idlref h3 { font-size:13pt; font-weight:bold;" CRLF
- " margin-top:3pt; margin-bottom:1pt; }" CRLF
- "#adc-idlref p, #adc-idlref dt, #adc-idlref dd, #adc-idlref pre" CRLF
- " { font-size:11pt;" CRLF
- " margin-top:3pt; margin-bottom:1pt; }" CRLF
- "#adc-idlref pre { font-family:monospace; }" CRLF
- CRLF
- "#adc-idlref table.navimain { background-color:#eeeeff; }" CRLF
- "#adc-idlref table.subtitle { margin-top:6pt; margin-bottom:6pt; }" CRLF
- CRLF
- "#adc-idlref td { font-size:11pt; }" CRLF
- "#adc-idlref td.title { font-family: Arial; font-size:19pt; font-weight:bold;" CRLF
- " line-height:30pt; background-color:#ccccff; text-align:center; }" CRLF
- "#adc-idlref td.subtitle { font-family: Arial; font-size:13pt;" CRLF
- " line-height:20pt; background-color:#ccccff; }" CRLF
- "#adc-idlref td.crosstitle { font-size:12pt; font-weight:bold;" CRLF
- " line-height:15pt; background-color:#eeeeff; }" CRLF
- "#adc-idlref td.imdetail { width:100%; background-color:#eeeeff; }" CRLF
- CRLF
- "#adc-idlref td.imsum_left { width:30%; }" CRLF
- "#adc-idlref td.imsum_right { width:70%; }" CRLF
- CRLF
- "#adc-idlref td.navimain, #adc-idlref a.navimain" CRLF
- " { text-align:center; font-family: Arial; font-size:12pt; font-weight:bold; }" CRLF
- "#adc-idlref td.navimainself { text-align:center; font-family: Arial; font-size:12pt; font-weight:bold;" CRLF
- " color:#ffffff; background-color:#2222ad; }" CRLF
- "#adc-idlref td.navimainnone { text-align:center; font-family: Arial; font-size:12pt; }" CRLF
- "#adc-idlref td.navisub, #adc-idlref a.navisub" CRLF
- " { text-align:center; font-family: Arial; font-size:9pt; font-variant:small-caps; }" CRLF
- "#adc-idlref td.navimain, #adc-idlref td.navisub" CRLF
- " { padding-left:7pt; padding-right:7pt; }" CRLF
- CRLF
- "#adc-idlref a.membertitle { font-size:12pt; font-weight:bold; line-height:18pt; }" CRLF
- "#adc-idlref a.navimain, #adc-idlref a.navisub { color:#000000; }" CRLF
- "#adc-idlref .dt { font-weight:bold; }" CRLF
- "#adc-idlref .namechain { font-size:13pt; font-weight:bold;" CRLF
- " margin-top:3pt; margin-bottom:6pt; }" CRLF
- "#adc-idlref .title2 { font-size:13pt; font-style:italic; font-weight:bold; text-align:left; }" CRLF
- "" CRLF
- "#adc-idlref table { empty-cells:show; }" CRLF
- "" CRLF
- "#adc-idlref .childlist td, " CRLF
- "#adc-idlref .commentedlinks td, " CRLF
- "#adc-idlref .memberlist td, " CRLF
- "#adc-idlref .subtitle td, " CRLF
- "#adc-idlref .crosstitle td { border: .1pt solid #000000; }" CRLF
- "" CRLF
- "#adc-idlref .flag-table td { border: .1pt solid #cccccc; } " CRLF
- "" CRLF
- "#adc-idlref .title-table td, " CRLF
- "#adc-idlref .table-in-method td, " CRLF
- "#adc-idlref .table-in-data td, " CRLF
- "#adc-idlref .navimain td, " CRLF
- "#adc-idlref .navisub td, " CRLF
- "#adc-idlref .expl-table td, " CRLF
- "#adc-idlref .param-table td { border: none; }" CRLF
- ;
-
-
-} // anonymous namespace
-
-
-StdFrame::StdFrame()
- : sDevelopersGuideHtmlRoot()
-{
-}
-
-DYN Html_Image *
-StdFrame::LogoSrc() const
-{
- return 0;
-
-// return new Html_Image( "logodot-blu.gif",
-// "109",
-// "54",
-// "RIGHT",
-// "0",
-// "OpenOffice" );
-
-}
-
-const char *
-StdFrame::LogoLink() const
-{
- return "";
-// return "http://www.sun.com";
-// return "http://www.openoffice.org";
-}
-
-
-String MakeCopyRight();
-
-const char *
-StdFrame::CopyrightText() const
-{
- static String sCopyRight_( MakeCopyRight() );
- return sCopyRight_.c_str();
-}
-
-const char *
-StdFrame::CssStyle() const
-{
- if (bUse_OOoFrameDiv)
- return C_sStdStyle_withDivFrame;
- else
- return C_sStdStyle;
-}
-
-const char *
-StdFrame::CssStylesExplanation() const
-{
- return C_sCssExplanations;
-}
-
-const char *
-StdFrame::DevelopersGuideHtmlRoot() const
-{
- return sDevelopersGuideHtmlRoot;
-}
-
-void
-StdFrame::Set_DevelopersGuideHtmlRoot( const String & i_directory )
-{
- if (NOT i_directory.empty())
- {
- if (i_directory.char_at(i_directory.length()-1) == '/')
- {
- sDevelopersGuideHtmlRoot.assign(i_directory,i_directory.length()-1);
- return;
- }
- }
- sDevelopersGuideHtmlRoot = i_directory;
-}
-
-String
-MakeCopyRight()
-{
- StreamStr cr(1400);
- time_t
- gt;
- time(&gt);
- tm *
- plt = localtime(&gt);
- int year = 1900 + plt->tm_year;
-
- cr << "Copyright &copy; 2000, "
- << year
- << " LibreOffice contributors and/or their affiliates. All rights reserved.</p>"
- << "<p class=\"copyright\" align=\"center\">LibreOffice was created by The Document Foundation, based on OpenOffice.org, which is Copyright 2000, 2010 Oracle and/or its affiliates.</p>"
- << "<p class=\"copyright\" align=\"center\">The Document Foundation acknowledges all community members, please find more info <a href=\"http://www.libreoffice.org/about-us/credits/\" target=\"_blank\">at our website</a>."
- << "<p>&nbsp;</p>"
- << "<p class=\"copyright\" align=\"center\"><a href=\"http://www.documentfoundation.org/privacy\" target=\"_blank\">Privacy Policy</a> | <a href=\"http://www.documentfoundation.org/imprint\" target=\"_blank\">Impressum (Legal Info)</a> | Copyright information: The source code of LibreOffice is licensed under the GNU Lesser General Public License (<a href=\"http://www.libreoffice.org/download/license/\" target=\"_blank\">LGPLv3</a>). \"LibreOffice\" and \"The Document Foundation\" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our <a href=\"http://wiki.documentfoundation.org/TradeMark_Policy\" target=\"_blank\">trademark policy</a>.";
- return String(cr.c_str());
-
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/display/idl/hfi_constgroup.cxx b/autodoc/source/display/idl/hfi_constgroup.cxx
deleted file mode 100644
index 5efb61924383..000000000000
--- a/autodoc/source/display/idl/hfi_constgroup.cxx
+++ /dev/null
@@ -1,131 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include "hfi_constgroup.hxx"
-
-
-// NOT FULLY DEFINED SERVICES
-#include <ary/idl/i_ce.hxx>
-#include <ary/idl/ik_constgroup.hxx>
-#include <toolkit/hf_linachain.hxx>
-#include <toolkit/hf_navi_sub.hxx>
-#include <toolkit/hf_title.hxx>
-#include "hfi_navibar.hxx"
-#include "hfi_property.hxx"
-#include "hi_linkhelper.hxx"
-
-
-extern const String
- C_sCePrefix_Constants("constants group");
-
-
-namespace
-{
-
-const String
- C_sList_Constants("Constants");
-const String
- C_sList_Constants_Label("Constants");
-const String
- C_sList_ConstantDetails("Constants' Details");
-const String
- C_sList_ConstantDetails_Label("ConstantDetails");
-
-enum E_SubListIndices
-{
- sli_ConstantsSummary = 0,
- sli_ConstantDetails = 1
-};
-
-
-} // anonymous namespace
-
-
-
-HF_IdlConstGroup::HF_IdlConstGroup( Environment & io_rEnv,
- Xml::Element & o_rOut )
- : HtmlFactory_Idl(io_rEnv, &o_rOut)
-{
-}
-
-HF_IdlConstGroup::~HF_IdlConstGroup()
-{
-}
-
-void
-HF_IdlConstGroup::Produce_byData( const client & i_ce ) const
-{
- Dyn<HF_NaviSubRow>
- pNaviSubRow( &make_Navibar(i_ce) );
-
- HF_TitleTable
- aTitle(CurOut());
- HF_LinkedNameChain
- aNameChain(aTitle.Add_Row());
-
- aNameChain.Produce_CompleteChain(Env().CurPosition(), nameChainLinker);
- produce_Title(aTitle, C_sCePrefix_Constants, i_ce);
-
- write_Docu(aTitle.Add_Row(), i_ce);
- CurOut() << new Html::HorizontalLine();
-
- dyn_ce_list
- dpConstants;
- ary::idl::ifc_constgroup::attr::Get_Constants(dpConstants, i_ce);
-
- if ( (*dpConstants).operator bool() )
- {
- produce_Members( *dpConstants,
- C_sList_Constants,
- C_sList_Constants_Label,
- C_sList_ConstantDetails,
- C_sList_ConstantDetails_Label );
- pNaviSubRow->SwitchOn(sli_ConstantsSummary);
- pNaviSubRow->SwitchOn(sli_ConstantDetails);
- }
- pNaviSubRow->Produce_Row();
-}
-
-HF_NaviSubRow &
-HF_IdlConstGroup::make_Navibar( const client & i_ce ) const
-{
- HF_IdlNavigationBar
- aNaviBar(Env(), CurOut());
- aNaviBar.Produce_CeMainRow(i_ce,true); // true := avoid link to Use-page.
-
- DYN HF_NaviSubRow &
- ret = aNaviBar.Add_SubRow();
- ret.AddItem(C_sList_Constants, C_sList_Constants_Label, false);
- ret.AddItem(C_sList_ConstantDetails, C_sList_ConstantDetails_Label, false);
-
- CurOut() << new Html::HorizontalLine();
- return ret;
-}
-
-void
-HF_IdlConstGroup::produce_MemberDetails( HF_SubTitleTable & o_table,
- const client & i_ce ) const
-{
- HF_IdlConstant
- aElement( Env(), o_table );
- aElement.Produce_byData(i_ce);
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/display/idl/hfi_constgroup.hxx b/autodoc/source/display/idl/hfi_constgroup.hxx
deleted file mode 100644
index bab347c4ed6e..000000000000
--- a/autodoc/source/display/idl/hfi_constgroup.hxx
+++ /dev/null
@@ -1,61 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_DISPLAY_HFI_CONSTGROUP_HXX
-#define ADC_DISPLAY_HFI_CONSTGROUP_HXX
-
-
-// USED SERVICES
- // BASE CLASSES
-#include "hi_factory.hxx"
- // COMPONENTS
- // PARAMETERS
-
-class HF_NaviSubRow;
-
-class HF_IdlConstGroup : public HtmlFactory_Idl
-{
- public:
- HF_IdlConstGroup(
- Environment & io_rEnv,
- Xml::Element & o_rOut );
- virtual ~HF_IdlConstGroup();
-
- void Produce_byData(
- const client & ce ) const;
- private:
- HF_NaviSubRow & make_Navibar(
- const client & ce ) const;
- virtual void produce_MemberDetails(
- HF_SubTitleTable & o_table,
- const client & ce ) const;
-};
-
-
-
-// IMPLEMENTATION
-
-
-extern const String
- C_sCePrefix_Constants;
-
-#endif
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/display/idl/hfi_doc.cxx b/autodoc/source/display/idl/hfi_doc.cxx
deleted file mode 100644
index e0e053c4afb6..000000000000
--- a/autodoc/source/display/idl/hfi_doc.cxx
+++ /dev/null
@@ -1,185 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include "hfi_doc.hxx"
-
-
-// NOT FULLY DEFINED SERVICES
-#include <ary/idl/i_ce.hxx>
-#include <ary/doc/d_oldidldocu.hxx>
-#include <ary_i/d_token.hxx>
-#include <toolkit/hf_docentry.hxx>
-#include "hfi_tag.hxx"
-#include "hi_ary.hxx"
-
-
-
-
-HF_IdlDocu::HF_IdlDocu( Environment & io_rEnv,
- HF_DocEntryList & o_rOut )
- : HtmlFactory_Idl( io_rEnv, &o_rOut.CurOut() ),
- rOut(o_rOut)
-{
-}
-
-HF_IdlDocu::~HF_IdlDocu()
-{
-}
-
-void
-HF_IdlDocu::Produce_fromCodeEntity( const client & i_ce ) const
-{
- const ce_info *
- i_pDocu = Get_IdlDocu(i_ce.Docu());
- if (i_pDocu != 0)
- Produce_byDocuAndScope(*i_pDocu, &i_ce, i_ce);
-}
-
-void
-HF_IdlDocu::Produce_fromReference( const ce_info & i_rDocuForReference,
- const client & i_rScopeGivingCe ) const
-{
- Produce_byDocuAndScope(i_rDocuForReference, 0, i_rScopeGivingCe );
-}
-
-void
-HF_IdlDocu::Produce_byDocuAndScope( const ce_info & i_rDocu,
- const client * i_pClient,
- const client & i_rScopeGivingCe ) const
-{
- bool bShort = NOT i_rDocu.Short().IsEmpty();
- bool bDescr = NOT i_rDocu.Description().IsEmpty();
-
- if ( i_rDocu.IsDeprecated()
- OR (
- (i_pClient != 0 ? i_pClient->SightLevel() == ary::idl::sl_File : false)
- AND NOT i_rDocu.IsPublished()
- )
- OR i_rDocu.IsOptional() )
- { // any usage restriction
- rOut.Produce_Term("Usage Restrictions");
-
- if ( i_rDocu.IsDeprecated() )
- rOut.Produce_Definition() >> *new Html::Italic << "deprecated";
- if ( (i_pClient != 0 ? i_pClient->SightLevel() == ary::idl::sl_File : false)
- AND NOT i_rDocu.IsPublished() )
- rOut.Produce_Definition() >> *new Html::Italic << "not published";
- if ( i_rDocu.IsOptional() )
- rOut.Produce_Definition() >> *new Html::Italic << "optional";
-
- if ( i_rDocu.IsDeprecated() AND
- // KORR_FUTURE
- // Workaround, because DocuTex2::IsEmpty() does not
- // calculate whitespace tokens only as empty.
- i_rDocu.DeprecatedText().Tokens().size() > 1 )
- {
- rOut.Produce_Term("Deprecation Info");
-
- HF_IdlDocuTextDisplay
- aDescription( Env(), 0, i_rScopeGivingCe);
- aDescription.Out().Enter( rOut.Produce_Definition() );
- i_rDocu.DeprecatedText().DisplayAt( aDescription );
- aDescription.Out().Leave();
- }
- } // end if (<any usage restriction>)
-
- if ( bShort OR bDescr )
- {
- rOut.Produce_Term("Description");
- HF_IdlDocuTextDisplay
- aDescription( Env(), 0, i_rScopeGivingCe);
- if (bShort)
- {
- aDescription.Out().Enter( rOut.Produce_Definition() );
- i_rDocu.Short().DisplayAt( aDescription );
- aDescription.Out().Leave();
- }
- if (bDescr)
- {
- aDescription.Out().Enter( rOut.Produce_Definition() );
- i_rDocu.Description().DisplayAt( aDescription );
- aDescription.Out().Leave();
- }
- }
-
- std::vector< csi::dsapi::DT_SeeAlsoAtTag* >
- aSeeAlsosWithoutText;
- std::vector< csi::dsapi::DT_SeeAlsoAtTag* >
- aSeeAlsosWithText;
-
- for ( std::vector< ary::inf::AtTag2* >::const_iterator
- iter = i_rDocu.Tags().begin();
- iter != i_rDocu.Tags().end();
- ++iter )
- {
- csi::dsapi::DT_SeeAlsoAtTag*
- pSeeAlso = dynamic_cast< csi::dsapi::DT_SeeAlsoAtTag * >(*iter);
- if (pSeeAlso != 0 )
- {
- if ( pSeeAlso->Text().IsEmpty() )
- {
- aSeeAlsosWithoutText.push_back(pSeeAlso);
- }
- else
- {
- aSeeAlsosWithText.push_back(pSeeAlso);
- }
- continue;
- }
-
- if ( strlen( (*iter)->Title() ) > 0 )
- {
- HF_IdlTag
- aTag(Env(), i_rScopeGivingCe);
- Xml::Element &
- rTerm = rOut.Produce_Term();
- aTag.Produce_byData( rTerm,
- rOut.Produce_Definition(),
- *(*iter) );
- }
- } // end for
-
- if (!aSeeAlsosWithoutText.empty())
- {
- HF_IdlTag
- aSeeAlsoTag(Env(), i_rScopeGivingCe);
- Xml::Element &
- rTerm = rOut.Produce_Term();
- aSeeAlsoTag.Produce_byData( rTerm,
- rOut.Produce_Definition(),
- aSeeAlsosWithoutText );
- }
-
- for ( std::vector< csi::dsapi::DT_SeeAlsoAtTag* >::const_iterator
- itSee2 = aSeeAlsosWithText.begin();
- itSee2 != aSeeAlsosWithText.end();
- ++itSee2 )
- {
- HF_IdlTag
- aTag(Env(), i_rScopeGivingCe);
- Xml::Element &
- rTerm = rOut.Produce_Term();
- aTag.Produce_byData( rTerm,
- rOut.Produce_Definition(),
- *(*itSee2) );
- } // end for
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/display/idl/hfi_doc.hxx b/autodoc/source/display/idl/hfi_doc.hxx
deleted file mode 100644
index d30e1259f7aa..000000000000
--- a/autodoc/source/display/idl/hfi_doc.hxx
+++ /dev/null
@@ -1,79 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_DISPLAY_HFI_DOC_HXX
-#define ADC_DISPLAY_HFI_DOC_HXX
-
-
-
-// USED SERVICES
- // BASE CLASSES
-#include "hi_factory.hxx"
- // COMPONENTS
- // PARAMETERS
-
-
-class HF_DocEntryList;
-
-
-class HF_IdlDocu : public HtmlFactory_Idl
-{
- public:
- HF_IdlDocu(
- Environment & io_rEnv,
- HF_DocEntryList & o_rOut );
- virtual ~HF_IdlDocu();
-
-
- /** Produces documentation by the CodeInfo accompanying
- ->i_ce.
- */
- void Produce_fromCodeEntity(
- const client & i_ce ) const;
-
- /** Produces documentation by the CodeInfo accompanying
- a link or reference to a CodeEntity.
-
- @param i_rScopeGivingCe
- Gives the scope from which links are to be calculated.
- */
- void Produce_fromReference(
- const ce_info & i_rDocuForReference,
- const client & i_rScopeGivingCe ) const;
-
- private:
- // Locals
- /** Produces documentation.
-
- @param i_rScopeGivingCe
- Gives the scope from which links are to be calculated.
- */
- void Produce_byDocuAndScope(
- const ce_info & i_rDocu,
- const client * i_pClient, /// May be 0.
- const client & i_rScopeGivingCe ) const;
-
- // DATA
- HF_DocEntryList & rOut;
-};
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/display/idl/hfi_enum.cxx b/autodoc/source/display/idl/hfi_enum.cxx
deleted file mode 100644
index e1c415bbb33a..000000000000
--- a/autodoc/source/display/idl/hfi_enum.cxx
+++ /dev/null
@@ -1,127 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include "hfi_enum.hxx"
-
-
-// NOT FULLY DEFINED SERVICES
-#include <ary/idl/i_ce.hxx>
-#include <ary/idl/ik_enum.hxx>
-#include <toolkit/hf_linachain.hxx>
-#include <toolkit/hf_navi_sub.hxx>
-#include <toolkit/hf_title.hxx>
-#include "hfi_navibar.hxx"
-#include "hfi_property.hxx"
-#include "hi_linkhelper.hxx"
-
-
-extern const String
- C_sCePrefix_Enum("enum");
-
-namespace
-{
-
-const String
- C_sList_Values("Values");
-const String
- C_sList_Values_Label("Values");
-const String
- C_sList_ValueDetails("Values' Details");
-const String
- C_sList_ValueDetails_Label("ValueDetails");
-
-enum E_SubListIndices
-{
- sli_ValuesSummary = 0,
- sli_ValueDetails = 1
-};
-
-} // anonymous namespace
-
-HF_IdlEnum::HF_IdlEnum( Environment & io_rEnv,
- Xml::Element & o_rOut )
- : HtmlFactory_Idl(io_rEnv, &o_rOut)
-{
-}
-
-HF_IdlEnum::~HF_IdlEnum()
-{
-}
-
-void
-HF_IdlEnum::Produce_byData( const client & i_ce ) const
-{
- Dyn<HF_NaviSubRow>
- pNaviSubRow( &make_Navibar(i_ce) );
-
- HF_TitleTable
- aTitle(CurOut());
-
- HF_LinkedNameChain
- aNameChain(aTitle.Add_Row());
-
- aNameChain.Produce_CompleteChain(Env().CurPosition(), nameChainLinker);
- produce_Title(aTitle, C_sCePrefix_Enum, i_ce);
-
- write_Docu(aTitle.Add_Row(), i_ce);
- CurOut() << new Html::HorizontalLine();
-
- dyn_ce_list
- dpValues;
- ary::idl::ifc_enum::attr::Get_Values(dpValues, i_ce);
- if ( (*dpValues).operator bool() )
- {
- produce_Members( *dpValues,
- C_sList_Values,
- C_sList_Values_Label,
- C_sList_ValueDetails,
- C_sList_ValueDetails_Label );
- pNaviSubRow->SwitchOn(sli_ValuesSummary);
- pNaviSubRow->SwitchOn(sli_ValueDetails);
- }
- pNaviSubRow->Produce_Row();
-}
-
-HF_NaviSubRow &
-HF_IdlEnum::make_Navibar( const client & i_ce ) const
-{
- HF_IdlNavigationBar
- aNaviBar(Env(), CurOut());
- aNaviBar.Produce_CeMainRow(i_ce);
-
- DYN HF_NaviSubRow &
- ret = aNaviBar.Add_SubRow();
- ret.AddItem(C_sList_Values, C_sList_Values_Label, false);
- ret.AddItem(C_sList_ValueDetails, C_sList_ValueDetails_Label, false);
-
- CurOut() << new Html::HorizontalLine();
- return ret;
-}
-
-void
-HF_IdlEnum::produce_MemberDetails( HF_SubTitleTable & o_table,
- const client & i_ce) const
-{
- HF_IdlEnumValue
- aElement( Env(), o_table );
- aElement.Produce_byData(i_ce);
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/display/idl/hfi_enum.hxx b/autodoc/source/display/idl/hfi_enum.hxx
deleted file mode 100644
index 4e15e3801827..000000000000
--- a/autodoc/source/display/idl/hfi_enum.hxx
+++ /dev/null
@@ -1,63 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_DISPLAY_HFI_ENUM_HXX
-#define ADC_DISPLAY_HFI_ENUM_HXX
-
-
-
-// USED SERVICES
- // BASE CLASSES
-#include "hi_factory.hxx"
- // COMPONENTS
- // PARAMETERS
-
-class HF_NaviSubRow;
-
-
-class HF_IdlEnum : public HtmlFactory_Idl
-{
- public:
- HF_IdlEnum(
- Environment & io_rEnv,
- Xml::Element & o_rOut );
- virtual ~HF_IdlEnum();
-
- void Produce_byData(
- const client & ce ) const;
- private:
- HF_NaviSubRow & make_Navibar(
- const client & ce ) const;
- virtual void produce_MemberDetails(
- HF_SubTitleTable & o_table,
- const client & ce ) const;
-};
-
-
-
-// IMPLEMENTATION
-
-
-extern const String
- C_sCePrefix_Enum;
-
-#endif
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/display/idl/hfi_globalindex.cxx b/autodoc/source/display/idl/hfi_globalindex.cxx
deleted file mode 100644
index e0ffd286a8a5..000000000000
--- a/autodoc/source/display/idl/hfi_globalindex.cxx
+++ /dev/null
@@ -1,257 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include "hfi_globalindex.hxx"
-
-
-// NOT FULLY DEFINED SERVICES
-#include <cosv/tpl/tpltools.hxx>
-#include <ary/idl/i_ce.hxx>
-#include <ary/idl/i_types4idl.hxx>
-#include <ary/idl/i_module.hxx>
-#include <toolkit/hf_title.hxx>
-#include "hfi_navibar.hxx"
-#include "hfi_typetext.hxx"
-#include "hi_linkhelper.hxx"
-
-
-
-
-namespace
-{
-
-/**
-*/
-enum E_Types
-{
- t_service = 0,
- t_interface = 1,
- t_struct = 2,
- t_exception = 3,
- t_enum = 4,
- t_typedef = 5,
- t_constantsgroup = 6,
- t_property = 7,
- t_function = 8,
- t_structelement = 9,
- t_enumvalue = 10,
- t_constant = 11,
- t_module = 12,
- t_singleton = 13,
- t_attribute = 14,
- t_siservice = 15,
- t_sisingleton = 16,
- t_MAX
-};
-
-String G_sDummy;
-
-
-/* RC-Ids for IDL types (see reposy.cxx):
-
- Module 2000
- Interface 2001
- Function 2002
- Service 2003
- Property 2004
-
- Enum 2005
- EnumValue 2006
- Typedef 2007
- Struct 2008
- StructElement 2009
-
- Exception 2010
- ConstantGroup 2011
- Constant 2012
- Singleton 2013
- Attribute 2014
- SglIfcService 2015
- SglIfcSingleton 2016
-*/
-const int C_nNumberOfIdlTypes = 17;
-const char * C_sTypeNames[C_nNumberOfIdlTypes] =
- { "module ", "interface ", "function ", "service ", "property ",
- "enum ", "value ", "typedef ", "struct ", "field ",
- "exception ", "constants group ", "constant ","singleton ", "attribute ",
- "service", "singleton"
- };
-const char * C_sOwnerNames[C_nNumberOfIdlTypes] =
- { "module ", "module ", "interface ", "module ", "service ",
- "module ", "enum ", "module ", "module ", "", // could be struct or exception
- "module ", "module ", "constants group ", "module ", "interface ",
- "module", "module"
- };
-const intt C_nNamesArrayOffset = intt(ary::idl::Module::class_id);
-const int C_nIxField = 9;
-
-
-HF_IdlGlobalIndex::PageData G_PageData;
-
-} // end anonymous namespace
-
-
-inline void
-HF_IdlGlobalIndex::write_EntryItself( Xml::Element & o_destination,
- const ary::idl::CodeEntity & i_ce,
- const HF_IdlTypeText & i_typeLinkWriter ) const
-{
- i_typeLinkWriter.Produce_IndexLink(o_destination, i_ce);
- o_destination << " - ";
-}
-
-
-HF_IdlGlobalIndex::HF_IdlGlobalIndex( Environment & io_rEnv,
- Xml::Element & o_rOut )
- : HtmlFactory_Idl(io_rEnv, &o_rOut)
-{
-}
-
-HF_IdlGlobalIndex::~HF_IdlGlobalIndex()
-{
-}
-
-void
-HF_IdlGlobalIndex::Produce_Page(ary::idl::alphabetical_index::E_Letter i_letter) const
-{
- make_Navibar();
-
- HF_TitleTable
- aTitle(CurOut());
- StreamLock sl(100);
- aTitle.Produce_Title( sl()
- << "Global Index "
- << ( i_letter != ary::idl::alphabetical_index::non_alpha
- ? char(int(i_letter)-'a'+'A')
- : '_' )
- << c_str );
-
- // Letters Index
- aTitle.Add_Row()
- << new Xml::XmlCode(
- "<p align=\"center\"><a href=\"index-1.html\"><b>A</b></a> <a href=\"index-2.html\"><b>B</b></a> <a href=\"index-3.html\"><b>C</b></a> <a href=\"index-4.html\"><b>D</b></a> <a href=\"index-5.html\"><b>E</b></a> <a href=\"index-6.html\"><b>F</b></a> <a href=\"index-7.html\"><b>G</b></a> <a href=\"index-8.html\"><b>H</b></a> <a href=\"index-9.html\"><b>I</b></a> <a href=\"index-10.html\"><b>J</b></a>"
- " <a href=\"index-11.html\"><b>K</b></a> <a href=\"index-12.html\"><b>L</b></a> <a href=\"index-13.html\"><b>M</b></a> <a href=\"index-14.html\"><b>N</b></a> <a href=\"index-15.html\"><b>O</b></a> <a href=\"index-16.html\"><b>P</b></a> <a href=\"index-17.html\"><b>Q</b></a> <a href=\"index-18.html\"><b>R</b></a> <a href=\"index-19.html\"><b>S</b></a> <a href=\"index-20.html\"><b>T</b></a>"
- " <a href=\"index-21.html\"><b>U</b></a> <a href=\"index-22.html\"><b>V</b></a> <a href=\"index-23.html\"><b>W</b></a> <a href=\"index-24.html\"><b>X</b></a> <a href=\"index-25.html\"><b>Y</b></a> <a href=\"index-26.html\"><b>Z</b></a> <a href=\"index-27.html\"><b>_</b></a></p>" );
-
- Out().Enter(CurOut() >> *new Html::DefList);
-
- csv::erase_container(G_PageData);
- Env().Data().Get_IndexData(G_PageData, i_letter);
-
- // Helper object to produce links to the index Entries.
- HF_IdlTypeText aTypeLinkWriter(Env(),HF_IdlTypeText::use_for_javacompatible_index);
-
- PageData::const_iterator itEnd = G_PageData.end();
- for ( PageData::const_iterator iter = G_PageData.begin();
- iter != itEnd;
- ++iter )
- {
- produce_Line(iter, aTypeLinkWriter);
- } // end for
-
- Out().Leave();
- CurOut() << new Html::HorizontalLine;
-}
-
-void
-HF_IdlGlobalIndex::make_Navibar() const
-{
- HF_IdlNavigationBar
- aNaviBar(Env(), CurOut());
- aNaviBar.Produce_IndexMainRow();
-
- CurOut() << new Html::HorizontalLine();
-}
-
-void
-HF_IdlGlobalIndex::produce_Line( PageData::const_iterator i_entry,
- const HF_IdlTypeText & i_typeLinkWriter) const
-{
- const client &
- rCe = Env().Data().Find_Ce(*i_entry);
- if (NOT rCe.Owner().IsValid())
- return; // Omit global namespace.
-
- // The destination for the created output:
- Xml::Element & rDT = CurOut() >> *new Html::DefListTerm;
-
- /** The following code is intended to produce an output that
- will be recognized by the context help system of Forte.
- That is reached by making it similar to the indices, that
- Javadoc produces.
- If the link to the Entry contains a hashmark, the Forte-Help
- requires following a link to the owner.
- But if there is no hashmark, the following link must go to
- the same Entry again. Doesn't make really sense :-(, but that's
- like it is.
- */
- write_EntryItself(rDT,rCe,i_typeLinkWriter);
- if (rCe.SightLevel() == ary::idl::sl_Member)
- write_OwnerOfEntry(rDT,rCe,i_typeLinkWriter);
- else
- write_EntrySecondTime(rDT,rCe,i_typeLinkWriter);
-
- // This produces an empty "<dd></dd>", which is also needed to reach
- // similarity to the Javadoc index:
- CurOut() << new Html::DefListDefinition;
-}
-
-void
-HF_IdlGlobalIndex::write_OwnerOfEntry( Xml::Element & o_destination,
- const ary::idl::CodeEntity & i_ce,
- const HF_IdlTypeText & i_typeLinkWriter ) const
-{
- const client &
- rOwner = Env().Data().Find_Ce(i_ce.Owner());
-
- int nIx = int(i_ce.AryClass() - C_nNamesArrayOffset);
- csv_assert(csv::in_range(0,nIx,C_nNumberOfIdlTypes));
-
- o_destination << C_sTypeNames[nIx]
- << "in ";
- if (nIx != C_nIxField)
- {
- o_destination << C_sOwnerNames[nIx];
- }
- else
- {
- uintt
- nOwnerIx = rOwner.AryClass() - C_nNamesArrayOffset;
- csv_assert(
- nOwnerIx < static_cast< unsigned int >(C_nNumberOfIdlTypes));
- o_destination << C_sTypeNames[nOwnerIx];
- }
- i_typeLinkWriter.Produce_IndexOwnerLink(o_destination, rOwner);
-}
-
-void
-HF_IdlGlobalIndex::write_EntrySecondTime( Xml::Element & o_destination,
- const ary::idl::CodeEntity & i_ce,
- const HF_IdlTypeText & i_typeLinkWriter ) const
-{
- int nIx = int(i_ce.AryClass() - C_nNamesArrayOffset);
- csv_assert(csv::in_range(0,nIx,C_nNumberOfIdlTypes));
-
- o_destination << C_sTypeNames[nIx]
- << " ";
- i_typeLinkWriter.Produce_IndexSecondEntryLink(o_destination, i_ce);
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/display/idl/hfi_globalindex.hxx b/autodoc/source/display/idl/hfi_globalindex.hxx
deleted file mode 100644
index 1495c331f5e7..000000000000
--- a/autodoc/source/display/idl/hfi_globalindex.hxx
+++ /dev/null
@@ -1,82 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_DISPLAY_HFI_GLOBALINDEX_HXX
-#define ADC_DISPLAY_HFI_GLOBALINDEX_HXX
-
-
-
-// USED SERVICES
- // BASE CLASSES
-#include "hi_factory.hxx"
- // COMPONENTS
- // PARAMETERS
-#include <ary/idl/i_gate.hxx>
-
-
-class HF_IdlTypeText;
-
-class HF_IdlGlobalIndex : public HtmlFactory_Idl
-{
- public:
- typedef std::vector<ary::idl::Ce_id> PageData;
-
- HF_IdlGlobalIndex(
- Environment & io_rEnv,
- Xml::Element & o_rOut );
- virtual ~HF_IdlGlobalIndex();
-
- void Produce_Page(
- ary::idl::alphabetical_index::E_Letter
- i_letter ) const;
- private:
- void make_Navibar() const; /// Called by @->Produce_Page()
- void produce_Line( /// Called by @->Produce_Page()
- PageData::const_iterator
- i_entry,
- const HF_IdlTypeText &
- i_typeLinkWriter ) const;
-
- void write_EntryItself( /// Called by @->produceLine()
- Xml::Element & o_destination,
- const ary::idl::CodeEntity &
- i_entry,
- const HF_IdlTypeText &
- i_typeLinkWriter ) const;
-
- void write_OwnerOfEntry( /// Called by @->produceLine()
- Xml::Element & o_destination,
- const ary::idl::CodeEntity &
- i_entry,
- const HF_IdlTypeText &
- i_typeLinkWriter ) const;
-
- void write_EntrySecondTime( /// Called by @->produceLine()
- Xml::Element & o_destination,
- const ary::idl::CodeEntity &
- i_entry,
- const HF_IdlTypeText &
- i_typeLinkWriter ) const;
-};
-
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/display/idl/hfi_hierarchy.cxx b/autodoc/source/display/idl/hfi_hierarchy.cxx
deleted file mode 100644
index 19b18144abed..000000000000
--- a/autodoc/source/display/idl/hfi_hierarchy.cxx
+++ /dev/null
@@ -1,196 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include "hfi_hierarchy.hxx"
-
-
-// NOT FULLY DECLARED SERVICES
-#include <udm/html/htmlitem.hxx>
-#include <ary/stdconstiter.hxx>
-#include <ary/idl/i_ce.hxx>
-#include <ary/idl/i_gate.hxx>
-#include <ary/idl/i_type.hxx>
-#include <ary/idl/ik_interface.hxx>
-#include <ary/idl/ip_ce.hxx>
-#include <ary/idl/ip_type.hxx>
-#include "hfi_interface.hxx"
-#include "hfi_typetext.hxx"
-#include "hi_env.hxx"
-
-
-
-HF_IdlBaseNode::HF_IdlBaseNode( const TYPE & i_rType,
- const GATE & i_rGate,
- intt i_nPositionOffset,
- HF_IdlBaseNode & io_rDerived )
- : nType(i_rType.TypeId()),
- aBases(),
- nCountBases(0),
- nPosition(i_nPositionOffset),
- pDerived(&io_rDerived)
-{
- Ce_id nCe = i_rGate.Types().Search_CeRelatedTo(nType);
- if (nCe.IsValid())
- {
- GatherBases(i_rGate.Ces().Find_Ce(nCe), i_rGate);
- }
-}
-
-HF_IdlBaseNode::~HF_IdlBaseNode()
-{
-}
-
-void
-HF_IdlBaseNode::FillPositionList( std::vector< const HF_IdlBaseNode* > & o_rPositionList ) const
-{
- for ( BaseList::const_iterator it = aBases.begin();
- it != aBases.end();
- ++it )
- {
- (*it)->FillPositionList(o_rPositionList);
- } // end for
-
- o_rPositionList.push_back(this);
-}
-
-void
-HF_IdlBaseNode::GatherBases( const CE & i_rCe,
- const GATE & i_rGate )
-{
- ary::Dyn_StdConstIterator<ary::idl::CommentedRelation>
- aHelp;
- ary::idl::ifc_interface::attr::Get_Bases(aHelp,i_rCe);
-
- for ( ary::StdConstIterator<ary::idl::CommentedRelation> & it = *aHelp;
- it.operator bool();
- ++it )
- {
- const TYPE &
- rBaseType = i_rGate.Types().Find_Type((*it).Type());
-
- Dyn<HF_IdlBaseNode>
- pBaseNode( new HF_IdlBaseNode( rBaseType,
- i_rGate,
- nPosition,
- *this )
- );
-
- intt nAddedBases = pBaseNode->BaseCount() + 1;
- nCountBases += nAddedBases;
- nPosition += nAddedBases;
- aBases.push_back( pBaseNode.Release() );
- } // end for
-}
-
-
-void
-Write_BaseHierarchy( csi::xml::Element & o_rOut,
- HtmlEnvironment_Idl & i_env,
- const ary::idl::CodeEntity & i_ce )
-{
- csi::xml::Element &
- rPre = o_rOut
- >> *new csi::xml::AnElement("pre")
- << new csi::html::StyleAttr("font-family:monospace;");
-
- std::vector<uintt>
- aSetColumns;
- rPre
- >> *new csi::html::Strong
- << i_ce.LocalName();
- rPre
- << "\n";
- Write_Bases( rPre,
- i_env,
- i_ce,
- aSetColumns );
- rPre
- << "\n";
-
-}
-
-
-void
-Write_Bases( csi::xml::Element & o_out,
- HtmlEnvironment_Idl & i_env,
- const ary::idl::CodeEntity & i_rCe,
- std::vector<uintt> & io_setColumns )
-{
- ary::Dyn_StdConstIterator<ary::idl::CommentedRelation>
- aHelp;
- ary::idl::ifc_interface::attr::Get_Bases(aHelp,i_rCe);
-
- for ( ary::StdConstIterator<ary::idl::CommentedRelation> & it = *aHelp;
- it.operator bool();
- // NO INCREMENT HERE, see below
- )
- {
- ary::idl::Type_id
- nType = (*it).Type();
- ++it;
- bool
- bThereComesMore = it.operator bool();
-
- ary::idl::Ce_id
- nCe = i_env.Gate().Types().Search_CeRelatedTo(nType);
- if (nCe.IsValid())
- {
- // KORR_FUTURE
- // Rather check for id(!) of com::sun::star::uno::XInterface.
- if (i_env.Gate().Ces().Find_Ce(nCe).LocalName() == "XInterface")
- continue;
- }
-
- for (uintt i = 0; i < io_setColumns.size(); ++i)
- {
- if (io_setColumns[i] == 1)
- o_out << new csi::xml::XmlCode("&#x2503");
- else
- o_out << " ";
- o_out << " ";
- }
-
- if (bThereComesMore)
- o_out << new csi::xml::XmlCode("&#x2523");
- else
- o_out << new csi::xml::XmlCode("&#x2517");
- o_out << " ";
-
- HF_IdlTypeText
- aDisplay( i_env, o_out, i_env.CurPageCe());
- aDisplay.Produce_byData(nType);
- o_out << "\n";
-
- if (nCe.IsValid())
- {
- io_setColumns.push_back(bThereComesMore ? 1 : 0);
-
- const ary::idl::CodeEntity &
- rCe = i_env.Gate().Ces().Find_Ce(nCe);
- Write_Bases( o_out,
- i_env,
- rCe,
- io_setColumns );
- io_setColumns.pop_back();
- }
- } // end for
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/display/idl/hfi_hierarchy.hxx b/autodoc/source/display/idl/hfi_hierarchy.hxx
deleted file mode 100644
index a25200ff001e..000000000000
--- a/autodoc/source/display/idl/hfi_hierarchy.hxx
+++ /dev/null
@@ -1,124 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_DISPLAY_HFI_HIERARCHY_HXX
-#define ADC_DISPLAY_HFI_HIERARCHY_HXX
-
-// USED SERVICES
- // BASE CLASSES
- // COMPONENTS
- // PARAMETERS
-#include <ary/idl/i_comrela.hxx>
-#include <ary/idl/i_types4idl.hxx>
-
-namespace ary
-{
-namespace idl
-{
- class Gate;
-}
-}
-
-namespace csi
-{
-namespace xml
-{
- class Element;
-}
-}
-
-
-class HtmlEnvironment_Idl;
-
-
-
-/** Represents a node in an pyramidic inheritance hierarchy which shall be
- displayed in text mode.
-*/
-class HF_IdlBaseNode
-{
- public:
- typedef ary::idl::CodeEntity CE;
- typedef ary::idl::Type TYPE;
- typedef ary::idl::Gate GATE;
- typedef ary::idl::Ce_id Ce_id;
- typedef ary::idl::Type_id Type_id;
-
- /** @descr
- The constructor recursively calls further constructors of
- HF_IdlBaseNode for the bases of ->i_rType, if ->i_rType matches to a
- ->CE.
- So it builds up a complete hierarchy tree of all base classes
- of ->i_pEntity.
- */
- HF_IdlBaseNode(
- const TYPE & i_rType,
- const GATE & i_rGate,
- intt i_nPositionOffset,
- HF_IdlBaseNode & io_rDerived );
- ~HF_IdlBaseNode();
-
- /** Recursively fills ->o_rPositionList with the instances of base
- classes in the order in which they will be displayed.
- */
- void FillPositionList(
- std::vector< const HF_IdlBaseNode* > &
- o_rPositionList ) const;
-
- Type_id Type() const { return nType; }
- intt BaseCount() const { return nCountBases; }
- intt Position() const { return nPosition; }
- int Xpos() const { return 3*Position(); }
- int Ypos() const { return 2*Position(); }
- const HF_IdlBaseNode * Derived() const { return pDerived; }
-
- private:
- typedef std::vector< DYN HF_IdlBaseNode* > BaseList;
-
- void GatherBases(
- const CE & i_rCe,
- const GATE & i_rGate );
-
- // DATA
- Type_id nType;
- BaseList aBases;
- intt nCountBases;
- intt nPosition;
- HF_IdlBaseNode * pDerived;
-};
-
-void Write_BaseHierarchy(
- csi::xml::Element & o_rOut,
- HtmlEnvironment_Idl &
- i_env,
- const ary::idl::CodeEntity &
- i_rCe );
-
-void Write_Bases(
- csi::xml::Element & o_rOut,
- HtmlEnvironment_Idl &
- i_env,
- const ary::idl::CodeEntity &
- i_rCe,
- std::vector<uintt> &
- io_setColumns );
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/display/idl/hfi_interface.cxx b/autodoc/source/display/idl/hfi_interface.cxx
deleted file mode 100644
index 1d6f59ece10b..000000000000
--- a/autodoc/source/display/idl/hfi_interface.cxx
+++ /dev/null
@@ -1,351 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include "hfi_interface.hxx"
-
-
-// NOT FULLY DEFINED SERVICES
-#include <ary/idl/i_ce.hxx>
-#include <ary/idl/i_gate.hxx>
-#include <ary/idl/ik_function.hxx>
-#include <ary/idl/ik_interface.hxx>
-#include <ary/idl/ip_ce.hxx>
-#include <ary/idl/ip_type.hxx>
-#include <toolkit/hf_docentry.hxx>
-#include <toolkit/hf_linachain.hxx>
-#include <toolkit/hf_navi_sub.hxx>
-#include <toolkit/hf_title.hxx>
-#include "hfi_doc.hxx"
-#include "hfi_hierarchy.hxx"
-#include "hfi_method.hxx"
-#include "hfi_navibar.hxx"
-#include "hfi_property.hxx"
-#include "hfi_tag.hxx"
-#include "hfi_typetext.hxx"
-#include "hi_linkhelper.hxx"
-
-
-extern const String
- C_sCePrefix_Interface("interface");
-
-namespace
-{
-
-const String
- C_sBaseInterface("Base Interfaces");
-const String
- C_sList_BaseComments("Comments on Base Interfaces");
-const String
- C_sList_Methods("Methods' Summary");
-const String
- C_sList_Methods_Label("MethodsSummary");
-const String
- C_sDetails_Methods("Methods' Details");
-const String
- C_sDetails_Methods_Label("MethodsDetails");
-
-const String
- C_sList_Attributes("Attributes' Summary");
-const String
- C_sList_Attributes_Label("AttributesSummary");
-const String
- C_sList_AttributesDetails("Attributes' Details");
-const String
- C_sList_AttributesDetails_Label("AttributesDetails");
-
-
-
-enum E_SubListIndices
-{
- sli_MethodsSummay = 0,
- sli_AttributesSummary = 1,
- sli_MethodDetails = 2,
- sli_AttributesDetails = 3
-};
-
-} //anonymous namespace
-
-
-
-
-HF_IdlInterface::HF_IdlInterface( Environment & io_rEnv,
- Xml::Element & o_rOut )
- : HtmlFactory_Idl(io_rEnv, &o_rOut),
- eCurProducedMembers(mem_none)
-{
-}
-
-HF_IdlInterface::~HF_IdlInterface()
-{
-}
-
-void
-HF_IdlInterface::Produce_byData( const client & i_ce ) const
-{
- Dyn<HF_NaviSubRow>
- pNaviSubRow( &make_Navibar(i_ce) );
-
- HF_TitleTable
- aTitle(CurOut());
-
- HF_LinkedNameChain
- aNameChain(aTitle.Add_Row());
- aNameChain.Produce_CompleteChain(Env().CurPosition(), nameChainLinker);
-
- produce_Title(aTitle, C_sCePrefix_Interface, i_ce);
-
- produce_BaseHierarchy( aTitle.Add_Row(),
- i_ce,
- C_sBaseInterface );
-
- write_Docu(aTitle.Add_Row(), i_ce);
- CurOut() << new Html::HorizontalLine();
-
- dyn_ce_list dpFunctions;
- ary::idl::ifc_interface::attr::Get_Functions(dpFunctions, i_ce);
- if ( (*dpFunctions).operator bool() )
- {
- eCurProducedMembers = mem_Functions;
-
- produce_Members( *dpFunctions,
- C_sList_Methods,
- C_sList_Methods_Label,
- C_sDetails_Methods,
- C_sDetails_Methods_Label,
- HtmlFactory_Idl::viewtype_summary );
- pNaviSubRow->SwitchOn(sli_MethodsSummay);
- }
-
- dyn_ce_list
- dpAttributes;
- ary::idl::ifc_interface::attr::Get_Attributes(dpAttributes, i_ce);
- if ( (*dpAttributes).operator bool() )
- {
- eCurProducedMembers = mem_Attributes;
-
- produce_Members( *dpAttributes,
- C_sList_Attributes,
- C_sList_Attributes_Label,
- C_sList_AttributesDetails,
- C_sList_AttributesDetails_Label,
- HtmlFactory_Idl::viewtype_summary );
- pNaviSubRow->SwitchOn(sli_AttributesSummary);
- }
-
- ary::idl::ifc_interface::attr::Get_Functions(dpFunctions, i_ce);
- if ( (*dpFunctions).operator bool() )
- {
- eCurProducedMembers = mem_Functions;
-
- produce_Members( *dpFunctions,
- C_sList_Methods,
- C_sList_Methods_Label,
- C_sDetails_Methods,
- C_sDetails_Methods_Label,
- HtmlFactory_Idl::viewtype_details );
- pNaviSubRow->SwitchOn(sli_MethodDetails);
- }
-
- ary::idl::ifc_interface::attr::Get_Attributes(dpAttributes, i_ce);
- if ( (*dpAttributes).operator bool() )
- {
- eCurProducedMembers = mem_Attributes;
-
- produce_Members( *dpAttributes,
- C_sList_Attributes,
- C_sList_Attributes_Label,
- C_sList_AttributesDetails,
- C_sList_AttributesDetails_Label,
- HtmlFactory_Idl::viewtype_details );
- pNaviSubRow->SwitchOn(sli_AttributesDetails);
- }
-
- eCurProducedMembers = mem_none;
-
- pNaviSubRow->Produce_Row();
-}
-
-DYN HF_NaviSubRow &
-HF_IdlInterface::make_Navibar( const client & i_ce ) const
-{
- HF_IdlNavigationBar
- aNaviBar(Env(), CurOut());
- aNaviBar.Produce_CeMainRow(i_ce);
-
- DYN HF_NaviSubRow &
- ret = aNaviBar.Add_SubRow();
- ret.AddItem(C_sList_Methods, C_sList_Methods_Label, false);
- ret.AddItem(C_sList_Attributes, C_sList_Attributes_Label, false);
- ret.AddItem(C_sDetails_Methods, C_sDetails_Methods_Label, false);
- ret.AddItem(C_sList_AttributesDetails, C_sList_AttributesDetails_Label, false);
-
- CurOut() << new Html::HorizontalLine();
- return ret;
-}
-
-void
-HF_IdlInterface::produce_MemberDetails( HF_SubTitleTable & o_table,
- const client & i_ce ) const
-{
- switch (eCurProducedMembers)
- {
- case mem_Functions:
- break;
- case mem_Attributes:
- {
- HF_IdlAttribute
- aAttribute( Env(), o_table);
- aAttribute.Produce_byData( i_ce );
- return;
- };
- default: //Won't happen.
- return;
- } // end switch
-
- typedef ary::idl::ifc_function::attr funcAttr;
-
- HF_IdlMethod
- aFunction( Env(),
- o_table.Add_Row()
- >> *new Html::TableCell
- << new Html::ClassAttr(C_sCellStyle_MDetail) );
-
- ary::Dyn_StdConstIterator<ary::idl::Parameter>
- pParameters;
- funcAttr::Get_Parameters(pParameters, i_ce);
-
- ary::Dyn_StdConstIterator<ary::idl::Type_id>
- pExceptions;
- funcAttr::Get_Exceptions(pExceptions, i_ce);
-
- aFunction.Produce_byData( i_ce.LocalName(),
- funcAttr::ReturnType(i_ce),
- *pParameters,
- *pExceptions,
- funcAttr::IsOneway(i_ce),
- funcAttr::HasEllipse(i_ce),
- i_ce );
-}
-
-void
-HF_IdlInterface::produce_BaseHierarchy( Xml::Element & o_screen,
- const client & i_ce,
- const String & i_sLabel ) const
-{
- ary::Dyn_StdConstIterator<ary::idl::CommentedRelation>
- pHelp;
- ary::idl::ifc_interface::attr::Get_Bases(pHelp, i_ce);
- if (NOT (*pHelp).operator bool())
- return;
-
- // Check for XInterface as only base:
- ary::StdConstIterator<ary::idl::CommentedRelation> &
- itTest = *pHelp;
- ary::idl::Ce_id
- nCe = Env().Gate().Types().Search_CeRelatedTo((*itTest).Type());
- if (nCe.IsValid())
- {
- // KORR_FUTURE
- // Rather check for id(!) of com::sun::star::uno::XInterface.
- if (Env().Gate().Ces().Find_Ce(nCe).LocalName() == "XInterface")
- {
- ++itTest;
- if (NOT itTest.operator bool())
- return;
- }
- }
-
- // Write hierarchy:
-
- HF_DocEntryList
- aDocList( o_screen );
- aDocList.Produce_Term(i_sLabel);
- Xml::Element &
- rBaseList = aDocList.Produce_Definition();
-
-// NEW
- Write_BaseHierarchy(rBaseList, Env(), i_ce);
-
- // Write comments:
- // KORR_FUTURE: Make sure, no empty table is constructed when comments list is empty.
- HF_SubTitleTable
- aBaseTable( aDocList.Produce_Definition(),
- "",
- C_sList_BaseComments,
- 2,
- HF_SubTitleTable::sublevel_3 );
-
- ary::Dyn_StdConstIterator<ary::idl::CommentedRelation>
- pBases;
- ary::idl::ifc_interface::attr::Get_Bases(pBases, i_ce);
- for ( ary::StdConstIterator<ary::idl::CommentedRelation> & it = *pBases;
- it.operator bool();
- ++it )
- {
- Xml::Element &
- rRow = aBaseTable.Add_Row();
-
- Xml::Element &
- rTerm = rRow
- >> *new Html::TableCell
- << new Html::ClassAttr(C_sCellStyle_SummaryLeft);
- HF_IdlTypeText
- aTypeDisplay( Env(), rTerm, 0);
- aTypeDisplay.Produce_byData((*it).Type());
-
- Xml::Element &
- rDocu = rRow
- >> *new Html::TableCell
- << new Html::ClassAttr(C_sCellStyle_SummaryRight);
-
- HF_DocEntryList
- aDocuList(rDocu);
-
- if ((*it).Info() != 0)
- {
-// aDocuList.Produce_Term("Comment on Base Reference");
-
- HF_IdlDocu
- aDocuDisplay(Env(), aDocuList);
- aDocuDisplay.Produce_fromReference(*(*it).Info(), i_ce);
- }
- else
- {
- const client *
- pCe = Env().Linker().Search_CeFromType((*it).Type());
- const ce_info *
- pShort = pCe != 0
- ? Get_IdlDocu(pCe->Docu())
- : (const ce_info *)(0);
- if ( pShort != 0 )
- {
- aDocuList.Produce_NormalTerm("(referenced interface's summary:)");
-
- Xml::Element &
- rDef = aDocuList.Produce_Definition();
- HF_IdlDocuTextDisplay
- aShortDisplay( Env(), &rDef, *pCe);
- pShort->Short().DisplayAt(aShortDisplay);
- } // end if (pShort != 0)
- } // endif ( (*i_commentedRef).Info() != 0 ) else
- } // end for
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/display/idl/hfi_interface.hxx b/autodoc/source/display/idl/hfi_interface.hxx
deleted file mode 100644
index fdd909fcfbdc..000000000000
--- a/autodoc/source/display/idl/hfi_interface.hxx
+++ /dev/null
@@ -1,83 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_DISPLAY_HFI_INTERFACE_HXX
-#define ADC_DISPLAY_HFI_INTERFACE_HXX
-
-
-// USED SERVICES
- // BASE CLASSES
-#include "hi_factory.hxx"
- // COMPONENTS
- // PARAMETERS
-#include <ary/idl/i_types4idl.hxx>
-#include <ary/doc/d_oldidldocu.hxx>
-
-
-class HF_NaviSubRow;
-class HF_SubTitleTable;
-
-class HF_IdlInterface : public HtmlFactory_Idl
-{
- public:
- HF_IdlInterface(
- Environment & io_rEnv,
- Xml::Element & o_rOut );
- virtual ~HF_IdlInterface();
-
- void Produce_byData(
- const client & i_ce ) const;
- private:
- // Locals
- DYN HF_NaviSubRow & make_Navibar(
- const client & i_ce ) const;
-
- virtual void produce_MemberDetails(
- HF_SubTitleTable & o_table,
- const client & ce ) const;
- void produce_BaseHierarchy(
- Xml::Element & o_screen,
- const client & i_ce,
- const String & i_sLabel ) const;
-
- // Locals
- enum E_CurProducedMembers
- {
- mem_none,
- mem_Functions,
- mem_Attributes
- };
-
- // DATA
- mutable E_CurProducedMembers
- eCurProducedMembers;
-};
-
-
-
-// IMPLEMENTATION
-
-extern const String
- C_sCePrefix_Interface;
-
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/display/idl/hfi_method.cxx b/autodoc/source/display/idl/hfi_method.cxx
deleted file mode 100644
index b351161f6e45..000000000000
--- a/autodoc/source/display/idl/hfi_method.cxx
+++ /dev/null
@@ -1,229 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include "hfi_method.hxx"
-
-
-// NOT FULLY DEFINED SERVICES
-#include <ary/idl/i_exception.hxx>
-#include <ary/idl/i_param.hxx>
-#include <toolkit/hf_docentry.hxx>
-#include <toolkit/hf_funcdecl.hxx>
-#include "hfi_doc.hxx"
-#include "hfi_globalindex.hxx"
-#include "hfi_typetext.hxx"
-
-
-
-
-
-HF_IdlMethod::HF_IdlMethod( Environment & io_rEnv,
- Xml::Element & o_cell)
- : HtmlFactory_Idl(io_rEnv,&o_cell)
-{
-}
-
-
-HF_IdlMethod::~HF_IdlMethod()
-{
-}
-
-
-void
-HF_IdlMethod::Produce_byData( const String & i_sName,
- type_id i_nReturnType,
- param_list & i_rParams,
- type_list & i_rExceptions,
- bool i_bOneway,
- bool i_bEllipse,
- const client & i_ce ) const
-{
- CurOut()
- >> *new Html::Label(i_sName)
- << new Html::ClassAttr(C_sMemberTitle)
- << i_sName;
- enter_ContentCell();
- write_Declaration( i_sName,
- i_nReturnType,
- i_rParams,
- i_rExceptions,
- i_bOneway,
- i_bEllipse );
- CurOut() << new Html::HorizontalLine;
- write_Docu(CurOut(), i_ce);
- leave_ContentCell();
-}
-
-void
-HF_IdlMethod::write_Declaration( const String & i_sName,
- type_id i_nReturnType,
- param_list & i_rParams,
- type_list & i_rExceptions,
- bool i_bOneway,
- bool i_bEllipse ) const
-{
- HF_FunctionDeclaration
- aDecl(CurOut(), "raises") ;
- Xml::Element &
- rReturnLine = aDecl.ReturnCell();
-
- // Return line:
- if (i_bOneway)
- rReturnLine << "[oneway] ";
- if (i_nReturnType.IsValid())
- { // Normal function, but not constructors:
- HF_IdlTypeText
- aReturn(Env(), rReturnLine);
- aReturn.Produce_byData(i_nReturnType);
- }
-
- // Main line:
- Xml::Element &
- rNameCell = aDecl.NameCell();
- rNameCell
- >> *new Html::Bold
- << i_sName;
-
- Xml::Element *
- pParamEnd = 0;
-
- bool bParams = i_rParams.operator bool();
- if (bParams)
- {
- rNameCell
- << "(";
-
- pParamEnd = write_Param( aDecl, *i_rParams );
- for (++i_rParams; i_rParams; ++i_rParams)
- {
- *pParamEnd << ",";
- pParamEnd = write_Param( aDecl, *i_rParams );
- } // end for
-
- if (i_bEllipse)
- {
- Xml::Element &
- rParamType = aDecl.NewParamTypeCell();
- rParamType
- << " ...";
- pParamEnd = &rParamType;
- }
- *pParamEnd
- << " )";
- }
- else
- {
- rNameCell
- << "()";
- }
-
- if ( i_rExceptions.operator bool() )
- {
- Xml::Element &
- rExcOut = aDecl.ExceptionCell();
- HF_IdlTypeText
- aExc(Env(), rExcOut);
- aExc.Produce_byData(*i_rExceptions);
-
- for (++i_rExceptions; i_rExceptions; ++i_rExceptions)
- {
- rExcOut
- << ","
- << new Html::LineBreak;
- aExc.Produce_byData(*i_rExceptions);
- } // end for
-
- rExcOut << " );";
- }
- else if (bParams)
- {
- *pParamEnd << ";";
- }
- else
- {
- rNameCell << ";";
- }
-}
-
-Xml::Element *
-HF_IdlMethod::write_Param( HF_FunctionDeclaration & o_decl,
- const ary::idl::Parameter & i_param ) const
-{
- Xml::Element &
- rTypeCell = o_decl.NewParamTypeCell();
- Xml::Element &
- rNameCell = o_decl.ParamNameCell();
-
- switch ( i_param.Direction() )
- {
- case ary::idl::param_in:
- rTypeCell << "[in] ";
- break;
- case ary::idl::param_out:
- rTypeCell << "[out] ";
- break;
- case ary::idl::param_inout:
- rTypeCell << "[inout] ";
- break;
- } // end switch
-
- HF_IdlTypeText
- aTypeWriter(Env(), rTypeCell);
- aTypeWriter.Produce_byData( i_param.Type() );
-
- rNameCell
- << i_param.Name();
- return &rNameCell;
-}
-
-const String sContentBorder("0");
-const String sContentWidth("96%");
-const String sContentPadding("5");
-const String sContentSpacing("0");
-
-const String sBgWhite("#ffffff");
-const String sCenter("center");
-
-void
-HF_IdlMethod::enter_ContentCell() const
-{
-
- Xml::Element &
- rContentCell = CurOut()
- >> *new Html::Table( sContentBorder,
- sContentWidth,
- sContentPadding,
- sContentSpacing )
- << new Html::ClassAttr("table-in-method")
- << new Html::BgColorAttr(sBgWhite)
- << new Html::AlignAttr(sCenter)
- >> *new Html::TableRow
- >> *new Html::TableCell;
- Out().Enter(rContentCell);
-}
-
-
-void
-HF_IdlMethod::leave_ContentCell() const
-{
- Out().Leave();
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/display/idl/hfi_method.hxx b/autodoc/source/display/idl/hfi_method.hxx
deleted file mode 100644
index 2200fab67892..000000000000
--- a/autodoc/source/display/idl/hfi_method.hxx
+++ /dev/null
@@ -1,93 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_DISPLAY_HFI_METHOD_HXX
-#define ADC_DISPLAY_HFI_METHOD_HXX
-
-
-
-// USED SERVICES
- // BASE CLASSES
-#include "hi_factory.hxx"
- // COMPONENTS
- // PARAMETERS
-#include <ary/idl/i_param.hxx>
-#include <ary/doc/d_oldidldocu.hxx>
-
-namespace csi
-{
- namespace idl
- {
- class Parameter;
- }
-}
-
-class HF_FunctionDeclaration;
-
-class HF_IdlMethod : public HtmlFactory_Idl
-{
- public:
- typedef ary::StdConstIterator<ary::idl::Parameter> param_list;
-
- HF_IdlMethod(
- Environment & io_rEnv,
- Xml::Element & o_cell );
- virtual ~HF_IdlMethod();
-
- void Produce_byData(
- const String & i_sName,
- type_id i_nReturnType,
- param_list & i_rParams,
- type_list & i_rExceptions,
- bool i_bOneway,
- bool i_bEllipse,
- const client & i_ce ) const;
- private:
- void write_Declaration(
- const String & i_sName,
- type_id i_nReturnType,
- param_list & i_rParams,
- type_list & i_rExceptions,
- bool i_bOneway,
- bool i_bEllipse ) const;
-// void write_Param(
-// HF_IdlTypeText & o_type,
-// Xml::Element & o_names,
-// const ary::idl::Parameter &
-// i_param ) const;
-
- Xml::Element * write_Param(
- HF_FunctionDeclaration &
- o_decl,
- const ary::idl::Parameter &
- i_param ) const;
- void enter_ContentCell() const;
- void leave_ContentCell() const;
-};
-
-
-
-// IMPLEMENTATION
-
-
-
-#endif
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/display/idl/hfi_module.cxx b/autodoc/source/display/idl/hfi_module.cxx
deleted file mode 100644
index fc44003e826a..000000000000
--- a/autodoc/source/display/idl/hfi_module.cxx
+++ /dev/null
@@ -1,293 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include "hfi_module.hxx"
-
-
-// NOT FULLY DEFINED SERVICES
-#include <ary/idl/i_ce.hxx>
-#include <ary/idl/i_module.hxx>
-#include <ary/idl/ik_module.hxx>
-#include <ary/doc/d_oldidldocu.hxx>
-#include <ary/getncast.hxx>
-#include <toolkit/hf_docentry.hxx>
-#include <toolkit/hf_linachain.hxx>
-#include <toolkit/hf_navi_sub.hxx>
-#include <toolkit/hf_title.hxx>
-#include "hfi_doc.hxx"
-#include "hfi_navibar.hxx"
-#include "hfi_tag.hxx"
-#include "hfi_typetext.hxx"
-#include "hi_linkhelper.hxx"
-
-
-extern const String
- C_sCePrefix_Module("module");
-
-namespace
-{
-
-const String
- C_sList_NestedModules("Nested Modules");
-const String
- C_sList_NestedModules_Label("NestedModules");
-const String
- C_sList_Services("Services");
-const String
- C_sList_Singletons("Singletons");
-const String
- C_sList_Interfaces("Interfaces");
-const String
- C_sList_Structs("Structs");
-const String
- C_sList_Exceptions("Exceptions");
-const String
- C_sList_Enums("Enums");
-const String
- C_sList_Typedefs("Typedefs");
-const String
- C_sList_ConstGroups("Constant Groups");
-const String
- C_sList_ConstGroups_Label("ConstantGroups");
-
-
-enum E_SubListIndices
-{ // In case of changes, also adapt make_Navibar() !!
- sli_NestedModules = 0,
- sli_Services = 1,
- sli_Singletons = 2,
- sli_Interfaces = 3,
- sli_Structs = 4,
- sli_Exceptions = 5,
- sli_Enums = 6,
- sli_Typedefs = 7,
- sli_ConstGroups = 8
-};
-
-} //anonymous namespace
-
-
-HF_IdlModule::HF_IdlModule( Environment & io_rEnv,
- Xml::Element & o_rOut )
- : HtmlFactory_Idl(io_rEnv, &o_rOut)
-{
-}
-
-HF_IdlModule::~HF_IdlModule()
-{
-}
-
-typedef ary::idl::ifc_module::attr ModuleAttr;
-
-
-void
-HF_IdlModule::Produce_byData( const client & i_ce ) const
-{
- Dyn<HF_NaviSubRow>
- pNaviSubRow( &make_Navibar(i_ce) );
-
- HF_TitleTable
- aTitle(CurOut());
- HF_LinkedNameChain
- aNameChain(aTitle.Add_Row());
-
- if ( Env().CurPosition().Depth() > 0 )
- {
- aNameChain.Produce_CompleteChain_forModule(Env().CurPosition(), nameChainLinker);
-
- StreamLock
- sl(200);
- aTitle.Produce_Title( sl()
- << C_sCePrefix_Module
- << " "
- << i_ce.LocalName()
- << c_str );
- }
- else
- {
- aTitle.Produce_Title( "Global Module" );
- }
-
- write_Docu(aTitle.Add_Row(), i_ce);
- CurOut() << new Html::HorizontalLine();
-
-
- // Write children lists:
- ce_ptr_list aNestedModules;
- ce_ptr_list aServices;
- ce_ptr_list aInterfaces;
- ce_ptr_list aStructs;
- ce_ptr_list aExceptions;
- ce_ptr_list aEnums;
- ce_ptr_list aTypedefs;
- ce_ptr_list aConstantGroups;
- ce_ptr_list aSingletons;
-
- ModuleAttr::Get_AllChildrenSeparated(
- aNestedModules,
- aServices,
- aInterfaces,
- aStructs,
- aExceptions,
- aEnums,
- aTypedefs,
- aConstantGroups,
- aSingletons,
- Env().Data().Ces(),
- i_ce );
-
- // Has this to be in the order of enum E_SubListIndices ???
- if (produce_ChildList(C_sList_NestedModules, C_sList_NestedModules_Label, aNestedModules ))
- pNaviSubRow->SwitchOn(sli_NestedModules);
- if (produce_ChildList(C_sList_Services, C_sList_Services, aServices))
- pNaviSubRow->SwitchOn(sli_Services);
- if (produce_ChildList(C_sList_Singletons, C_sList_Singletons, aSingletons))
- pNaviSubRow->SwitchOn(sli_Singletons);
- if (produce_ChildList(C_sList_Interfaces, C_sList_Interfaces, aInterfaces))
- pNaviSubRow->SwitchOn(sli_Interfaces);
- if (produce_ChildList(C_sList_Structs, C_sList_Structs, aStructs))
- pNaviSubRow->SwitchOn(sli_Structs);
- if (produce_ChildList(C_sList_Exceptions, C_sList_Exceptions, aExceptions))
- pNaviSubRow->SwitchOn(sli_Exceptions);
- if (produce_ChildList(C_sList_Enums, C_sList_Enums, aEnums))
- pNaviSubRow->SwitchOn(sli_Enums);
- if (produce_ChildList(C_sList_Typedefs, C_sList_Typedefs, aTypedefs))
- pNaviSubRow->SwitchOn(sli_Typedefs);
- if (produce_ChildList(C_sList_ConstGroups, C_sList_ConstGroups_Label, aConstantGroups))
- pNaviSubRow->SwitchOn(sli_ConstGroups);
- pNaviSubRow->Produce_Row();
-}
-
-DYN HF_NaviSubRow &
-HF_IdlModule::make_Navibar( const client & i_ce ) const
-{
- HF_IdlNavigationBar
- aNaviBar(Env(), CurOut());
- aNaviBar.Produce_ModuleMainRow(i_ce);
-
- DYN HF_NaviSubRow &
- ret = aNaviBar.Add_SubRow();
-
- // Has to be in the order of E_SubListIndices:
- ret.AddItem(C_sList_NestedModules, C_sList_NestedModules_Label, false);
- ret.AddItem(C_sList_Services, C_sList_Services, false);
- ret.AddItem(C_sList_Singletons, C_sList_Singletons, false);
- ret.AddItem(C_sList_Interfaces, C_sList_Interfaces, false);
- ret.AddItem(C_sList_Structs, C_sList_Structs, false);
- ret.AddItem(C_sList_Exceptions, C_sList_Exceptions, false);
- ret.AddItem(C_sList_Enums, C_sList_Enums, false);
- ret.AddItem(C_sList_Typedefs, C_sList_Typedefs, false);
- ret.AddItem(C_sList_ConstGroups, C_sList_ConstGroups_Label, false);
-
- CurOut() << new Html::HorizontalLine();
- return ret;
-}
-
-bool
-HF_IdlModule::produce_ChildList( const String & i_sName,
- const String & i_sLabel,
- const ce_ptr_list & i_list ) const
-{
- if ( i_list.empty() )
- return false;
-
- HF_SubTitleTable
- aTable( CurOut(),
- i_sLabel,
- i_sName,
- 2 );
-
- ce_ptr_list::const_iterator
- itEnd = i_list.end();
- for ( ce_ptr_list::const_iterator it = i_list.begin();
- it != itEnd;
- ++it )
- {
- Xml::Element &
- rRow = aTable.Add_Row();
- produce_Link(rRow, *it);
- produce_LinkDoc(rRow, *it);
- } // end for
-
- return true;
-}
-
-void
-HF_IdlModule::produce_Link( Xml::Element & o_row,
- const client * i_ce ) const
-{
- csv_assert(i_ce != 0);
- Xml::Element &
- rCell = o_row
- >> *new Html::TableCell
- << new Html::ClassAttr(C_sCellStyle_SummaryLeft);
-
- if ( NOT ary::is_type<ary::idl::Module>(*i_ce) )
- {
- HF_IdlTypeText
- aText(Env(), rCell);
- aText.Produce_byData(i_ce->CeId());
- }
- else
- {
- StreamLock slBuf(100);
- rCell
- >> *new Html::Link( slBuf() << i_ce->LocalName()
- << "/module-ix.html"
- << c_str )
- << i_ce->LocalName();
- }
-}
-
-void
-HF_IdlModule::produce_LinkDoc( Xml::Element & o_row,
- const client * i_ce ) const
-{
- csv_assert(i_ce != 0);
-
- // We need the cell in any case, because, the rendering may be hurt else.
- Xml::Element &
- rCell = o_row
- >> *new Html::TableCell
- << new Html::ClassAttr(C_sCellStyle_SummaryRight);
-
- const client &
- rCe = *i_ce;
- const ce_info *
- pShort = Get_IdlDocu(rCe.Docu());
- if ( pShort == 0 )
- return;
-
-
- if (pShort->IsDeprecated())
- {
- rCell << "[ DEPRECATED ]" << new Html::LineBreak;
- }
- if (pShort->IsOptional())
- {
- rCell << "[ OPTIONAL ]" << new Html::LineBreak;
- }
-
- HF_IdlDocuTextDisplay
- aShortDisplay(Env(), &rCell, *i_ce);
- pShort->Short().DisplayAt(aShortDisplay);
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/display/idl/hfi_module.hxx b/autodoc/source/display/idl/hfi_module.hxx
deleted file mode 100644
index a08d6ef2a216..000000000000
--- a/autodoc/source/display/idl/hfi_module.hxx
+++ /dev/null
@@ -1,76 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_DISPLAY_HFI_MODULE_HXX
-#define ADC_DISPLAY_HFI_MODULE_HXX
-
-
-
-// USED SERVICES
- // BASE CLASSES
-#include "hi_factory.hxx"
- // COMPONENTS
- // PARAMETERS
-
-
-class HF_NaviSubRow;
-
-class HF_IdlModule : public HtmlFactory_Idl
-{
- public:
- HF_IdlModule(
- Environment & io_rEnv, // The CurDirectory() is the one of the here displayed Module.
- Xml::Element & o_rOut );
- virtual ~HF_IdlModule();
-
- void Produce_byData(
- const client & i_ce ) const;
- private:
- typedef std::vector< const ary::idl::CodeEntity* > ce_ptr_list;
-
- DYN HF_NaviSubRow & make_Navibar(
- const client & i_ce ) const;
- bool produce_ChildList(
- const String & i_sName,
- const String & i_sLabel,
- const ce_ptr_list & i_list ) const;
- void produce_Link(
- Xml::Element & o_row,
- const client * i_ce ) const;
- void produce_LinkDoc(
- Xml::Element & o_row,
- const client * i_ce ) const;
-};
-
-
-
-// IMPLEMENTATION
-
-
-extern const String
- C_sCePrefix_Module;
-
-
-
-
-
-#endif
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/display/idl/hfi_navibar.cxx b/autodoc/source/display/idl/hfi_navibar.cxx
deleted file mode 100644
index 7991f061cfe3..000000000000
--- a/autodoc/source/display/idl/hfi_navibar.cxx
+++ /dev/null
@@ -1,218 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include "hfi_navibar.hxx"
-
-
-// NOT FULLY DEFINED SERVICES
-#include <ary/idl/i_ce.hxx>
-#include <toolkit/hf_navi_main.hxx>
-#include <toolkit/hf_navi_sub.hxx>
-#include "hfi_interface.hxx"
-#include "hfi_module.hxx"
-#include "hfi_service.hxx"
-#include "hi_linkhelper.hxx"
-
-
-extern const String
- C_sLocalManualLinks("#devmanual");
-
-
-const String C_sTop = "Overview";
-const String C_sModule = "Module";
-const String C_sUse = "Use";
-const String C_sManual = "Devguide";
-const String C_sIndex = "Index";
-
-
-
-
-HF_IdlNavigationBar::HF_IdlNavigationBar( Environment & io_rEnv,
- Xml::Element & o_rOut )
- : HtmlFactory_Idl(io_rEnv, &o_rOut)
-{
-}
-
-HF_IdlNavigationBar::~HF_IdlNavigationBar()
-{
-}
-
-void
-HF_IdlNavigationBar::Produce_CeMainRow( const client & i_ce,
- bool i_bNoUsePage )
-{
- HF_NaviMainRow
- aNaviMain( CurOut() );
-
- StreamLock aLink(500);
- StreamStr & rLink = aLink();
-
- Env().Get_LinkTo( rLink.reset(),
- Env().OutputTree().Overview() );
- aNaviMain.Add_StdItem( C_sTop, rLink.c_str() );
-
- Env().Get_LinkTo( rLink.reset(),
- Env().Linker().PositionOf_CurModule() );
- aNaviMain.Add_StdItem( C_sModule, rLink.c_str() );
-
- if (i_bNoUsePage)
- {
- aNaviMain.Add_NoneItem( C_sUse );
- }
- else
- {
- Env().Get_LinkTo( rLink.reset(),
- Env().Linker().PositionOf_CurXRefs(i_ce.LocalName()) );
- aNaviMain.Add_StdItem( C_sUse, rLink.c_str() );
- }
-
- const StringVector &
- rManualDescrs = i_ce.Secondaries().Links2DescriptionInManual();
- if (rManualDescrs.size() == 2)
- {
- aNaviMain.Add_StdItem(C_sManual, Env().Link2Manual( rManualDescrs.front() ));
- }
- else if (rManualDescrs.size() > 2)
- {
- aNaviMain.Add_StdItem(C_sManual, C_sLocalManualLinks);
- }
- else
- {
- aNaviMain.Add_NoneItem( C_sManual );
- }
-
- Env().Get_LinkTo( rLink.reset(),
- Env().Linker().PositionOf_Index() );
- aNaviMain.Add_StdItem( C_sIndex, rLink.c_str() );
-
- aNaviMain.Produce_Row();
-}
-
-void
-HF_IdlNavigationBar::Produce_CeXrefsMainRow( const client & i_ce )
-{
- HF_NaviMainRow
- aNaviMain( CurOut() );
-
- StreamLock aLink(500);
- StreamStr & rLink = aLink();
-
- Env().Get_LinkTo( rLink.reset(),
- Env().OutputTree().Overview() );
- aNaviMain.Add_StdItem( C_sTop, rLink.c_str() );
-
- Env().Get_LinkTo( rLink.reset(),
- Env().Linker().PositionOf_CurModule() );
- aNaviMain.Add_StdItem( C_sModule, rLink.c_str() );
-
- aNaviMain.Add_SelfItem( C_sUse );
-
- const StringVector &
- rManualDescrs = i_ce.Secondaries().Links2DescriptionInManual();
- if (rManualDescrs.size() == 2)
- {
- aNaviMain.Add_StdItem(C_sManual, Env().Link2Manual( rManualDescrs.front() ));
- }
- else if (rManualDescrs.size() > 2)
- {
- aNaviMain.Add_StdItem(C_sManual, C_sLocalManualLinks);
- }
- else
- {
- aNaviMain.Add_NoneItem( C_sManual );
- }
-
- Env().Get_LinkTo( rLink.reset(),
- Env().Linker().PositionOf_Index() );
- aNaviMain.Add_StdItem( C_sIndex, rLink.c_str() );
-
- aNaviMain.Produce_Row();
-}
-
-void
-HF_IdlNavigationBar::Produce_ModuleMainRow( const client & i_ce )
-{
- HF_NaviMainRow
- aNaviMain( CurOut() );
-
- StreamLock aLink(500);
- StreamStr & rLink = aLink();
-
- Env().Get_LinkTo( rLink.reset(),
- Env().OutputTree().Overview() );
- aNaviMain.Add_StdItem( C_sTop, rLink.c_str() );
-
- aNaviMain.Add_SelfItem( C_sModule );
-
- aNaviMain.Add_NoneItem( C_sUse );
-
- const StringVector &
- rManualDescrs = i_ce.Secondaries().Links2DescriptionInManual();
- if (rManualDescrs.size() == 1)
- {
- aNaviMain.Add_StdItem(C_sManual, Env().Link2Manual( rManualDescrs.front() ));
- }
- else if (rManualDescrs.size() > 1)
- {
- aNaviMain.Add_StdItem(C_sManual, C_sLocalManualLinks);
- }
- else
- {
- aNaviMain.Add_NoneItem( C_sManual );
- }
-
- Env().Get_LinkTo( rLink.reset(),
- Env().Linker().PositionOf_Index() );
- aNaviMain.Add_StdItem( C_sIndex, rLink.c_str() );
-
- aNaviMain.Produce_Row();
-}
-
-void
-HF_IdlNavigationBar::Produce_IndexMainRow()
-{
- HF_NaviMainRow
- aNaviMain( CurOut() );
-
- StreamLock aLink(500);
- StreamStr & rLink = aLink();
-
- Env().Get_LinkTo( rLink.reset(),
- Env().OutputTree().Overview() );
- aNaviMain.Add_StdItem( C_sTop, rLink.c_str() );
-
- aNaviMain.Add_NoneItem( C_sModule );
- aNaviMain.Add_NoneItem( C_sUse );
- aNaviMain.Add_NoneItem( C_sManual );
-
- aNaviMain.Add_SelfItem( C_sIndex );
-
- aNaviMain.Produce_Row();
-
- CurOut() << new Html::HorizontalLine();
-}
-
-DYN HF_NaviSubRow &
-HF_IdlNavigationBar::Add_SubRow()
-{
- return *new HF_NaviSubRow( CurOut() );
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/display/idl/hfi_navibar.hxx b/autodoc/source/display/idl/hfi_navibar.hxx
deleted file mode 100644
index 0ca5f4c5bd83..000000000000
--- a/autodoc/source/display/idl/hfi_navibar.hxx
+++ /dev/null
@@ -1,63 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_DISPLAY_HFI_NAVIBAR_HXX
-#define ADC_DISPLAY_HFI_NAVIBAR_HXX
-
-
-// USED SERVICES
- // BASE CLASSES
- // COMPONENTS
-#include "hi_factory.hxx"
- // PARAMETERS
-
-class HF_NaviSubRow;
-
-/** @resp
- Creates a navigation bar for an IDL HTML documentation page.
-*/
-class HF_IdlNavigationBar : public HtmlFactory_Idl
-{
- public:
- HF_IdlNavigationBar(
- HtmlEnvironment_Idl &
- io_rEnv,
- Xml::Element & o_rOut );
- virtual ~HF_IdlNavigationBar();
-
- void Produce_CeMainRow(
- const client & i_ce,
- bool i_bNoUsePage = false );
- void Produce_CeXrefsMainRow(
- const client & i_ce );
- void Produce_ModuleMainRow(
- const client & i_ce );
- void Produce_IndexMainRow();
-
- /** Adds the subrow to the o_rOut argument of the constructor.
- */
- DYN HF_NaviSubRow & Add_SubRow();
-};
-
-extern const String
- C_sLocalManualLinks;
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/display/idl/hfi_property.cxx b/autodoc/source/display/idl/hfi_property.cxx
deleted file mode 100644
index 8c7cbb5f2907..000000000000
--- a/autodoc/source/display/idl/hfi_property.cxx
+++ /dev/null
@@ -1,444 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include "hfi_property.hxx"
-
-
-// NOT FULLY DEFINED SERVICES
-#include <ary/idl/i_ce.hxx>
-#include <ary/idl/ik_attribute.hxx>
-#include <ary/idl/ik_constant.hxx>
-#include <ary/idl/ik_enumvalue.hxx>
-#include <ary/idl/ik_property.hxx>
-#include <ary/idl/ik_structelem.hxx>
-#include <toolkit/hf_docentry.hxx>
-#include <toolkit/hf_title.hxx>
-#include "hfi_typetext.hxx"
-#include "hfi_doc.hxx"
-#include "hfi_tag.hxx"
-#include "hi_env.hxx"
-#include "hi_ary.hxx"
-#include "hi_linkhelper.hxx"
-
-void
-HF_IdlDataMember::Produce_byData( const client & ce ) const
-{
- write_Title(ce);
- enter_ContentCell();
- write_Declaration(ce);
- write_Description(ce);
- leave_ContentCell();
-}
-
-HF_IdlDataMember::HF_IdlDataMember( Environment & io_rEnv,
- HF_SubTitleTable & o_table )
- : HtmlFactory_Idl( io_rEnv,
- &(o_table.Add_Row()
- >> *new Html::TableCell
- << new Html::ClassAttr(C_sCellStyle_MDetail))
- )
-{
-}
-
-const String sContentBorder("0");
-const String sContentWidth("96%");
-const String sContentPadding("5");
-const String sContentSpacing("0");
-
-const String sBgWhite("#ffffff");
-const String sCenter("center");
-
-void
-HF_IdlDataMember::write_Title( const client & i_ce ) const
-{
- CurOut()
- >> *new Html::Label(i_ce.LocalName())
- << new Html::ClassAttr(C_sMemberTitle)
- << i_ce.LocalName();
-}
-
-void
-HF_IdlDataMember::write_Description( const client & i_ce ) const
-{
- CurOut() << new Html::HorizontalLine;
- write_Docu(CurOut(), i_ce);
-}
-
-void
-HF_IdlDataMember::enter_ContentCell() const
-{
-
- Xml::Element &
- rContentCell = CurOut()
- >> *new Html::Table( sContentBorder,
- sContentWidth,
- sContentPadding,
- sContentSpacing )
- << new Html::ClassAttr("table-in-data")
- << new Html::BgColorAttr(sBgWhite)
- << new Html::AlignAttr(sCenter)
- >> *new Html::TableRow
- >> *new Html::TableCell;
- Out().Enter(rContentCell);
-}
-
-
-void
-HF_IdlDataMember::leave_ContentCell() const
-{
- Out().Leave();
-}
-
-
-HF_IdlProperty::~HF_IdlProperty()
-{
-}
-
-typedef ary::idl::ifc_property::attr PropertyAttr;
-
-void
-HF_IdlProperty::write_Declaration( const client & i_ce ) const
-{
- if (PropertyAttr::HasAnyStereotype(i_ce))
- {
- CurOut() << "[ ";
- if (PropertyAttr::IsReadOnly(i_ce))
- CurOut() << "readonly ";
- if (PropertyAttr::IsBound(i_ce))
- CurOut() << "bound ";
- if (PropertyAttr::IsConstrained(i_ce))
- CurOut() << "constrained ";
- if (PropertyAttr::IsMayBeAmbiguous(i_ce))
- CurOut() << "maybeambiguous ";
- if (PropertyAttr::IsMayBeDefault(i_ce))
- CurOut() << "maybedefault ";
- if (PropertyAttr::IsMayBeVoid(i_ce))
- CurOut() << "maybevoid ";
- if (PropertyAttr::IsRemovable(i_ce))
- CurOut() << "removable ";
- if (PropertyAttr::IsTransient(i_ce))
- CurOut() << "transient ";
- CurOut() << "] ";
- } // end if
-
- HF_IdlTypeText
- aType( Env(), CurOut() );
- aType.Produce_byData( PropertyAttr::Type(i_ce) );
-
- CurOut() << " " >> *new Html::Bold << i_ce.LocalName();
- CurOut() << ";";
-}
-
-
-
-
-HF_IdlAttribute::~HF_IdlAttribute()
-{
-}
-
-typedef ary::idl::ifc_attribute::attr AttributeAttr;
-
-void
-HF_IdlAttribute::write_Declaration( const client & i_ce ) const
-{
- if (AttributeAttr::HasAnyStereotype(i_ce))
- {
- CurOut() << "[ ";
- if (AttributeAttr::IsReadOnly(i_ce))
- CurOut() << "readonly ";
- if (AttributeAttr::IsBound(i_ce))
- CurOut() << "bound ";
- CurOut() << "] ";
- }
-
- HF_IdlTypeText
- aType( Env(), CurOut() );
- aType.Produce_byData( AttributeAttr::Type(i_ce) );
-
- CurOut()
- << " "
- >> *new Html::Bold
- << i_ce.LocalName();
-
- dyn_type_list pGetExceptions;
- dyn_type_list pSetExceptions;
- AttributeAttr::Get_GetExceptions(pGetExceptions, i_ce);
- AttributeAttr::Get_SetExceptions(pSetExceptions, i_ce);
-
- bool bGetRaises = (*pGetExceptions).IsValid();
- bool bSetRaises = (*pSetExceptions).IsValid();
- bool bRaises = bGetRaises OR bSetRaises;
- if (bRaises)
- {
- HF_DocEntryList aSub(CurOut());
-
- if (bGetRaises)
- {
- Xml::Element &
- rGet = aSub.Produce_Definition();
- HF_IdlTypeText
- aExc(Env(), rGet);
- type_list & itExc = *pGetExceptions;
-
- rGet << "get raises (";
- aExc.Produce_byData(*itExc);
- for (++itExc; itExc.operator bool(); ++itExc)
- {
- rGet
- << ",";
- aExc.Produce_byData(*itExc);
- } // end for
- rGet << ")";
- if (NOT bSetRaises)
- rGet << ";";
- } // end if (bGetRaises)
-
- if (bSetRaises)
- {
- Xml::Element &
- rSet = aSub.Produce_Definition();
- HF_IdlTypeText
- aExc(Env(), rSet);
- type_list & itExc = *pSetExceptions;
-
- rSet << "set raises (";
- aExc.Produce_byData(*itExc);
- for (++itExc; itExc.operator bool(); ++itExc)
- {
- rSet
- << ",";
- aExc.Produce_byData(*itExc);
- } // end for
- rSet << ");";
- } // end if (bSetRaises)
- }
- else
- {
- CurOut() << ";";
- }
-}
-
-
-
-
-HF_IdlEnumValue::~HF_IdlEnumValue()
-{
-}
-
-typedef ary::idl::ifc_enumvalue::attr EnumValueAttr;
-
-void
-HF_IdlEnumValue::write_Declaration( const client & i_ce ) const
-{
- CurOut()
- >> *new Html::Bold
- << i_ce.LocalName();
-
- const String &
- rValue = EnumValueAttr::Value(i_ce);
- if ( NOT rValue.empty() )
- { CurOut() << " " // << " = " // In the moment this is somehow in the value
- << rValue;
- // CurOut() << ","; // In the moment this is somehow in the value
- }
- else
- CurOut() << ",";
-}
-
-
-HF_IdlConstant::~HF_IdlConstant()
-{
-}
-
-typedef ary::idl::ifc_constant::attr ConstantAttr;
-
-void
-HF_IdlConstant::write_Declaration( const client & i_ce ) const
-{
- CurOut() << "const ";
- HF_IdlTypeText
- aType( Env(), CurOut() );
- aType.Produce_byData(ConstantAttr::Type(i_ce));
- CurOut()
- << " "
- >> *new Html::Bold
- << i_ce.LocalName();
- const String &
- rValue = ConstantAttr::Value(i_ce);
- CurOut() << " " // << " = " // In the moment this is somehow in the value
- << rValue;
- // << ";"; // In the moment this is somehow in the value
-}
-
-
-HF_IdlStructElement::~HF_IdlStructElement()
-{
-}
-
-typedef ary::idl::ifc_structelement::attr StructElementAttr;
-
-void
-HF_IdlStructElement::write_Declaration( const client & i_ce ) const
-{
- HF_IdlTypeText
- aType( Env(), CurOut() );
- aType.Produce_byData(StructElementAttr::Type(i_ce));
- CurOut()
- << " "
- >> *new Html::Bold
- << i_ce.LocalName();
- CurOut()
- << ";";
-}
-
-HF_IdlCommentedRelationElement::~HF_IdlCommentedRelationElement()
-{
-}
-
-void
-HF_IdlCommentedRelationElement::produce_Summary( Environment & io_env,
- Xml::Element & io_context,
- const comref & i_commentedRef,
- const client & i_rScopeGivingCe )
-{
- csv_assert( i_commentedRef.Info() );
-
- const ce_info & rDocu = *i_commentedRef.Info();
-
- bool bShort = NOT rDocu.Short().IsEmpty();
- bool bDescr = NOT rDocu.Description().IsEmpty();
-
- if ( bShort )
- {
- HF_IdlDocuTextDisplay
- aDescription(io_env, 0, i_rScopeGivingCe);
-
- Xml::Element& rPara = io_context >> *new Html::Paragraph;
- aDescription.Out().Enter( rPara );
- rDocu.Short().DisplayAt( aDescription );
-
- // if there's more than just the summary - i.e. a description, or usage restrictions, or tags -,
- // then add a link to the details section
- if ( bDescr OR rDocu.IsDeprecated() OR rDocu.IsOptional() OR NOT rDocu.Tags().empty() )
- {
- StreamLock aLocalLink(100);
- aLocalLink() << "#" << get_LocalLinkName(io_env, i_commentedRef);
-
- aDescription.Out().Out() << "(";
- aDescription.Out().Out()
- >> *new Html::Link( aLocalLink().c_str() )
- << "details";
- aDescription.Out().Out() << ")";
- }
-
- aDescription.Out().Leave();
- }
-}
-
-void
-HF_IdlCommentedRelationElement::produce_LinkDoc( Environment & io_env,
- const client & i_ce,
- Xml::Element & io_context,
- const comref & i_commentedRef,
- const E_DocType i_docType )
-{
- if ( i_commentedRef.Info() != 0 )
- {
- if ( i_docType == doctype_complete )
- {
- HF_DocEntryList aDocList(io_context);
- HF_IdlDocu aDocuDisplay(io_env, aDocList);
-
- aDocuDisplay.Produce_fromReference(*i_commentedRef.Info(), i_ce);
- }
- else
- {
- produce_Summary(io_env, io_context, i_commentedRef, i_ce);
- }
- }
- else
- {
- HF_DocEntryList aDocList(io_context);
-
- const client *
- pCe = io_env.Linker().Search_CeFromType(i_commentedRef.Type());
- const ce_info *
- pShort = pCe != 0
- ? Get_IdlDocu(pCe->Docu())
- : (const ce_info *)(0);
- if ( pShort != 0 )
- {
- aDocList.Produce_NormalTerm("(referenced entity's summary:)");
- Xml::Element &
- rDef = aDocList.Produce_Definition();
- HF_IdlDocuTextDisplay
- aShortDisplay( io_env, &rDef, *pCe);
- pShort->Short().DisplayAt(aShortDisplay);
- } // end if (pShort != 0)
- } // endif ( (*i_commentedRef).Info() != 0 ) else
-}
-
-
-String
-HF_IdlCommentedRelationElement::get_LocalLinkName( Environment & io_env,
- const comref & i_commentedRef )
-{
- StringVector aModules;
- String sLocalName;
- ce_id nCe;
- int nSequenceCount = 0;
-
- const ary::idl::Type &
- rType = io_env.Data().Find_Type(i_commentedRef.Type());
- io_env.Data().Get_TypeText(aModules, sLocalName, nCe, nSequenceCount, rType);
-
- // speaking strictly, this is not correct: If we have two interfaces with the same local
- // name, but in different modules, then the link name will be ambiguous. However, this should
- // be too seldom a case to really make the link names that ugly by adding the module information.
- return sLocalName;
-}
-
-void
-HF_IdlCommentedRelationElement::write_Title( const client & /*i_ce*/ ) const
-{
-
- Xml::Element &
- rAnchor = CurOut()
- >> *new Html::Label(get_LocalLinkName(Env(), m_relation))
- << new Html::ClassAttr(C_sMemberTitle);
-
- HF_IdlTypeText
- aText(Env(), rAnchor);
- aText.Produce_byData(m_relation.Type());
-}
-
-void
-HF_IdlCommentedRelationElement::write_Declaration( const client & /*i_ce*/ ) const
-{
- // nothing to do here - an entity which is a commented relation does not have a declaration
-}
-
-void
-HF_IdlCommentedRelationElement::write_Description( const client & i_ce ) const
-{
- produce_LinkDoc( Env(), i_ce, CurOut(), m_relation, doctype_complete );
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/display/idl/hfi_property.hxx b/autodoc/source/display/idl/hfi_property.hxx
deleted file mode 100644
index f37527e1b601..000000000000
--- a/autodoc/source/display/idl/hfi_property.hxx
+++ /dev/null
@@ -1,176 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_DISPLAY_HFI_PROPERTY_HXX
-#define ADC_DISPLAY_HFI_PROPERTY_HXX
-
-
-
-// USED SERVICES
- // BASE CLASSES
-#include "hi_factory.hxx"
- // COMPONENTS
- // PARAMETERS
-#include <ary/idl/i_comrela.hxx>
-
-class HF_SubTitleTable;
-
-class HF_IdlDataMember : public HtmlFactory_Idl
-{
- public:
- void Produce_byData(
- const client & ce ) const;
- protected:
- HF_IdlDataMember(
- Environment & io_rEnv,
- HF_SubTitleTable & o_table );
- virtual ~HF_IdlDataMember() {}
-
- private:
- virtual void write_Title(
- const client & i_ce ) const;
-
- virtual void write_Declaration(
- const client & i_ce ) const = 0;
-
- virtual void write_Description(
- const client & i_ce ) const;
-
- void enter_ContentCell() const;
- void leave_ContentCell() const;
-};
-
-
-
-class HF_IdlProperty : public HF_IdlDataMember
-{
- public:
- HF_IdlProperty(
- Environment & io_rEnv,
- HF_SubTitleTable & o_table )
- : HF_IdlDataMember(io_rEnv, o_table) {}
- virtual ~HF_IdlProperty();
- private:
- virtual void write_Declaration(
- const client & i_ce ) const;
-};
-
-class HF_IdlAttribute : public HF_IdlDataMember
-{
- public:
- HF_IdlAttribute(
- Environment & io_rEnv,
- HF_SubTitleTable & o_table )
- : HF_IdlDataMember(io_rEnv, o_table) {}
- virtual ~HF_IdlAttribute();
-
- private:
- virtual void write_Declaration(
- const client & i_ce ) const;
-};
-
-
-class HF_IdlEnumValue : public HF_IdlDataMember
-{
- public:
- HF_IdlEnumValue(
- Environment & io_rEnv,
- HF_SubTitleTable & o_table )
- : HF_IdlDataMember(io_rEnv, o_table) {}
- virtual ~HF_IdlEnumValue();
-
- private:
- virtual void write_Declaration(
- const client & i_ce ) const;
-};
-
-class HF_IdlConstant : public HF_IdlDataMember
-{
- public:
- HF_IdlConstant(
- Environment & io_rEnv,
- HF_SubTitleTable & o_table )
- : HF_IdlDataMember(io_rEnv, o_table) {}
- virtual ~HF_IdlConstant();
-
- private:
- virtual void write_Declaration(
- const client & i_ce ) const;
-};
-
-
-class HF_IdlStructElement : public HF_IdlDataMember
-{
- public:
- HF_IdlStructElement(
- Environment & io_rEnv,
- HF_SubTitleTable & o_table )
- : HF_IdlDataMember(io_rEnv, o_table) {}
- virtual ~HF_IdlStructElement();
-
- private:
- virtual void write_Declaration(
- const client & i_ce ) const;
-};
-
-class HF_IdlCommentedRelationElement : public HF_IdlDataMember
-{
- public:
- HF_IdlCommentedRelationElement(
- Environment & io_rEnv,
- HF_SubTitleTable & o_table,
- const ary::idl::CommentedRelation& i_relation )
- : HF_IdlDataMember(io_rEnv, o_table)
- , m_relation( i_relation )
- {
- }
- virtual ~HF_IdlCommentedRelationElement();
-
- typedef ::ary::idl::CommentedRelation comref;
-
- static void produce_LinkDoc(
- Environment & io_env,
- const client & i_ce,
- Xml::Element & io_context,
- const comref & i_commentedRef,
- const E_DocType i_docType );
-
- private:
- virtual void write_Title(
- const client & i_ce ) const;
- virtual void write_Declaration(
- const client & i_ce ) const;
- virtual void write_Description(
- const client & i_ce ) const;
- private:
- static void produce_Summary( Environment & io_env,
- Xml::Element & io_context,
- const comref & i_commentedRef,
- const client & i_rScopeGivingCe );
-
- static String get_LocalLinkName( Environment & io_env,
- const comref & i_commentedRef );
-
- private:
- const ary::idl::CommentedRelation& m_relation;
-};
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/display/idl/hfi_service.cxx b/autodoc/source/display/idl/hfi_service.cxx
deleted file mode 100644
index 97073b691279..000000000000
--- a/autodoc/source/display/idl/hfi_service.cxx
+++ /dev/null
@@ -1,356 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include "hfi_service.hxx"
-
-
-// NOT FULLY DEFINED SERVICES
-#include <ary/idl/i_ce.hxx>
-#include <ary/idl/ik_property.hxx>
-#include <ary/idl/ik_service.hxx>
-#include <toolkit/hf_docentry.hxx>
-#include <toolkit/hf_linachain.hxx>
-#include <toolkit/hf_navi_sub.hxx>
-#include <toolkit/hf_title.hxx>
-#include "hfi_doc.hxx"
-#include "hfi_navibar.hxx"
-#include "hfi_property.hxx"
-#include "hfi_tag.hxx"
-#include "hfi_typetext.hxx"
-#include "hi_linkhelper.hxx"
-
-
-
-
-extern const String
- C_sCePrefix_Service("service");
-
-namespace
-{
-
-const String
- C_sList_IncludedServices("Services' Summary");
-const String
- C_sList_IncludedServices_Heading("Included Services - Summary");
-const String
- C_sList_IncludedServices_Label("ServicesSummary");
-const String
- C_sList_IncludedServicesDetails("Services' Details");
-const String
- C_sList_IncludedServicesDetails_Heading("Included Services - Details");
-const String
- C_sList_IncludedServicesDetails_Label("ServicesDetails");
-const String
- C_sList_ExportedInterfaces("Interfaces' Summary");
-const String
- C_sList_ExportedInterfaces_Heading("Exported Interfaces - Summary");
-const String
- C_sList_ExportedInterfaces_Label("InterfacesSummary");
-const String
- C_sList_ExportedInterfacesDetails("Interfaces' Details");
-const String
- C_sList_ExportedInterfacesDetails_Heading("Exported Interfaces - Details");
-const String
- C_sList_ExportedInterfacesDetails_Label("InterfacesDetails");
-const String
- C_sList_Properties("Properties' Summary");
-const String
- C_sList_Properties_Label("PropertiesSummary");
-const String
- C_sList_PropertiesDetails("Properties' Details");
-const String
- C_sList_PropertiesDetails_Label("PropertiesDetails");
-
-
-enum E_SubListIndices
-{
- sli_IncludedServicesSummary = 0,
- sli_InterfacesSummary = 1,
- sli_PropertiesSummary = 2,
- sli_IncludedServicesDetails = 3,
- sli_InterfacesDetails = 4,
- sli_PropertiesDetails = 5
-};
-
-} //anonymous namespace
-
-
-HF_IdlService::HF_IdlService( Environment & io_rEnv,
- Xml::Element & o_rOut )
- : HtmlFactory_Idl(io_rEnv, &o_rOut)
-{
-}
-
-HF_IdlService::~HF_IdlService()
-{
-
-}
-
-typedef ::ary::idl::ifc_service::attr
- ServiceAttr;
-typedef ::ary::Dyn_StdConstIterator< ::ary::idl::CommentedRelation >
- dyn_comref_list;
-
-void
-HF_IdlService::produce_CommentedRelations( const client & i_ce,
- comref_list & it_list,
- const String & i_summaryTitle,
- const String & i_summaryLabel,
- const String & i_detailsTitle,
- const String & i_detailsLabel,
- const E_DocType i_docType ) const
-{
- csv_assert( it_list );
-
- bool bSummaryOnly = ( i_docType == doctype_summaryOnly );
- HF_SubTitleTable aTable(
- CurOut(),
- bSummaryOnly ? i_summaryLabel : i_detailsLabel,
- bSummaryOnly ? i_summaryTitle : i_detailsTitle,
- 2 );
-
- for ( ; it_list; ++it_list )
- {
- Xml::Element &
- rRow = aTable.Add_Row();
-
- if ( bSummaryOnly )
- {
- produce_Link(rRow, (*it_list).Type());
- produce_LinkSummary(i_ce, rRow, *it_list);
- }
- else
- {
- HF_IdlCommentedRelationElement
- aRelation( Env(), aTable, *it_list );
- aRelation.Produce_byData( i_ce );
- }
- } // end for
-}
-
-void
-HF_IdlService::Produce_byData( const client & i_ce ) const
-{
- Dyn<HF_NaviSubRow>
- pNaviSubRow( &make_Navibar(i_ce) );
-
- HF_TitleTable
- aTitle(CurOut());
- HF_LinkedNameChain
- aNameChain(aTitle.Add_Row());
-
- aNameChain.Produce_CompleteChain(Env().CurPosition(), nameChainLinker);
- produce_Title(aTitle, C_sCePrefix_Service, i_ce);
-
- write_Docu(aTitle.Add_Row(), i_ce);
- CurOut() << new Html::HorizontalLine();
-
- // produce ...
- // - included services: summary
- dyn_comref_list dpIncludedServices;
- ServiceAttr::Get_IncludedServices(dpIncludedServices, i_ce);
- if ( (*dpIncludedServices).operator bool() )
- {
- produce_CommentedRelations( i_ce, *dpIncludedServices,
- C_sList_IncludedServices_Heading,
- C_sList_IncludedServices_Label,
- C_sList_IncludedServicesDetails_Heading,
- C_sList_IncludedServicesDetails_Label,
- doctype_summaryOnly );
- pNaviSubRow->SwitchOn(sli_IncludedServicesSummary);
- }
-
- // - exported interfaces: summary
- dyn_comref_list dpExportedInterfaces;
- ServiceAttr::Get_ExportedInterfaces(dpExportedInterfaces, i_ce);
- if ( (*dpExportedInterfaces).operator bool() )
- {
- produce_CommentedRelations( i_ce, *dpExportedInterfaces,
- C_sList_ExportedInterfaces_Heading,
- C_sList_ExportedInterfaces_Label,
- C_sList_ExportedInterfacesDetails_Heading,
- C_sList_ExportedInterfacesDetails_Label,
- doctype_summaryOnly );
- pNaviSubRow->SwitchOn(sli_InterfacesSummary);
- }
-
- // - supported properties: summary
- dyn_ce_list dpProperties;
- ServiceAttr::Get_Properties(dpProperties, i_ce);
- if ( (*dpProperties).operator bool() )
- {
- produce_Members( *dpProperties,
- C_sList_Properties,
- C_sList_Properties_Label,
- C_sList_PropertiesDetails,
- C_sList_PropertiesDetails_Label,
- viewtype_summary );
- pNaviSubRow->SwitchOn(sli_PropertiesSummary);
- }
-
- // - included services: details
- ServiceAttr::Get_IncludedServices(dpIncludedServices, i_ce);
- if ( (*dpIncludedServices).operator bool() )
- {
- produce_CommentedRelations( i_ce, *dpIncludedServices,
- C_sList_IncludedServices_Heading,
- C_sList_IncludedServices_Label,
- C_sList_IncludedServicesDetails_Heading,
- C_sList_IncludedServicesDetails_Label,
- doctype_complete );
- pNaviSubRow->SwitchOn(sli_IncludedServicesDetails);
- }
-
- // - exported interfaces: details
- ServiceAttr::Get_ExportedInterfaces(dpExportedInterfaces, i_ce);
- if ( (*dpExportedInterfaces).operator bool() )
- {
- produce_CommentedRelations( i_ce, *dpExportedInterfaces,
- C_sList_ExportedInterfaces_Heading,
- C_sList_ExportedInterfaces_Label,
- C_sList_ExportedInterfacesDetails_Heading,
- C_sList_ExportedInterfacesDetails_Label,
- doctype_complete );
- pNaviSubRow->SwitchOn(sli_InterfacesDetails);
- }
-
- // supported properties: details
- ServiceAttr::Get_Properties(dpProperties, i_ce);
- if ( (*dpProperties).operator bool() )
- {
- produce_Members( *dpProperties,
- C_sList_Properties,
- C_sList_Properties_Label,
- C_sList_PropertiesDetails,
- C_sList_PropertiesDetails_Label,
- viewtype_details );
- pNaviSubRow->SwitchOn(sli_PropertiesDetails);
- }
-
- pNaviSubRow->Produce_Row();
- CurOut() << new Xml::XmlCode("<br>&nbsp;");
-}
-
-typedef ary::idl::ifc_property::attr PropertyAttr;
-
-void
-HF_IdlService::produce_SummaryDeclaration( Xml::Element & o_row,
- const client & i_property ) const
-{
- // KORR_FUTURE
- // Put this in to HF_IdlProperty!
-
- Xml::Element &
- rCell = o_row
- >> *new Html::TableCell
- << new Html::ClassAttr( C_sCellStyle_SummaryLeft );
-
- if (PropertyAttr::HasAnyStereotype(i_property))
- {
- rCell << "[ ";
- if (PropertyAttr::IsReadOnly(i_property))
- rCell << "readonly ";
- if (PropertyAttr::IsBound(i_property))
- rCell << "bound ";
- if (PropertyAttr::IsConstrained(i_property))
- rCell << "constrained ";
- if (PropertyAttr::IsMayBeAmbiguous(i_property))
- rCell << "maybeambiguous ";
- if (PropertyAttr::IsMayBeDefault(i_property))
- rCell << "maybedefault ";
- if (PropertyAttr::IsMayBeVoid(i_property))
- rCell << "maybevoid ";
- if (PropertyAttr::IsRemovable(i_property))
- rCell << "removable ";
- if (PropertyAttr::IsTransient(i_property))
- rCell << "transient ";
- rCell << "] ";
- } // end if
-
- HF_IdlTypeText
- aType( Env(), rCell );
- aType.Produce_byData( PropertyAttr::Type(i_property) );
-
- StreamLock aLocalLink(100);
- aLocalLink() << "#" << i_property.LocalName();
- rCell
- << new Html::LineBreak
- >> *new Html::Link( aLocalLink().c_str() )
- << i_property.LocalName();
-}
-
-DYN HF_NaviSubRow &
-HF_IdlService::make_Navibar( const client & i_ce ) const
-{
- HF_IdlNavigationBar
- aNaviBar(Env(), CurOut());
- aNaviBar.Produce_CeMainRow(i_ce);
-
- DYN HF_NaviSubRow &
- ret = aNaviBar.Add_SubRow();
- ret.AddItem(C_sList_IncludedServices, C_sList_IncludedServices_Label, false);
- ret.AddItem(C_sList_ExportedInterfaces, C_sList_ExportedInterfaces_Label, false);
- ret.AddItem(C_sList_Properties, C_sList_Properties_Label, false);
- ret.AddItem(C_sList_IncludedServicesDetails, C_sList_IncludedServicesDetails_Label, false);
- ret.AddItem(C_sList_ExportedInterfacesDetails, C_sList_ExportedInterfacesDetails_Label, false);
- ret.AddItem(C_sList_PropertiesDetails, C_sList_PropertiesDetails_Label, false);
-
- CurOut() << new Html::HorizontalLine();
- return ret;
-}
-
-void
-HF_IdlService::produce_Link( Xml::Element & o_row,
- type_id i_type ) const
-{
- Xml::Element &
- rCell = o_row
- >> *new Html::TableCell
- << new Html::ClassAttr(C_sCellStyle_SummaryLeft);
- HF_IdlTypeText
- aText(Env(), rCell);
- aText.Produce_byData(i_type);
-}
-
-void
-HF_IdlService::produce_LinkSummary( const client & i_ce,
- Xml::Element & o_row,
- const comref & i_commentedRef ) const
-{
- Xml::Element &
- rCell = o_row
- >> *new Html::TableCell
- << new Html::ClassAttr(C_sCellStyle_SummaryRight);
-
- HF_IdlCommentedRelationElement::produce_LinkDoc( Env(), i_ce, rCell, i_commentedRef, doctype_summaryOnly );
-}
-
-void
-HF_IdlService::produce_MemberDetails( HF_SubTitleTable & o_table,
- const client & i_ce ) const
-{
- HF_IdlProperty
- aProperty( Env(), o_table);
- aProperty.Produce_byData( i_ce );
-}
-
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/display/idl/hfi_service.hxx b/autodoc/source/display/idl/hfi_service.hxx
deleted file mode 100644
index e417dc2d538a..000000000000
--- a/autodoc/source/display/idl/hfi_service.hxx
+++ /dev/null
@@ -1,92 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_DISPLAY_HFI_SERVICE_HXX
-#define ADC_DISPLAY_HFI_SERVICE_HXX
-
-
-// USED SERVICES
- // BASE CLASSES
-#include "hi_factory.hxx"
- // COMPONENTS
- // PARAMETERS
-#include <ary/idl/i_comrela.hxx>
-
-class HF_NaviSubRow;
-class HF_SubTitleTable;
-
-class HF_IdlService : public HtmlFactory_Idl
-{
- public:
- typedef ::ary::idl::CommentedRelation comref;
- typedef ::ary::StdConstIterator< comref > comref_list;
-
- HF_IdlService(
- Environment & io_rEnv,
- Xml::Element & o_rOut );
- virtual ~HF_IdlService();
-
- void Produce_byData(
- const client & i_ce ) const;
- private:
- // Overwritten from HtmlFactory_Idl:
- virtual void produce_SummaryDeclaration(
- Xml::Element & o_row,
- const client & i_ce ) const;
-
- // Locals
- DYN HF_NaviSubRow & make_Navibar(
- const client & i_ce ) const;
-
- void produce_Link(
- Xml::Element & o_row,
- type_id i_type ) const;
- void produce_LinkSummary(
- const client & i_ce,
- Xml::Element & o_row,
- const comref & i_commentedRef ) const;
-
- void produce_MemberDetails( /// of property
- HF_SubTitleTable & o_table,
- const client & i_ce ) const;
-
- void produce_CommentedRelations(
- const client & i_ce,
- comref_list & it_list,
- const String & i_summaryTitle,
- const String & i_summaryLabel,
- const String & i_detailsTitle,
- const String & i_detailsLabel,
- const E_DocType i_docType ) const;
-
-};
-
-
-
-// IMPLEMENTATION
-
-extern const String
- C_sCePrefix_Service;
-
-
-
-#endif
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/display/idl/hfi_singleton.cxx b/autodoc/source/display/idl/hfi_singleton.cxx
deleted file mode 100644
index 23d17f904348..000000000000
--- a/autodoc/source/display/idl/hfi_singleton.cxx
+++ /dev/null
@@ -1,127 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include "hfi_singleton.hxx"
-
-
-// NOT FULLY DEFINED SERVICES
-#include <ary/idl/i_ce.hxx>
-#include <ary/idl/ik_singleton.hxx>
-#include <ary/idl/ik_sisingleton.hxx>
-#include <toolkit/hf_docentry.hxx>
-#include <toolkit/hf_linachain.hxx>
-#include <toolkit/hf_title.hxx>
-#include "hfi_navibar.hxx"
-#include "hfi_typetext.hxx"
-#include "hi_linkhelper.hxx"
-
-
-
-extern const String
- C_sCePrefix_Singleton("singleton");
-
-const String
- C_sAssociatedService("Associated Service");
-const String
- C_sImplementedInterface("Supported Interface");
-
-
-
-HF_IdlSingleton::HF_IdlSingleton( Environment & io_rEnv,
- Xml::Element & o_rOut )
- : HtmlFactory_Idl(io_rEnv, &o_rOut)
-{
-}
-
-HF_IdlSingleton::~HF_IdlSingleton()
-{
-
-}
-
-typedef ::ary::idl::ifc_singleton::attr SingletonAttr;
-typedef ::ary::idl::ifc_sglifcsingleton::attr SglIfcSingletonAttr;
-
-void
-HF_IdlSingleton::Produce_byData_ServiceBased( const client & i_ce ) const
-{
- make_Navibar(i_ce);
-
- HF_TitleTable
- aTitle(CurOut());
-
- HF_LinkedNameChain
- aNameChain(aTitle.Add_Row());
-
- aNameChain.Produce_CompleteChain(Env().CurPosition(), nameChainLinker);
- produce_Title(aTitle, C_sCePrefix_Singleton, i_ce);
-
- HF_DocEntryList
- aTopList( aTitle.Add_Row() );
- aTopList.Produce_Term(C_sAssociatedService);
-
- HF_IdlTypeText
- aAssociatedService( Env(), aTopList.Produce_Definition() );
- aAssociatedService.Produce_byData( SingletonAttr::AssociatedService(i_ce) );
-
- CurOut() << new Html::HorizontalLine;
-
- write_Docu(aTitle.Add_Row(), i_ce);
- CurOut() << new Html::HorizontalLine();
-}
-
-void
-HF_IdlSingleton::Produce_byData_InterfaceBased( const client & i_ce ) const
-{
- make_Navibar(i_ce);
-
- HF_TitleTable
- aTitle(CurOut());
-
- HF_LinkedNameChain
- aNameChain(aTitle.Add_Row());
-
- aNameChain.Produce_CompleteChain(Env().CurPosition(), nameChainLinker);
- produce_Title(aTitle, C_sCePrefix_Singleton, i_ce);
-
- HF_DocEntryList
- aTopList( aTitle.Add_Row() );
- aTopList.Produce_Term(C_sImplementedInterface);
-
- HF_IdlTypeText
- aImplementedInterface( Env(), aTopList.Produce_Definition() );
- aImplementedInterface.Produce_byData( SglIfcSingletonAttr::BaseInterface(i_ce) );
-
- CurOut() << new Html::HorizontalLine;
-
- write_Docu(aTitle.Add_Row(), i_ce);
- CurOut() << new Html::HorizontalLine();
-}
-
-void
-HF_IdlSingleton::make_Navibar( const client & i_ce ) const
-{
- HF_IdlNavigationBar
- aNaviBar(Env(), CurOut());
- aNaviBar.Produce_CeMainRow(i_ce,true); // true := avoid link to Use-page.
-
- CurOut() << new Html::HorizontalLine();
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/display/idl/hfi_singleton.hxx b/autodoc/source/display/idl/hfi_singleton.hxx
deleted file mode 100644
index b01c0e2b3461..000000000000
--- a/autodoc/source/display/idl/hfi_singleton.hxx
+++ /dev/null
@@ -1,60 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_DISPLAY_HFI_SINGLETON_HXX
-#define ADC_DISPLAY_HFI_SINGLETON_HXX
-
-
-// USED SERVICES
- // BASE CLASSES
-#include "hi_factory.hxx"
- // COMPONENTS
- // PARAMETERS
-
-
-class HF_IdlSingleton : public HtmlFactory_Idl
-{
- public:
- HF_IdlSingleton(
- Environment & io_rEnv,
- Xml::Element & o_rOut );
- virtual ~HF_IdlSingleton();
-
- void Produce_byData_ServiceBased(
- const client & i_ce ) const;
- void Produce_byData_InterfaceBased(
- const client & i_ce ) const;
- private:
- void make_Navibar(
- const client & i_ce ) const;
-};
-
-
-
-// IMPLEMENTATION
-
-extern const String
- C_sCePrefix_Singleton;
-
-
-
-#endif
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/display/idl/hfi_siservice.cxx b/autodoc/source/display/idl/hfi_siservice.cxx
deleted file mode 100644
index 5c221582c7c3..000000000000
--- a/autodoc/source/display/idl/hfi_siservice.cxx
+++ /dev/null
@@ -1,169 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include "hfi_siservice.hxx"
-
-
-// NOT FULLY DEFINED SERVICES
-#include <ary/idl/i_ce.hxx>
-#include <ary/idl/ik_function.hxx>
-#include <ary/idl/ik_siservice.hxx>
-#include <ary/doc/d_oldidldocu.hxx>
-#include <toolkit/hf_docentry.hxx>
-#include <toolkit/hf_linachain.hxx>
-#include <toolkit/hf_navi_sub.hxx>
-#include <toolkit/hf_title.hxx>
-#include "hfi_doc.hxx"
-#include "hfi_method.hxx"
-#include "hfi_navibar.hxx"
-#include "hfi_typetext.hxx"
-#include "hi_env.hxx"
-#include "hi_linkhelper.hxx"
-
-
-
-namespace
-{
-
-const String
- C_sImplementedInterface("Supported Interface");
-
-const String
- C_sList_Constructors("Constructors' Summary");
-const String
- C_sList_Constructors_Label("ConstructorsSummary");
-const String
- C_sDetails_Constructors("Constructors' Details");
-const String
- C_sDetails_Constructors_Label("ConstructorsDetails");
-
-
-enum E_SubListIndices
-{
- sli_ConstructorsSummary = 0,
- sli_ConstructorsDetails = 1
-};
-
-} //anonymous namespace
-
-
-HF_IdlSglIfcService::HF_IdlSglIfcService( Environment & io_rEnv,
- Xml::Element & o_rOut )
- : HtmlFactory_Idl(io_rEnv, &o_rOut)
-{
-}
-
-HF_IdlSglIfcService::~HF_IdlSglIfcService()
-{
-}
-
-typedef ::ary::idl::ifc_sglifcservice::attr SglIfcServiceAttr;
-
-void
-HF_IdlSglIfcService::Produce_byData( const client & i_ce ) const
-{
- Dyn<HF_NaviSubRow>
- pNaviSubRow( &make_Navibar(i_ce) );
-
- HF_TitleTable
- aTitle(CurOut());
- HF_LinkedNameChain
- aNameChain(aTitle.Add_Row());
-
- aNameChain.Produce_CompleteChain(Env().CurPosition(), nameChainLinker);
- produce_Title(aTitle, C_sCePrefix_Service, i_ce);
-
- HF_DocEntryList
- aTopList( aTitle.Add_Row() );
- aTopList.Produce_Term(C_sImplementedInterface);
-
- HF_IdlTypeText
- aImplementedInterface( Env(), aTopList.Produce_Definition(), &i_ce);
- aImplementedInterface.Produce_byData( SglIfcServiceAttr::BaseInterface(i_ce) );
-
- CurOut() << new Html::HorizontalLine;
-
- write_Docu(aTitle.Add_Row(), i_ce);
- CurOut() << new Html::HorizontalLine();
-
- dyn_ce_list
- dpConstructors;
- SglIfcServiceAttr::Get_Constructors(dpConstructors, i_ce);
- if ( (*dpConstructors).operator bool() )
- {
- produce_Members( *dpConstructors,
- C_sList_Constructors,
- C_sList_Constructors_Label,
- C_sDetails_Constructors,
- C_sDetails_Constructors_Label );
- pNaviSubRow->SwitchOn(sli_ConstructorsSummary);
- pNaviSubRow->SwitchOn(sli_ConstructorsDetails);
- }
-
- pNaviSubRow->Produce_Row();
- CurOut() << new Xml::XmlCode("<br>&nbsp;");
-}
-
-DYN HF_NaviSubRow &
-HF_IdlSglIfcService::make_Navibar( const client & i_ce ) const
-{
- HF_IdlNavigationBar
- aNaviBar(Env(), CurOut());
- aNaviBar.Produce_CeMainRow(i_ce, true);
-
- DYN HF_NaviSubRow &
- ret = aNaviBar.Add_SubRow();
- ret.AddItem(C_sList_Constructors, C_sList_Constructors_Label, false);
- ret.AddItem(C_sDetails_Constructors, C_sDetails_Constructors_Label, false);
-
- CurOut() << new Html::HorizontalLine();
- return ret;
-}
-
-typedef ary::idl::ifc_function::attr funcAttr;
-
-void
-HF_IdlSglIfcService::produce_MemberDetails( HF_SubTitleTable & o_table,
- const client & i_ce ) const
-{
- HF_IdlMethod
- aConstructor( Env(),
- o_table.Add_Row()
- >> *new Html::TableCell
- << new Html::ClassAttr(C_sCellStyle_MDetail) );
-
- ary::Dyn_StdConstIterator<ary::idl::Parameter>
- pParameters;
- funcAttr::Get_Parameters(pParameters, i_ce);
-
- ary::Dyn_StdConstIterator<ary::idl::Type_id>
- pExceptions;
- funcAttr::Get_Exceptions(pExceptions, i_ce);
-
- aConstructor.Produce_byData( i_ce.LocalName(),
- funcAttr::ReturnType(i_ce),
- *pParameters,
- *pExceptions,
- funcAttr::IsOneway(i_ce),
- funcAttr::HasEllipse(i_ce),
- i_ce );
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/display/idl/hfi_siservice.hxx b/autodoc/source/display/idl/hfi_siservice.hxx
deleted file mode 100644
index 9ae985a6ae30..000000000000
--- a/autodoc/source/display/idl/hfi_siservice.hxx
+++ /dev/null
@@ -1,65 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_DISPLAY_HFI_SISERVICE_HXX
-#define ADC_DISPLAY_HFI_SISERVICE_HXX
-
-
-// USED SERVICES
- // BASE CLASSES
-#include "hi_factory.hxx"
- // COMPONENTS
- // PARAMETERS
-#include <ary/idl/i_comrela.hxx>
-
-class HF_NaviSubRow;
-class HF_SubTitleTable;
-
-class HF_IdlSglIfcService : public HtmlFactory_Idl
-{
- public:
- HF_IdlSglIfcService(
- Environment & io_rEnv,
- Xml::Element & o_rOut );
- virtual ~HF_IdlSglIfcService();
-
- void Produce_byData(
- const client & i_ce ) const;
- private:
- DYN HF_NaviSubRow & make_Navibar(
- const client & i_ce ) const;
-
- void produce_MemberDetails(
- HF_SubTitleTable & o_table,
- const client & i_ce ) const;
-};
-
-
-
-// IMPLEMENTATION
-
-extern const String
- C_sCePrefix_Service;
-
-
-
-#endif
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/display/idl/hfi_struct.cxx b/autodoc/source/display/idl/hfi_struct.cxx
deleted file mode 100644
index eb7bf90bbf9c..000000000000
--- a/autodoc/source/display/idl/hfi_struct.cxx
+++ /dev/null
@@ -1,197 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include "hfi_struct.hxx"
-
-
-// NOT FULLY DEFINED SERVICES
-#include <ary/idl/i_ce.hxx>
-#include <ary/idl/i_struct.hxx>
-#include <ary/idl/ik_exception.hxx>
-#include <ary/idl/ik_struct.hxx>
-#include <toolkit/hf_docentry.hxx>
-#include <toolkit/hf_linachain.hxx>
-#include <toolkit/hf_navi_sub.hxx>
-#include <toolkit/hf_title.hxx>
-#include "hfi_navibar.hxx"
-#include "hfi_property.hxx"
-#include "hfi_typetext.hxx"
-#include "hi_linkhelper.hxx"
-
-
-extern const String
- C_sCePrefix_Struct("struct");
-extern const String
- C_sCePrefix_Exception("exception");
-
-
-namespace
-{
-
-const String
- C_sBaseStruct("Base Hierarchy");
-const String
- C_sBaseException("Base Hierarchy");
-
-const String
- C_sList_Elements("Elements' Summary");
-const String
- C_sList_Elements_Label("Elements");
-
-const String
- C_sList_ElementDetails("Elements' Details");
-const String
- C_sList_ElementDetails_Label("ElementDetails");
-
-enum E_SubListIndices
-{
- sli_ElementsSummary = 0,
- sli_ElementsDetails = 1
-};
-
-} // anonymous namespace
-
-
-
-HF_IdlStruct::HF_IdlStruct( Environment & io_rEnv,
- Xml::Element & o_rOut,
- bool i_bIsException )
- : HtmlFactory_Idl(io_rEnv, &o_rOut),
- bIsException(i_bIsException)
-{
-}
-
-HF_IdlStruct::~HF_IdlStruct()
-{
-}
-
-void
-HF_IdlStruct::Produce_byData( const client & i_ce ) const
-{
- const ary::idl::Struct *
- pStruct =
- bIsException
- ? 0
- : static_cast< const ary::idl::Struct* >(&i_ce);
- bool bIsTemplate =
- pStruct != 0
- ? pStruct->TemplateParameterType().IsValid()
- : false;
-
- Dyn<HF_NaviSubRow>
- pNaviSubRow( &make_Navibar(i_ce) );
-
- HF_TitleTable
- aTitle(CurOut());
- HF_LinkedNameChain
- aNameChain(aTitle.Add_Row());
-
- aNameChain.Produce_CompleteChain(Env().CurPosition(), nameChainLinker);
-
- // Title:
- StreamLock
- slAnnotations(200);
- get_Annotations(slAnnotations(), i_ce);
-
- StreamLock rTitle(200);
- if (bIsTemplate)
- rTitle() << "template ";
- rTitle()
- << (bIsException
- ? C_sCePrefix_Exception
- : C_sCePrefix_Struct)
- << " "
- << i_ce.LocalName();
- if (bIsTemplate)
- {
- csv_assert(pStruct != 0);
- rTitle()
- << "<"
- << pStruct->TemplateParameter()
- << ">";
- }
- aTitle.Produce_Title(slAnnotations().c_str(), rTitle().c_str());
-
- // Bases:
- produce_Bases( aTitle.Add_Row(),
- i_ce,
- bIsException
- ? C_sBaseException
- : C_sBaseStruct );
-
- // Docu:
- write_Docu(aTitle.Add_Row(), i_ce);
- CurOut() << new Html::HorizontalLine();
-
- // Elements:
- dyn_ce_list
- dpElements;
- if (bIsException)
- ary::idl::ifc_exception::attr::Get_Elements(dpElements, i_ce);
- else
- ary::idl::ifc_struct::attr::Get_Elements(dpElements, i_ce);
-
- if ( (*dpElements).operator bool() )
- {
- produce_Members( *dpElements,
- C_sList_Elements,
- C_sList_Elements_Label,
- C_sList_ElementDetails,
- C_sList_ElementDetails_Label );
- pNaviSubRow->SwitchOn(sli_ElementsSummary);
- pNaviSubRow->SwitchOn(sli_ElementsDetails);
- }
- pNaviSubRow->Produce_Row();
-}
-
-HtmlFactory_Idl::type_id
-HF_IdlStruct::inq_BaseOf( const client & i_ce ) const
-{
- return bIsException
- ? ary::idl::ifc_exception::attr::Base(i_ce)
- : ary::idl::ifc_struct::attr::Base(i_ce);
-}
-
-HF_NaviSubRow &
-HF_IdlStruct::make_Navibar( const client & i_ce ) const
-{
- HF_IdlNavigationBar
- aNaviBar(Env(), CurOut());
- aNaviBar.Produce_CeMainRow(i_ce);
-
- DYN HF_NaviSubRow &
- ret = aNaviBar.Add_SubRow();
- ret.AddItem(C_sList_Elements, C_sList_Elements_Label, false);
- ret.AddItem(C_sList_ElementDetails, C_sList_ElementDetails_Label, false);
-
- CurOut() << new Html::HorizontalLine();
- return ret;
-}
-
-void
-HF_IdlStruct::produce_MemberDetails( HF_SubTitleTable & o_table,
- const client & i_ce) const
-{
- HF_IdlStructElement
- aElement( Env(), o_table );
- aElement.Produce_byData(i_ce);
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/display/idl/hfi_struct.hxx b/autodoc/source/display/idl/hfi_struct.hxx
deleted file mode 100644
index 074114c1615b..000000000000
--- a/autodoc/source/display/idl/hfi_struct.hxx
+++ /dev/null
@@ -1,74 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_DISPLAY_HFI_STRUCT_HXX
-#define ADC_DISPLAY_HFI_STRUCT_HXX
-
-
-
-// USED SERVICES
- // BASE CLASSES
-#include "hi_factory.hxx"
- // COMPONENTS
- // PARAMETERS
-
-class HF_NaviSubRow;
-
-/** Is used to display ->ary::idl::Exception s as well as ->ary::idl::Struct s.
-*/
-class HF_IdlStruct : public HtmlFactory_Idl
-{
- public:
-
- HF_IdlStruct(
- Environment & io_rEnv,
- Xml::Element & o_rOut,
- bool i_bIsException );
- virtual ~HF_IdlStruct();
-
- void Produce_byData(
- const client & ce ) const;
- private:
- // Interface HtmlFactory_Idl:
- virtual type_id inq_BaseOf(
- const client & i_ce ) const;
- // Locals
- HF_NaviSubRow & make_Navibar(
- const client & ce ) const;
- virtual void produce_MemberDetails(
- HF_SubTitleTable & o_table,
- const client & ce ) const;
- // DATA
- bool bIsException;
-};
-
-
-
-// IMPLEMENTATION
-
-
-extern const String
- C_sCePrefix_Struct;
-extern const String
- C_sCePrefix_Exception;
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/display/idl/hfi_tag.cxx b/autodoc/source/display/idl/hfi_tag.cxx
deleted file mode 100644
index 3b5500b4b44b..000000000000
--- a/autodoc/source/display/idl/hfi_tag.cxx
+++ /dev/null
@@ -1,348 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include "hfi_tag.hxx"
-
-
-// NOT FULLY DEFINED SERVICES
-#include <ary/idl/i_ce.hxx>
-#include <ary/idl/i_module.hxx>
-#include <ary_i/ci_text2.hxx>
-#include <ary_i/d_token.hxx>
-#include <toolkit/out_tree.hxx>
-#include <adc_cl.hxx>
-#include <adc_msg.hxx>
-#include "hfi_typetext.hxx"
-#include "hi_ary.hxx"
-#include "hi_env.hxx"
-#include "hi_linkhelper.hxx"
-
-
-using ary::inf::DocuTex2;
-
-
-inline void
-HF_IdlTag::Enter_TextOut( Xml::Element & o_rText ) const
-{
- aTextOut.Out().Enter(o_rText);
-}
-
-inline void
-HF_IdlTag::Leave_TextOut() const
-{
- aTextOut.Out().Leave();
-}
-
-inline void
-HF_IdlTag::PutText_Out( const ary::inf::DocuTex2 & i_rText ) const
-{
- i_rText.DisplayAt( const_cast< HF_IdlDocuTextDisplay& >(aTextOut) );
-}
-
-
-
-HF_IdlTag::HF_IdlTag( Environment & io_rEnv,
- const ary::idl::CodeEntity & i_rScopeGivingCe )
- : HtmlFactory_Idl( io_rEnv, 0 ),
- pTitleOut(0),
- aTextOut(io_rEnv, 0, i_rScopeGivingCe)
-{
-}
-
-HF_IdlTag::~HF_IdlTag()
-{
-}
-
-void
-HF_IdlTag::Produce_byData( Xml::Element & o_rTitle,
- Xml::Element & o_rText,
- const ary::inf::AtTag2 & i_rTag ) const
-{
- pTitleOut = &o_rTitle;
- Enter_TextOut(o_rText);
- i_rTag.DisplayAt( const_cast< HF_IdlTag& >(*this) );
- Leave_TextOut();
-}
-
-void
-HF_IdlTag::Produce_byData( Xml::Element & o_rTitle,
- Xml::Element & o_rText,
- const std::vector< csi::dsapi::DT_SeeAlsoAtTag* > &
- i_seeAlsoVector ) const
-{
- o_rTitle << "See also";
- for ( std::vector< csi::dsapi::DT_SeeAlsoAtTag* >::const_iterator
- it = i_seeAlsoVector.begin();
- it != i_seeAlsoVector.end();
- ++it )
- {
- if (it != i_seeAlsoVector.begin())
- {
- o_rText << ", ";
- }
- HF_IdlTypeText
- aLinkText(Env(), o_rText, &aTextOut.ScopeGivingCe());
- aLinkText.Produce_byData( (*it)->LinkText() );
- }
-}
-
-void
-HF_IdlTag::Display_StdAtTag( const csi::dsapi::DT_StdAtTag & i_rTag )
-{
- if ( i_rTag.Text().IsEmpty() )
- return;
-
- csv_assert( pTitleOut != 0 );
- *pTitleOut << i_rTag.Title();
- PutText_Out( i_rTag.Text() );
-}
-
-void
-HF_IdlTag::Display_SeeAlsoAtTag( const csi::dsapi::DT_SeeAlsoAtTag & i_rTag )
-{
- if ( i_rTag.Text().IsEmpty() )
- return;
-
- csv_assert( pTitleOut != 0 );
- *pTitleOut << "See also";
-
- HF_IdlTypeText aLinkText(Env(),aTextOut.CurOut(), &aTextOut.ScopeGivingCe());
- aLinkText.Produce_byData( i_rTag.LinkText() );
-
- aTextOut.CurOut() << new Html::LineBreak;
- PutText_Out( i_rTag.Text() );
-}
-
-void
-HF_IdlTag::Display_ParameterAtTag( const csi::dsapi::DT_ParameterAtTag & i_rTag )
-{
- csv_assert( pTitleOut != 0 );
- StreamLock sl(100);
- *pTitleOut
- << ( sl() << "Parameter " << i_rTag.Title() << c_str );
- PutText_Out( i_rTag.Text() );
-}
-
-void
-HF_IdlTag::Display_SinceAtTag( const csi::dsapi::DT_SinceAtTag & i_rTag )
-{
- csv_assert(pTitleOut != 0);
-
- if ( i_rTag.Text().IsEmpty() )
- {
- return;
- }
-
- // Transform the value of the @since tag into the text to be displayed.
- String sDisplay =
- autodoc::CommandLine::Get_().DisplayOf_SinceTagValue(
- i_rTag.Text().TextOfFirstToken() );
- if (sDisplay.empty())
- return;
-
- *pTitleOut << "Since ";
- DocuTex2 aHelp;
- aHelp.AddToken(* new csi::dsapi::DT_TextToken(sDisplay));
- PutText_Out(aHelp);
-}
-
-
-//******************** HF_IdlShortDocu *********************/
-
-HF_IdlShortDocu::HF_IdlShortDocu( Environment & io_rEnv,
- Xml::Element & o_rOut )
- : HtmlFactory_Idl( io_rEnv, &o_rOut )
-{
-}
-
-HF_IdlShortDocu::~HF_IdlShortDocu()
-{
-}
-
-void
-HF_IdlShortDocu::Produce_byData( const ary::idl::CodeEntity & i_rCe )
-{
- const ce_info *
- pDocu = Get_IdlDocu(i_rCe.Docu());
- if (pDocu == 0)
- return;
-
- const ce_info &
- rDocu = *pDocu;
- if ( rDocu.IsDeprecated() )
- {
- CurOut()
- >> *new Html::Bold
- << "[ DEPRECATED ]" << new Html::LineBreak;
- }
- if ( rDocu.IsOptional() )
- {
- CurOut()
- >> *new Html::Bold
- << "[ OPTIONAL ]" << new Html::LineBreak;
- }
-
- HF_IdlDocuTextDisplay
- aText( Env(), &CurOut(), i_rCe);
- rDocu.Short().DisplayAt(aText);
-}
-
-
-//******************** HF_IdlDocuTextDisplay *********************/
-
-
-HF_IdlDocuTextDisplay::HF_IdlDocuTextDisplay( Environment & io_rEnv,
- Xml::Element * o_pOut,
- const ary::idl::CodeEntity & i_rScopeGivingCe )
- : HtmlFactory_Idl(io_rEnv, o_pOut),
- sScope(),
- sLinkToken(),
- bGatherLink(false),
- pScopeGivingCe(&i_rScopeGivingCe)
-{
-}
-
-HF_IdlDocuTextDisplay::~HF_IdlDocuTextDisplay()
-{
-}
-
-void
-HF_IdlDocuTextDisplay::Display_TextToken( const csi::dsapi::DT_TextToken & i_rToken )
-{
- if (bGatherLink)
- {
- if (sLinkToken.length() == 0)
- {
- sLinkToken = i_rToken.GetText();
- return;
- }
- else
- {
- if ( pScopeGivingCe == 0 )
- { // only in original file
- TheMessages().Out_TypeVsMemberMisuse(sLinkToken, Env().CurPageCe_AsText(), 0);
- }
-
- StopLinkGathering();
- }
- } // endif (bGatherLink)
-
- CurOut() << new Xml::XmlCode( i_rToken.GetText() );
-}
-
-void
-HF_IdlDocuTextDisplay::Display_White()
-{
- CurOut() << " ";
-}
-
-void
-HF_IdlDocuTextDisplay::Display_MupType( const csi::dsapi::DT_MupType & i_rToken )
-{
- if (i_rToken.IsBegin())
- {
- StartLinkGathering(i_rToken.Scope());
- }
- else
- {
- if (bGatherLink)
- {
- CreateTypeLink();
- StopLinkGathering();
- }
- }
-}
-
-void
-HF_IdlDocuTextDisplay::Display_MupMember( const csi::dsapi::DT_MupMember & i_rToken )
-{
- if (i_rToken.IsBegin())
- {
- StartLinkGathering(i_rToken.Scope());
- }
- else
- {
- if (bGatherLink)
- {
- CreateMemberLink();
- StopLinkGathering();
- }
- }
-}
-
-void
-HF_IdlDocuTextDisplay::Display_MupConst( const csi::dsapi::DT_MupConst & i_rToken )
-{
- CurOut()
- >> *new Html::Bold
- << i_rToken.GetText();
-}
-
-void
-HF_IdlDocuTextDisplay::Display_Style( const csi::dsapi::DT_Style & i_rToken )
-{
- CurOut() << new Xml::XmlCode( i_rToken.GetText() );
-}
-
-void
-HF_IdlDocuTextDisplay::Display_EOL()
-{
- CurOut() << "\n";
-}
-
-void
-HF_IdlDocuTextDisplay::CreateTypeLink()
-{
- if (strchr(sLinkToken,':') != 0)
- {
- TheMessages().Out_TypeVsMemberMisuse(sLinkToken, Env().CurPageCe_AsFile(".idl"), 0);
- CurOut() << sLinkToken;
- return;
- }
- HF_IdlTypeText aLink(Env(), CurOut(), &ScopeGivingCe());
- aLink.Produce_LinkInDocu(sScope, sLinkToken, String::Null_());
-}
-
-void
-HF_IdlDocuTextDisplay::CreateMemberLink()
-{
-
- HF_IdlTypeText aLink(Env(), CurOut(), &ScopeGivingCe());
-
- const char *
- sSplit = strchr(sLinkToken,':');
-
- if (sSplit != 0)
- {
- String sCe(sLinkToken.c_str(), sSplit - sLinkToken.c_str());
- String sMember(sSplit+2);
-
- if (NOT sScope.empty() OR ScopeGivingCe().LocalName() != sCe )
- aLink.Produce_LinkInDocu(sScope, sCe, sMember);
- else
- aLink.Produce_LocalLinkInDocu(sMember);
- }
- else
- {
- aLink.Produce_LocalLinkInDocu(sLinkToken);
- }
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/display/idl/hfi_tag.hxx b/autodoc/source/display/idl/hfi_tag.hxx
deleted file mode 100644
index d7ba8a24cf50..000000000000
--- a/autodoc/source/display/idl/hfi_tag.hxx
+++ /dev/null
@@ -1,160 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_DISPLAY_HFI_TAG_HXX
-#define ADC_DISPLAY_HFI_TAG_HXX
-
-// BASE CLASSES
-#include "hi_factory.hxx"
-#include <ary_i/disdocum.hxx>
-// USED SERVICES
-#include <ary/idl/i_types4idl.hxx>
-#include <ary_i/ci_atag2.hxx>
-#include <ary_i/ci_text2.hxx>
-#include <ary/doc/d_oldidldocu.hxx>
-
-#include <toolkit/hf_docentry.hxx>
-
-/** This class is an implementation of ary::inf::DocuText_Display
- and will be used by that interface.
-*/
-class HF_IdlDocuTextDisplay : public HtmlFactory_Idl,
- public ary::inf::DocuText_Display
-{
- public:
- HF_IdlDocuTextDisplay(
- Environment & io_rEnv,
- Xml::Element * o_pOut,
- const ary::idl::CodeEntity &
- i_rScopeGivingCe );
- virtual ~HF_IdlDocuTextDisplay();
-
- const ary::idl::CodeEntity &
- ScopeGivingCe() const { return *pScopeGivingCe; }
- private:
- virtual void Display_TextToken(
- const csi::dsapi::DT_TextToken &
- i_rToken );
- virtual void Display_White();
-
- virtual void Display_MupType(
- const csi::dsapi::DT_MupType &
- i_rToken );
- virtual void Display_MupMember(
- const csi::dsapi::DT_MupMember &
- i_rToken );
- virtual void Display_MupConst(
- const csi::dsapi::DT_MupConst &
- i_rToken );
- virtual void Display_Style(
- const csi::dsapi::DT_Style & i_rToken );
- virtual void Display_EOL();
-
- // Local
- void StartLinkGathering(
- const String & i_sScope )
- { sLinkToken = ""; sScope = i_sScope; bGatherLink = true; }
- void StopLinkGathering() { bGatherLink = false; }
- /** @precond
- The scope is in sScope, the name is in sLinkToken.
- */
- void CreateTypeLink();
- /** @precond
- The scope is in sScope, the qualified member-name is in sLinkToken.
- */
- void CreateMemberLink();
-
- // DATA
- String sScope;
- String sLinkToken;
- bool bGatherLink;
- const ary::idl::CodeEntity *
- pScopeGivingCe;
-};
-
-
-
-class HF_IdlShortDocu : public HtmlFactory_Idl
-{
- public:
- HF_IdlShortDocu(
- Environment & io_rEnv,
- Xml::Element & o_rOut );
- virtual ~HF_IdlShortDocu();
-
- void Produce_byData(
- const ary::idl::CodeEntity &
- i_rCe );
-};
-
-
-
-class HF_IdlTag : public HtmlFactory_Idl,
- public ary::inf::DocuTag_Display
-{
- public:
- HF_IdlTag(
- Environment & io_rEnv,
- const ary::idl::CodeEntity &
- i_rScopeGivingCe );
- virtual ~HF_IdlTag();
-
- void Produce_byData(
- Xml::Element & o_rTitle,
- Xml::Element & o_rText,
- const ary::inf::AtTag2 &
- i_rTag ) const;
- void Produce_byData(
- Xml::Element & o_rTitle,
- Xml::Element & o_rText,
- const std::vector< csi::dsapi::DT_SeeAlsoAtTag* > &
- i_seeAlsoVector ) const;
- private:
- virtual void Display_StdAtTag(
- const csi::dsapi::DT_StdAtTag &
- i_rToken );
- virtual void Display_SeeAlsoAtTag(
- const csi::dsapi::DT_SeeAlsoAtTag &
- i_rToken );
- virtual void Display_ParameterAtTag(
- const csi::dsapi::DT_ParameterAtTag &
- i_rToken );
- virtual void Display_SinceAtTag(
- const csi::dsapi::DT_SinceAtTag &
- i_rToken );
-
- void Enter_TextOut(
- Xml::Element & o_rText ) const;
- void Leave_TextOut() const;
- void PutText_Out(
- const ary::inf::DocuTex2 &
- i_rText ) const;
- // DATA
- mutable Xml::Element *
- pTitleOut;
- mutable HF_IdlDocuTextDisplay
- aTextOut;
-};
-
-
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/display/idl/hfi_typedef.cxx b/autodoc/source/display/idl/hfi_typedef.cxx
deleted file mode 100644
index a477fcd05027..000000000000
--- a/autodoc/source/display/idl/hfi_typedef.cxx
+++ /dev/null
@@ -1,86 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include "hfi_typedef.hxx"
-
-
-// NOT FULLY DEFINED SERVICES
-#include <ary/idl/i_ce.hxx>
-#include <ary/idl/ik_typedef.hxx>
-#include <toolkit/hf_docentry.hxx>
-#include <toolkit/hf_linachain.hxx>
-#include <toolkit/hf_title.hxx>
-#include "hfi_navibar.hxx"
-#include "hfi_typetext.hxx"
-#include "hi_linkhelper.hxx"
-
-
-
-HF_IdlTypedef::HF_IdlTypedef( Environment & io_rEnv,
- Xml::Element & o_rOut )
- : HtmlFactory_Idl(io_rEnv, &o_rOut)
-{
-}
-
-HF_IdlTypedef::~HF_IdlTypedef()
-{
-}
-
-typedef ary::idl::ifc_typedef::attr TypedefAttr;
-
-void
-HF_IdlTypedef::Produce_byData( const client & i_ce ) const
-{
- make_Navibar(i_ce);
-
- HF_TitleTable
- aTitle(CurOut());
-
- HF_LinkedNameChain
- aNameChain(aTitle.Add_Row());
-
- aNameChain.Produce_CompleteChain(Env().CurPosition(), nameChainLinker);
- produce_Title(aTitle, C_sCePrefix_Typedef, i_ce);
-
- HF_DocEntryList
- aTopList( aTitle.Add_Row() );
- aTopList.Produce_Term("Defining Type");
-
- HF_IdlTypeText
- aDefinition( Env(), aTopList.Produce_Definition() );
- aDefinition.Produce_byData( TypedefAttr::DefiningType(i_ce) );
-
- CurOut() << new Html::HorizontalLine;
-
- write_Docu(aTitle.Add_Row(), i_ce);
- CurOut() << new Html::HorizontalLine();
-}
-
-void
-HF_IdlTypedef::make_Navibar( const client & i_ce ) const
-{
- HF_IdlNavigationBar
- aNaviBar(Env(), CurOut());
- aNaviBar.Produce_CeMainRow(i_ce);
-
- CurOut() << new Html::HorizontalLine();
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/display/idl/hfi_typedef.hxx b/autodoc/source/display/idl/hfi_typedef.hxx
deleted file mode 100644
index 414b91bc8b6d..000000000000
--- a/autodoc/source/display/idl/hfi_typedef.hxx
+++ /dev/null
@@ -1,58 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_DISPLAY_HFI_TYPEDEF_HXX
-#define ADC_DISPLAY_HFI_TYPEDEF_HXX
-
-
-
-// USED SERVICES
- // BASE CLASSES
-#include "hi_factory.hxx"
- // COMPONENTS
- // PARAMETERS
-
-
-class HF_IdlTypedef : public HtmlFactory_Idl
-{
- public:
- HF_IdlTypedef(
- Environment & io_rEnv,
- Xml::Element & o_rOut );
- virtual ~HF_IdlTypedef();
-
- void Produce_byData(
- const client & ce ) const;
- private:
- void make_Navibar(
- const client & ce ) const;
-};
-
-
-
-// IMPLEMENTATION
-
-
-const String
- C_sCePrefix_Typedef("typedef");
-
-#endif
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/display/idl/hfi_typetext.cxx b/autodoc/source/display/idl/hfi_typetext.cxx
deleted file mode 100644
index 03c4b263a436..000000000000
--- a/autodoc/source/display/idl/hfi_typetext.cxx
+++ /dev/null
@@ -1,735 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include "hfi_typetext.hxx"
-
-
-// NOT FULLY DEFINED SERVICES
-#include <string.h>
-#include <ary/idl/i_type.hxx>
-#include <ary/idl/i_ce.hxx>
-#include <ary/idl/i_module.hxx>
-#include <ary/idl/i_module.hxx>
-#include <ary/idl/ik_ce.hxx>
-#include <adc_cl.hxx>
-#include <adc_msg.hxx>
-#include "hi_linkhelper.hxx"
-
-
-
-
-
-
-inline const ary::idl::Module *
-HF_IdlTypeText::referingModule() const
-{
- if (pReferingCe == 0)
- return Env().Linker().Search_CurModule();
- else
- return &Env().Data().Find_Module(pReferingCe->NameRoom());
-}
-
-inline const HF_IdlTypeText::client *
-HF_IdlTypeText::referingCe() const
-{
- return pReferingCe;
-}
-
-
-HF_IdlTypeText::HF_IdlTypeText( Environment & io_rEnv,
- Xml::Element & o_rOut,
- const client * i_pScopeGivingCe )
- : HtmlFactory_Idl(io_rEnv, &o_rOut),
- pReferingCe( i_pScopeGivingCe )
-{
-}
-
-HF_IdlTypeText::HF_IdlTypeText( Environment & io_rEnv,
- E_Index )
- : HtmlFactory_Idl(io_rEnv, 0),
- pReferingCe( 0 )
-{
-}
-
-HF_IdlTypeText::~HF_IdlTypeText()
-{
-}
-
-void
-HF_IdlTypeText::Produce_byData(ary::idl::Type_id i_idType) const
-{
- StringVector aModule_;
- String sName;
- ce_id nCe;
- int nSequenceCount = 0;
- csv::erase_container(aModule_);
-
- const ary::idl::Type &
- rType = Env().Data().Find_Type(i_idType);
- Env().Data().Get_TypeText(aModule_, sName, nCe, nSequenceCount, rType);
-
- if ( Env().Data().IsBuiltInOrRelated(rType) )
- {
- produce_BuiltIn(sName,nSequenceCount);
- }
- else
- {
- produce_FromStd( aModule_,
- sName,
- String::Null_(),
- nSequenceCount,
- (nCe.IsValid() ? exists_yes : exists_no),
- rType.FirstEnclosedNonSequenceType(Env().Gate()).TemplateParameters() );
- }
-}
-
-void
-HF_IdlTypeText::Produce_byData( ary::idl::Ce_id i_idCe ) const
-{
- StringVector aModule_;
- String sCe;
- String sMember;
- csv::erase_container(aModule_);
-
- const ary::idl::CodeEntity &
- rCe = Env().Data().Find_Ce(i_idCe);
- Env().Data().Get_CeText(aModule_, sCe, sMember, rCe);
- produce_FromStd(aModule_, sCe, sMember, 0, exists_yes);
-}
-
-void
-HF_IdlTypeText::Produce_byData( const String & i_sFullName ) const
-{
- if ( strncmp(i_sFullName,"http://", 7) == 0 )
- {
- CurOut()
- >> *new Html::Link(i_sFullName)
- << i_sFullName;
- return;
- }
-
- StringVector aModule_;
- String sCe,
- sMember;
- int nSequence = 0;
- String sTypeText;
- csv::erase_container(aModule_);
-
- const ary::idl::Module *
- pScopeModule = referingModule();
- if (pScopeModule == 0)
- {
- // SYNTAX_ERR, but rather logical error: Missing module.
- CurOut() << i_sFullName;
- // KORR_FUTURE
- // How to put a message about this?
- // errorOut_UnresolvedLink(i_sFullName);
- return;
- }
-
- const char * sTypeStart = strrchr(i_sFullName,'<');
- if ( sTypeStart != 0 )
- {
- const char * sTypeEnd = strchr(i_sFullName,'>');
- if (sTypeEnd == 0)
- { // SYNTAX_ERR
- CurOut() << i_sFullName;
- // KORR_FUTURE
- // How to put a message about this?
- // errorOut_UnresolvedLink(i_sFullName);
- return;
- }
-
- nSequence = count_Sequences(i_sFullName);
- sTypeStart++;
- sTypeText.assign(sTypeStart, sTypeEnd-sTypeStart);
- }
- else
- {
- sTypeText = i_sFullName;
- }
-
- csv::erase_container(aModule_);
-
- if (NOT ( Env().Data().Search_Ce(aModule_, sCe,sMember, sTypeText, *pScopeModule) ) )
- {
- if ( strchr(sTypeText,':') == 0
- AND
- *sTypeText.c_str() != 'X' ) // This is a HACK, make this correct!
- {
- Produce_LocalLinkInDocu(sTypeText);
- return;
- }
- CurOut() << i_sFullName;
- // KORR
- // How to put a message about this?
- // errorOut_UnresolvedLink(i_sFullName);
- return;
- }
-
- produce_FromStd(aModule_, sCe, sMember, nSequence, exists_yes);
-}
-
-void
-HF_IdlTypeText::Produce_LinkInDocu( const String & i_scope,
- const String & i_name,
- const String & i_member ) const
-{
- StringVector aModule_;
- String sName;
- csv::erase_container(aModule_);
-
- const ary::idl::Module *
- pScopeModule = referingModule();
- if (pScopeModule == 0)
- {
- // SYNTAX_ERR, but rather logical error: Missing module.
- CurOut() << i_scope << "::" << i_name;
- if (NOT i_member.empty())
- CurOut() << "::" << i_member;
- return;
- }
-
- if (NOT ( Env().Data().Search_CesModule( aModule_, i_scope, i_name, *pScopeModule) ) )
- {
- CurOut() << i_scope << "::" << i_name;
- if (NOT i_member.empty())
- CurOut() << "::" << i_member;
- return;
- }
- produce_FromStd(aModule_, i_name, i_member, 0, exists_yes);
-}
-
-void
-HF_IdlTypeText::Produce_LocalLinkInDocu( const String & i_member ) const
-{
- StringVector aModule_;
- String sName;
- csv::erase_container(aModule_);
-
- csv_assert(referingCe() != 0);
- if ( referingModule() == Env().Linker().Search_CurModule() )
- {
- StreamLock slLink(200);
- if (referingCe()->SightLevel() == ary::idl::sl_Member)
- {
- slLink() << "#" << i_member;
- }
- else
- {
- slLink() << referingCe()->LocalName()
- << ".html#"
- << i_member;
- }
- CurOut()
- >> *new Html::Link(slLink().c_str())
- << i_member;
- return;
- }
-
- String sDummyMember;
- Env().Data().Get_CeText(aModule_, sName, sDummyMember, *referingCe());
- produce_FromStd(aModule_, sName, i_member, 0, exists_yes);
-}
-
-void
-HF_IdlTypeText::Produce_IndexLink( Xml::Element & o_out,
- const client & i_ce ) const
-{
- StringVector aModule_;
- String sCe;
- String sMember;
- csv::erase_container(aModule_);
-
- Out().Enter(o_out);
-
- Env().Data().Get_CeText(aModule_, sCe, sMember, i_ce);
- produce_IndexLink(aModule_, sCe, sMember, false);
-
- Out().Leave();
-}
-
-void
-HF_IdlTypeText::Produce_IndexOwnerLink( Xml::Element & o_out,
- const client & i_owner ) const
-{
- StringVector aModule_;
- String sCe;
- String sMember;
- csv::erase_container(aModule_);
-
- Out().Enter(o_out);
-
- if (i_owner.Owner().IsValid())
- {
- Env().Data().Get_CeText(aModule_, sCe, sMember, i_owner);
- produce_IndexLink(aModule_, sCe, sMember, true);
- }
- else
- { // global namespace:
-
- CurOut()
- << "."
- >> *new Html::Link("../module-ix.html")
- << "global namespace";
- }
-
-
- Out().Leave();
-}
-
-void
-HF_IdlTypeText::Produce_IndexSecondEntryLink( Xml::Element & o_out,
- const client & i_ce ) const
-{
- StringVector aModule_;
- String sCe;
- String sMember;
- csv::erase_container(aModule_);
-
- Out().Enter(o_out);
-
- Env().Data().Get_CeText(aModule_, sCe, sMember, i_ce);
- produce_IndexLink(aModule_, sCe, sMember, true);
- Out().Leave();
-}
-
-
-void
-HF_IdlTypeText::produce_FromStd( const StringVector & i_module,
- const String & i_ce,
- const String & i_member,
- int i_sequenceCount,
- E_Existence i_ceExists,
- const std::vector<ary::idl::Type_id> *
- i_templateParameters ) const
-{
- if (i_ceExists == exists_no)
- {
- if ( is_ExternLink(i_module) )
- {
- produce_ExternLink(i_module,i_ce,i_member,i_sequenceCount,i_templateParameters);
- return;
- }
- errorOut_UnresolvedLink(i_module, i_ce, i_member);
- }
-
- output::Node &
- rCeNode = Env().OutputTree().Provide_Node(i_module);
- output::Position
- aTargetPos(rCeNode);
- bool
- bShowModule = rCeNode != Env().CurPosition().RelatedNode()
- ? i_module.size() > 0
- : false;
- bool
- bUseMember = NOT i_member.empty();
- bool
- bLink2Module = i_ceExists == exists_yes;
- bool
- bLink2Ce = i_ceExists == exists_yes;
- bool
- bLink2Member = NOT Env().Is_MemberExistenceCheckRequired()
- AND i_ceExists == exists_yes;
- bool
- bHasCeOrName = NOT i_ce.empty();
-
- if (i_sequenceCount > 0)
- start_Sequence(i_sequenceCount);
-
- StreamLock aLink(300);
- StreamStr & rLink = aLink();
-
- // Produce output: module
- if (bShowModule)
- {
- int nMax = i_module.size() - 1;
- int nCount = 0;
- StringVector::const_iterator
- itm = i_module.begin();
- for ( ;
- nCount < nMax;
- ++itm, ++nCount )
- {
- CurOut() << "::" << *itm;
- }
-
- CurOut() << "::";
- if (bLink2Module)
- {
- aTargetPos.Set_File(output::ModuleFileName());
- Env().Linker().Get_Link2Position(rLink, aTargetPos);
- CurOut()
- >> *new Html::Link( rLink.c_str() )
- << *itm;
- rLink.reset();
- }
- else
- {
- CurOut() << *itm;
- }
-
- if (bHasCeOrName)
- CurOut() << "::";
- } // end if (bShowModule)
-
- // CodeEntity and member:
- aTargetPos.Set_File( rLink << i_ce << ".html" << c_str );
- rLink.reset();
-
- if (bHasCeOrName)
- {
- if (bLink2Ce)
- {
- Env().Linker().Get_Link2Position(rLink, aTargetPos);
- CurOut()
- >> *new Html::Link(rLink.c_str())
- << i_ce;
- rLink.reset();
- }
- else
- {
- CurOut() << i_ce;
- }
-
- if (i_templateParameters != 0)
- write_TemplateParameterList(*i_templateParameters);
-
- if (bUseMember)
- {
- CurOut() << "::";
-
- if (bLink2Member)
- {
- bool bFunction = strstr(i_member,"()") != 0;
- String sMember( i_member );
- if (bFunction)
- sMember.assign(i_member.c_str(), sMember.length()-2);
-
- Env().Linker().Get_Link2Member(rLink, aTargetPos, sMember);
- CurOut()
- >> *new Html::Link(rLink.c_str())
- << i_member;
- rLink.reset();
- }
- else
- {
- CurOut()
- << i_member;
- }
- } // endif (bUseMember)
- } // endif (bHasCeOrName)
-
- if (i_sequenceCount > 0)
- finish_Sequence(i_sequenceCount);
-}
-
-void
-HF_IdlTypeText::produce_BuiltIn( const String & i_type,
- int i_sequenceCount ) const
-{
- if (i_sequenceCount > 0)
- start_Sequence(i_sequenceCount);
- CurOut() << i_type;
- if (i_sequenceCount > 0)
- finish_Sequence(i_sequenceCount);
-}
-
-void
-HF_IdlTypeText::produce_IndexLink( const StringVector & i_module,
- const String & i_ce,
- const String & i_member,
- bool i_bIsOwner ) const
-{
- output::Node &
- rCeNode = Env().OutputTree().Provide_Node(i_module);
- output::Position
- aTargetPos(rCeNode);
- bool
- bShowModule = i_bIsOwner OR (i_module.size() > 0 AND i_ce.empty());
- bool
- bShowNonModule = NOT bShowModule OR (i_bIsOwner AND NOT i_ce.empty());
- bool
- bUseMember = NOT i_member.empty();
-
- StreamLock aLink(300);
- StreamStr & rLink = aLink();
-
- // Produce output: module
- if (bShowModule)
- {
- if (i_bIsOwner)
- {
- int nMax = bShowNonModule ? i_module.size() : i_module.size() - 1;
- int nCount = 0;
- for ( StringVector::const_iterator itm = i_module.begin();
- nCount < nMax;
- ++itm, ++nCount )
- {
- CurOut() << "::" << *itm;
- }
- CurOut() << ":: .";
- }
-
- if (NOT bShowNonModule)
- {
- aTargetPos.Set_File(output::ModuleFileName());
- Env().Linker().Get_Link2Position(rLink, aTargetPos);
- CurOut()
- >> *new Html::Link( rLink.c_str() )
- >> *new Html::Bold
- << i_module.back();
- rLink.reset();
- }
- } // end if (bShowModule)
-
- if (bShowNonModule)
- {
- aTargetPos.Set_File( rLink << i_ce << ".html" << c_str );
- rLink.reset();
-
- if (bUseMember)
- {
- bool bFunction = strstr(i_member,"()") != 0;
- String sMember( i_member );
- if (bFunction)
- sMember.assign(i_member.c_str(), sMember.length()-2);
- Env().Linker().Get_Link2Member(rLink, aTargetPos, sMember);
- CurOut()
- >> *new Html::Link(rLink.c_str())
- >> *new Html::Bold
- << i_member;
- rLink.reset();
- }
- else
- {
- Env().Linker().Get_Link2Position(rLink, aTargetPos);
- if (i_bIsOwner)
- {
- CurOut()
- >> *new Html::Link(rLink.c_str())
- << i_ce;
- }
- else
- {
- CurOut()
- >> *new Html::Link(rLink.c_str())
- >> *new Html::Bold
- << i_ce;
- }
- rLink.reset();
- }
- } // endif (bHasCeOrName)
-}
-
-int
-HF_IdlTypeText::count_Sequences( const char * i_sFullType ) const
-{
- int ret = 0;
- const char* pCount = i_sFullType;
-
- while((pCount = strstr(pCount,"sequence")) != 0)
- {
-
- pCount += sizeof("sequence"); // = strlen(sequence) + 1 for '<'.
- if ( *(pCount-1) == '\0' )
- {
- // SYNTAX_ERR
- return 0;
- }
- ret += 1;
- }
-
- return ret;
-}
-
-void
-HF_IdlTypeText::start_Sequence( int i_count ) const
-{
- csv_assert( i_count > 0 );
- for (int i = 0; i < i_count; ++i )
- {
- CurOut() << "sequence< ";
- }
-}
-
-void
-HF_IdlTypeText::finish_Sequence( int i_count ) const
-{
- csv_assert( i_count > 0 );
- for (int i = 0; i < i_count; ++i )
- {
- CurOut() << " >";
- }
-}
-
-void
-HF_IdlTypeText::errorOut_UnresolvedLink( const char * i_name ) const
-{
- StreamLock slFile(1000);
-
- // KORR
- // Handle links in cited documentation from other entities.
- slFile() << Env().CurPageCe_AsText();
- slFile().pop_back(5);
- slFile() << ".idl";
-
- // KORR
- // Retrieve, correct line number.
- TheMessages().Out_UnresolvedLink( i_name,
- slFile().c_str(),
- 0 );
-}
-
-void
-HF_IdlTypeText::errorOut_UnresolvedLink( const StringVector & i_module,
- const String & i_ce,
- const String & i_member ) const
-{
- StreamLock slName(500);
-
- if (i_module.size() > 0)
- {
- slName().operator_join(i_module.begin(), i_module.end(), "::");
- if (NOT i_ce.empty())
- slName() << "::";
- }
- if (NOT i_ce.empty())
- {
- slName() << i_ce;
- if (NOT i_member.empty())
- slName() << "::" << i_member;
- }
- errorOut_UnresolvedLink(slName().c_str());
-}
-
-bool
-HF_IdlTypeText::is_ExternLink( const StringVector & i_module ) const
-{
- const autodoc::CommandLine &
- rCmdLine = autodoc::CommandLine::Get_();
- uintt nExtNspLength = rCmdLine.ExternNamespace().length();
- if (nExtNspLength == 0)
- return false;
-
- StreamStr s(1000);
- s << "::";
- s.operator_join( i_module.begin(),
- i_module.end(),
- "::" );
-
- if (s.length() < nExtNspLength)
- return false;
- return ( strncmp( rCmdLine.ExternNamespace().c_str(),
- s.c_str(),
- nExtNspLength ) == 0 );
-}
-
-void
-HF_IdlTypeText::produce_ExternLink( const StringVector & i_module,
- const String & i_ce,
- const String & i_member,
- int i_sequenceCount,
- const std::vector<ary::idl::Type_id> *
- i_templateParameters ) const
-{
- // KORR
- // Look again at this code and take some time.
-
- StreamLock aLink(1000);
- StreamStr & rLink = aLink();
-
- rLink << autodoc::CommandLine::Get_().ExternRoot();
- rLink.operator_join( i_module.begin(),
- i_module.end(),
- "/" );
- rLink << '/'
- << i_ce
- << ".html";
- if (i_member.length() > 0)
- rLink << "/#" << i_member;
-
- if (i_sequenceCount > 0)
- start_Sequence(i_sequenceCount);
-
- // module
- int nMax = i_module.size();
- int nCount = 0;
- StringVector::const_iterator
- itm = i_module.begin();
- for ( ;
- nCount < nMax;
- ++itm, ++nCount )
- {
- CurOut() << "::" << *itm;
- }
- CurOut() << "::";
-
-
- // CodeEntity
- if (i_member.length() == 0)
- {
- CurOut()
- >> *new Html::Link(rLink.c_str())
- << i_ce;
- }
- else
- {
- CurOut()
- << i_ce;
- }
-
- if (i_templateParameters != 0)
- write_TemplateParameterList(*i_templateParameters);
-
- // Member
- if (i_member.length() > 0)
- {
- CurOut()
- >> *new Html::Link(rLink.c_str())
- << i_member;
- }
-
- if (i_sequenceCount > 0)
- finish_Sequence(i_sequenceCount);
-}
-
-void
-HF_IdlTypeText::write_TemplateParameterList(
- const std::vector<ary::idl::Type_id> & i_templateParameters ) const
-{
- if (i_templateParameters.empty())
- return;
-
- HF_IdlTypeText
- aTemplateParamWriter(Env(), CurOut(), pReferingCe);
- CurOut() << "< ";
- std::vector<ary::idl::Type_id>::const_iterator
- it = i_templateParameters.begin();
- aTemplateParamWriter.Produce_byData(*it);
- for ( ++it; it != i_templateParameters.end(); ++it )
- {
- CurOut() << ", ";
- aTemplateParamWriter.Produce_byData(*it);
- }
- CurOut() << " >";
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/display/idl/hfi_typetext.hxx b/autodoc/source/display/idl/hfi_typetext.hxx
deleted file mode 100644
index ea9ca0761263..000000000000
--- a/autodoc/source/display/idl/hfi_typetext.hxx
+++ /dev/null
@@ -1,156 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_DISPLAY_HFI_TYPETEXT_HXX
-#define ADC_DISPLAY_HFI_TYPETEXT_HXX
-
-
-
-// USED SERVICES
- // BASE CLASSES
-#include "hi_factory.hxx"
- // COMPONENTS
- // PARAMETERS
-
-namespace ary
-{
-namespace idl
-{
- class Module;
-}
-}
-
-class HF_IdlTypeText : public HtmlFactory_Idl
-{
- public:
- enum E_Index { use_for_javacompatible_index };
-
- HF_IdlTypeText(
- Environment & io_rEnv,
- Xml::Element & o_rOut,
- const client * i_pScopeGivingCe = 0 );
- HF_IdlTypeText(
- Environment & io_rEnv,
- E_Index e );
- virtual ~HF_IdlTypeText();
-
- void Produce_byData(
- ary::idl::Type_id i_idType ) const;
- void Produce_byData(
- ary::idl::Ce_id i_idCe ) const;
- void Produce_byData(
- const String & i_sFullName ) const;
- void Produce_LinkInDocu(
- const String & i_scope,
- const String & i_name,
- const String & i_member ) const;
- void Produce_LocalLinkInDocu(
- const String & i_member ) const;
-
- /// Produce the first link for Java-help understood index entries.
- void Produce_IndexLink(
- Xml::Element & o_out,
- const client & i_ce ) const;
- /** Produce the second link for Java-help understood index entries.
- For members this will be a link to their owner (this function is
- used), else see @->Produce_IndexSecondEntryLink();
- */
- void Produce_IndexOwnerLink(
- Xml::Element & o_out,
- const client & i_owner ) const;
- /** Produce the second link for Java-help understood index entries.
- For non- members this will again be a link to to the entry itself
- (this function is used), else see @->Produce_IndexOwnerLink();
- */
- void Produce_IndexSecondEntryLink(
- Xml::Element & o_out,
- const client & i_ce ) const;
- private:
- // Locals
- enum E_Existence
- {
- exists_dontknow,
- exists_yes,
- exists_no
- };
-
- void produce_FromStd(
- const StringVector &
- i_module,
- const String & i_ce,
- const String & i_member,
- int i_sequenceCount,
- E_Existence i_ceExists,
- const std::vector<ary::idl::Type_id> *
- i_templateParameters = 0 ) const;
- void produce_BuiltIn(
- const String & i_type,
- int i_sequenceCount ) const;
- void produce_IndexLink(
- const StringVector &
- i_module,
- const String & i_ce,
- const String & i_member,
- bool i_bIsOwner ) const;
- int count_Sequences(
- const char * i_sFullType ) const;
- void start_Sequence(
- int i_count ) const;
- void finish_Sequence(
- int i_count ) const;
- void errorOut_UnresolvedLink(
- const char * i_name ) const;
- void errorOut_UnresolvedLink(
- const StringVector &
- i_module,
- const String & i_ce,
- const String & i_member ) const;
- bool is_ExternLink(
- const StringVector &
- i_module ) const;
- void produce_ExternLink(
- const StringVector &
- i_module,
- const String & i_ce,
- const String & i_member,
- int i_sequenceCount,
- const std::vector<ary::idl::Type_id> *
- i_templateParameters ) const;
- void write_TemplateParameterList(
- const std::vector<ary::idl::Type_id> &
- i_templateParameters ) const;
- const ary::idl::Module *
- referingModule() const;
- const client * referingCe() const;
-
- // DATA
- mutable const client *
- pReferingCe;
-};
-
-
-
-// IMPLEMENTATION
-
-
-
-#endif
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/display/idl/hfi_xrefpage.cxx b/autodoc/source/display/idl/hfi_xrefpage.cxx
deleted file mode 100644
index 5abfe32a7fdf..000000000000
--- a/autodoc/source/display/idl/hfi_xrefpage.cxx
+++ /dev/null
@@ -1,267 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include "hfi_xrefpage.hxx"
-
-
-// NOT FULLY DEFINED SERVICES
-#include <ary/idl/i_ce.hxx>
-#include <ary/idl/i_gate.hxx>
-#include <ary/idl/ip_ce.hxx>
-#include <toolkit/hf_title.hxx>
-#include "hfi_navibar.hxx"
-#include "hfi_typetext.hxx"
-#include "hi_env.hxx"
-
-
-namespace
-{
-
-const String
- C_sTitleStart("uses of ");
-const String
- C_sCRLF("\n");
-const String
- C_sDevMan("References in Developers Guide");
-
-} // anonymous namespace
-
-
-
-HF_IdlXrefs::HF_IdlXrefs( Environment & io_rEnv,
- Xml::Element & o_rOut,
- const String & i_prefix,
- const client & i_ce )
- : HtmlFactory_Idl(io_rEnv, &o_rOut),
- rContentDirectory(*new Html::Paragraph),
- pClient(&i_ce)
-{
- produce_Main(i_prefix, i_ce);
-}
-
-HF_IdlXrefs::~HF_IdlXrefs()
-{
-}
-
-void
-HF_IdlXrefs::Write_ManualLinks( const client & i_ce ) const
-{
- const StringVector &
- rLinks2Refs = i_ce.Secondaries().Links2RefsInManual();
- if ( rLinks2Refs.empty() )
- {
- rContentDirectory
- << C_sDevMan
- << new Html::LineBreak
- << C_sCRLF;
- return;
- }
-
-
- rContentDirectory
- >> *new Html::Link("#devmanrefs")
- << C_sDevMan
- << new Html::LineBreak
- << C_sCRLF;
-
- HF_SubTitleTable
- aList(CurOut(), "devmanrefs", C_sDevMan, 1);
- Xml::Element &
- rOutCell = aList.Add_Row() >>* new Html::TableCell;
-
- csv_assert(rLinks2Refs.size() % 2 == 0);
- for ( StringVector::const_iterator it = rLinks2Refs.begin();
- it != rLinks2Refs.end();
- ++it )
- {
- Xml::Element &
- rLink = rOutCell >> *new Html::Link( Env().Link2Manual(*it));
- if ( (*(it+1)).empty() )
-
- // HACK KORR_FUTURE
- // Research what happens with manual links which contain normal characters
- // in non-utf-8 texts. And research, why utfF-8 does not work here.
- rLink << new Xml::XmlCode(*it);
- else
- // HACK KORR_FUTURE, see above.
- rLink << new Xml::XmlCode( *(it+1) );
- rOutCell
- << new Html::LineBreak
- << C_sCRLF;
- ++it;
- } // end for
-}
-
-void
-HF_IdlXrefs::Produce_List( const char * i_title,
- const char * i_label,
- ce_list & i_iterator ) const
-{
- if (NOT i_iterator)
- {
- rContentDirectory
- << i_title
- << new Html::LineBreak
- << C_sCRLF;
- return;
- }
-
- csv_assert(*i_label == '#');
-
- rContentDirectory
- >> *new Html::Link(i_label)
- << i_title
- << new Html::LineBreak
- << C_sCRLF;
-
- HF_SubTitleTable
- aList(CurOut(), i_label+1, i_title, 1);
- Xml::Element &
- rOutCell = aList.Add_Row() >>* new Html::TableCell;
- HF_IdlTypeText
- aTypeWriter(Env(), rOutCell, pClient);
- for ( ce_list & it = i_iterator; it; ++it )
- {
- aTypeWriter.Produce_byData(*it);
- rOutCell << new Html::LineBreak;
- } // end for
-}
-
-void
-HF_IdlXrefs::Produce_Tree( const char * i_title,
- const char * i_label,
- const client & i_ce,
- F_GET_SUBLIST i_sublistcreator ) const
-{
- dyn_ce_list pResult;
- (*i_sublistcreator)(pResult, i_ce);
-
- if (NOT (*pResult).operator bool())
- {
- rContentDirectory
- << i_title
- << new Html::LineBreak
- << C_sCRLF;
- return;
- }
-
- csv_assert(*i_label == '#');
-
- rContentDirectory
- >> *new Html::Link(i_label)
- << i_title
- << new Html::LineBreak
- << C_sCRLF;
-
- HF_SubTitleTable
- aList(CurOut(), i_label+1, i_title, 1);
- Xml::Element &
- rOut = aList.Add_Row()
- >>* new Html::TableCell
- >> *new csi::xml::AnElement("pre")
- << new csi::html::StyleAttr("font-family:monospace;");
-
- recursive_make_ListInTree( rOut,
- 0,
- i_ce,
- *pResult,
- i_sublistcreator );
-}
-
-void
-HF_IdlXrefs::produce_Main( const String & i_prefix,
- const client & i_ce ) const
-{
- make_Navibar(i_ce);
-
- HF_TitleTable
- aTitle(CurOut());
- StreamLock sl(200);
- aTitle.Produce_Title( sl()
- << C_sTitleStart
- << i_prefix
- << " "
- << i_ce.LocalName()
- << c_str );
-
- aTitle.Add_Row() << &rContentDirectory;
- sl().reset();
- rContentDirectory
- >> *new Html::Link( sl() << i_ce.LocalName()
- << ".html"
- << c_str )
- >> *new Html::Bold
- << "back to "
- << i_prefix
- << " "
- << i_ce.LocalName();
- rContentDirectory
- << new Html::LineBreak
- << new Html::LineBreak
- << C_sCRLF;
-
- CurOut() << new Html::HorizontalLine();
-}
-
-void
-HF_IdlXrefs::make_Navibar( const client & i_ce ) const
-{
- HF_IdlNavigationBar
- aNaviBar(Env(), CurOut());
- aNaviBar.Produce_CeXrefsMainRow(i_ce);
- CurOut() << new Html::HorizontalLine();
-}
-
-void
-HF_IdlXrefs::recursive_make_ListInTree( Xml::Element & o_rDisplay,
- uintt i_level,
- const client & i_ce,
- ce_list & i_iterator,
- F_GET_SUBLIST i_sublistcreator ) const
-{
- const char * sLevelIndentation = " ";
-
- HF_IdlTypeText
- aTypeWriter(Env(), o_rDisplay, &i_ce);
- for ( ; i_iterator.operator bool(); ++i_iterator )
- {
- for (uintt i = 0; i < i_level; ++i)
- {
- o_rDisplay << sLevelIndentation;
- } // end for
-
- aTypeWriter.Produce_byData(*i_iterator);
- o_rDisplay << C_sCRLF;
-
- dyn_ce_list pResult;
- const client & rCe = Env().Gate().Ces().Find_Ce(*i_iterator);
- (*i_sublistcreator)(pResult, rCe);
- if ( (*pResult).operator bool() )
- {
- recursive_make_ListInTree( o_rDisplay,
- i_level + 1,
- rCe,
- *pResult,
- i_sublistcreator );
- }
- } // end for
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/display/idl/hfi_xrefpage.hxx b/autodoc/source/display/idl/hfi_xrefpage.hxx
deleted file mode 100644
index 874cca05b021..000000000000
--- a/autodoc/source/display/idl/hfi_xrefpage.hxx
+++ /dev/null
@@ -1,98 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_DISPLAY_HFI_XREFPAGE_HXX
-#define ADC_DISPLAY_HFI_XREFPAGE_HXX
-
-
-
-// USED SERVICES
- // BASE CLASSES
-#include "hi_factory.hxx"
- // COMPONENTS
- // PARAMETERS
-
-
-class HF_IdlXrefs : public HtmlFactory_Idl
-{
- public:
- typedef void (*F_GET_SUBLIST)(dyn_ce_list&, const client&);
-
- HF_IdlXrefs(
- Environment & io_rEnv,
- Xml::Element & o_rOut,
- const String & i_prefix,
- const client & i_ce);
- virtual ~HF_IdlXrefs();
-
- /** @descr
- Only lists which are tried to be produced by Produce_List() or
- Produce_Tree(), will occur in the content directory of the page.
- They will have links, if the list or tree has at least one element,
- else the list is mentioned in the directory without link.
-
- @param i_label [*i_label == '#']
- */
- void Produce_List(
- const char * i_title,
- const char * i_label,
- ce_list & i_iterator ) const;
- void Write_ManualLinks(
- const client & i_ce ) const;
- /** @descr
- Only lists which are tried to be produced by Produce_List() or
- Produce_Tree(), will occur in the content directory of the page.
- They will have links, if the list or tree has at least one element,
- else the list is mentioned in the directory without link.
-
- @param i_label [*i_label == '#']
- */
- void Produce_Tree(
- const char * i_title,
- const char * i_label,
- const client & i_ce,
- F_GET_SUBLIST i_sublistcreator ) const;
-
- private:
- // Locals
- void produce_Main(
- const String & i_prefix,
- const client & i_ce ) const;
- void make_Navibar(
- const client & i_ce ) const;
- /// @return true if there are any elements in sub lists.
- void recursive_make_ListInTree(
- Xml::Element & o_rDisplay,
- uintt i_level, /// 0 is highest
- const client & i_ce,
- ce_list & i_iterator,
- F_GET_SUBLIST i_sublistcreator ) const;
-
- // DATA
- Xml::Element & rContentDirectory;
- const client * pClient;
-};
-
-
-
-// IMPLEMENTATION
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/display/idl/hi_ary.cxx b/autodoc/source/display/idl/hi_ary.cxx
deleted file mode 100644
index cb4cae2a5700..000000000000
--- a/autodoc/source/display/idl/hi_ary.cxx
+++ /dev/null
@@ -1,264 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include "hi_ary.hxx"
-
-
-// NOT FULLY DEFINED SERVICES
-#include <cosv/ploc_dir.hxx>
-#include <ary/idl/i_gate.hxx>
-#include <ary/idl/i_module.hxx>
-#include <ary/idl/i_ce.hxx>
-#include <ary/idl/i_type.hxx>
-#include <ary/idl/ip_ce.hxx>
-#include <ary/idl/ip_type.hxx>
-
-
-inline const ary::idl::Gate &
-AryAccess::gate() const
- { return rGate; }
-
-inline const ary::idl::CePilot &
-AryAccess::ces() const
- { return rGate.Ces(); }
-
-inline const ary::idl::TypePilot &
-AryAccess::types() const
- { return rGate.Types(); }
-
-inline const ary::idl::Module *
-AryAccess::find_SubModule( const ary::idl::Module & i_parent,
- const String & i_name ) const
-{
- ary::idl::Ce_id
- nModule = i_parent.Search_Name(i_name);
- return ces().Search_Module(nModule);
-}
-
-bool
-AryAccess::nextName( const char * & io_TextPtr,
- String & o_name ) const
-{
- if ( strncmp(io_TextPtr,"::", 2) == 0 )
- io_TextPtr += 2;
-
- const char * pEnd = strchr(io_TextPtr,':');
- size_t nLen = pEnd == 0
- ? strlen(io_TextPtr)
- : pEnd - io_TextPtr;
- o_name.assign(io_TextPtr, nLen);
- io_TextPtr += nLen;
-
- return nLen > 0;
-}
-
-
-
-AryAccess::AryAccess( const ary::idl::Gate & i_rGate )
- : rGate(i_rGate)
-{
-}
-
-const ary::idl::Module &
-AryAccess::GlobalNamespace() const
-{
- return ces().GlobalNamespace();
-}
-
-const ary::idl::Module &
-AryAccess::Find_Module( ary::idl::Ce_id i_ce ) const
-{
- return ces().Find_Module(i_ce);
-}
-
-
-const ary::idl::CodeEntity &
-AryAccess::Find_Ce( ary::idl::Ce_id i_ce ) const
-{
- return ces().Find_Ce(i_ce);
-}
-
-const ary::idl::Type &
-AryAccess::Find_Type( ary::idl::Type_id i_type ) const
-{
- return types().Find_Type(i_type);
-}
-
-ary::idl::Ce_id
-AryAccess::CeFromType( ary::idl::Type_id i_type ) const
-{
- return types().Search_CeRelatedTo(i_type);
-}
-
-bool
-AryAccess::IsBuiltInOrRelated( const ary::idl::Type & i_type ) const
-{
- return types().IsBuiltInOrRelated(i_type);
-}
-
-bool
-AryAccess::Search_Ce( StringVector & o_module,
- String & o_mainEntity,
- String & o_memberEntity,
- const char * i_sText,
- const ary::idl::Module & i_referingScope ) const
-{
- o_module.erase(o_module.begin(),o_module.end());
- o_mainEntity = String::Null_();
- o_memberEntity = String::Null_();
-
- const ary::idl::Module * pModule = 0;
-
- if ( strncmp(i_sText, "::", 2) == 0
- OR strncmp(i_sText, "com::sun::star", 14) == 0 )
- pModule = &GlobalNamespace();
- else
- {
- pModule = &i_referingScope;
- ces().Get_Text(o_module, o_mainEntity, o_memberEntity, *pModule);
- }
-
- const char * pNext = i_sText;
- String sNextName;
-
- // Find Module:
- while ( nextName(pNext, sNextName) )
- {
- const ary::idl::Module *
- pSub = find_SubModule(*pModule, sNextName);
- if (pSub != 0)
- {
- pModule = pSub;
- o_module.push_back(sNextName);
- }
- else
- break;
- }
-
- // Find main CodeEntity:
- if ( sNextName.length() == 0 )
- return true;
- const ary::idl::Ce_id
- nCe = pModule->Search_Name(sNextName);
- if (NOT nCe.IsValid())
- return false;
- o_mainEntity = sNextName;
-
- // Find member:
- if ( *pNext == 0 )
- return true;
- nextName(pNext, o_memberEntity);
- if (strchr(o_memberEntity,':') != 0)
- return false; // This must not happen in IDL
-
- return true;
-}
-
-bool
-AryAccess::Search_CesModule( StringVector & o_module,
- const String & i_scope,
- const String & i_ce,
- const ary::idl::Module & i_referingScope ) const
-{
- o_module.erase(o_module.begin(),o_module.end());
-
- const ary::idl::Module *
- pModule = 0;
-
- if ( strncmp(i_scope, "::", 2) == 0
- OR strncmp(i_scope, "com::sun::star", 14) == 0 )
- pModule = &GlobalNamespace();
- else
- {
- pModule = &i_referingScope;
- static String Dummy1;
- static String Dummy2;
- ces().Get_Text(o_module, Dummy1, Dummy2, *pModule);
- }
-
- const char * pNext = i_scope;
- String sNextName;
-
- // Find Module:
- while ( nextName(pNext, sNextName) )
- {
- const ary::idl::Module *
- pSub = find_SubModule(*pModule, sNextName);
- if (pSub != 0)
- {
- pModule = pSub;
- o_module.push_back(sNextName);
- }
- else
- return false;
- } // end while
- return pModule->Search_Name(i_ce).IsValid();
-}
-
-const ary::idl::Module *
-AryAccess::Search_Module( const StringVector & i_nameChain ) const
-{
- const ary::idl::Module * ret =
- &GlobalNamespace();
- for ( StringVector::const_iterator it = i_nameChain.begin();
- it != i_nameChain.end();
- ++it )
- {
- ret = find_SubModule(*ret, *it);
- if (ret == 0)
- break;
- } // end for
- return ret;
-}
-
-void
-AryAccess::Get_CeText( StringVector & o_module,
- String & o_ce,
- String & o_member,
- const ary::idl::CodeEntity & i_ce ) const
-{
- ces().Get_Text(o_module, o_ce, o_member, i_ce);
-}
-
-void
-AryAccess::Get_TypeText( StringVector & o_module,
- String & o_sCe,
- ary::idl::Ce_id & o_nCe,
- int & o_sequenceCount,
- const ary::idl::Type & i_type ) const
-{
- i_type.Get_Text(o_module, o_sCe, o_nCe, o_sequenceCount, gate());
-}
-
-void
-AryAccess::Get_IndexData( std::vector<ary::idl::Ce_id> & o_data,
- ary::idl::alphabetical_index::E_Letter i_letter ) const
-{
- rGate.Ces().Get_AlphabeticalIndex(o_data, i_letter);
-}
-
-
-const ary::idl::CePilot &
-AryAccess::Ces() const
-{
- return rGate.Ces();
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/display/idl/hi_ary.hxx b/autodoc/source/display/idl/hi_ary.hxx
deleted file mode 100644
index 636e35c7fe2b..000000000000
--- a/autodoc/source/display/idl/hi_ary.hxx
+++ /dev/null
@@ -1,151 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_DISPLAY_HI_ARY_HXX
-#define ADC_DISPLAY_HI_ARY_HXX
-
-
-// USED SERVICES
- // BASE CLASSES
- // COMPONENTS
-#include <ary/idl/i_types4idl.hxx>
- // PARAMETERS
-#include <ary/idl/i_gate.hxx>
-#include <ary/doc/d_docu.hxx>
-#include <ary/doc/d_oldidldocu.hxx>
-
-
-namespace ary
-{
-namespace idl
-{
- class Module;
- class Gate;
- class CePilot;
- class TypePilot;
-}
-}
-
-
-
-
-inline const ary::doc::OldIdlDocu *
-Get_IdlDocu(const ary::doc::Documentation & i_doc)
-{
- return dynamic_cast< const ary::doc::OldIdlDocu* >(i_doc.Data());
-}
-
-
-
-
-
-/** A helper class to wrap the access to data in the Autodoc Repository.
-*/
-class AryAccess
-{
- public:
- // LIFECYCLE
- AryAccess(
- const ary::idl::Gate &
- i_rGate );
- // INQUIRY
- const ary::idl::Module &
- GlobalNamespace() const;
- const ary::idl::Module &
- Find_Module(
- ary::idl::Ce_id i_ce ) const;
- const ary::idl::CodeEntity &
- Find_Ce(
- ary::idl::Ce_id i_ce ) const;
- const ary::idl::Type &
- Find_Type(
- ary::idl::Type_id i_type ) const;
- ary::idl::Ce_id CeFromType(
- ary::idl::Type_id i_type ) const;
- bool IsBuiltInOrRelated(
- const ary::idl::Type &
- i_type ) const;
- bool Search_Ce(
- StringVector & o_module,
- String & o_mainEntity,
- String & o_memberEntity,
- const char * i_sText,
- const ary::idl::Module &
- i_referingScope ) const;
- bool Search_CesModule(
- StringVector & o_module,
- const String & i_scope,
- const String & i_ce,
- const ary::idl::Module &
- i_referingScope ) const;
- const ary::idl::Module *
- Search_Module(
- const StringVector &
- i_nameChain ) const;
-
- void Get_CeText(
- StringVector & o_module,
- String & o_ce,
- String & o_member,
- const ary::idl::CodeEntity &
- i_ce ) const;
- void Get_TypeText(
- StringVector & o_module,
- String & o_sCe,
- ary::idl::Ce_id & o_nCe,
- int & o_sequenceCount,
- const ary::idl::Type &
- i_type ) const;
- void Get_IndexData(
- std::vector<ary::idl::Ce_id> &
- o_data,
- ary::idl::alphabetical_index::E_Letter
- i_letter ) const;
-
- const ary::idl::CePilot &
- Ces() const;
- private:
- const ary::idl::Module *
- find_SubModule(
- const ary::idl::Module &
- i_parent,
- const String & i_name ) const;
-
- /// Gets "::"-separated names out of a string.
- bool nextName(
- const char * & io_TextPtr,
- String & o_name ) const;
-
-
- const ary::idl::Gate &
- gate() const;
- const ary::idl::CePilot &
- ces() const;
- const ary::idl::TypePilot &
- types() const;
- // DATA
- const ary::idl::Gate &
- rGate;
-};
-
-
-#endif
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/display/idl/hi_display.cxx b/autodoc/source/display/idl/hi_display.cxx
deleted file mode 100644
index fc1d93088be2..000000000000
--- a/autodoc/source/display/idl/hi_display.cxx
+++ /dev/null
@@ -1,191 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <idl/hi_display.hxx>
-
-
-// NOT FULLY DEFINED SERVICES
-#include <cosv/file.hxx>
-#include <ary/idl/i_ce.hxx>
-#include <ary/idl/i_module.hxx>
-#include <ary/getncast.hxx>
-#include <toolkit/out_tree.hxx>
-#include <cfrstd.hxx>
-#include "hi_ary.hxx"
-#include "hi_env.hxx"
-#include "hi_main.hxx"
-
-
-extern const String C_sCssFilename_Idl;
-
-
-inline bool
-HtmlDisplay_Idl::IsModule( const ary::idl::CodeEntity & i_ce ) const
-{
- return ary::is_type<ary::idl::Module>(i_ce);
-}
-
-inline const ary::idl::Module &
-HtmlDisplay_Idl::Module_Cast( const ary::idl::CodeEntity & i_ce ) const
-{
- return ary::ary_cast<ary::idl::Module>(i_ce);
-}
-
-
-
-
-HtmlDisplay_Idl::HtmlDisplay_Idl()
- : pCurPageEnv(),
- pMainDisplay()
-{
-}
-
-HtmlDisplay_Idl::~HtmlDisplay_Idl()
-{
-}
-
-void
-HtmlDisplay_Idl::do_Run( const char * i_sOutputDirectory,
- const ary::idl::Gate & i_rAryGate,
- const display::CorporateFrame & i_rLayout )
-{
- SetRunData( i_sOutputDirectory, i_rAryGate, i_rLayout );
-
- Create_StartFile();
- Create_CssFile();
- Create_FilesInNameTree();
- Create_IndexFiles();
- Create_FilesInProjectTree();
- Create_PackageList();
- Create_HelpFile();
-}
-
-void
-HtmlDisplay_Idl::SetRunData( const char * i_sOutputDirectory,
- const ary::idl::Gate & i_rAryGate,
- const display::CorporateFrame & i_rLayout )
-{
- csv::ploc::Path aOutputDir( i_sOutputDirectory, true );
- pCurPageEnv = new HtmlEnvironment_Idl( aOutputDir, i_rAryGate, i_rLayout );
- pMainDisplay = new MainDisplay_Idl(*pCurPageEnv);
-}
-
-void
-HtmlDisplay_Idl::Create_StartFile()
-{
-}
-
-void
-HtmlDisplay_Idl::Create_FilesInNameTree()
-{
- Cout() << "\nCreate files in subtree namespaces ..." << Endl();
-
- const ary::idl::Module &
- rGlobalNamespace = pCurPageEnv->Data().GlobalNamespace();
- pCurPageEnv->Goto_Directory( pCurPageEnv->OutputTree().NamesRoot(), true );
-
- RecursiveDisplay_Module(rGlobalNamespace);
-
- Cout() << "... done." << Endl();
-}
-
-void
-HtmlDisplay_Idl::Create_IndexFiles()
-{
- Cout() << "\nCreate files in subtree index ..." << Endl();
- pCurPageEnv->Goto_Directory( pCurPageEnv->OutputTree().IndexRoot(), true );
- pMainDisplay->WriteGlobalIndices();
- Cout() << "... done.\n" << Endl();
-}
-
-typedef ary::Dyn_StdConstIterator<ary::idl::Ce_id> Dyn_CeIterator;
-typedef ary::StdConstIterator<ary::idl::Ce_id> CeIterator;
-
-void
-HtmlDisplay_Idl::RecursiveDisplay_Module( const ary::idl::Module & i_module )
-{
- i_module.Accept(*pMainDisplay);
-
- Dyn_CeIterator
- aMembers;
- i_module.Get_Names(aMembers);
-
- for ( CeIterator & iter = *aMembers;
- iter;
- ++iter )
- {
- const ary::idl::CodeEntity &
- rCe = pCurPageEnv->Data().Find_Ce(*iter);
-
- if ( NOT IsModule(rCe) )
- rCe.Accept(*pMainDisplay);
- else
- {
- pCurPageEnv->Goto_DirectoryLevelDown( rCe.LocalName(), true );
- RecursiveDisplay_Module( Module_Cast(rCe) );
- pCurPageEnv->Goto_DirectoryLevelUp();
- }
- } // end for
-}
-
-void
-HtmlDisplay_Idl::Create_FilesInProjectTree()
-{
-}
-
-void
-HtmlDisplay_Idl::Create_PackageList()
-{
-}
-
-void
-HtmlDisplay_Idl::Create_HelpFile()
-{
-}
-
-void
-HtmlDisplay_Idl::Create_CssFile()
-{
- Cout() << "\nCreate css file ..." << Endl();
-
- pCurPageEnv->Goto_Directory( pCurPageEnv->OutputTree().Root(), true );
- pCurPageEnv->Set_CurFile( C_sCssFilename_Idl );
-
- StreamLock
- slCurFilePath(700);
- pCurPageEnv->Get_CurFilePath(slCurFilePath());
-
- csv::File
- aCssFile(slCurFilePath().c_str(), csv::CFM_CREATE);
- csv::OpenCloseGuard
- aOpenGuard(aCssFile);
- if (NOT aOpenGuard)
- {
- Cerr() << "Can't create file " << slCurFilePath().c_str() << "." << Endl();
- return;
- }
-
- aCssFile.write("/* Autodoc css file for IDL documentation */\n\n\n");
- aCssFile.write(pCurPageEnv->Layout().CssStyle());
- aCssFile.write("\n\n\n");
- aCssFile.write(pCurPageEnv->Layout().CssStylesExplanation());
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/display/idl/hi_env.cxx b/autodoc/source/display/idl/hi_env.cxx
deleted file mode 100644
index 73c798c7ae25..000000000000
--- a/autodoc/source/display/idl/hi_env.cxx
+++ /dev/null
@@ -1,193 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include "hi_env.hxx"
-
-
-// NOT FULLY DEFINED SERVICES
-#include <cosv/ploc_dir.hxx>
-#include <cfrstd.hxx>
-#include <toolkit/out_tree.hxx>
-#include "hi_ary.hxx"
-#include "hi_linkhelper.hxx"
-
-
-
-const String C_s_index_files("index-files");
-
-const String C_sUseFileSuffix("-use.html");
-const String C_IndexA_FileName("index-1.html");
-
-
-HtmlEnvironment_Idl::HtmlEnvironment_Idl( const csv::ploc::Path & i_rOutputDir,
- const ary::idl::Gate & i_rGate,
- const display::CorporateFrame & i_rLayout )
- : aOutputRoot(i_rOutputDir),
- pData(new AryAccess(i_rGate)),
- pGate(&i_rGate),
- pOutputTree(new output::Tree),
- aCurPosition(pOutputTree->Root()),
- pCurPageCe(0),
- pLayout(&i_rLayout),
- pLinker()
-{
- StringVector aHelp;
- pOutputTree->Set_NamesRoot(aHelp);
-
- aHelp.push_back(output::IndexFilesDirName());
- pOutputTree->Set_IndexRoot(aHelp);
-
- (*aHelp.begin()) = String("com");
- aHelp.push_back(String("sun"));
- aHelp.push_back(String("star"));
- pOutputTree->Set_Overview(aHelp, output::ModuleFileName() );
-
- pLinker = new LinkHelper(*this);
-}
-
-HtmlEnvironment_Idl::~HtmlEnvironment_Idl()
-{
-}
-
-namespace
-{
-StringVector G_aChain;
-}
-
-void
-HtmlEnvironment_Idl::Goto_Directory( output::Position i_pos,
- bool i_bCreateDirectoryIfNecessary )
-{
- aCurPosition = i_pos;
- aCurPath = aOutputRoot.MyPath();
-
- aCurPosition.Get_Chain(G_aChain);
- for ( StringVector::const_iterator it = G_aChain.begin();
- it != G_aChain.end();
- ++it )
- {
- aCurPath.DirChain() += *it;
- }
-
- if (i_bCreateDirectoryIfNecessary)
- create_Directory(aCurPath);
-}
-
-void
-HtmlEnvironment_Idl::Goto_DirectoryLevelDown( const String & i_subDirName,
- bool i_bCreateDirectoryIfNecessary )
-{
- aCurPosition +=(i_subDirName);
-
- aCurPath.SetFile(String::Null_());
- aCurPath.DirChain() += i_subDirName;
-
- if (i_bCreateDirectoryIfNecessary)
- create_Directory(aCurPath);
-}
-
-void
-HtmlEnvironment_Idl::Goto_DirectoryLevelUp()
-{
- aCurPosition -= 1;
-
- aCurPath.SetFile(String::Null_());
- aCurPath.DirChain() -= 1;
-}
-
-void
-HtmlEnvironment_Idl::Set_CurFile( const String & i_fileName )
-{
- aCurPath.SetFile(i_fileName);
-}
-
-void
-HtmlEnvironment_Idl::create_Directory( const csv::ploc::Path & i_path )
-
-{
- csv::ploc::Directory aCurDir(i_path);
- if (NOT aCurDir.Exists())
- aCurDir.PhysicalCreate();
-}
-
-inline bool
-IsAbsoluteLink(const char * i_link)
-{
- const char
- shttp[] = "http://";
- const char
- sfile[] = "file://";
- const int
- csize = sizeof shttp - 1;
- csv_assert(csize == sizeof sfile - 1);
-
- return strncmp(i_link,shttp,csize) == 0
- OR strncmp(i_link,sfile,csize) == 0;
-}
-
-
-const char *
-HtmlEnvironment_Idl::Link2Manual( const String & i_link ) const
-{
- if ( IsAbsoluteLink(i_link.c_str()) )
- return i_link;
-
- static StreamStr aLink_(200);
- aLink_.reset();
- String
- sDvgRoot(pLayout->DevelopersGuideHtmlRoot());
- if (sDvgRoot.empty())
- sDvgRoot = "../DevelopersGuide";
-
- // KORR_FUTURE
- // Enhance performance by calculating this only one time:
- if ( NOT IsAbsoluteLink(sDvgRoot.c_str()) )
- aCurPosition.Get_LinkToRoot(aLink_);
- aLink_ << sDvgRoot
- << "/"
- << i_link;
- return aLink_.c_str();
-}
-
-String
-HtmlEnvironment_Idl::CurPageCe_AsText() const
-{
- return CurPageCe_AsFile(".html");
-}
-
-String
-HtmlEnvironment_Idl::CurPageCe_AsFile(const char * i_sEnding) const
-{
- if (pCurPageCe == 0)
- return String::Null_();
-
- static StringVector aModule_;
- String sCe;
- String sDummy;
- Data().Get_CeText(aModule_, sCe, sDummy, *pCurPageCe);
- StreamLock slCe(500);
- if (aModule_.size() > 0)
- slCe().operator_join(aModule_.begin(), aModule_.end(), "/");
- if (NOT sCe.empty())
- slCe() << "/" << sCe << i_sEnding;
- return String(slCe().c_str());
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/display/idl/hi_env.hxx b/autodoc/source/display/idl/hi_env.hxx
deleted file mode 100644
index 3b16920d8354..000000000000
--- a/autodoc/source/display/idl/hi_env.hxx
+++ /dev/null
@@ -1,154 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_DISPLAY_HI_ENV_HXX
-#define ADC_DISPLAY_HI_ENV_HXX
-
-
-// USED SERVICES
- // BASE CLASSES
- // COMPONENTS
-#include <cosv/ploc.hxx>
-#include <cosv/ploc_dir.hxx>
- // PARAMETERS
-#include <toolkit/out_position.hxx>
-
-namespace ary
-{
-namespace idl
-{
- class Gate;
- class CodeEntity;
-}
-}
-namespace display
-{
- class CorporateFrame;
-}
-namespace output
-{
- class Tree;
-}
-
-class AryAccess;
-class LinkHelper;
-
-/** @resp
- Provides enviroment information to the HTML factory
- classes.
-
- @descr
- All information that is not included in the data, especially
- about the layout of the output tree and the access to
- information from the repository are provided here.
-
- @see HtmlFactory
-*/
-class HtmlEnvironment_Idl
-{
- public:
- // LIFECYCLE
- HtmlEnvironment_Idl(
- const csv::ploc::Path &
- io_rOutputDir,
- const ary::idl::Gate &
- i_rGate,
- const display::CorporateFrame &
- i_rLayout );
- ~HtmlEnvironment_Idl();
-
- // OPERATIONS
- void Goto_Directory(
- output::Position i_pos,
- bool i_bCreateDirectoryIfNecessary );
- void Goto_DirectoryLevelDown(
- const String & i_subDirName,
- bool i_bCreateDirectoryIfNecessary );
- void Goto_DirectoryLevelUp();
- void Set_CurFile(
- const String & i_fileName );
- void Set_CurPageCe(
- const ary::idl::CodeEntity *
- i_ce )
- { pCurPageCe = i_ce; }
- // INQUIRY
- const ary::idl::Gate &
- Gate() const { return *pGate; }
- const AryAccess & Data() const { return *pData; }
- const char * Link2Manual(
- const String & i_link ) const;
-
- /// This may be reimplemented for removing dead links to members.
- bool Is_MemberExistenceCheckRequired() const
- { return false; }
-
- /// @return Holds only the current directory, not the current file.
- output::Position & CurPosition() const { return aCurPosition; }
- void Get_CurFilePath(
- StreamStr & o_buffer ) const
- { o_buffer << aCurPath; }
-
- const display::CorporateFrame &
- Layout() const { return *pLayout; }
- const LinkHelper & Linker() const { return *pLinker; }
-
- void Get_LinkTo(
- StreamStr & o_result,
- output::Position i_destination )
- { CurPosition().Get_LinkTo(o_result, i_destination); }
- String CurPageCe_AsText() const;
- String CurPageCe_AsFile(
- const char * i_sEnding) const;
- const ary::idl::CodeEntity *
- CurPageCe() const { return pCurPageCe; }
-
- // ACCESS
- output::Tree & OutputTree() { return *pOutputTree; }
-
- private:
- // Local
- void create_Directory(
- const csv::ploc::Path &
- i_path );
-
- // DATA
- csv::ploc::Directory
- aOutputRoot;
- csv::ploc::Path aCurPath;
-
- Dyn<AryAccess> pData; /// @invariant *pData is valid.
- const ary::idl::Gate *
- pGate; /// @invariant pGate != 0.
- Dyn<output::Tree> pOutputTree; /// @invariant *pOutputTree is valid.
- mutable output::Position
- aCurPosition;
- const ary::idl::CodeEntity *
- pCurPageCe;
-
- const display::CorporateFrame *
- pLayout;
-
- Dyn<LinkHelper> pLinker;
-};
-
-
-#endif
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/display/idl/hi_factory.cxx b/autodoc/source/display/idl/hi_factory.cxx
deleted file mode 100644
index b9d11ea4ba1e..000000000000
--- a/autodoc/source/display/idl/hi_factory.cxx
+++ /dev/null
@@ -1,314 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include "hi_factory.hxx"
-
-
-// NOT FULLY DEFINED SERVICES
-#include <ary/idl/i_ce.hxx>
-#include <toolkit/hf_title.hxx>
-#include "hfi_doc.hxx"
-#include "hfi_navibar.hxx"
-#include "hfi_tag.hxx"
-#include "hfi_typetext.hxx"
-#include "hi_linkhelper.hxx"
-
-
-extern const String
- C_sCellStyle_SummaryLeft("imsum_left");
-extern const String
- C_sCellStyle_SummaryRight("imsum_right");
-extern const String
- C_sCellStyle_MDetail("imdetail");
-extern const String
- C_sMemberTitle("membertitle");
-
-
-namespace
-{
-
-const char C_sSpace[92] = " "
- " "
- " ";
-}
-
-
-void
-HtmlFactory_Idl::produce_SummaryDeclaration( Xml::Element & o_row,
- const client & i_ce ) const
-{
- produce_InternalLink(o_row, i_ce);
-}
-
-void
-HtmlFactory_Idl::produce_InternalLink( Xml::Element & o_screen,
- const client & i_ce ) const
-{
- StreamLock aLocalLink(100);
- aLocalLink() << "#" << i_ce.LocalName();
-
- o_screen
- >> *new Html::TableCell
- << new Html::ClassAttr( C_sCellStyle_SummaryLeft )
- >> *new Html::Link( aLocalLink().c_str() )
- << i_ce.LocalName();
-}
-
-void
-HtmlFactory_Idl::produce_ShortDoc( Xml::Element & o_screen,
- const client & i_ce ) const
-{
- Xml::Element &
- rDetailsRowCell = o_screen
- >> *new Html::TableCell
- << new Html::ClassAttr( C_sCellStyle_SummaryRight );
- HF_IdlShortDocu
- aLinkDoc(Env(), rDetailsRowCell);
- aLinkDoc.Produce_byData( i_ce );
-
- rDetailsRowCell << new Xml::XmlCode("&nbsp;");
-}
-
-// KORR_FUTURE: Does not belong here (implementation inheritance)!
-void
-HtmlFactory_Idl::produce_Bases( Xml::Element & o_screen,
- const client & i_ce,
- const String & i_sLabel ) const
-{
- ary::idl::Type_id nBaseT = baseOf(i_ce);
- if ( nBaseT.IsValid() )
- {
- HF_DocEntryList
- aDocList( o_screen );
- aDocList.Produce_Term(i_sLabel);
-
- int nDepth = 0;
- Xml::Element &
- rBaseList = aDocList.Produce_Definition()
- >> *new Xml::AnElement("pre")
- << new Xml::AnAttribute("style","font-family:monospace;");
- rBaseList
- >> *new Html::Strong
- << i_ce.LocalName();
- rBaseList
- << "\n";
- recursive_ShowBases( rBaseList,
- nBaseT,
- nDepth );
- }
-}
-
-void
-HtmlFactory_Idl::produce_Members( ce_list & it_list,
- const String & i_summaryTitle,
- const String & i_summaryLabel,
- const String & i_detailsTitle,
- const String & i_detailsLabel,
- const E_MemberViewType i_viewType ) const
-{
- csv_assert( it_list );
-
- Dyn< HF_SubTitleTable > pSummary;
- if ( ( i_viewType == viewtype_summary )
- || ( i_viewType == viewtype_complete )
- )
- {
- pSummary = new HF_SubTitleTable(
- CurOut(),
- i_summaryLabel,
- i_summaryTitle,
- 2 );
- }
-
- Dyn< HF_SubTitleTable > pDetails;
- if ( ( i_viewType == viewtype_details )
- || ( i_viewType == viewtype_complete )
- )
- {
- pDetails = new HF_SubTitleTable(
- CurOut(),
- i_detailsLabel,
- i_detailsTitle,
- 1 );
- }
-
- for ( ; it_list.operator bool(); ++it_list )
- {
- const ary::idl::CodeEntity &
- rCe = Env().Data().Find_Ce(*it_list);
-
- if ( pSummary )
- {
- Xml::Element &
- rSummaryRow = pSummary->Add_Row();
- produce_SummaryDeclaration(rSummaryRow, rCe);
-// produce_InternalLink(rSummaryRow, rCe);
- produce_ShortDoc(rSummaryRow, rCe);
- }
-
- if ( pDetails )
- produce_MemberDetails(*pDetails, rCe);
- }
-}
-
-void
-HtmlFactory_Idl::produce_Title( HF_TitleTable & o_title,
- const String & i_label,
- const client & i_ce ) const
-{
- StreamLock
- slAnnotations(200);
- get_Annotations(slAnnotations(), i_ce);
- StreamLock
- slTitle(200);
- slTitle() << i_label << " " << i_ce.LocalName();
- o_title.Produce_Title( slAnnotations().c_str(),
- slTitle().c_str() );
-}
-
-void
-HtmlFactory_Idl::get_Annotations( StreamStr & o_out,
- const client & i_ce ) const
-{
- const ary::doc::OldIdlDocu *
- doc = Get_IdlDocu(i_ce.Docu());
- if (doc != 0)
- {
- if (doc->IsDeprecated())
- o_out << "deprecated ";
- if (NOT doc->IsPublished())
- o_out << "unpublished ";
- }
-
- // KORR
- // Need to display "unpublished", if there is no docu.
-}
-
-void
-HtmlFactory_Idl::write_Docu( Xml::Element & o_screen,
- const client & i_ce ) const
-{
- const ary::doc::OldIdlDocu *
- doc = Get_IdlDocu(i_ce.Docu());
- if (doc != 0)
- {
- HF_DocEntryList
- aDocuList( o_screen );
- HF_IdlDocu
- aDocu( Env(), aDocuList );
- aDocu.Produce_fromCodeEntity(i_ce);
- }
-
- write_ManualLinks(o_screen, i_ce);
-}
-
-void
-HtmlFactory_Idl::write_ManualLinks( Xml::Element & o_screen,
- const client & i_ce ) const
-{
- const StringVector &
- rLinks2Descrs = i_ce.Secondaries().Links2DescriptionInManual();
- if ( rLinks2Descrs.empty() )
- return;
-
- o_screen
- >> *new Html::Label(C_sLocalManualLinks.c_str()+1) // Leave out the leading '#'.
- << " ";
- HF_DocEntryList
- aDocuList( o_screen );
- aDocuList.Produce_Term("Developers Guide");
- csv_assert(rLinks2Descrs.size() % 2 == 0);
- for ( StringVector::const_iterator it = rLinks2Descrs.begin();
- it != rLinks2Descrs.end();
- ++it )
- {
- Xml::Element &
- rLink = aDocuList.Produce_Definition() >> *new Html::Link( Env().Link2Manual(*it));
- if ( (*(it+1)).empty() )
- // HACK KORR_FUTURE
- // Research what happens with manual links which contain normal characters
- // in non-utf-8 texts. And research, why utfF-8 does not work here.
- rLink << new Xml::XmlCode(*it);
- else
- rLink << new Xml::XmlCode( *(it+1) );
- ++it;
- } // end for
-}
-
-void
-HtmlFactory_Idl::produce_MemberDetails( HF_SubTitleTable & ,
- const client & ) const
-{
- // Dummy, which does not need to do anything.
-}
-
-void
-HtmlFactory_Idl::recursive_ShowBases( Xml::Element & o_screen,
- type_id i_baseType,
- int & io_nDepth ) const
-{
- // Show this base
- ++io_nDepth;
- const ary::idl::CodeEntity *
- pCe = Env().Linker().Search_CeFromType(i_baseType);
-
- csv_assert(io_nDepth > 0);
- if (io_nDepth > 30)
- io_nDepth = 30;
- o_screen
- << (C_sSpace + 93 - 3*io_nDepth)
- << new csi::xml::XmlCode("&#x2517")
- << " ";
-
- if (pCe == 0)
- {
- HF_IdlTypeText
- aText( Env(), o_screen );
- aText.Produce_byData( i_baseType );
- o_screen
- << "\n";
- --io_nDepth;
- return;
- }
-
- HF_IdlTypeText
- aBaseLink( Env(), o_screen );
- aBaseLink.Produce_byData(pCe->CeId());
- o_screen
- << "\n";
-
- // Bases
- ary::idl::Type_id
- nBaseT = baseOf(*pCe);
- if (nBaseT.IsValid())
- recursive_ShowBases(o_screen,nBaseT,io_nDepth);
-
- --io_nDepth;
- return;
-}
-
-HtmlFactory_Idl::type_id
-HtmlFactory_Idl::inq_BaseOf( const client & ) const
-{
- // Unused dummy.
- return type_id(0);
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/display/idl/hi_factory.hxx b/autodoc/source/display/idl/hi_factory.hxx
deleted file mode 100644
index 88b7c4851c97..000000000000
--- a/autodoc/source/display/idl/hi_factory.hxx
+++ /dev/null
@@ -1,157 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_DISPLAY_HI_FACTORY_HXX
-#define ADC_DISPLAY_HI_FACTORY_HXX
-
-
-// USED SERVICES
- // BASE CLASSES
-#include <toolkit/htmlfactory.hxx>
- // COMPONENTS
- // PARAMETERS
-#include <ary/stdconstiter.hxx>
-#include <ary/idl/i_types4idl.hxx>
-#include <toolkit/out_position.hxx>
-
-
-namespace ary
-{
-namespace doc
-{
- class OldIdlDocu;
-}
-}
-
-
-class HtmlEnvironment_Idl;
-class HF_TitleTable;
-class HF_SubTitleTable;
-
-
-class HtmlFactory_Idl : public HtmlFactory<HtmlEnvironment_Idl>
-{
- public:
- enum E_MemberViewType
- {
- viewtype_summary, // the summary of the members
- viewtype_details, // the details of the members
- viewtype_complete // everything
- };
-
- enum E_DocType
- {
- doctype_summaryOnly, // only the summary
- doctype_complete // the complete documentation
- };
-
- public:
- typedef ary::idl::CodeEntity client;
- typedef ary::idl::Ce_id ce_id;
- typedef ary::idl::Type_id type_id;
- typedef ary::doc::OldIdlDocu ce_info;
-
- typedef ary::Dyn_StdConstIterator<ce_id> dyn_ce_list;
- typedef ary::Dyn_StdConstIterator<type_id> dyn_type_list;
- typedef ary::StdConstIterator<ce_id> ce_list;
- typedef ary::StdConstIterator<type_id> type_list;
-
- typedef HtmlEnvironment_Idl Environment;
- typedef output::Position OutPosition;
-
- protected:
- HtmlFactory_Idl(
- Environment & io_rEnv,
- Xml::Element * o_pOut = 0 )
- : HtmlFactory<Environment>(io_rEnv, o_pOut)
- { }
- virtual ~HtmlFactory_Idl() {}
-
- /** The default version only calls ->produce_InternalLink().
- This may be overwritten by derived classes.
- */
- virtual void produce_SummaryDeclaration(
- Xml::Element & o_row,
- const client & i_ce ) const;
- void produce_InternalLink(
- Xml::Element & o_row,
- const client & i_ce ) const;
- void produce_ShortDoc(
- Xml::Element & o_row,
- const client & i_ce ) const;
-
- // KORR_FUTURE: Does not belong here (implementation inheritance)!
- void produce_Bases(
- Xml::Element & o_screen,
- const client & i_ce,
- const String & i_sLabel ) const;
- void produce_Members(
- ce_list & it_list,
- const String & i_summaryTitle,
- const String & i_summaryLabel,
- const String & i_detailsTitle,
- const String & i_detailsLabel,
- const E_MemberViewType i_viewType = viewtype_complete ) const;
-
- void produce_Title(
- HF_TitleTable & o_title,
- const String & i_label,
- const client & i_ce ) const;
- void get_Annotations(
- StreamStr & o_out,
- const client & i_ce ) const;
-
- /// Writes complete docu in standard format.
- void write_Docu(
- Xml::Element & o_screen,
- const client & i_ce ) const;
-
- void write_ManualLinks(
- Xml::Element & o_screen,
- const client & i_ce ) const;
- private:
- // Dummy does nothing
- virtual void produce_MemberDetails(
- HF_SubTitleTable & o_table,
- const client & i_ce ) const;
- void recursive_ShowBases(
- Xml::Element & o_screen,
- type_id i_baseType,
- int & io_nDepth ) const;
- type_id baseOf(
- const client & i_ce ) const
- { return inq_BaseOf(i_ce); }
- virtual type_id inq_BaseOf(
- const client & i_ce ) const;
-};
-
-
-extern const String
- C_sCellStyle_SummaryLeft;
-extern const String
- C_sCellStyle_SummaryRight;
-extern const String
- C_sCellStyle_MDetail;
-extern const String
- C_sMemberTitle;
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/display/idl/hi_linkhelper.cxx b/autodoc/source/display/idl/hi_linkhelper.cxx
deleted file mode 100644
index bf9a9d7e8988..000000000000
--- a/autodoc/source/display/idl/hi_linkhelper.cxx
+++ /dev/null
@@ -1,90 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include "hi_linkhelper.hxx"
-
-
-// NOT FULLY DEFINED SERVICES
-#include <ary/idl/i_module.hxx>
-
-
-
-
-const ary::idl::Module *
-LinkHelper::Search_CurModule() const
-{
- return Search_Module( rEnv.CurPosition().RelatedNode() );
-}
-
-const ary::idl::Module *
-LinkHelper::Search_Module( output::Node & i_node ) const
-{
- static StringVector aNames_;
-
- output::Node::relative_id
- nId = i_node.RelatedNameRoom();
- if (nId == 0)
- {
- csv::erase_container(aNames_);
- i_node.Get_Chain(aNames_);
- const ary::idl::Module * pModule =
- rEnv.Data().Search_Module(aNames_);
- if ( pModule == 0 )
- return 0;
- nId = static_cast<output::Node::relative_id>(pModule->Id());
- rEnv.CurPosition().RelatedNode().Set_RelatedNameRoom(nId);
- }
-
- return & rEnv.Data().Find_Module( ary::idl::Ce_id(nId) );
-}
-
-namespace
-{
- const String C_sXrefsSuffix("-xref");
-}
-
-
-LinkHelper::OutPosition
-LinkHelper::PositionOf_CurXRefs( const String & i_ceName ) const
-{
- StreamLock sl(100);
- return OutPosition( rEnv.CurPosition(),
- sl() << i_ceName
- << C_sXrefsSuffix
- << ".html"
- << c_str );
-}
-
-const String &
-LinkHelper::XrefsSuffix() const
-{
- return C_sXrefsSuffix;
-}
-
-
-String
-nameChainLinker( SAL_UNUSED_PARAMETER const char * )
-{
- static const String
- sModuleFileName_( output::ModuleFileName() );
- return sModuleFileName_;
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/display/idl/hi_linkhelper.hxx b/autodoc/source/display/idl/hi_linkhelper.hxx
deleted file mode 100644
index 7432a88ba5f0..000000000000
--- a/autodoc/source/display/idl/hi_linkhelper.hxx
+++ /dev/null
@@ -1,91 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_DISPLAY_HI_LINKHELPER_HXX
-#define ADC_DISPLAY_HI_LINKHELPER_HXX
-
-#include "hi_ary.hxx"
-#include "hi_env.hxx"
-#include <toolkit/out_position.hxx>
-#include <toolkit/out_tree.hxx>
-
-
-class LinkHelper
-{
- public:
- typedef ary::idl::CodeEntity CE;
- typedef output::Position OutPosition;
-
- LinkHelper(
- HtmlEnvironment_Idl &
- io_rEnv )
- : rEnv(io_rEnv) {}
-
- OutPosition PositionOf_CurModule() const
- { return OutPosition( rEnv.CurPosition(),
- output::ModuleFileName()); }
-
- OutPosition PositionOf_CurXRefs(
- const String & i_ceName) const;
- OutPosition PositionOf_Index() const
- { OutPosition ret1 = rEnv.OutputTree().IndexRoot();
- return OutPosition( ret1, String(output::IndexFile_A()) ); }
-
-
- const ary::idl::Module *
- Search_CurModule() const;
- const ary::idl::Module *
- Search_Module(
- output::Node & i_node ) const;
-
- const CE * Search_CeFromType(
- ary::idl::Type_id i_type ) const;
-
- void Get_Link2Position(
- StreamStr & o_link,
- OutPosition & i_pos ) const
- { rEnv.CurPosition().Get_LinkTo(o_link, i_pos); }
-
- void Get_Link2Member(
- StreamStr & o_link,
- OutPosition & i_ownerPos,
- const String & i_memberName ) const
- { Get_Link2Position(o_link, i_ownerPos);
- o_link << "#" << i_memberName; }
- const String & XrefsSuffix() const;
-
- private:
- HtmlEnvironment_Idl & rEnv;
-};
-
-inline const ary::idl::CodeEntity *
-LinkHelper::Search_CeFromType( ary::idl::Type_id i_type ) const
-{
- ary::idl::Ce_id nCe = rEnv.Data().CeFromType(i_type);
- if (nCe.IsValid())
- return &rEnv.Data().Find_Ce(nCe);
- return 0;
-}
-
-String nameChainLinker( const char * i_levelName );
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/display/idl/hi_main.cxx b/autodoc/source/display/idl/hi_main.cxx
deleted file mode 100644
index a81da21018ef..000000000000
--- a/autodoc/source/display/idl/hi_main.cxx
+++ /dev/null
@@ -1,744 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include "hi_main.hxx"
-
-
-// NOT FULLY DEFINED SERVICES
-#include <algorithm>
-#include <cosv/ploc.hxx>
-#include <cosv/file.hxx>
-#include <ary/idl/i_ce.hxx>
-#include <ary/idl/ik_ce.hxx>
-#include <ary/idl/ik_enum.hxx>
-#include <ary/idl/ik_typedef.hxx>
-#include <ary/idl/ik_interface.hxx>
-#include <ary/idl/ik_struct.hxx>
-#include <ary/idl/ik_exception.hxx>
-#include <ary/idl/i_constant.hxx>
-#include <ary/idl/i_constgroup.hxx>
-#include <ary/idl/i_enum.hxx>
-#include <ary/idl/i_singleton.hxx>
-#include <ary/idl/i_sisingleton.hxx>
-#include <ary/idl/i_exception.hxx>
-#include <ary/idl/i_interface.hxx>
-#include <ary/idl/i_service.hxx>
-#include <ary/idl/i_siservice.hxx>
-#include <ary/idl/i_struct.hxx>
-#include <ary/idl/i_typedef.hxx>
-#include <ary/idl/i_module.hxx>
-#include <cfrstd.hxx>
-#include <toolkit/htmlfile.hxx>
-#include <toolkit/out_position.hxx>
-#include <toolkit/out_tree.hxx>
-#include "hfi_constgroup.hxx"
-#include "hfi_enum.hxx"
-#include "hfi_globalindex.hxx"
-#include "hfi_interface.hxx"
-#include "hfi_module.hxx"
-#include "hfi_struct.hxx"
-#include "hfi_service.hxx"
-#include "hfi_singleton.hxx"
-#include "hfi_siservice.hxx"
-#include "hfi_typedef.hxx"
-#include "hfi_xrefpage.hxx"
-#include "hi_env.hxx"
-#include "hi_linkhelper.hxx"
-
-
-using ::ary::idl::Ce_id;
-using ::ary::idl::Type_id;
-using ::ary::idl::ifc_ce::Dyn_CeIterator;
-
-
-
-extern const String C_sCssFilename_Idl("idl.css");
-
-namespace
-{
-
-/** @resp
- Inits (constructor) and creates (destructor) the current
- html documentation file ( MainDisplay_Idl.pMyFile ).
-*/
-class Guard_CurFile
-{
- public:
- Guard_CurFile( /// For CodeEntities
- DocuFile_Html & io_client,
- HtmlEnvironment_Idl &
- io_env,
- const ary::idl::CodeEntity &
- i_ce,
- const String & i_titlePrefix );
- Guard_CurFile( /// For Use pages
- DocuFile_Html & io_client,
- HtmlEnvironment_Idl &
- io_env,
- const String & i_fileName,
- const String & i_titlePrefix );
- Guard_CurFile( /// For Modules
- DocuFile_Html & io_client,
- HtmlEnvironment_Idl &
- io_env,
- const ary::idl::CodeEntity &
- i_ce );
- Guard_CurFile( /// For Indices
- DocuFile_Html & io_client,
- HtmlEnvironment_Idl &
- io_env,
- char i_letter );
- ~Guard_CurFile();
- private:
- DocuFile_Html & rClient;
- HtmlEnvironment_Idl &
- rEnv;
-
-};
-
-/** @resp
- Sets and releases the current factory pointer
- ( MainDisplay_Idl.pCurFactory ).
-*/
-class Guard_CurFactoryPtr
-{
- public:
- Guard_CurFactoryPtr(
- HtmlFactory_Idl *& io_client,
- HtmlFactory_Idl & i_factory )
- : rpClient(io_client)
- { rpClient = &i_factory; }
-
- ~Guard_CurFactoryPtr()
- { rpClient = 0; }
-
- private:
- HtmlFactory_Idl *& rpClient;
-
-};
-
-
-Guard_CurFile::Guard_CurFile( DocuFile_Html & io_client,
- HtmlEnvironment_Idl & io_env,
- const ary::idl::CodeEntity & i_ce,
- const String & i_titlePrefix )
- : rClient(io_client),
- rEnv(io_env)
-{ // For Ces
- StreamLock sl(300);
- io_env.Set_CurFile( sl() << i_ce.LocalName()
- << ".html"
- << c_str );
- StreamLock aCurFilePath(700);
- io_env.Get_CurFilePath(aCurFilePath());
-
- rClient.EmptyBody();
- csv::ploc::Path
- aLocation(aCurFilePath().c_str());
- rClient.SetLocation(aLocation);
- sl().reset();
- rClient.SetTitle( sl() << i_titlePrefix
- << " "
- << i_ce.LocalName()
- << c_str );
- sl().reset();
- rClient.SetRelativeCssPath(
- sl() << io_env.CurPosition().LinkToRoot()
- << C_sCssFilename_Idl
- << c_str );
-
- io_env.Set_CurPageCe(&i_ce);
-}
-
-Guard_CurFile::Guard_CurFile( DocuFile_Html & io_client,
- HtmlEnvironment_Idl & io_env,
- const String & i_fileName,
- const String & i_titlePrefix )
- : rClient(io_client),
- rEnv(io_env)
-{ // For Use pages
- StreamLock sl(300);
- io_env.Set_CurFile( sl() << i_fileName
- << ".html"
- << c_str );
- StreamLock aCurFilePath(700);
- io_env.Get_CurFilePath(aCurFilePath());
- csv::ploc::Path
- aLocation(aCurFilePath().c_str());
-
- rClient.EmptyBody();
- rClient.SetLocation(aLocation);
- sl().reset();
- rClient.SetTitle( sl() << i_titlePrefix << " " << i_fileName << c_str );
- sl().reset();
- rClient.SetRelativeCssPath(
- sl() << io_env.CurPosition().LinkToRoot()
- << C_sCssFilename_Idl
- << c_str );
-
- io_env.Set_CurPageCe(0);
-}
-
-Guard_CurFile::Guard_CurFile( DocuFile_Html & io_client,
- HtmlEnvironment_Idl & io_env,
- const ary::idl::CodeEntity & i_ce )
- : rClient(io_client),
- rEnv(io_env)
-{ // For Modules
- io_env.Set_CurFile( output::ModuleFileName() );
- StreamLock aCurFilePath(700);
- io_env.Get_CurFilePath(aCurFilePath());
- csv::ploc::Path
- aLocation(aCurFilePath().c_str());
-
- rClient.EmptyBody();
- rClient.SetLocation(aLocation);
- StreamLock sl(300);
- rClient.SetTitle( sl() << "Module " << io_env.CurPosition().Name() << c_str );
- sl().reset();
- rClient.SetRelativeCssPath(
- sl() << io_env.CurPosition().LinkToRoot()
- << C_sCssFilename_Idl
- << c_str );
-
- io_env.Set_CurPageCe(&i_ce);
-}
-
-Guard_CurFile::Guard_CurFile( DocuFile_Html & io_client,
- HtmlEnvironment_Idl & io_env,
- char i_letter )
- : rClient(io_client),
- rEnv(io_env)
-{ // For Index pages
- StreamLock sl(300);
- io_env.Set_CurFile( sl() << "index-"
- << ( i_letter != '_'
- ? int(i_letter)-'a'+1
- : 27 )
- << ".html"
- << c_str );
- StreamLock aCurFilePath(700);
- io_env.Get_CurFilePath(aCurFilePath());
- csv::ploc::Path
- aLocation(aCurFilePath().c_str());
-
- rClient.EmptyBody();
- rClient.SetLocation(aLocation);
- sl().reset();
- rClient.SetTitle( sl() << "Global Index "
- << ( i_letter != '_'
- ? char(i_letter-'a'+'A')
- : '_' )
- << c_str );
- sl().reset();
- rClient.SetRelativeCssPath(
- sl() << "../"
- << C_sCssFilename_Idl
- << c_str );
-}
-
-Guard_CurFile::~Guard_CurFile()
-{
- rClient.CreateFile();
- rEnv.Set_CurPageCe(0);
-}
-
-
-} // anonymous namespace
-
-
-
-
-MainDisplay_Idl::MainDisplay_Idl( HtmlEnvironment_Idl & io_rEnv )
- : pEnv(&io_rEnv),
- pMyFile(new DocuFile_Html),
- pCurFactory(0)
-{
-// pMyFile->SetStyle( Env().Layout().CssStyle() );
- pMyFile->SetCopyright( Env().Layout().CopyrightText() );
-}
-
-MainDisplay_Idl::~MainDisplay_Idl()
-{
-}
-
-
-void
-MainDisplay_Idl::WriteGlobalIndices()
-{
- for ( const char * pLetter = "abcdefghijklmnopqrstuvwxyz_X"; *pLetter != 'X'; ++pLetter )
- {
- Guard_CurFile gFile( *pMyFile, Env(), *pLetter );
-
- HF_IdlGlobalIndex aFactory( *pEnv, pMyFile->Body() );
- Guard_CurFactoryPtr gFactory(pCurFactory,aFactory);
-
- aFactory.Produce_Page( ary::idl::alphabetical_index::E_Letter(*pLetter) );
- } // end for
-}
-
-
-void
-MainDisplay_Idl::do_Process( const ary::idl::Module & i_ce )
-{
- Guard_CurFile gFile( *pMyFile,
- Env(),
- i_ce );
- HF_IdlModule aFactory( *pEnv, pMyFile->Body() );
- Guard_CurFactoryPtr gFactory(pCurFactory,aFactory);
-
- aFactory.Produce_byData(i_ce);
-}
-
-void
-MainDisplay_Idl::do_Process( const ary::idl::Interface & i_ce )
-{
- do_InterfaceDescr(i_ce);
- do_Interface2s(i_ce);
-}
-
-void
-MainDisplay_Idl::do_Process( const ary::idl::Service & i_ce )
-{
- do_ServiceDescr(i_ce);
- do_Service2s(i_ce);
-}
-
-void
-MainDisplay_Idl::do_Process( const ary::idl::SglIfcService & i_ce )
-{
- do_SglIfcServiceDescr(i_ce);
-}
-
-void
-MainDisplay_Idl::do_Process( const ary::idl::Struct & i_ce )
-{
- do_StructDescr(i_ce);
- do_Struct2s(i_ce);
-}
-
-void
-MainDisplay_Idl::do_Process( const ary::idl::Exception & i_ce )
-{
- do_ExceptionDescr(i_ce);
- do_Exception2s(i_ce);
-}
-
-void
-MainDisplay_Idl::do_Process( const ary::idl::Enum & i_ce )
-{
- do_EnumDescr(i_ce);
- do_Enum2s(i_ce);
-}
-
-void
-MainDisplay_Idl::do_Process( const ary::idl::Typedef & i_ce )
-{
- do_TypedefDescr(i_ce);
- do_Typedef2s(i_ce);
-}
-
-void
-MainDisplay_Idl::do_Process( const ary::idl::ConstantsGroup & i_ce )
-{
- Guard_CurFile gFile( *pMyFile,
- Env(),
- i_ce,
- "Constants' Group" );
- HF_IdlConstGroup aFactory( *pEnv, pMyFile->Body() );
- Guard_CurFactoryPtr gFactory(pCurFactory,aFactory);
-
- aFactory.Produce_byData(i_ce);
-}
-
-void
-MainDisplay_Idl::do_Process( const ary::idl::Singleton & i_ce )
-{
- Guard_CurFile gFile( *pMyFile,
- Env(),
- i_ce,
- "Singleton" );
- HF_IdlSingleton aFactory( *pEnv, pMyFile->Body() );
- Guard_CurFactoryPtr gFactory(pCurFactory,aFactory);
-
- aFactory.Produce_byData_ServiceBased(i_ce);
-}
-
-void
-MainDisplay_Idl::do_Process( const ary::idl::SglIfcSingleton & i_ce )
-{
- Guard_CurFile gFile( *pMyFile,
- Env(),
- i_ce,
- "Singleton" );
- HF_IdlSingleton aFactory( *pEnv, pMyFile->Body() );
- Guard_CurFactoryPtr gFactory(pCurFactory,aFactory);
-
- aFactory.Produce_byData_InterfaceBased(i_ce);
-}
-
-void
-MainDisplay_Idl::do_InterfaceDescr( const ary::idl::CodeEntity & i_ce )
-{
- Guard_CurFile gFile( *pMyFile,
- Env(),
- i_ce,
- "Interface" );
- HF_IdlInterface aInterface( *pEnv, pMyFile->Body() );
- Guard_CurFactoryPtr gFactory(pCurFactory,aInterface);
-
- aInterface.Produce_byData(i_ce);
-}
-
-void
-MainDisplay_Idl::do_ServiceDescr( const ary::idl::CodeEntity & i_ce )
-{
- Guard_CurFile gFile( *pMyFile,
- Env(),
- i_ce,
- "Service" );
- HF_IdlService aFactory( *pEnv, pMyFile->Body() );
- Guard_CurFactoryPtr gFactory(pCurFactory,aFactory);
-
- aFactory.Produce_byData(i_ce);
-}
-
-void
-MainDisplay_Idl::do_SglIfcServiceDescr( const ary::idl::CodeEntity & i_ce )
-{
- Guard_CurFile gFile( *pMyFile,
- Env(),
- i_ce,
- "Service" );
- HF_IdlSglIfcService aFactory( *pEnv, pMyFile->Body() );
- Guard_CurFactoryPtr gFactory(pCurFactory,aFactory);
-
- aFactory.Produce_byData(i_ce);
-}
-
-void
-MainDisplay_Idl::do_StructDescr( const ary::idl::CodeEntity & i_ce )
-{
- Guard_CurFile gFile( *pMyFile,
- Env(),
- i_ce,
- "Struct" );
- HF_IdlStruct aFactory( *pEnv, pMyFile->Body(), false );
- Guard_CurFactoryPtr gFactory(pCurFactory,aFactory);
-
- aFactory.Produce_byData(i_ce);
-}
-
-void
-MainDisplay_Idl::do_ExceptionDescr( const ary::idl::CodeEntity & i_ce )
-{
- Guard_CurFile gFile( *pMyFile,
- Env(),
- i_ce,
- "Exception" );
- HF_IdlStruct aFactory( *pEnv, pMyFile->Body(), true );
- Guard_CurFactoryPtr gFactory(pCurFactory,aFactory);
-
- aFactory.Produce_byData(i_ce);
-}
-
-void
-MainDisplay_Idl::do_EnumDescr( const ary::idl::CodeEntity & i_ce )
-{
- Guard_CurFile gFile( *pMyFile,
- Env(),
- i_ce,
- "Enum" );
- HF_IdlEnum aFactory( *pEnv, pMyFile->Body() );
- Guard_CurFactoryPtr gFactory(pCurFactory,aFactory);
-
- aFactory.Produce_byData(i_ce);
-}
-
-void
-MainDisplay_Idl::do_TypedefDescr( const ary::idl::CodeEntity & i_ce )
-{
- Guard_CurFile gFile( *pMyFile,
- Env(),
- i_ce,
- "Typedef" );
- HF_IdlTypedef aFactory( *pEnv, pMyFile->Body() );
- Guard_CurFactoryPtr gFactory(pCurFactory,aFactory);
-
- aFactory.Produce_byData(i_ce);
-}
-
-void
-MainDisplay_Idl::do_Interface2s( const ary::idl::CodeEntity & i_ce )
-{
- StreamLock sl(100);
- String sUsesFileName(
- sl()
- << i_ce.LocalName()
- << Env().Linker().XrefsSuffix()
- << c_str );
- Guard_CurFile gFile( *pMyFile,
- Env(),
- sUsesFileName,
- "Uses of Interface" );
- HF_IdlXrefs aUses( *pEnv,
- pMyFile->Body(),
- C_sCePrefix_Interface,
- i_ce );
-
-
- aUses.Produce_Tree(
- "Derived Interfaces",
- "#Deriveds",
- i_ce,
- &ary::idl::ifc_interface::xref::Get_Derivations );
-
- Dyn_CeIterator pXrefList;
-
- ary::idl::ifc_interface::xref::Get_SynonymTypedefs(pXrefList,i_ce);
- aUses.Produce_List(
- "Synonym Typedefs",
- "#Synonyms",
- *pXrefList );
- ary::idl::ifc_interface::xref::Get_ExportingServices(pXrefList,i_ce);
- aUses.Produce_List(
- "Services which Support this Interface",
- "#SupportingServices",
- *pXrefList );
- ary::idl::ifc_interface::xref::Get_ExportingSingletons(pXrefList,i_ce);
- aUses.Produce_List(
- "Singletons which Support this Interface",
- "#SupportingSingletons",
- *pXrefList );
- ary::idl::ifc_interface::xref::Get_AsReturns(pXrefList,i_ce);
- aUses.Produce_List(
- "Uses as Return Type",
- "#Returns",
- *pXrefList );
- ary::idl::ifc_interface::xref::Get_AsParameters(pXrefList,i_ce);
- aUses.Produce_List(
- "Uses as Parameter",
- "#Parameters",
- *pXrefList );
- ary::idl::ifc_interface::xref::Get_AsDataTypes(pXrefList,i_ce);
- aUses.Produce_List(
- "Uses as Data Type",
- "#DataTypes",
- *pXrefList );
- aUses.Write_ManualLinks(i_ce);
-}
-
-void
-MainDisplay_Idl::do_Service2s( const ary::idl::CodeEntity & i_ce )
-{
- StreamLock sl(100);
- String sUsesFileName(
- sl()
- << i_ce.LocalName()
- << Env().Linker().XrefsSuffix()
- << c_str );
- Guard_CurFile gFile( *pMyFile,
- Env(),
- sUsesFileName,
- "Uses of Service" );
- HF_IdlXrefs aUses( *pEnv,
- pMyFile->Body(),
- C_sCePrefix_Service,
- i_ce );
- Dyn_CeIterator pXrefList;
- ary::idl::ifc_service::xref::Get_IncludingServices(pXrefList,i_ce);
- aUses.Produce_List(
- "Services which Include this Service",
- "#IncludingServices",
- *pXrefList );
-
- ary::idl::ifc_service::xref::Get_InstantiatingSingletons(pXrefList,i_ce);
- aUses.Produce_List(
- "Singletons which Instantiate this Service",
- "#Singletons",
- *pXrefList );
- aUses.Write_ManualLinks(i_ce);
-}
-
-void
-MainDisplay_Idl::do_Struct2s( const ary::idl::CodeEntity & i_ce )
-{
- StreamLock sl(100);
- String sUsesFileName(
- sl()
- << i_ce.LocalName()
- << Env().Linker().XrefsSuffix()
- << c_str );
- Guard_CurFile gFile( *pMyFile,
- Env(),
- sUsesFileName,
- "Uses of Struct" );
- HF_IdlXrefs aUses( *pEnv,
- pMyFile->Body(),
- C_sCePrefix_Struct,
- i_ce );
-
- aUses.Produce_Tree(
- "Derived Structs",
- "#Deriveds",
- i_ce,
- &ary::idl::ifc_struct::xref::Get_Derivations );
-
- Dyn_CeIterator pXrefList;
-
- ary::idl::ifc_struct::xref::Get_SynonymTypedefs(pXrefList,i_ce);
- aUses.Produce_List(
- "Synonym Typedefs",
- "#Synonyms",
- *pXrefList );
- ary::idl::ifc_struct::xref::Get_AsReturns(pXrefList,i_ce);
- aUses.Produce_List(
- "Uses as Return Type",
- "#Returns",
- *pXrefList );
- ary::idl::ifc_struct::xref::Get_AsParameters(pXrefList,i_ce);
- aUses.Produce_List(
- "Uses as Parameter",
- "#Parameters",
- *pXrefList );
- ary::idl::ifc_struct::xref::Get_AsDataTypes(pXrefList,i_ce);
- aUses.Produce_List(
- "Uses as Data Type",
- "#DataTypes",
- *pXrefList );
- aUses.Write_ManualLinks(i_ce);
-}
-
-void
-MainDisplay_Idl::do_Exception2s( const ary::idl::CodeEntity & i_ce )
-{
- StreamLock sl(100);
- String sUsesFileName(
- sl()
- << i_ce.LocalName()
- << Env().Linker().XrefsSuffix()
- << c_str );
- Guard_CurFile gFile( *pMyFile,
- Env(),
- sUsesFileName,
- "Uses of Exception" );
- HF_IdlXrefs aUses( *pEnv,
- pMyFile->Body(),
- C_sCePrefix_Exception,
- i_ce );
-
- aUses.Produce_Tree(
- "Derived Exceptions",
- "#Deriveds",
- i_ce,
- &ary::idl::ifc_exception::xref::Get_Derivations );
-
- Dyn_CeIterator pXrefList;
-
- ary::idl::ifc_exception::xref::Get_RaisingFunctions(pXrefList,i_ce);
- aUses.Produce_List(
- "Raising Functions",
- "#Raisers",
- *pXrefList );
- aUses.Write_ManualLinks(i_ce);
-}
-
-void
-MainDisplay_Idl::do_Enum2s( const ary::idl::CodeEntity & i_ce )
-{
- StreamLock sl(100);
- String sUsesFileName(
- sl()
- << i_ce.LocalName()
- << Env().Linker().XrefsSuffix()
- << c_str );
- Guard_CurFile gFile( *pMyFile,
- Env(),
- sUsesFileName,
- "Uses of Enum" );
- HF_IdlXrefs aUses( *pEnv,
- pMyFile->Body(),
- C_sCePrefix_Enum,
- i_ce );
- Dyn_CeIterator pXrefList;
- ary::idl::ifc_enum::xref::Get_SynonymTypedefs(pXrefList,i_ce);
- aUses.Produce_List(
- "Synonym Typedefs",
- "#Synonyms",
- *pXrefList );
- ary::idl::ifc_enum::xref::Get_AsReturns(pXrefList,i_ce);
- aUses.Produce_List(
- "Uses as Return Type",
- "#Returns",
- *pXrefList );
- ary::idl::ifc_enum::xref::Get_AsParameters(pXrefList,i_ce);
- aUses.Produce_List(
- "Uses as Parameter",
- "#Parameters",
- *pXrefList );
- ary::idl::ifc_enum::xref::Get_AsDataTypes(pXrefList,i_ce);
- aUses.Produce_List(
- "Uses as Data Type",
- "#DataTypes",
- *pXrefList );
- aUses.Write_ManualLinks(i_ce);
-}
-
-void
-MainDisplay_Idl::do_Typedef2s( const ary::idl::CodeEntity & i_ce )
-{
- StreamLock sl(100);
- String sUsesFileName(
- sl() << i_ce.LocalName()
- << Env().Linker().XrefsSuffix()
- << c_str );
- Guard_CurFile gFile( *pMyFile,
- Env(),
- sUsesFileName,
- "Uses of Typedef" );
- HF_IdlXrefs aUses( *pEnv,
- pMyFile->Body(),
- C_sCePrefix_Typedef,
- i_ce );
- Dyn_CeIterator pXrefList;
- ary::idl::ifc_typedef::xref::Get_SynonymTypedefs(pXrefList,i_ce);
- aUses.Produce_List(
- "Synonym Typedefs",
- "#Synonyms",
- *pXrefList );
- ary::idl::ifc_typedef::xref::Get_AsReturns(pXrefList,i_ce);
- aUses.Produce_List(
- "Uses as Return Type",
- "#Returns",
- *pXrefList );
- ary::idl::ifc_typedef::xref::Get_AsParameters(pXrefList,i_ce);
- aUses.Produce_List(
- "Uses as Parameter",
- "#Parameters",
- *pXrefList );
- ary::idl::ifc_typedef::xref::Get_AsDataTypes(pXrefList,i_ce);
- aUses.Produce_List(
- "Uses as Data Type",
- "#DataTypes",
- *pXrefList );
- aUses.Write_ManualLinks(i_ce);
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/display/idl/hi_main.hxx b/autodoc/source/display/idl/hi_main.hxx
deleted file mode 100644
index 5f29aae731f8..000000000000
--- a/autodoc/source/display/idl/hi_main.hxx
+++ /dev/null
@@ -1,172 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_DISPLAY_HFIDMAIN_HXX
-#define ADC_DISPLAY_HFIDMAIN_HXX
-
-
-
-// USED SERVICES
- // BASE CLASSES
-#include <cosv/tpl/processor.hxx>
- // COMPONENTS
-#include "hi_factory.hxx"
- // PARAMETERS
-
-
-class HtmlEnvironment_Idl;
-class HtmlFactory_Idl;
-class DocuFile_Html;
-
-namespace ary
-{
-namespace idl
-{
-
- class Module;
- class Service;
- class SglIfcService;
- class Interface;
- class Struct;
- class Exception;
- class Enum;
- class Typedef;
- class ConstantsGroup;
- class Singleton;
- class SglIfcSingleton;
-
-} // namespace idl
-} // namespace ary
-
-
-class MainDisplay_Idl : public csv::ProcessorIfc,
- public csv::ConstProcessor<ary::idl::Module>,
- public csv::ConstProcessor<ary::idl::Service>,
- public csv::ConstProcessor<ary::idl::SglIfcService>,
- public csv::ConstProcessor<ary::idl::Interface>,
- public csv::ConstProcessor<ary::idl::Struct>,
- public csv::ConstProcessor<ary::idl::Exception>,
- public csv::ConstProcessor<ary::idl::Enum>,
- public csv::ConstProcessor<ary::idl::Typedef>,
- public csv::ConstProcessor<ary::idl::ConstantsGroup>,
- public csv::ConstProcessor<ary::idl::Singleton>,
- public csv::ConstProcessor<ary::idl::SglIfcSingleton>
-{
- public:
- MainDisplay_Idl(
- HtmlEnvironment_Idl &
- io_rEnv );
- virtual ~MainDisplay_Idl();
-
- void WriteGlobalIndices();
-
- void Display_NamedEntityHierarchy();
-
- private:
- // Interface csv::ProcessorIfc:
- virtual void do_Process(
- const ary::idl::Module & i_client );
- virtual void do_Process(
- const ary::idl::Service & i_client );
- virtual void do_Process(
- const ary::idl::SglIfcService &
- i_client );
- virtual void do_Process(
- const ary::idl::Interface & i_client );
- virtual void do_Process(
- const ary::idl::Struct & i_client );
- virtual void do_Process(
- const ary::idl::Exception & i_client );
- virtual void do_Process(
- const ary::idl::Enum & i_client );
- virtual void do_Process(
- const ary::idl::Typedef & i_client );
- virtual void do_Process(
- const ary::idl::ConstantsGroup &
- i_client );
- virtual void do_Process(
- const ary::idl::Singleton & i_client );
- virtual void do_Process(
- const ary::idl::SglIfcSingleton &
- i_client );
- // Locals
- void do_ServiceDescr(
- const ary::idl::CodeEntity &
- i_rData );
- void do_SglIfcServiceDescr(
- const ary::idl::CodeEntity &
- i_rData );
- void do_InterfaceDescr(
- const ary::idl::CodeEntity &
- i_rData );
- void do_StructDescr(
- const ary::idl::CodeEntity &
- i_rData );
- void do_ExceptionDescr(
- const ary::idl::CodeEntity &
- i_rData );
- void do_EnumDescr(
- const ary::idl::CodeEntity &
- i_rData );
- void do_TypedefDescr(
- const ary::idl::CodeEntity &
- i_rData );
- void do_SingletonDescr(
- const ary::idl::CodeEntity &
- i_rData );
- void do_Service2s(
- const ary::idl::CodeEntity &
- i_rData );
- void do_Interface2s(
- const ary::idl::CodeEntity &
- i_rData );
- void do_Struct2s(
- const ary::idl::CodeEntity &
- i_rData );
- void do_Exception2s(
- const ary::idl::CodeEntity &
- i_rData );
- void do_Enum2s(
- const ary::idl::CodeEntity &
- i_rData );
- void do_Typedef2s(
- const ary::idl::CodeEntity &
- i_rData );
- void do_Singleton2s(
- const ary::idl::CodeEntity &
- i_rData );
-
- const HtmlEnvironment_Idl &
- Env() const { return *pEnv; }
- HtmlEnvironment_Idl &
- Env() { return *pEnv; }
- Xml::Element & CurHtmlOut() { return pCurFactory->CurOut(); }
-
- // DATA
- HtmlEnvironment_Idl *
- pEnv;
- Dyn<DocuFile_Html> pMyFile;
- HtmlFactory_Idl * pCurFactory;
-};
-
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/display/inc/cfrstd.hxx b/autodoc/source/display/inc/cfrstd.hxx
deleted file mode 100644
index cbedb10d878a..000000000000
--- a/autodoc/source/display/inc/cfrstd.hxx
+++ /dev/null
@@ -1,70 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_CFRSTD_HXX
-#define ADC_CFRSTD_HXX
-
-
-
-// USED SERVICES
- // BASE CLASSES
-#include <display/corframe.hxx>
- // COMPONENTS
- // PARAMETERS
-
-
-
-class StdFrame : public display::CorporateFrame
-{
- public:
- // LIFECYCLE
- StdFrame();
-
- // INQUIRY
- virtual DYN Html_Image *
- LogoSrc() const;
- virtual const char *
- LogoLink() const;
- virtual const char *
- CopyrightText() const;
- virtual const char *
- CssStyle() const;
- virtual const char *
- CssStylesExplanation() const;
- virtual const char *
- DevelopersGuideHtmlRoot() const;
-
- // ACCESS
- virtual void Set_DevelopersGuideHtmlRoot(
- const String & i_directory );
-
- private:
- String sDevelopersGuideHtmlRoot;
-};
-
-
-
-// IMPLEMENTATION
-
-
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/display/inc/idl/hi_display.hxx b/autodoc/source/display/inc/idl/hi_display.hxx
deleted file mode 100644
index c1590c9d7a67..000000000000
--- a/autodoc/source/display/inc/idl/hi_display.hxx
+++ /dev/null
@@ -1,104 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_DISPLAY_HI_DISPLAY_HXX
-#define ADC_DISPLAY_HI_DISPLAY_HXX
-
-
-
-// USED SERVICES
- // BASE CLASSES
-#include <autodoc/dsp_html_std.hxx>
- // COMPONENTS
-#include <cosv/ploc.hxx>
- // PARAMETERS
-
-
-
-namespace ary
-{
- namespace idl
- {
- class Module;
- class CodeEntity;
- } // namspace idl
-} // namspace csi
-
-
-class MainDisplay_Idl;
-class HtmlEnvironment_Idl;
-
-class HtmlDisplay_Idl : public autodoc::HtmlDisplay_Idl_Ifc
-{
- public:
- HtmlDisplay_Idl();
- ~HtmlDisplay_Idl();
- private:
- // Interface HtmlDisplay_Idl_Ifc:
- virtual void do_Run(
- const char * i_sOutputDirectory,
- const ary::idl::Gate &
- i_rAryGate,
- const display::CorporateFrame &
- i_rLayout );
- void SetRunData(
- const char * i_sOutputDirectory,
- const ary::idl::Gate &
- i_rAryGate,
- const display::CorporateFrame &
- i_rLayout );
- void Create_StartFile();
- void Create_FilesInNameTree();
- void Create_IndexFiles();
- void Create_FilesInProjectTree();
- void Create_PackageList();
- void Create_HelpFile();
- void Create_CssFile();
-
- /** @descr
- - makes sure, the module's directory exists
- - creates the module's docu file
- - creates docu files for all members of the module
- - does the same recursive for all sub-modules.
- */
- void RecursiveDisplay_Module(
- const ary::idl::Module &
- i_rNamespace );
- bool IsModule(
- const ary::idl::CodeEntity &
- i_ce ) const;
- const ary::idl::Module &
- Module_Cast( /// @precond Cast must be valid.
- const ary::idl::CodeEntity &
- i_ce ) const;
- // DATA
- Dyn<HtmlEnvironment_Idl>
- pCurPageEnv;
- Dyn<MainDisplay_Idl>
- pMainDisplay;
-};
-
-
-
-// IMPLEMENTATION
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/display/inc/toolkit/hf_docentry.hxx b/autodoc/source/display/inc/toolkit/hf_docentry.hxx
deleted file mode 100644
index a2bc7a860aa1..000000000000
--- a/autodoc/source/display/inc/toolkit/hf_docentry.hxx
+++ /dev/null
@@ -1,53 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_DISPLAY_HF_DOCENTRY_HXX
-#define ADC_DISPLAY_HF_DOCENTRY_HXX
-
-
-
-// USED SERVICES
- // BASE CLASSES
-#include "htmlfactory.hxx"
- // COMPONENTS
- // PARAMETERS
-
-/** @resp
- Produces a list of <DT>..</DT> and <DD>.
-*/
-class HF_DocEntryList : public HtmlMaker
-{
- public:
-
- HF_DocEntryList(
- Xml::Element & o_rOut );
- virtual ~HF_DocEntryList();
-
- Xml::Element & Produce_Term(
- const char * i_sTerm = 0 );
- Xml::Element & Produce_NormalTerm( /// Font will not be bold.
- const char * i_sTerm = 0 );
- Xml::Element & Produce_Definition();
-};
-
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/display/inc/toolkit/hf_funcdecl.hxx b/autodoc/source/display/inc/toolkit/hf_funcdecl.hxx
deleted file mode 100644
index d1c22eef4548..000000000000
--- a/autodoc/source/display/inc/toolkit/hf_funcdecl.hxx
+++ /dev/null
@@ -1,65 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_DISPLAY_HF_FUNCDECL_HXX
-#define ADC_DISPLAY_HF_FUNCDECL_HXX
-
-
-// USED SERVICES
- // BASE CLASSES
-#include <toolkit/htmlfactory.hxx>
- // COMPONENTS
- // PARAMETERS
-
-class HF_FunctionDeclaration : public HtmlMaker
-{
- public:
- HF_FunctionDeclaration(
- Xml::Element & o_rParent,
- const String & i_sRaisesText );
- virtual ~HF_FunctionDeclaration();
-
- // OPERATIONS
- Xml::Element & ReturnCell();
- Xml::Element & NameCell();
- Xml::Element & NewParamTypeCell();
- Xml::Element & ParamNameCell();
- Xml::Element & ExceptionCell();
-
- private:
- Html::TableRow & ParameterLine();
-
- // DATA
- String sRaisesText;
- Html::Table * pTable;
- Xml::Element * pReturnCell;
- Xml::Element * pNameCell;
- Html::TableRow * pParameterLine;
- Xml::Element * pLastParameterCell;
- Xml::Element * pExceptionCell;
-};
-
-
-// IMPLEMENTATION
-
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/display/inc/toolkit/hf_linachain.hxx b/autodoc/source/display/inc/toolkit/hf_linachain.hxx
deleted file mode 100644
index 0f961583fa20..000000000000
--- a/autodoc/source/display/inc/toolkit/hf_linachain.hxx
+++ /dev/null
@@ -1,66 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_DISPLAY_HF_LINACHAIN_HXX
-#define ADC_DISPLAY_HF_LINACHAIN_HXX
-
-// BASE CLASSES
-#include "htmlfactory.hxx"
-#include "out_position.hxx"
-
-
-
-
-class HF_LinkedNameChain : public HtmlMaker
-{
- public:
- /** F_LinkMaker makes a link out of the name of the
- parent position.
-
- Returns true, if there is a link, false if not.
- */
- typedef String (*F_LinkMaker)(const char *);
-
-
- HF_LinkedNameChain(
- Xml::Element & o_rOut );
- virtual ~HF_LinkedNameChain();
-
- void Produce_CompleteChain(
- const output::Position &
- i_curPosition,
- F_LinkMaker i_linkMaker ) const;
- void Produce_CompleteChain_forModule(
- const output::Position &
- i_curPosition, /// current Module's node
- F_LinkMaker i_linkMaker ) const;
- private:
- void produce_Level(
- output::Node & i_levelNode,
- const output::Position &
- i_startPosition,
- F_LinkMaker i_linkMaker ) const;
-};
-
-
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/display/inc/toolkit/hf_navi_main.hxx b/autodoc/source/display/inc/toolkit/hf_navi_main.hxx
deleted file mode 100644
index 34639e68b75a..000000000000
--- a/autodoc/source/display/inc/toolkit/hf_navi_main.hxx
+++ /dev/null
@@ -1,85 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_DISPLAY_HF_NAVI_MAIN_HXX
-#define ADC_DISPLAY_HF_NAVI_MAIN_HXX
-
-
-
-// USED SERVICES
- // BASE CLASSES
- // COMPONENTS
-#include "htmlfactory.hxx"
- // PARAMETERS
-
-
-class HF_MainItem;
-
-
-/** @task
- Create a HTML navigation bar with lightly coloured background.
-
- @descr
- There are three kinds of items:
- Item with link: Add_StdItem(),
- Item without link: Add_NoneItem(),
- Item that is current page: Add_SelfItem().
-*/
-class HF_NaviMainRow : public HtmlMaker
-{
- public:
- enum E_Style
- {
- eStd,
- eSelf,
- eNo
- };
- HF_NaviMainRow(
- Xml::Element & o_out );
- ~HF_NaviMainRow();
-
- void Add_StdItem(
- const char * i_sText,
- const char * i_sLink );
- void Add_SelfItem(
- const char * i_sText );
- void Add_NoneItem(
- const char * i_sText );
-
- void Produce_Row();
-
- private:
- // DATA
- typedef std::vector< DYN HF_MainItem* > ItemList;
-
- ItemList aItems;
- Xml::Element * pRow;
-};
-
-
-
-// IMPLEMENTATION
-
-
-
-
-#endif
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/display/inc/toolkit/hf_navi_sub.hxx b/autodoc/source/display/inc/toolkit/hf_navi_sub.hxx
deleted file mode 100644
index f1eb3c934a23..000000000000
--- a/autodoc/source/display/inc/toolkit/hf_navi_sub.hxx
+++ /dev/null
@@ -1,74 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_DISPLAY_HF_NAVI_SUB_HXX
-#define ADC_DISPLAY_HFI_NAVI_SUB_HXX
-
-
-
-// USED SERVICES
- // BASE CLASSES
- // COMPONENTS
-#include "htmlfactory.hxx"
- // PARAMETERS
-
-
-class HF_NaviSubRow : public HtmlMaker
-{
- public:
- HF_NaviSubRow(
- Xml::Element & o_rOut );
- virtual ~HF_NaviSubRow();
-
- void AddItem(
- const String & i_sText,
- const String & i_sLink,
- bool i_bSwitchOn );
- void SwitchOn(
- int i_nIndex );
- void Produce_Row();
-
- private:
- typedef std::pair<String,String> SubRow_Data;
- typedef std::pair<SubRow_Data,bool> SubRow_Item;
- typedef std::vector<SubRow_Item> SubRow;
-
- /** Puts the row's table into the parent XML-element, but
- doesn't write the items, because the actvity-status of
- the subitems isn't known yet.
- */
- void Setup_Row();
-
- // DATA
- SubRow aRow;
- Xml::Element * pMyRow;
-};
-
-
-
-
-// IMPLEMENTATION
-
-
-
-
-#endif
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/display/inc/toolkit/hf_title.hxx b/autodoc/source/display/inc/toolkit/hf_title.hxx
deleted file mode 100644
index 83a8552383f3..000000000000
--- a/autodoc/source/display/inc/toolkit/hf_title.hxx
+++ /dev/null
@@ -1,85 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_DISPLAY_HF_TITLE_HXX
-#define ADC_DISPLAY_HF_TITLE_HXX
-
-
-
-// USED SERVICES
- // BASE CLASSES
-#include <toolkit/htmlfactory.hxx>
- // COMPONENTS
- // PARAMETERS
-
-
-class HF_TitleTable : public HtmlMaker
-{
- public:
- HF_TitleTable(
- Xml::Element & o_rOut );
- virtual ~HF_TitleTable();
-
- void Produce_Title(
- const char * i_title );
- void Produce_Title(
- const char * i_annotations,
-// const char * i_label,
- const char * i_title );
-
- /// @return a Html::TableCell reference.
- Xml::Element & Add_Row();
-};
-
-
-class HF_SubTitleTable : public HtmlMaker
-{
- public:
- enum E_SubLevel
- {
- sublevel_1, /// Big title.
- sublevel_2, /// Small title.
- sublevel_3 /// No title.
- };
-
- /** @param i_nColumns [1 .. n]
- @param i_nSubTitleLevel [1 .. 2]
- 1 is a bit bigger than 2.
- */
-
- HF_SubTitleTable(
- Xml::Element & o_rOut,
- const String & i_label,
- const String & i_title,
- int i_nColumns,
- E_SubLevel i_eSubTitleLevel = sublevel_1 );
- virtual ~HF_SubTitleTable();
-
- /// @return an Html::TableRow reference.
- Xml::Element & Add_Row();
-};
-
-
-// IMPLEMENTATION
-
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/display/inc/toolkit/htmlfactory.hxx b/autodoc/source/display/inc/toolkit/htmlfactory.hxx
deleted file mode 100644
index 8e70a1fc51ed..000000000000
--- a/autodoc/source/display/inc/toolkit/htmlfactory.hxx
+++ /dev/null
@@ -1,95 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_DISPLAY_HTMLFACTORY_HXX
-#define ADC_DISPLAY_HTMLFACTORY_HXX
-
-
-
-// USED SERVICES
- // BASE CLASSES
- // COMPONENTS
-#include "outputstack.hxx"
- // PARAMETERS
-#include <udm/xml/xmlitem.hxx>
-#include <udm/html/htmlitem.hxx>
-
-namespace Xml = ::csi::xml;
-namespace Html = ::csi::html;
-
-/** @resp
- Base class for HTML page creators (factories) for code entites or
- similar items.
-*/
-template <class ENV>
-class HtmlFactory
-{
- public:
- // INQUIRY
- ENV & Env() const { return *pEnv; }
- Xml::Element & CurOut() const { return aDestination.Out(); }
-
- // ACCESS
- OutputStack & Out() const { return aDestination; }
-
- protected:
- HtmlFactory(
- ENV & io_rEnv,
- Xml::Element * o_pOut = 0 )
- : pEnv(&io_rEnv) { if (o_pOut != 0) aDestination.Enter(*o_pOut); }
- ~HtmlFactory() {}
- private:
- // DATA
- ENV * pEnv;
- mutable OutputStack aDestination;
-};
-
-
-/** @resp
- Base class for HTML paragraph creators, which are to be put into
- a parent HTML element.
-*/
-class HtmlMaker
-{
- public:
-
- // INQUIRY
- Xml::Element & CurOut() const { return *pOut; }
-
- protected:
- HtmlMaker(
- Xml::Element & o_rOut )
- : pOut(&o_rOut) {}
- private:
- // DATA
- Xml::Element * pOut;
-};
-
-
-
-
-// IMPLEMENTATION
-
-
-
-
-#endif
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/display/inc/toolkit/htmlfile.hxx b/autodoc/source/display/inc/toolkit/htmlfile.hxx
deleted file mode 100644
index 70ddb3252625..000000000000
--- a/autodoc/source/display/inc/toolkit/htmlfile.hxx
+++ /dev/null
@@ -1,79 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_DISPLAY_HTMLFILE_HXX
-#define ADC_DISPLAY_HTMLFILE_HXX
-
-// USED SERVICES
- // BASE CLASSES
- // COMPONENTS
-#include <udm/html/htmlitem.hxx>
- // PARAMETERS
-#include <cosv/ploc.hxx>
-
-namespace csv
-{
- class File;
-}
-
-/** Represents an HTML output file.
-*/
-class DocuFile_Html
-{
- public:
- // LIFECYCLE
- DocuFile_Html();
-
- void SetLocation(
- const csv::ploc::Path &
- i_rFilePath );
- void SetTitle(
- const char * i_sTitle );
- void SetRelativeCssPath(
- const char * i_sCssFile_relativePath );
- void SetCopyright(
- const char * i_sCopyright );
- void EmptyBody();
-
- Html::Body & Body() { return aBodyData; }
- bool CreateFile();
-
- private:
- void WriteHeader(
- csv::File & io_aFile );
- void WriteBody(
- csv::File & io_aFile );
- // DATA
- String sFilePath;
- String sTitle;
- String sLocation;
- String sStyle;
- String sCssFile;
- String sCopyright;
-
- Html::Body aBodyData;
- StreamStr aBuffer;
-};
-
-
-
-#endif
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/display/inc/toolkit/out_node.hxx b/autodoc/source/display/inc/toolkit/out_node.hxx
deleted file mode 100644
index a7ee3e227fa6..000000000000
--- a/autodoc/source/display/inc/toolkit/out_node.hxx
+++ /dev/null
@@ -1,117 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_DISPLAY_OUT_NODE_HXX
-#define ADC_DISPLAY_OUT_NODE_HXX
-
-namespace output
-{
-
-
-/** @resp
- Represents a tree of names where each node can have only one parent,
- but a list of children.
-
- @see Position
- @see Tree
-*/
-class Node
-{
-public:
- typedef std::vector< Node* > NodeList;
- typedef UINT32 relative_id;
-
- // LIFECYCLE
- enum E_NullObject { null_object };
-
- Node();
- explicit Node( E_NullObject );
- ~Node();
-
- // OPERATORS
- bool operator==( const Node& i_node ) const
- { return pParent == i_node.pParent AND sName == i_node.sName; }
-
- bool operator!=( const Node& i_node ) const
- { return NOT operator==(i_node); }
-
- // OPERATIONS
- /// Seek, and if not existent, create.
- Node& Provide_Child( const String& i_name );
-
- /// Seek, and if not existent, create.
- Node& Provide_Child( const StringVector& i_path )
- { return provide_Child(i_path.begin(), i_path.end()); }
- // INQUIRY
- intt Depth() const { return nDepth; }
-
- const String & Name() const { return sName; }
-
- /// @return Id of a namespace or class etc. this directory represents.
- relative_id RelatedNameRoom() const { return nNameRoomId; }
- /// @return No delimiter at start, with delimiter at end.
- void Get_Path(
- StreamStr & o_result,
- intt i_maxDepth = -1
- ) const;
-
- void Get_Chain(
- StringVector & o_result,
- intt i_maxDepth = -1
- ) const;
-
- // ACCESS
- void Set_RelatedNameRoom( relative_id i_nNameRoomId )
- { nNameRoomId = i_nNameRoomId; }
-
- Node* Parent() { return pParent; }
- Node* Child( const String& i_name )
- { return find_Child(i_name); }
-
- /// @return a reference to a Node with Depth() == -1.
- static Node& Null_();
-
-private:
- // Local
- Node(
- const String& i_name,
- Node& i_parent
- );
-
- Node* find_Child( const String& i_name );
-
- Node& add_Child( const String& i_name );
-
- Node& provide_Child(
- StringVector::const_iterator i_next,
- StringVector::const_iterator i_end
- );
- // Data
- String sName;
- Node* pParent;
- NodeList aChildren;
- intt nDepth;
- relative_id nNameRoomId;
-};
-
-
-} // namespace output
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/display/inc/toolkit/out_position.hxx b/autodoc/source/display/inc/toolkit/out_position.hxx
deleted file mode 100644
index e8ed15e39722..000000000000
--- a/autodoc/source/display/inc/toolkit/out_position.hxx
+++ /dev/null
@@ -1,109 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_DISPLAY_OUT_POSITION_HXX
-#define ADC_DISPLAY_OUT_POSITION_HXX
-
-
-// USED SERVICES
- // BASE CLASSES
- // COMPONENTS
-#include <toolkit/out_node.hxx>
- // PARAMETERS
-
-
-
-namespace output
-{
-
-
-
-class Position
-{
- public:
- // LIFECYCLE
- Position();
- explicit Position(
- Node & i_directory,
- const String & i_file = String::Null_() );
- Position(
- const Position & i_directory,
- const String & i_rDifferentFile );
- ~Position();
-
- // OPERATIONS
- Position & operator=(
- Node & i_node );
- Position & operator+=(
- const String & i_nodeName );
- Position & operator-=(
- intt i_levels );
-
- // INQUIRY
- bool IsValid() const { return pDirectory->Depth() >= 0; }
- const String & Name() const { return pDirectory->Name(); }
- const String & File() const { return sFile; }
- intt Depth() const { return pDirectory->Depth(); }
-
- void Get_Chain(
- StringVector & o_result ) const
- { pDirectory->Get_Chain(o_result); }
- String LinkToRoot() const;
-
- void Get_LinkTo(
- StreamStr & o_result,
- const Position & i_destination,
- const String & i_localLabel = String::Null_() ) const;
- void Get_LinkToRoot(
- StreamStr & o_result ) const;
-
- static char Delimiter() { return '/'; }
-
- // ACCESS
- Node & RelatedNode() const { return *pDirectory; }
-
- void Set(
- Node & i_node,
- const String & i_file = String::Null_() );
- void Set_File(
- const String & i_file );
-
- private:
- // DATA
- String sFile;
- Node * pDirectory;
-};
-
-
-/// @return No delimiter at start, with delimiter at end.
-const char * get_UpLink(
- uintt i_depth );
-
-
-// IMPLEMENTATION
-
-inline void
-Position::Set_File( const String & i_file )
- { sFile = i_file; }
-
-} // namespace output
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/display/inc/toolkit/out_tree.hxx b/autodoc/source/display/inc/toolkit/out_tree.hxx
deleted file mode 100644
index 518c39428f69..000000000000
--- a/autodoc/source/display/inc/toolkit/out_tree.hxx
+++ /dev/null
@@ -1,130 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_DISPLAY_OUT_TREE_HXX
-#define ADC_DISPLAY_OUT_TREE_HXX
-
-
-// USED SERVICES
- // BASE CLASSES
- // COMPONENTS
-#include "out_position.hxx"
- // PARAMETERS
-
-
-namespace output
-{
-
-inline const char *
-ModuleFileName()
-{ return "module-ix.html"; }
-inline const char *
-IndexFilesDirName()
-{ return "index-files"; }
-inline const char *
-IndexFile_A()
-{ return "index-1.html"; }
-
-
-class Tree
-{
- public:
- // LIFECYCLE
- Tree();
- ~Tree();
-
- // OPERATIONS
- void Set_Overview(
- const StringVector &
- i_path,
- const String & i_sFileName );
- Node & Set_NamesRoot(
- const StringVector &
- i_path );
- Node & Set_IndexRoot(
- const StringVector &
- i_path );
- Node & Set_ProjectsRoot(
- const StringVector &
- i_path );
- Node & Provide_Node(
- const StringVector &
- i_path );
-
- // ACCESS
- Node & RootNode() { return *pRoot; }
- Node & NamesRootNode() { return *pNamesRoot; }
- Node & IndexRootNode() { return *pIndexRoot; }
- Node & ProjectsRootNode() { return *pProjectsRoot; }
-
- Position Root() { return Position(*pRoot); }
- Position Overview() { return aOverview; }
- Position NamesRoot() { return Position(*pNamesRoot); }
- Position IndexRoot() { return Position(*pIndexRoot); }
- Position ProjectsRoot() { return Position(*pProjectsRoot); }
-
- private:
- // forbidden:
- Tree(const Tree&);
- Tree & operator=(const Tree&);
-
- // DATA
- Dyn<Node> pRoot;
- Node * pNamesRoot;
- Node * pIndexRoot;
- Node * pProjectsRoot;
- Position aOverview;
-};
-
-
-// IMPLEMENTATION
-
-inline Node &
-Tree::Provide_Node( const StringVector & i_path )
- { return pRoot->Provide_Child(i_path); }
-
-
-inline void
-Tree::Set_Overview( const StringVector & i_path,
- const String & i_sFileName )
- { aOverview.Set(Provide_Node(i_path), i_sFileName); }
-
-inline Node &
-Tree::Set_NamesRoot( const StringVector & i_path )
- { pNamesRoot = &Provide_Node(i_path);
- return *pNamesRoot; }
-
-inline Node &
-Tree::Set_IndexRoot( const StringVector & i_path )
- { pIndexRoot = &Provide_Node(i_path);
- return *pIndexRoot; }
-
-inline Node &
-Tree::Set_ProjectsRoot( const StringVector & i_path )
- { pProjectsRoot = &Provide_Node(i_path);
- return *pProjectsRoot; }
-
-
-
-} // namespace output
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/display/inc/toolkit/outputstack.hxx b/autodoc/source/display/inc/toolkit/outputstack.hxx
deleted file mode 100644
index 96e32ecf032b..000000000000
--- a/autodoc/source/display/inc/toolkit/outputstack.hxx
+++ /dev/null
@@ -1,66 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_DISPLAY_OUTPUTSTACK_HXX
-#define ADC_DISPLAY_OUTPUTSTACK_HXX
-
-
-// USED SERVICES
- // BASE CLASSES
- // COMPONENTS
-#include <estack.hxx>
- // PARAMETERS
-#include <udm/xml/xmlitem.hxx>
-
-
-class OutputStack
-{
- public:
- // LIFECYCLE
- OutputStack();
- ~OutputStack();
-
- // OPERATIONS
- void Enter(
- csi::xml::Element & io_rDestination );
- void Leave();
-
- // ACCESS
- csi::xml::Element & Out() const; // CurOutputNode
-
- private:
- EStack< csi::xml::Element * >
- aCurDestination; // The front element is the currently used.
- // The later ones are the parents.
-};
-
-inline csi::xml::Element &
-OutputStack::Out() const
-{
- csv_assert( aCurDestination.size() > 0 );
- return *aCurDestination.top();
-}
-
-// IMPLEMENTATION
-
-
-#endif
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/display/kernel/displfct.cxx b/autodoc/source/display/kernel/displfct.cxx
deleted file mode 100644
index b71df6ce420c..000000000000
--- a/autodoc/source/display/kernel/displfct.cxx
+++ /dev/null
@@ -1,75 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include "displfct.hxx"
-
-
-// NOT FULLY DECLARED SERVICES
-#include <idl/hi_display.hxx>
-#include <cfrstd.hxx>
-
-
-DYN DisplayToolsFactory * DisplayToolsFactory::dpTheInstance_ = 0;
-
-
-namespace autodoc
-{
-
-DisplayToolsFactory_Ifc &
-DisplayToolsFactory_Ifc::GetIt_()
-{
- if ( DisplayToolsFactory::dpTheInstance_ == 0 )
- DisplayToolsFactory::dpTheInstance_ = new DisplayToolsFactory;
- return *DisplayToolsFactory::dpTheInstance_;
-}
-
-} // namespace autodoc
-
-
-DisplayToolsFactory::DisplayToolsFactory()
-{
-}
-
-DisplayToolsFactory::~DisplayToolsFactory()
-{
-}
-
-// DYN autodoc::TextDisplay_FunctionList_Ifc *
-// DisplayToolsFactory::Create_TextDisplay_FunctionList() const
-// {
-// return new CppTextDisplay_FunctionList;
-// }
-
-
-DYN autodoc::HtmlDisplay_Idl_Ifc *
-DisplayToolsFactory::Create_HtmlDisplay_Idl() const
-{
- return new HtmlDisplay_Idl;
-}
-
-const display::CorporateFrame &
-DisplayToolsFactory::Create_StdFrame() const
-{
- static StdFrame aFrame;
- return aFrame;
-}
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/display/kernel/displfct.hxx b/autodoc/source/display/kernel/displfct.hxx
deleted file mode 100644
index 87990533ab85..000000000000
--- a/autodoc/source/display/kernel/displfct.hxx
+++ /dev/null
@@ -1,54 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_DISPLAY_DISPLFCT_HXX
-#define ADC_DISPLAY_DISPLFCT_HXX
-
-
-#include <autodoc/displaying.hxx>
-
-
-/** Interface for parsing code of a programming language and
- delivering the information into an Autodoc Repository.
-**/
-class DisplayToolsFactory : public autodoc::DisplayToolsFactory_Ifc
-{
- public:
- DisplayToolsFactory();
- virtual ~DisplayToolsFactory();
-
-// virtual DYN autodoc::TextDisplay_FunctionList_Ifc *
-// Create_TextDisplay_FunctionList() const;
-
- virtual DYN autodoc::HtmlDisplay_Idl_Ifc *
- Create_HtmlDisplay_Idl() const;
-
- virtual const display::CorporateFrame &
- Create_StdFrame() const;
- private:
- static DYN DisplayToolsFactory *
- dpTheInstance_;
-
- friend class autodoc::DisplayToolsFactory_Ifc;
-};
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/display/toolkit/hf_docentry.cxx b/autodoc/source/display/toolkit/hf_docentry.cxx
deleted file mode 100644
index 41fabe70db44..000000000000
--- a/autodoc/source/display/toolkit/hf_docentry.cxx
+++ /dev/null
@@ -1,68 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <toolkit/hf_docentry.hxx>
-
-
-// NOT FULLY DEFINED SERVICES
-
-
-HF_DocEntryList::HF_DocEntryList( Xml::Element & o_out )
- : HtmlMaker( o_out >>* new Html::DefList )
-{
-}
-
-HF_DocEntryList::~HF_DocEntryList()
-{
-}
-
-Xml::Element &
-HF_DocEntryList::Produce_Term(const char * i_sTerm )
-{
- Xml::Element &
- ret = CurOut()
- >> *new Html::DefListTerm
- >> *new Html::Bold;
- if ( NOT csv::no_str(i_sTerm))
- ret
- << i_sTerm;
- return ret;
-}
-
-Xml::Element &
-HF_DocEntryList::Produce_NormalTerm(const char * i_sTerm)
-{
- Xml::Element &
- ret = CurOut()
- >> *new Html::DefListTerm;
- if ( NOT csv::no_str(i_sTerm))
- ret
- << i_sTerm;
- return ret;
-}
-
-Xml::Element &
-HF_DocEntryList::Produce_Definition()
-{
- return CurOut()
- >> *new Html::DefListDefinition;
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/display/toolkit/hf_funcdecl.cxx b/autodoc/source/display/toolkit/hf_funcdecl.cxx
deleted file mode 100644
index af7e9469aca0..000000000000
--- a/autodoc/source/display/toolkit/hf_funcdecl.cxx
+++ /dev/null
@@ -1,150 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <toolkit/hf_funcdecl.hxx>
-
-
-// NOT FULLY DEFINED SERVICES
-
-const String C_sValignTop("top");
-const String C_sValignBottom("bottom");
-
-
-
-HF_FunctionDeclaration::HF_FunctionDeclaration( Xml::Element & o_rParent,
- const String & i_sRaisesText )
- : HtmlMaker(o_rParent),
- sRaisesText(i_sRaisesText),
- pTable(0),
- pReturnCell(0),
- pNameCell(0),
- pParameterLine(0),
- pLastParameterCell(0),
- pExceptionCell(0)
-{
- pTable = new Html::Table;
- CurOut()
- >> *pTable
- << new Html::ClassAttr("table-in-method")
- << new Xml::AnAttribute("border","0");
-}
-
-HF_FunctionDeclaration::~HF_FunctionDeclaration()
-{
-}
-
-Xml::Element &
-HF_FunctionDeclaration::ReturnCell()
-{
- if (pReturnCell != 0)
- return *pReturnCell;
-
- pReturnCell = &( *pTable
- >> *new Html::TableRow
- >> *new Html::TableCell
- << new Html::VAlignAttr(C_sValignTop)
- << new Xml::AnAttribute("colspan", "3")
- );
- return *pReturnCell;
-}
-
-Xml::Element &
-HF_FunctionDeclaration::NameCell()
-{
- if (pNameCell != 0)
- return *pNameCell;
-
- pNameCell = &( ParameterLine()
- >> *new Html::TableCell
- << new Html::VAlignAttr(C_sValignTop)
- );
- pLastParameterCell = pNameCell;
-
- return *pNameCell;
-}
-
-Xml::Element &
-HF_FunctionDeclaration::NewParamTypeCell()
-{
- if (pLastParameterCell != pNameCell)
- {
- pParameterLine = 0;
- ParameterLine()
- >> *new Html::TableCell;
- }
-
- Xml::Element &
- rParamType = ParameterLine()
- >> *new Html::TableCell
- << new Html::VAlignAttr(C_sValignTop);
- pLastParameterCell
- = &( ParameterLine()
- >> *new Html::TableCell
- << new Html::VAlignAttr(C_sValignBottom)
- << new Xml::XmlCode("&nbsp;")
- );
- return rParamType;
-}
-
-Xml::Element &
-HF_FunctionDeclaration::ParamNameCell()
-{
- csv_assert(pLastParameterCell != pNameCell);
- return *pLastParameterCell;
-}
-
-Xml::Element &
-HF_FunctionDeclaration::ExceptionCell()
-{
- if (pExceptionCell != 0)
- return *pExceptionCell;
-
- Xml::Element &
- rExceptionRow = *pTable
- >> *new Html::TableRow;
- rExceptionRow
- >> *new Html::TableCell
- << new Html::VAlignAttr(C_sValignTop)
- << new Xml::AnAttribute("align", "right")
- << sRaisesText
- << "( ";
-
- pExceptionCell = &( rExceptionRow
- >> *new Html::TableCell
- << new Html::VAlignAttr(C_sValignTop)
- << new Xml::AnAttribute("colspan", "2")
- );
- return *pExceptionCell;
-}
-
-Html::TableRow &
-HF_FunctionDeclaration::ParameterLine()
-{
- if (pParameterLine != 0)
- return *pParameterLine;
-
- pParameterLine = new Html::TableRow;
- *pTable
- >> *pParameterLine;
-
- return *pParameterLine;
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/display/toolkit/hf_linachain.cxx b/autodoc/source/display/toolkit/hf_linachain.cxx
deleted file mode 100644
index 315b17b326a8..000000000000
--- a/autodoc/source/display/toolkit/hf_linachain.cxx
+++ /dev/null
@@ -1,104 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <toolkit/hf_linachain.hxx>
-
-
-// NOT FULLY DEFINED SERVICES
-#include <toolkit/out_position.hxx>
-
-
-
-HF_LinkedNameChain::HF_LinkedNameChain( Xml::Element & o_rOut )
- : HtmlMaker( o_rOut
- >> *new Html::Paragraph
- << new Html::ClassAttr("namechain") )
-{
-}
-
-HF_LinkedNameChain::~HF_LinkedNameChain()
-{
-}
-
-void
-HF_LinkedNameChain::Produce_CompleteChain( const output::Position & i_curPosition,
- F_LinkMaker i_linkMaker ) const
-{
- produce_Level(i_curPosition.RelatedNode(), i_curPosition, i_linkMaker);
-}
-
-void
-HF_LinkedNameChain::Produce_CompleteChain_forModule( const output::Position & i_curPosition,
- F_LinkMaker i_linkMaker ) const
-{
- if (i_curPosition.Depth() == 0)
- return;
- produce_Level(*i_curPosition.RelatedNode().Parent(), i_curPosition, i_linkMaker);
-}
-
-
-
-namespace
-{
-
-StreamStr aLinkBuf(200);
-
-}
-
-void
-HF_LinkedNameChain::produce_Level( output::Node & i_levelNode,
- const output::Position & i_startPosition,
- F_LinkMaker i_linkMaker ) const
-{
- if ( i_levelNode.Depth() > 0 )
- {
- produce_Level( *i_levelNode.Parent(),
- i_startPosition,
- i_linkMaker );
- }
-
- aLinkBuf.reset();
-
- String
- sFileName = (*i_linkMaker)(i_levelNode.Name());
- output::Position
- aLevelPos(i_levelNode, sFileName);
-
- i_startPosition.Get_LinkTo(aLinkBuf, aLevelPos);
-
- if ( i_levelNode.Depth() > 0 )
- {
- CurOut()
- >> *new Html::Link(aLinkBuf.c_str())
- << new Html::ClassAttr("namechain")
- << i_levelNode.Name();
- CurOut() << " :: ";
- }
- else
- {
- CurOut()
- >> *new Html::Link(aLinkBuf.c_str())
- << new Html::ClassAttr("namechain")
- << "::";
- CurOut() << " ";
- }
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/display/toolkit/hf_navi_main.cxx b/autodoc/source/display/toolkit/hf_navi_main.cxx
deleted file mode 100644
index 45e157d5a69b..000000000000
--- a/autodoc/source/display/toolkit/hf_navi_main.cxx
+++ /dev/null
@@ -1,231 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <toolkit/hf_navi_main.hxx>
-
-
-// NOT FULLY DEFINED SERVICES
-#include <cosv/tpl/tpltools.hxx>
-
-
-
-//******************** MainItem and derived ones ***************//
-class HF_MainItem : public HtmlMaker
-{
- public:
- virtual ~HF_MainItem() {}
- void Produce_Item() const { do_ProduceItem(); }
- protected:
- HF_MainItem(
- Xml::Element & o_out )
- : HtmlMaker(o_out) {}
- private:
- virtual void do_ProduceItem() const = 0;
-};
-
-
-namespace
-{
-
-class StdItem : public HF_MainItem
-{
- public:
- StdItem(
- Xml::Element & o_out,
- const char * i_sText,
- const char * i_sLink );
-
- ~StdItem();
- private:
- virtual void do_ProduceItem() const;
-
- // DATA
- String sText;
- String sLink;
-};
-
-class SelfItem : public HF_MainItem
-{
- public:
- SelfItem(
- Xml::Element & o_out,
- const char * i_sText );
- ~SelfItem();
- private:
- virtual void do_ProduceItem() const;
-
- // DATA
- String sText;
-};
-
-class NoneItem : public HF_MainItem
-{
- public:
- NoneItem(
- Xml::Element & o_out,
- const char * i_sText );
- ~NoneItem();
- private:
- virtual void do_ProduceItem() const;
-
- // DATA
- String sText;
-};
-
-} // anonymous namespace
-
-
-
-//******************** HF_NaviMainRow ***************//
-
-
-
-HF_NaviMainRow::HF_NaviMainRow( Xml::Element & o_out )
- : HtmlMaker(o_out),
- aItems(),
- pRow(0)
-{
- aItems.reserve(5);
-
- pRow =
- &( CurOut()
- >> *new Html::Table
- << new Html::ClassAttr("navimain")
- << new Xml::AnAttribute( "border", "0" )
- << new Xml::AnAttribute( "cellpadding", "3" )
- >> *new Html::TableRow
- );
-}
-
-HF_NaviMainRow::~HF_NaviMainRow()
-{
- csv::erase_container_of_heap_ptrs(aItems);
-}
-
-void
-HF_NaviMainRow::Add_StdItem( const char * i_sText,
- const char * i_sLink )
-{
- aItems.push_back(new StdItem( *pRow,i_sText,i_sLink ));
-}
-
-void
-HF_NaviMainRow::Add_SelfItem( const char * i_sText )
-{
- aItems.push_back(new SelfItem( *pRow,i_sText ));
-}
-
-void
-HF_NaviMainRow::Add_NoneItem( const char * i_sText )
-{
- aItems.push_back(new NoneItem( *pRow,i_sText ));
-}
-
-void
-HF_NaviMainRow::Produce_Row()
-{
- ItemList::iterator itEnd = aItems.end();
- for ( ItemList::iterator iter = aItems.begin();
- iter != itEnd;
- ++iter )
- {
- (*iter)->Produce_Item();
- }
-}
-
-
-
-
-//******************** MainItem and derived ones ***************//
-
-namespace
-{
-
-StdItem::StdItem( Xml::Element & o_out,
- const char * i_sText,
- const char * i_sLink )
- : HF_MainItem(o_out),
- sText(i_sText),
- sLink(i_sLink)
-{
-}
-
-StdItem::~StdItem()
-{
-}
-
-void
-StdItem::do_ProduceItem() const
-{
- Xml::Element &
- rCell = CurOut() >>* new Html::TableCell;
- rCell
- << new Html::ClassAttr( "navimain" )
- >> *new Html::Link(sLink.c_str())
- << new Html::ClassAttr( "navimain" )
- << sText.c_str();
-}
-
-SelfItem::SelfItem( Xml::Element & o_out,
- const char * i_sText )
- : HF_MainItem(o_out),
- sText(i_sText)
-{
-}
-
-SelfItem::~SelfItem()
-{
-}
-
-void
-SelfItem::do_ProduceItem() const
-{
- Xml::Element &
- rCell = CurOut() >>* new Html::TableCell;
- rCell
- << new Html::ClassAttr( "navimainself" )
- << sText.c_str();
-}
-
-NoneItem::NoneItem( Xml::Element & o_out,
- const char * i_sText )
- : HF_MainItem(o_out),
- sText(i_sText)
-{
-}
-
-NoneItem::~NoneItem()
-{
-}
-
-void
-NoneItem::do_ProduceItem() const
-{
- Xml::Element &
- rCell = CurOut() >>* new Html::TableCell;
- rCell
- << new Html::ClassAttr( "navimainnone" )
- << sText.c_str();
-}
-
-} // anonymous namespace
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/display/toolkit/hf_navi_sub.cxx b/autodoc/source/display/toolkit/hf_navi_sub.cxx
deleted file mode 100644
index a5dbcf65d4c4..000000000000
--- a/autodoc/source/display/toolkit/hf_navi_sub.cxx
+++ /dev/null
@@ -1,96 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <toolkit/hf_navi_sub.hxx>
-
-
-// NOT FULLY DEFINED SERVICES
-
-
-HF_NaviSubRow::HF_NaviSubRow( Xml::Element & o_rOut )
- : HtmlMaker(o_rOut),
- aRow(),
- pMyRow(0)
-{
- Setup_Row();
-}
-
-HF_NaviSubRow::~HF_NaviSubRow()
-{
-}
-
-void
-HF_NaviSubRow::AddItem( const String & i_sText,
- const String & i_sLink,
- bool i_bSwitchOn )
-{
- aRow.push_back( SubRow_Item( SubRow_Data(i_sText,i_sLink),
- i_bSwitchOn ));
-}
-
-void
-HF_NaviSubRow::SwitchOn( int i_nIndex )
-{
- if ( i_nIndex < int(aRow.size()) )
- aRow[i_nIndex].second = true;
-}
-
-void
-HF_NaviSubRow::Setup_Row()
-{
- Html::Table *
- pTable = new Html::Table;
- CurOut()
- >> *pTable
- << new Html::ClassAttr("navisub")
- << new Xml::AnAttribute( "border", "0" )
- << new Xml::AnAttribute( "cellpadding", "0" );
- pMyRow = &pTable->AddRow();
-}
-
-void
-HF_NaviSubRow::Produce_Row()
-{
- for ( SubRow::const_iterator it = aRow.begin();
- it != aRow.end();
- ++it )
- {
- Xml::Element &
- rCell = *pMyRow
- >> *new Html::TableCell
- << new Html::ClassAttr("navisub");
- StreamLock sl(100);
- Xml::Element &
- rGoon = (*it).second
- ? ( rCell
- >> *new Html::Link( sl()
- << "#"
- << (*it).first.second
- << c_str )
- << new Html::ClassAttr("navisub")
- )
- : rCell;
- rGoon
- << (*it).first.first;
- }
-}
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/display/toolkit/hf_title.cxx b/autodoc/source/display/toolkit/hf_title.cxx
deleted file mode 100644
index aa05ac388a43..000000000000
--- a/autodoc/source/display/toolkit/hf_title.cxx
+++ /dev/null
@@ -1,163 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <toolkit/hf_title.hxx>
-
-
-// NOT FULLY DEFINED SERVICES
-#include <stdlib.h>
-
-
-const String C_sTitleBorder("0");
-const String C_sTitleWidth("100%");
-const String C_sTitlePadding("5");
-const String C_sTitleSpacing("3");
-
-const String C_sSubTitleBorder("1");
-const String C_sSubTitleWidth("100%");
-const String C_sSubTitlePadding("5");
-const String C_sSubTitleSpacing("0");
-const String C_sColSpan("colspan");
-
-
-HF_TitleTable::HF_TitleTable( Xml::Element & o_rOut )
- : HtmlMaker(o_rOut >> *new Html::Table( C_sTitleBorder,
- C_sTitleWidth,
- C_sTitlePadding,
- C_sTitleSpacing )
- << new Html::ClassAttr("title-table")
- << new Html::StyleAttr("margin-bottom:6pt;") )
-{
-}
-
-HF_TitleTable::~HF_TitleTable()
-{
-}
-
-void
-HF_TitleTable::Produce_Title( const char * i_title )
-{
- Add_Row()
- << new Html::ClassAttr("title")
- << i_title;
-}
-
-void
-HF_TitleTable::Produce_Title( const char * i_annotations,
- const char * i_title )
-{
- if (csv::no_str(i_annotations))
- {
- Produce_Title(i_title);
- return;
- }
-
- Xml::Element &
- rRow = Add_Row();
- rRow
- << new Html::ClassAttr("title");
-
- Xml::Element &
- rTable = rRow
- >> *new Html::Table()
- << new Html::ClassAttr("title-table")
- << new Html::WidthAttr("99%");
- Xml::Element &
- rInnerRow = rTable
- >> *new Html::TableRow;
- rInnerRow
- >> *new Html::TableCell
- << new Html::WidthAttr("25%")
- << new Html::ClassAttr("title2")
- << i_annotations;
- rInnerRow
- >> *new Html::TableCell
- << new Html::WidthAttr("50%")
- << new Html::ClassAttr("title")
- << i_title;
- rInnerRow
- >> *new Html::TableCell
- << new Html::WidthAttr("*");
-}
-
-Xml::Element &
-HF_TitleTable::Add_Row()
-{
- return CurOut()
- >> *new Html::TableRow
- >> *new Html::TableCell;
-}
-
-
-inline const char *
-get_SubTitleCssClass(HF_SubTitleTable::E_SubLevel i_eSubTitleLevel)
-{
- return i_eSubTitleLevel == HF_SubTitleTable::sublevel_1
- ? "subtitle"
- : "crosstitle";
-}
-
-
-HF_SubTitleTable::HF_SubTitleTable( Xml::Element & o_rOut,
- const String & i_label,
- const String & i_title,
- int i_nColumns,
- E_SubLevel i_eSubTitleLevel )
- : HtmlMaker( o_rOut
- << new Html::Label(i_label)
- >> *new Html::Table( C_sSubTitleBorder,
- C_sSubTitleWidth,
- C_sSubTitlePadding,
- C_sSubTitleSpacing )
- << new Html::ClassAttr(get_SubTitleCssClass(i_eSubTitleLevel)) )
-{
- csv_assert(i_nColumns > 0);
-
- if (i_eSubTitleLevel == sublevel_3)
- return;
-
- Xml::Element &
- rCell = CurOut()
- >> *new Html::TableRow
- >> *new Html::TableCell
- << new Html::ClassAttr(get_SubTitleCssClass(i_eSubTitleLevel)) ;
-
- if (i_nColumns > 1)
- {
- StreamLock sl(20);
- String sColumns = sl() << i_nColumns << c_str;
- rCell
- << new Xml::AnAttribute(C_sColSpan, sColumns);
- }
- rCell
- << i_title;
-}
-
-HF_SubTitleTable::~HF_SubTitleTable()
-{
-}
-
-Xml::Element &
-HF_SubTitleTable::Add_Row()
-{
- return CurOut() >> *new Html::TableRow;
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/display/toolkit/htmlfile.cxx b/autodoc/source/display/toolkit/htmlfile.cxx
deleted file mode 100644
index 561c66ed92f1..000000000000
--- a/autodoc/source/display/toolkit/htmlfile.cxx
+++ /dev/null
@@ -1,204 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <toolkit/htmlfile.hxx>
-
-// NOT FULLY DECLARED SERVICES
-#include <cosv/file.hxx>
-#include <udm/html/htmlitem.hxx>
-
-namespace
-{
-bool bUse_OOoFrameDiv = true;
-const String C_sOOoFrameDiv_IdlId("adc-idlref");
-}
-
-using namespace csi;
-using csi::xml::AnAttribute;
-
-DocuFile_Html::DocuFile_Html()
- : sFilePath(),
- sTitle(),
- sLocation(),
- sStyle(),
- sCssFile(),
- sCopyright(),
- aBodyData(),
- aBuffer(60000) // Grows dynamically, when necessary.
-{
-}
-
-void
-DocuFile_Html::SetLocation( const csv::ploc::Path & i_rFilePath )
-{
- StreamLock sPath(1000);
- i_rFilePath.Get( sPath() );
-
- sFilePath = sPath().c_str();
-}
-
-void
-DocuFile_Html::SetTitle( const char * i_sTitle )
-{
- sTitle = i_sTitle;
-}
-
-void
-DocuFile_Html::SetRelativeCssPath( const char * i_sCssFile_relativePath )
-{
- sCssFile = i_sCssFile_relativePath;
-}
-
-void
-DocuFile_Html::SetCopyright( const char * i_sCopyright )
-{
- sCopyright = i_sCopyright;
-}
-
-void
-DocuFile_Html::EmptyBody()
-{
- aBodyData.SetContent(0);
-
- if (bUse_OOoFrameDiv)
- {
- // Insert <div> tag to allow better formatting for OOo.
- aBodyData
- << new xml::XmlCode("<div id=\"")
- << new xml::XmlCode(C_sOOoFrameDiv_IdlId)
- << new xml::XmlCode("\">\n\n");
- }
-
- aBodyData
- >> *new html::Label( "_top_" )
- << " ";
-}
-
-bool
-DocuFile_Html::CreateFile()
-{
- csv::File aFile(sFilePath, csv::CFM_CREATE);
- if (NOT aFile.open())
- {
- Cerr() << "Can't create file " << sFilePath << "." << Endl();
- return false;
- }
-
- WriteHeader(aFile);
- WriteBody(aFile);
-
- // Write end
- static const char sCompletion[] = "\n</html>\n";
- aFile.write( sCompletion );
-
- aFile.close();
- Cout() << '.' << Flush();
- return true;
-}
-
-
-void
-DocuFile_Html::WriteHeader( csv::File & io_aFile )
-{
- aBuffer.reset();
-
- static const char s1[] =
- "<html>\n<head>\n<title>";
- static const char s2[] =
- "</title>\n"
- "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n";
-
- aBuffer.write( s1 );
- aBuffer.write( sTitle );
- aBuffer.write( s2 );
-
-
- if (NOT sCssFile.empty())
- {
- static const char s3[] =
- "<link rel=\"stylesheet\" type=\"text/css\" href=\"";
- static const char s4[] =
- "\">\n";
-
- aBuffer.write(s3);
- aBuffer.write(sCssFile);
- aBuffer.write(s4);
- }
-
- if (NOT sStyle.empty())
- {
- static const char s5[] =
- "<style>";
- static const char s6[] =
- "</style>\n";
-
- aBuffer.write(s5);
- aBuffer.write(sStyle);
- aBuffer.write(s6);
- }
-
- static const char s7[] =
- "</head>\n";
- aBuffer.write(s7);
-
- io_aFile.write(aBuffer.c_str(), aBuffer.size());
-}
-
-void
-DocuFile_Html::WriteBody( csv::File & io_aFile )
-{
- aBuffer.reset();
-
- aBodyData
- >> *new html::Link( "#_top_" )
- << "Top of Page";
-
- if ( sCopyright.length() > 0 )
- {
- aBodyData
- << new xml::XmlCode("<hr size=\"3\">");
-
- aBodyData
- >> *new html::Paragraph
- << new html::ClassAttr( "copyright" )
- << new xml::AnAttribute( "align", "center" )
- << new xml::XmlCode(sCopyright);
- }
-
- if (bUse_OOoFrameDiv)
- {
- // Insert <div> tag to allow better formatting for OOo.
- aBodyData
- << new xml::XmlCode("\n</div> <!-- id=\"")
- << new xml::XmlCode(C_sOOoFrameDiv_IdlId)
- << new xml::XmlCode("\" -->\n");
- }
-
- aBodyData.WriteOut(aBuffer);
- io_aFile.write(aBuffer.c_str(), aBuffer.size());
-}
-
-
-
-
-
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/display/toolkit/out_node.cxx b/autodoc/source/display/toolkit/out_node.cxx
deleted file mode 100644
index 0d8b561cd085..000000000000
--- a/autodoc/source/display/toolkit/out_node.cxx
+++ /dev/null
@@ -1,182 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <toolkit/out_node.hxx>
-
-
-// NOT FULLY DEFINED SERVICES
-#include <algorithm>
-
-
-namespace output
-{
-
-
-namespace
-{
-
-struct Less_NodePtr
-{
- bool operator()(
- Node * p1,
- Node * p2 ) const
- { return p1->Name() < p2->Name(); }
-};
-
-struct Less_NodePtr C_Less_NodePtr;
-
-
-Node C_aNullNode(Node::null_object);
-
-
-} // namepace anonymous
-
-
-//********************** Node ***************************//
-
-
-Node::Node()
- : sName(),
- pParent(0),
- aChildren(),
- nDepth(0),
- nNameRoomId(0)
-{
-}
-
-Node::Node( E_NullObject )
- : sName(),
- pParent(0),
- aChildren(),
- nDepth(-1),
- nNameRoomId(0)
-{
-}
-
-Node::Node(
- const String & i_name,
- Node & i_parent
-) :
- sName(i_name),
- pParent(&i_parent),
- aChildren(),
- nDepth(i_parent.Depth()+1),
- nNameRoomId(0)
-{
-}
-
-Node::~Node()
-{
- for ( NodeList::iterator it = aChildren.begin();
- it != aChildren.end();
- ++it )
- {
- delete *it;
- }
-}
-
-Node& Node::Provide_Child( const String & i_name )
-{
- Node* ret = find_Child(i_name);
- if (ret != 0)
- return *ret;
- return add_Child(i_name);
-}
-
-void Node::Get_Path(
- StreamStr& o_result,
- intt i_maxDepth
-) const
-{
- // Intentionally 'i_maxDepth != 0', so max_Depth == -1 sets no limit:
- if (i_maxDepth != 0)
- {
- if (pParent != 0)
- pParent->Get_Path(o_result, i_maxDepth-1);
- o_result << sName << '/';
- }
-}
-
-void Node::Get_Chain(
- StringVector & o_result,
- intt i_maxDepth
-) const
-{
- if (i_maxDepth != 0)
- {
- // This is called also for the toplevel Node,
- // but there happens nothing:
- if (pParent != 0)
- {
- pParent->Get_Chain(o_result, i_maxDepth-1);
- o_result.push_back(sName);
- }
- }
-}
-
-Node* Node::find_Child( const String & i_name )
-{
- Node aSearch;
- aSearch.sName = i_name;
-
- NodeList::const_iterator
- ret = std::lower_bound( aChildren.begin(),
- aChildren.end(),
- &aSearch,
- C_Less_NodePtr );
- if ( ret != aChildren.end() ? (*ret)->Name() == i_name : false )
- return *ret;
-
- return 0;
-}
-
-Node& Node::add_Child( const String & i_name )
-{
- DYN Node* pNew = new Node(i_name,*this);
- aChildren.insert( std::lower_bound( aChildren.begin(),
- aChildren.end(),
- pNew,
- C_Less_NodePtr ),
- pNew );
- return *pNew;
-}
-
-Node& Node::provide_Child(
- StringVector::const_iterator i_next,
- StringVector::const_iterator i_end
-)
-{
- if (i_next == i_end)
- return *this;
- return Provide_Child(*i_next).provide_Child(i_next+1,i_end);
-}
-
-
-
-
-Node& Node::Null_()
-{
- return C_aNullNode;
-}
-
-
-} // namespace output
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/display/toolkit/out_position.cxx b/autodoc/source/display/toolkit/out_position.cxx
deleted file mode 100644
index 5d222bfd8be5..000000000000
--- a/autodoc/source/display/toolkit/out_position.cxx
+++ /dev/null
@@ -1,232 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <toolkit/out_position.hxx>
-
-
-// NOT FULLY DEFINED SERVICES
-
-
-
-namespace output
-{
-
-
-
-namespace
-{
-
-const int C_nAssumedMaxLinkLength = 500;
-
-void move_ToParent(
- Node * & io_node,
- intt i_levels = 1 );
-
-void
-move_ToParent( Node * & io_node,
- intt i_levels )
-{
- for ( intt n = 0; n < i_levels; ++n )
- {
- csv_assert(io_node != 0);
- io_node = io_node->Parent();
- }
-}
-
-
-
-} // namepace anonymous
-
-
-
-Position::Position()
- : sFile(),
- pDirectory(&Node::Null_())
-{
-}
-
-
-Position::Position( Node & i_directory,
- const String & i_file )
- : sFile(i_file),
- pDirectory(&i_directory)
-{
-}
-
-Position::Position( const Position & i_directory,
- const String & i_sDifferentFile )
- : sFile(i_sDifferentFile),
- pDirectory(i_directory.pDirectory)
-{
-}
-
-
-Position::~Position()
-{
-}
-
-
-Position &
-Position::operator=( Node & i_node )
-{
- pDirectory = &i_node;
- sFile.clear();
- return *this;
-}
-
-Position &
-Position::operator+=( const String & i_nodeName )
-{
- csv_assert(pDirectory != 0);
-
- pDirectory = &pDirectory->Provide_Child(i_nodeName);
- sFile.clear();
-
- return *this;
-}
-
-Position &
-Position::operator-=( intt i_levels )
-{
- csv_assert(pDirectory != 0);
-
- for ( intt i = i_levels; i > 0; --i )
- {
- pDirectory = pDirectory->Parent();
- if (pDirectory == 0)
- {
- pDirectory = &Node::Null_();
- i = 0;
- }
- }
- sFile.clear();
-
- return *this;
-}
-
-String
-Position::LinkToRoot() const
-{
- StreamLock sl(C_nAssumedMaxLinkLength);
- return sl() << get_UpLink(Depth()) << c_str;
-}
-
-void
-Position::Get_LinkTo( StreamStr & o_result,
- const Position & i_destination,
- const String & i_localLabel ) const
-{
- Node * p1 = pDirectory;
- Node * p2 = i_destination.pDirectory;
-
- intt diff = Depth() - i_destination.Depth();
- intt pathLength1 = 0;
- intt pathLength2 = 0;
-
- if ( diff > 0 )
- {
- pathLength1 = diff;
- move_ToParent(p1,pathLength1);
- }
- else if ( diff < 0 )
- {
- pathLength2 = -diff;
- move_ToParent(p2,pathLength2);
- }
-
- while ( p1 != p2 )
- {
- move_ToParent(p1);
- move_ToParent(p2);
- ++pathLength1;
- ++pathLength2;
- }
-
- o_result << get_UpLink(pathLength1);
- i_destination.pDirectory->Get_Path(o_result, pathLength2);
- o_result << i_destination.sFile;
- if (i_localLabel.length())
- o_result << "#" << i_localLabel;
-}
-
-void
-Position::Get_LinkToRoot( StreamStr & o_result ) const
-{
- o_result << get_UpLink(Depth());
-}
-
-void
-Position::Set( Node & i_node,
- const String & i_file )
-{
- sFile = i_file;
- pDirectory = &i_node;
-}
-
-
-
-
-const char *
-get_UpLink(uintt i_depth)
-{
- static const uintt
- C_nMaxDepth = 30;
- static const char
- C_sUpLinkArray[3*C_nMaxDepth+1] =
- "../../../../../../../../../../"
- "../../../../../../../../../../"
- "../../../../../../../../../../";
- static const char *
- C_sUpLink = &C_sUpLinkArray[0];
-
- if ( i_depth <= C_nMaxDepth )
- {
- return C_sUpLink + 3*(C_nMaxDepth - i_depth);
- }
- else
- { // not THREAD fast
- static std::vector<char>
- aRet;
- uintt nNeededSize = i_depth * 3 + 1;
-
- if (aRet.size() < nNeededSize)
- {
- aRet.resize(nNeededSize);
- char * pEnd = &aRet[nNeededSize-1];
- *pEnd = '\0';
-
- for ( char * pFill = &(*aRet.begin());
- pFill != pEnd;
- pFill += 3 )
- {
- memcpy(pFill, C_sUpLink, 3);
- }
- } // end if
-
- return &aRet[aRet.size() - 1 - 3*i_depth];
- }
-}
-
-
-
-
-} // namespace output
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/display/toolkit/out_tree.cxx b/autodoc/source/display/toolkit/out_tree.cxx
deleted file mode 100644
index ab3fee11b680..000000000000
--- a/autodoc/source/display/toolkit/out_tree.cxx
+++ /dev/null
@@ -1,47 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <toolkit/out_tree.hxx>
-
-
-// NOT FULLY DEFINED SERVICES
-
-
-namespace output
-{
-
-Tree::Tree()
- : pRoot(new Node),
- pNamesRoot(pRoot.Ptr()),
- pIndexRoot(pRoot.Ptr()),
- pProjectsRoot(pRoot.Ptr()),
- aOverview()
-{
-}
-
-Tree::~Tree()
-{
-}
-
-
-
-} // namespace output
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/display/toolkit/outputstack.cxx b/autodoc/source/display/toolkit/outputstack.cxx
deleted file mode 100644
index 261344a7cbd1..000000000000
--- a/autodoc/source/display/toolkit/outputstack.cxx
+++ /dev/null
@@ -1,51 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <toolkit/outputstack.hxx>
-
-
-// NOT FULLY DEFINED SERVICES
-
-
-
-OutputStack::OutputStack()
-{
-}
-
-OutputStack::~OutputStack()
-{
-}
-
-void
-OutputStack::Enter( csi::xml::Element & io_rDestination )
-{
- aCurDestination.push(&io_rDestination);
-}
-
-void
-OutputStack::Leave()
-{
- csv_assert( NOT aCurDestination.empty() );
- aCurDestination.pop();
-}
-
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/exes/adc_uni/adc_cl.cxx b/autodoc/source/exes/adc_uni/adc_cl.cxx
deleted file mode 100644
index 142bcdfa7b09..000000000000
--- a/autodoc/source/exes/adc_uni/adc_cl.cxx
+++ /dev/null
@@ -1,383 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <adc_cl.hxx>
-
-
-// NOT FULLY DEFINED SERVICES
-#include <algorithm>
-#include <cosv/x.hxx>
-#include <cosv/file.hxx>
-#include <cosv/tpl/tpltools.hxx>
-#include <ary/ary.hxx>
-#include <tools/tkpchars.hxx>
-#include <adc_msg.hxx>
-#include "adc_cmds.hxx"
-#include "adc_cmd_parse.hxx"
-#include "cmd_sincedata.hxx"
-
-
-namespace autodoc
-{
-
-CommandLine * CommandLine::pTheInstance_ = 0;
-
-const char * const C_sUserGuide =
-"\n\n\n"
-" General Use of Autodoc\n"
-" ----------------------\n"
-"\n"
-" Example for IDL:\n"
-"\n"
-" -html <OutputDirectory> -name \"UDK 3.x anything\" -lg idl\n"
-" -t <SourceDir1> <SourceDir2>\n"
-"\n"
-" Instead of or in addition to -t may be\n"
-" used -d (no subdirectories) or -f (just one file). There can\n"
-" be multiple arguments after each of these options (-t -d -f).\n"
-"\n"
-"\n"
-" Replacing @since Tag Content\n"
-" ----------------------------\n"
-"\n"
-" You can give a transformation file to replace\n"
-" entries in @since tags by different entries.\n"
-" This file is given by the option\n"
-" -sincefile <TransformationFilePath>\n"
-" This option has to appear between the -html and the -lg option.\n"
-" Example:\n"
-" -html <OutputDirectory> -sincefile replacesince.txt\n"
-" -name \"UDK 3.x anything\" -lg idl -t <SourceDir>\n"
-"\n"
-"\n";
-
-CommandLine::CommandLine()
- : nDebugStyle(0),
- pSinceTransformator(new command::SinceTagTransformationData),
- aCommands(),
- bInitOk(false),
- pCommand_CreateHtml(0),
- pReposy( & ary::Repository::Create_() ),
- bIdl(false)
-{
- csv_assert(pTheInstance_ == 0);
- pTheInstance_ = this;
-}
-
-CommandLine::~CommandLine()
-{
- csv::erase_container_of_heap_ptrs(aCommands);
- pTheInstance_ = 0;
-}
-
-int
-CommandLine::Run() const
-{
- Cout() << "\nAutodoc version 2.2.5"
- << "\n---------------------"
- << "\n" << Endl();
-
- bool
- ok = true;
- for ( CommandList::const_iterator it = aCommands.begin();
- ok AND it != aCommands.end();
- ++it )
- {
- ok = (*it)->Run();
- }
-
- if (pCommand_CreateHtml != 0)
- {
- StreamStr aDiagnosticMessagesFile(700);
- aDiagnosticMessagesFile
- << pCommand_CreateHtml->OutputDir()
- << csv::ploc::Delimiter()
- << "Autodoc_DiagnosticMessages.txt";
- TheMessages().WriteFile(aDiagnosticMessagesFile.c_str());
- }
-
- return ok ? 0 : 1;
-}
-
-CommandLine &
-CommandLine::Get_()
-{
- csv_assert(pTheInstance_ != 0);
- return *pTheInstance_;
-}
-
-bool
-CommandLine::DoesTransform_SinceTag() const
-{
- return pSinceTransformator->DoesTransform();
-}
-
-//bool
-//CommandLine::Strip_SinceTagText( String & io_sSinceTagValue ) const
-//{
-// return pSinceTransformator->StripSinceTagText(io_sSinceTagValue);
-//}
-
-const String &
-CommandLine::DisplayOf_SinceTagValue( const String & i_sVersionNumber ) const
-{
- return pSinceTransformator->DisplayOf(i_sVersionNumber);
-}
-
-void
-CommandLine::do_Init( int argc,
- char * argv[] )
-{
- try
- {
- bInitOk = false;
- StringVector aParameters;
-
- char * * itpEnd = &argv[0] + argc;
- for ( char * * itp = &argv[1]; itp != itpEnd; ++itp )
- {
- if ( strncmp(*itp, "-I:", 3) != 0 )
- aParameters.push_back(String(*itp));
- else
- load_IncludedCommands(aParameters, (*itp)+3);
- }
-
- StringVector::const_iterator itEnd = aParameters.end();
- for ( StringVector::const_iterator it = aParameters.begin();
- it != itEnd;
- )
- {
- if ( *it == command::C_opt_Verbose )
- do_clVerbose(it,itEnd);
- else if ( *it == command::C_opt_LangAll
- OR *it == command::C_opt_Name
- OR *it == command::C_opt_DevmanFile )
- do_clParse(it,itEnd);
- else if (*it == command::C_opt_CreateHtml)
- do_clCreateHtml(it,itEnd);
- else if (*it == command::C_opt_SinceFile)
- do_clSinceFile(it,itEnd);
- else if (*it == command::C_opt_ExternNamespace)
- {
- sExternNamespace = *(++it);
- ++it;
- if ( strncmp(sExternNamespace.c_str(), "::", 2) != 0)
- {
- throw command::X_CommandLine(
- "-extnsp needs an absolute qualified namespace, starting with \"::\"."
- );
- }
- }
- else if (*it == command::C_opt_ExternRoot)
- {
- ++it;
- StreamLock sl(1000);
- if ( csv::compare(*it, 0, "http://", 7) != 0 )
- {
- sl() << "http://" << *it;
- }
- if ( *(sl().end()-1) != '/')
- sl() << '/';
- sExternRoot = sl().c_str();
-
- ++it;
- }
-// else if (*it == command::C_opt_CreateXml)
-// do_clCreateXml(it,itEnd);
-// else if (command::C_opt_Load)
-// do_clLoad(it,itEnd);
-// else if (*it == command::C_opt_Save)
-// do_clSave(it,itEnd);
- else if (*it == "-h" OR *it == "-?" OR *it == "?")
- // Leads to displaying help, because bInitOk stays on false.
- return;
- else if ( *it == command::C_opt_Parse )
- // Only for backwards compatibility.
- // Just ignore "-parse".
- ++it;
- else
- {
- StreamLock sl(200);
- throw command::X_CommandLine(
- sl() << "Unknown commandline option \""
- << *it
- << "\"."
- << c_str );
- }
- } // end for
- sort_Commands();
-
- bInitOk = true;
-
- } // end try
- catch ( command::X_CommandLine & xxx )
- {
- xxx.Report( Cerr() );
- }
- catch ( csv::Exception & xxx )
- {
- xxx.GetInfo( Cerr() );
- }
-}
-
-void
-CommandLine::do_PrintUse() const
-{
- Cout() << C_sUserGuide << Endl();
-}
-
-bool
-CommandLine::inq_CheckParameters() const
-{
- if (NOT bInitOk OR aCommands.empty())
- return false;
- return true;
-}
-
-void
-CommandLine::load_IncludedCommands( StringVector & out,
- const char * i_filePath )
-{
- CharacterSource
- aIncludedCommands;
- csv::File
- aFile(i_filePath, csv::CFM_READ);
- if (NOT aFile.open())
- {
- Cerr() << "Command include file \""
- << i_filePath
- << "\" not found."
- << Endl();
- throw command::X_CommandLine("Invalid file in option -I:<command-file>.");
- }
- aIncludedCommands.LoadText(aFile);
- aFile.close();
-
- bool bInToken = false;
- StreamLock aTransmit(200);
- for ( ; NOT aIncludedCommands.IsFinished(); aIncludedCommands.MoveOn() )
- {
- if (bInToken)
- {
- if (aIncludedCommands.CurChar() <= 32)
- {
- const char *
- pToken = aIncludedCommands.CutToken();
- bInToken = false;
-
- if ( strncmp(pToken, "-I:", 3) != 0 )
- {
- aTransmit().seekp(0);
- aTransmit() << pToken;
- aTransmit().replace_all('\\', *csv::ploc::Delimiter());
- aTransmit().replace_all('/', *csv::ploc::Delimiter());
- out.push_back(String(aTransmit().c_str()));
- }
- else
- load_IncludedCommands(out, pToken+3);
- }
- }
- else
- {
- if (aIncludedCommands.CurChar() > 32)
- {
- aIncludedCommands.CutToken();
- bInToken = true;
- }
- } // endif (bInToken) else
-
- } // end while()
-}
-
-namespace
-{
-inline int
-v_nr(StringVector::const_iterator it)
-{
- return int( *(*it).c_str() ) - int('0');
-}
-} // anonymous namespace
-
-void
-CommandLine::do_clVerbose( opt_iter & it,
- opt_iter itEnd )
-{
- ++it;
- if ( it == itEnd ? true : v_nr(it) < 0 OR v_nr(it) > 7 )
- throw command::X_CommandLine( "Missing or invalid number in -v option." );
- nDebugStyle = v_nr(it);
- ++it;
-}
-
-void
-CommandLine::do_clParse( opt_iter & it,
- opt_iter itEnd )
-{
- command::Command *
- pCmd_Parse = new command::Parse;
- pCmd_Parse->Init(it, itEnd);
- aCommands.push_back(pCmd_Parse);
-}
-
-void
-CommandLine::do_clCreateHtml( opt_iter & it,
- opt_iter itEnd )
-{
- pCommand_CreateHtml = new command::CreateHtml;
- pCommand_CreateHtml->Init(it, itEnd);
- aCommands.push_back(pCommand_CreateHtml);
-}
-
-void
-CommandLine::do_clSinceFile( opt_iter & it,
- opt_iter itEnd )
-{
- pSinceTransformator->Init(it, itEnd);
-}
-
-
-namespace
-{
-
-struct Less_RunningRank
-{
- bool operator()(
- const command::Command * const &
- i1,
- const command::Command * const &
- i2 ) const
- { return i1->RunningRank() < i2->RunningRank(); }
-};
-
-} // anonymous namespace
-
-
-
-void
-CommandLine::sort_Commands()
-{
- std::sort( aCommands.begin(),
- aCommands.end(),
- Less_RunningRank() );
-}
-
-} // namespace autodoc
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/exes/adc_uni/adc_cmd.hxx b/autodoc/source/exes/adc_uni/adc_cmd.hxx
deleted file mode 100644
index 1b20627bf6bd..000000000000
--- a/autodoc/source/exes/adc_uni/adc_cmd.hxx
+++ /dev/null
@@ -1,125 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_ADC_CMD_HXX
-#define ADC_ADC_CMD_HXX
-
-
-
-// USED SERVICES
- // BASE CLASSES
-#include <cosv/comdline.hxx>
- // COMPONENTS
- // PARAMETERS
-
-
-namespace autodoc
-{
-namespace command
-{
-
-/** Context for a command, which can be read from the command line.
-*/
-class Context
-{
- public:
- typedef StringVector::const_iterator opt_iter;
-
- virtual ~Context() {}
-
- void Init(
- opt_iter & it,
- opt_iter itEnd );
- private:
- virtual void do_Init(
- opt_iter & it,
- opt_iter itEnd ) = 0;
-};
-
-// IMPLEMENTATION
-inline void
-Context::Init( opt_iter & i_nCurArgsBegin,
- opt_iter i_nEndOfAllArgs )
-
-{ do_Init(i_nCurArgsBegin, i_nEndOfAllArgs); }
-
-
-
-/** Interface for commands, autodoc is able to perform.
-*/
-class Command : public Context
-{
- public:
- /** Running ranks of the commands are to be maintained at one location:
- Here!
- */
- enum E_Ranks
- {
- rank_Load = 10,
- rank_Parse = 20,
- rank_Save = 30,
- rank_CreateHtml = 40,
- rank_CreateXml = 50
- };
-
-
- bool Run() const;
- int RunningRank() const;
-
- private:
- virtual bool do_Run() const = 0;
- virtual int inq_RunningRank() const = 0;
-};
-
-// IMPLEMENTATION
-inline bool
-Command::Run() const
-{ return do_Run(); }
-inline int
-Command::RunningRank() const
-{ return inq_RunningRank(); }
-
-
-
-
-/** The exception thrown, if the command line is invalid.
-*/
-class X_CommandLine
-{
- public:
- X_CommandLine(
- const char * i_sExplanation )
- : sExplanation(i_sExplanation) {}
-
- void Report(
- std::ostream & o_rOut )
- { o_rOut << "Error in command line: "
- << sExplanation << Endl(); }
- private:
- String sExplanation;
-};
-
-
-
-
-} // namespace command
-} // namespace autodoc
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/exes/adc_uni/adc_cmd_parse.cxx b/autodoc/source/exes/adc_uni/adc_cmd_parse.cxx
deleted file mode 100644
index 2129943e4078..000000000000
--- a/autodoc/source/exes/adc_uni/adc_cmd_parse.cxx
+++ /dev/null
@@ -1,319 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include "adc_cmd_parse.hxx"
-
-
-// NOT FULLY DEFINED SERVICES
-#include <cosv/tpl/tpltools.hxx>
-#include <adc_cl.hxx>
-#include "adc_cmds.hxx"
-#include "cmd_run.hxx"
-
-
-
-namespace autodoc
-{
-namespace command
-{
-
-namespace
-{
-
-const String C_FileEnding_idl("*.idl");
-
-inline void
-CHECK( bool b, const String & text )
-{
- if (NOT b)
- throw X_CommandLine( text );
-}
-
-} // anonymous namespace
-
-
-
-//************************** S_LanguageInfo ***********************//
-
-S_LanguageInfo::~S_LanguageInfo()
-{
-}
-
-void
-S_LanguageInfo::do_Init( opt_iter & it,
- opt_iter itEnd )
-{
- ++it; // Cur is language.
- CHECKOPT( it != itEnd AND
- *it == C_arg_Idl,
- "language",
- C_opt_LangAll );
-
- if ( *it == C_arg_Idl ) {
- eLanguage = idl;
- }
- else {
- csv_assert(false);
- }
-
- switch (eLanguage)
- {
- case idl: aExtensions.push_back( C_FileEnding_idl );
- CommandLine::Get_().Set_IdlUsed();
- break;
- default: // do nothing.
- ;
- }
-
- ++it; // Cur is next option.
-}
-
-void
-S_LanguageInfo::InitExtensions( opt_iter & it,
- opt_iter itEnd )
-{
- ++it;
- CHECKOPT( it != itEnd AND (*it).char_at(0) == '.',
- "extensions",
- C_opt_ExtensionsAll );
-
- StreamLock slCheck(150);
- slCheck() << C_opt_ExtensionsAll
- << " used without previous "
- << C_opt_LangAll;
-
- CHECK( eLanguage != none,
- slCheck().c_str() );
-
- do {
- aExtensions.push_back(*it);
- ++it;
- } while (it != itEnd AND (*it).char_at(0) == '.');
-}
-
-
-
-//************************** Parse ***********************//
-
-Parse::Parse()
- : sRepositoryName(),
- aGlobalLanguage(),
- aProjects(),
- sDevelopersManual_RefFilePath()
-{
-}
-
-Parse::~Parse()
-{
- csv::erase_container_of_heap_ptrs(aProjects);
-}
-
-void
-Parse::do_Init( opt_iter & it,
- opt_iter itEnd )
-{
- for ( ; it != itEnd; )
- {
- if (*it == C_opt_Name)
- do_clName(it, itEnd);
- else if (*it == C_opt_LangAll)
- aGlobalLanguage.Init(it, itEnd);
- else if (*it == C_opt_ExtensionsAll)
- aGlobalLanguage.InitExtensions(it, itEnd);
- else if (*it == C_opt_DevmanFile)
- do_clDevManual(it, itEnd);
- else if (*it == C_opt_Project)
- do_clProject(it, itEnd);
- else if ( *it == C_opt_SourceTree
- OR *it == C_opt_SourceDir
- OR *it == C_opt_SourceFile )
- do_clDefaultProject(it, itEnd);
- else
- break;
- } // for
-}
-
-void
-Parse::do_clName( opt_iter & it,
- opt_iter itEnd )
-{
- ++it;
- CHECKOPT( it != itEnd AND (*it).char_at(0) != '-',
- "name",
- C_opt_Name );
- sRepositoryName = *it;
- ++it;
-}
-
-void
-Parse::do_clDevManual( opt_iter & it,
- opt_iter itEnd )
-{
- ++it;
- CHECKOPT( it != itEnd AND (*it).char_at(0) != '-',
- "link file path",
- C_opt_DevmanFile );
- sDevelopersManual_RefFilePath = *it;
- ++it;
-}
-
-void
-Parse::do_clProject( opt_iter & it,
- opt_iter itEnd )
-{
- if ( aProjects.size() == 1 )
- {
- if ( aProjects.front()->IsDefault() )
- throw X_CommandLine( "Both, named projects and a default project, cannot be used together." );
- }
-
- S_ProjectData * dpProject = new S_ProjectData(aGlobalLanguage);
- ++it;
- dpProject->Init(it, itEnd);
- aProjects.push_back(dpProject);
-}
-
-void
-Parse::do_clDefaultProject( opt_iter & it,
- opt_iter itEnd )
-{
- if ( !aProjects.empty() )
- {
- throw X_CommandLine( "Both, named projects and a default project, cannot be used together." );
- }
-
- S_ProjectData * dpProject = new S_ProjectData( aGlobalLanguage,
- S_ProjectData::default_prj );
- dpProject->Init(it, itEnd);
- aProjects.push_back(dpProject);
-}
-
-bool
-Parse::do_Run() const
-{
- run::Parser
- aParser(*this);
- return aParser.Perform();
-}
-
-int
-Parse::inq_RunningRank() const
-{
- return static_cast<int>(rank_Parse);
-}
-
-
-
-//************************** S_Sources ***********************//
-
-void
-S_Sources::do_Init( opt_iter & it,
- opt_iter itEnd )
-{
- StringVector *
- pList = 0;
- csv_assert((*it)[0] == '-');
-
- for ( ; it != itEnd; ++it)
- {
- if ((*it)[0] == '-')
- {
- if (*it == C_opt_SourceTree)
- pList = &aTrees;
- else if (*it == C_opt_SourceDir)
- pList = &aDirectories;
- else if (*it == C_opt_SourceFile)
- pList = &aFiles;
- else
- return;
- }
- else
- pList->push_back(*it);
- } // end for
-}
-
-
-
-//************************** S_ProjectData ***********************//
-
-
-S_ProjectData::S_ProjectData( const S_LanguageInfo & i_globalLanguage )
- : sName(),
- aRootDirectory(),
- aLanguage(i_globalLanguage),
- aFiles(),
- bIsDefault(false)
-{
-}
-
-S_ProjectData::S_ProjectData( const S_LanguageInfo & i_globalLanguage,
- E_Default )
- : sName(),
- aRootDirectory("."),
- aLanguage(i_globalLanguage),
- aFiles(),
- bIsDefault(true)
-{
-}
-
-S_ProjectData::~S_ProjectData()
-{
-}
-
-void
-S_ProjectData::do_Init( opt_iter & it,
- opt_iter itEnd )
-{
- if (NOT IsDefault())
- {
- CHECKOPT( it != itEnd AND (*it).char_at(0) != '-',
- "name",
- C_opt_Project );
- sName = *it;
- ++it;
-
- CHECKOPT( it != itEnd AND (*it).char_at(0) != '-',
- "root directory",
- C_opt_Project );
- aRootDirectory.Set((*it).c_str(), true);
- ++it;
- }
-
- for ( ; it != itEnd; )
- {
- if ( *it == C_opt_SourceTree
- OR *it == C_opt_SourceDir
- OR *it == C_opt_SourceFile )
- aFiles.Init(it, itEnd);
-// else if (*it == C_opt_Lang)
-// aLanguage.Init(it, itEnd);
-// else if (*it == C_opt_Extensions)
-// aLanguage.InitExtensions(it, itEnd);
- else
- break;
- } // for
-}
-
-} // namespace command
-} // namespace autodoc
-
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/exes/adc_uni/adc_cmd_parse.hxx b/autodoc/source/exes/adc_uni/adc_cmd_parse.hxx
deleted file mode 100644
index ab7853494005..000000000000
--- a/autodoc/source/exes/adc_uni/adc_cmd_parse.hxx
+++ /dev/null
@@ -1,200 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_ADC_CMD_PARSE_HXX
-#define ADC_ADC_CMD_PARSE_HXX
-
-
-
-// USED SERVICES
- // BASE CLASSES
-#include "adc_cmd.hxx"
- // COMPONENTS
-#include <cosv/ploc.hxx>
- // PARAMETERS
-
-namespace autodoc
-{
-namespace command
-{
-
-/** A command context which holds the currently parsed programing language
- and its valid file extensions.
-*/
-struct S_LanguageInfo : public Context
-{
- enum E_ProgrammingLanguage
- {
- none,
- idl
- };
- S_LanguageInfo()
- : eLanguage(none),
- aExtensions() {}
- ~S_LanguageInfo();
-
- void InitExtensions(
- opt_iter & it,
- opt_iter itEnd );
- // DATA
- E_ProgrammingLanguage
- eLanguage;
- StringVector aExtensions; // An empty string is possible and means exactly that: files without extension.
-
- private:
- // Interface Context:
- virtual void do_Init(
- opt_iter & it,
- opt_iter itEnd );
-};
-
-
-class S_ProjectData;
-
-
-/** A command that parses source code into the Autodoc Repository.
-*/
-class Parse : public Command
-{
- public:
- typedef std::vector< DYN S_ProjectData * > ProjectList;
- typedef ProjectList::const_iterator ProjectIterator;
-
- Parse();
- ~Parse();
-
- // INQUIRY
- const String & ReposyName() const;
- const S_LanguageInfo &
- GlobalLanguage() const;
- ProjectIterator ProjectsBegin() const;
- ProjectIterator ProjectsEnd() const;
- const String & DevelopersManual_RefFilePath() const
- { return sDevelopersManual_RefFilePath; }
-
- private:
- // Interface Context:
- virtual void do_Init(
- opt_iter & i_nCurArgsBegin,
- opt_iter i_nEndOfAllArgs );
- // Interface Command:
- virtual bool do_Run() const;
- virtual int inq_RunningRank() const;
-
- // Locals
- void do_clName(
- opt_iter & it,
- opt_iter itEnd );
- void do_clDevManual(
- opt_iter & it,
- opt_iter itEnd );
- void do_clProject(
- opt_iter & it,
- opt_iter itEnd );
- void do_clDefaultProject(
- opt_iter & it,
- opt_iter itEnd );
-
- // DATA
- String sRepositoryName;
- S_LanguageInfo aGlobalLanguage;
-
- ProjectList aProjects;
-
- String sDevelopersManual_RefFilePath;
-};
-
-inline const String &
-Parse::ReposyName() const
- { return sRepositoryName; }
-inline const S_LanguageInfo &
-Parse::GlobalLanguage() const
- { return aGlobalLanguage; }
-inline Parse::ProjectIterator
-Parse::ProjectsBegin() const
- { return aProjects.begin(); }
-inline Parse::ProjectIterator
-Parse::ProjectsEnd() const
- { return aProjects.end(); }
-//inline const String &
-//Parse::DevelopersManual_RefFilePath() const
-// { return sDevelopersManual_RefFilePath; }
-//inline const String &
-//Parse::DevelopersManual_HtmlRoot() const
-// { return sDevelopersManual_HtmlRoot; }
-
-
-struct S_Sources : public Context
-{
- StringVector aTrees;
- StringVector aDirectories;
- StringVector aFiles;
-
- private:
- // Interface Context:
- virtual void do_Init(
- opt_iter & it,
- opt_iter itEnd );
-};
-
-class S_ProjectData : public Context
-{
- public:
- enum E_Default { default_prj };
-
- S_ProjectData(
- const S_LanguageInfo &
- i_globalLanguage );
- S_ProjectData(
- const S_LanguageInfo &
- i_globalLanguage,
- E_Default unused );
- ~S_ProjectData();
-
- bool IsDefault() const { return bIsDefault; }
- const String & Name() const { return sName; }
- const csv::ploc::Path &
- RootDirectory() const { return aRootDirectory; }
- const S_LanguageInfo &
- Language() const { return aLanguage; }
- const S_Sources Sources() const { return aFiles; }
-
- private:
- // Interface Context:
- virtual void do_Init(
- opt_iter & it,
- opt_iter itEnd );
- // Locals
-
- // DATA
- String sName;
- csv::ploc::Path aRootDirectory;
- S_LanguageInfo aLanguage;
- S_Sources aFiles;
- bool bIsDefault;
-};
-
-
-} // namespace command
-} // namespace autodoc
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/exes/adc_uni/adc_cmds.cxx b/autodoc/source/exes/adc_uni/adc_cmds.cxx
deleted file mode 100644
index 79bbade7dbda..000000000000
--- a/autodoc/source/exes/adc_uni/adc_cmds.cxx
+++ /dev/null
@@ -1,148 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include "adc_cmds.hxx"
-
-
-// NOT FULLY DEFINED SERVICES
-#include <ary/ary.hxx>
-#include <autodoc/displaying.hxx>
-#include <autodoc/dsp_html_std.hxx>
-#include <display/corframe.hxx>
-#include <adc_cl.hxx>
-
-
-namespace autodoc
-{
-namespace command
-{
-
-extern const String C_opt_Include("-I:");
-
-extern const String C_opt_Verbose("-v");
-
-extern const String C_opt_Parse("-parse");
-extern const String C_opt_Name("-name");
-extern const String C_opt_LangAll("-lg");
-extern const String C_opt_ExtensionsAll("-extg");
-extern const String C_opt_DevmanFile("-dvgfile");
-extern const String C_opt_SinceFile("-sincefile");
-
-extern const String C_arg_Idl("idl");
-
-extern const String C_opt_Project("-p");
-//extern const String C_opt_Lang;
-//extern const String C_opt_Extensions;
-extern const String C_opt_SourceDir("-d");
-extern const String C_opt_SourceTree("-t");
-extern const String C_opt_SourceFile("-f");
-
-extern const String C_opt_CreateHtml("-html");
-extern const String C_opt_DevmanRoot("-dvgroot");
-
-//extern const String C_opt_CreateXml("-xml");
-//extern const String C_opt_Load("-load");
-//extern const String C_opt_Save("-save");
-
-extern const String C_opt_ExternNamespace("-extnsp");
-extern const String C_opt_ExternRoot("-extroot");
-
-
-
-//************************** CreateHTML ***********************//
-
-CreateHtml::CreateHtml()
- : sOutputRootDirectory(),
- sDevelopersManual_HtmlRoot()
-{
-}
-
-CreateHtml::~CreateHtml()
-{
-}
-
-void
-CreateHtml::do_Init( opt_iter & it,
- opt_iter itEnd )
-{
- ++it;
- CHECKOPT( it != itEnd && (*it).char_at(0) != '-',
- "output directory", C_opt_CreateHtml );
- sOutputRootDirectory = *it;
-
- for ( ++it;
- it != itEnd AND (*it == C_opt_DevmanRoot);
- ++it )
- {
- if (*it == C_opt_DevmanRoot)
- {
- ++it;
- CHECKOPT( it != itEnd AND (*it).char_at(0) != '-',
- "HTML root directory of Developers Guide",
- C_opt_DevmanRoot );
- sDevelopersManual_HtmlRoot = *it;
- }
- } // end for
-}
-
-bool
-CreateHtml::do_Run() const
-{
- if ( CommandLine::Get_().IdlUsed() )
- run_Idl();
- return true;
-}
-
-int
-CreateHtml::inq_RunningRank() const
-{
- return static_cast<int>(rank_CreateHtml);
-}
-
-void
-CreateHtml::run_Idl() const
-{
- const ary::idl::Gate &
- rGate = CommandLine::Get_().TheRepository().Gate_Idl();
-
- Cout() << "Creating HTML-output into the directory "
- << sOutputRootDirectory
- << "."
- << Endl();
-
- const DisplayToolsFactory_Ifc &
- rToolsFactory = DisplayToolsFactory_Ifc::GetIt_();
- Dyn<autodoc::HtmlDisplay_Idl_Ifc>
- pDisplay( rToolsFactory.Create_HtmlDisplay_Idl() );
-
- DYN display::CorporateFrame & // KORR_FUTURE: Remove the need for const_cast
- drFrame = const_cast< display::CorporateFrame& >(rToolsFactory.Create_StdFrame());
- if (NOT DevelopersManual_HtmlRoot().empty())
- drFrame.Set_DevelopersGuideHtmlRoot( DevelopersManual_HtmlRoot() );
-
- pDisplay->Run( sOutputRootDirectory,
- rGate,
- drFrame );
-}
-
-} // namespace command
-} // namespace autodoc
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/exes/adc_uni/adc_cmds.hxx b/autodoc/source/exes/adc_uni/adc_cmds.hxx
deleted file mode 100644
index 19607e961385..000000000000
--- a/autodoc/source/exes/adc_uni/adc_cmds.hxx
+++ /dev/null
@@ -1,116 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_ADC_CMDS_HXX
-#define ADC_ADC_CMDS_HXX
-
-
-
-// USED SERVICES
- // BASE CLASSES
-#include "adc_cmd.hxx"
- // COMPONENTS
- // PARAMETERS
-
-namespace autodoc
-{
-namespace command
-{
-
-
-/** A command that produces HTML output from the Autodoc Repository.
-*/
-class CreateHtml : public Command
-{
- public:
- CreateHtml();
- ~CreateHtml();
-
- const String & OutputDir() const;
- const String & DevelopersManual_HtmlRoot() const
- { return sDevelopersManual_HtmlRoot; }
-
- private:
- // Interface Context:
- virtual void do_Init(
- opt_iter & i_nCurArgsBegin,
- opt_iter i_nEndOfAllArgs );
- // Interface Command:
- virtual bool do_Run() const;
- virtual int inq_RunningRank() const;
-
- // Locals
- void run_Idl() const;
-
- // DATA
- String sOutputRootDirectory;
- String sDevelopersManual_HtmlRoot;
-};
-
-inline const String &
-CreateHtml::OutputDir() const
- { return sOutputRootDirectory; }
-
-
-extern const String C_opt_Verbose;
-
-extern const String C_opt_Parse;
-extern const String C_opt_Name;
-extern const String C_opt_LangAll;
-extern const String C_opt_ExtensionsAll;
-extern const String C_opt_DevmanFile;
-extern const String C_opt_SinceFile;
-
-extern const String C_arg_Idl;
-
-extern const String C_opt_Project;
-//extern const String C_opt_Lang;
-//extern const String C_opt_Extensions;
-extern const String C_opt_SourceTree;
-extern const String C_opt_SourceDir;
-extern const String C_opt_SourceFile;
-
-extern const String C_opt_CreateHtml;
-extern const String C_opt_DevmanRoot;
-
-//extern const String C_opt_CreateXml;
-//extern const String C_opt_Load;
-//extern const String C_opt_Save;
-
-extern const String C_opt_ExternNamespace;
-extern const String C_opt_ExternRoot;
-
-
-inline void
-CHECKOPT( bool b, const char * miss, const String & opt )
-{
- if ( NOT b )
- {
- StreamLock slMsg(100);
- throw X_CommandLine( slMsg() << "Missing " << miss <<" after " << opt << "." << c_str );
- }
-}
-
-} // namespace command
-} // namespace autodoc
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/exes/adc_uni/adc_msg.cxx b/autodoc/source/exes/adc_uni/adc_msg.cxx
deleted file mode 100644
index bf34e406f081..000000000000
--- a/autodoc/source/exes/adc_uni/adc_msg.cxx
+++ /dev/null
@@ -1,196 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <adc_msg.hxx>
-
-
-// NOT FULLY DEFINED SERVICES
-#include <cosv/file.hxx>
-#include <cosv/tpl/tpltools.hxx>
-
-
-namespace autodoc
-{
-
-
-Messages::Messages()
- : aMissingDocs(),
- aParseErrors(),
- aInvalidConstSymbols(),
- aUnresolvedLinks(),
- aTypeVsMemberMisuses()
-{
-}
-
-Messages::~Messages()
-{
-}
-
-void
-Messages::WriteFile(const String & i_sOutputFilePath)
-{
- csv::File
- aOut(i_sOutputFilePath, csv::CFM_CREATE);
- aOut.open();
-
- // KORR_FUTURE Enable this when appropriate:
- WriteParagraph( aOut,
- aParseErrors,
- "Incompletely Parsed Files" );
-
- WriteParagraph( aOut,
- aMissingDocs,
- "Entities Without Documentation" );
-
- WriteParagraph( aOut,
- aInvalidConstSymbols,
- "Incorrectly Written Const Symbols" );
-
- WriteParagraph( aOut,
- aUnresolvedLinks,
- "Unresolved Links" );
-
- WriteParagraph( aOut,
- aTypeVsMemberMisuses,
- "Confusion or Misuse of <Type> vs. <Member>" );
- aOut.close();
-}
-
-void
-Messages::Out_MissingDoc( const String & i_sEntity,
- const String & i_sFile,
- uintt i_nLine)
-{
- AddValue( aMissingDocs,
- i_sEntity,
- i_sFile,
- i_nLine );
-}
-
-void
-Messages::Out_ParseError( const String & i_sFile,
- uintt i_nLine)
-{
- aParseErrors[Location(i_sFile,i_nLine)] = String::Null_();
-}
-
-void
-Messages::Out_InvalidConstSymbol( const String & i_sText,
- const String & i_sFile,
- uintt i_nLine)
-{
- AddValue( aInvalidConstSymbols,
- i_sText,
- i_sFile,
- i_nLine );
-}
-
-void
-Messages::Out_UnresolvedLink( const String & i_sLinkText,
- const String & i_sFile,
- uintt i_nLine)
-{
- AddValue( aUnresolvedLinks,
- i_sLinkText,
- i_sFile,
- i_nLine );
-}
-
-void
-Messages::Out_TypeVsMemberMisuse( const String & i_sLinkText,
- const String & i_sFile,
- uintt i_nLine)
-{
- AddValue( aTypeVsMemberMisuses,
- i_sLinkText,
- i_sFile,
- i_nLine );
-}
-
-Messages &
-Messages::The_()
-{
- static Messages TheMessages_;
- return TheMessages_;
-}
-
-void
-Messages::AddValue( MessageMap & o_dest,
- const String & i_sText,
- const String & i_sFile,
- uintt i_nLine )
-{
- String &
- rDest = o_dest[Location(i_sFile,i_nLine)];
- StreamLock
- slDest(2000);
- if (NOT rDest.empty())
- slDest() << rDest;
- slDest() << "\n " << i_sText;
- rDest = slDest().c_str();
-}
-
-void
-Messages::WriteParagraph( csv::File & o_out,
- const MessageMap & i_source,
- const String & i_title )
-{
- StreamStr aLine(2000);
-
- // Write title of paragraph:
- aLine << i_title
- << "\n";
- o_out.write(aLine.c_str());
-
- aLine.seekp(0);
- for (uintt i = i_title.size(); i > 0; --i)
- {
- aLine << '-';
- }
- aLine << "\n\n";
- o_out.write(aLine.c_str());
-
- // Write Content
- MessageMap::const_iterator it = i_source.begin();
- MessageMap::const_iterator itEnd = i_source.end();
- for ( ; it != itEnd; ++it )
- {
- aLine.seekp(0);
- aLine << (*it).first.sFile;
- // Nobody wants to see this, if we don't know the line:
- if ((*it).first.nLine != 0)
- {
- aLine << ", line "
- << (*it).first.nLine;
- }
- if (NOT (*it).second.empty())
- {
- aLine << ':'
- << (*it).second
- << "\n";
- }
- o_out.write(aLine.c_str());
- }
- o_out.write("\n\n\n");
-}
-
-} // namespace autodoc
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/exes/adc_uni/cmd_run.cxx b/autodoc/source/exes/adc_uni/cmd_run.cxx
deleted file mode 100644
index a73322a5e544..000000000000
--- a/autodoc/source/exes/adc_uni/cmd_run.cxx
+++ /dev/null
@@ -1,241 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include "cmd_run.hxx"
-
-
-// NOT FULLY DEFINED SERVICES
-#include <cosv/file.hxx>
-#include <cosv/x.hxx>
-#include <ary/ary.hxx>
-#include <ary/idl/i_ce.hxx>
-#include <ary/idl/i_gate.hxx>
-#include <ary/idl/i_module.hxx>
-#include <ary/idl/ip_ce.hxx>
-#include <autodoc/filecoli.hxx>
-#include <autodoc/parsing.hxx>
-#include <autodoc/prs_docu.hxx>
-#include <parser/unoidl.hxx>
-#include <adc_cl.hxx>
-#include "adc_cmd_parse.hxx"
-#include "adc_cmds.hxx"
-
-namespace autodoc
-{
-namespace command
-{
-namespace run
-{
-
-Parser::Parser( const Parse & i_command )
- : rCommand(i_command),
- pCppDocuInterpreter(),
- pIdlParser()
-{
-}
-
-Parser::~Parser()
-{
-}
-
-bool
-Parser::Perform()
-{
- Cout() << "Parsing the repository "
- << rCommand.ReposyName()
- << " ..."
- << Endl();
- try
- {
- ::ary::Repository &
- rAry = CommandLine::Get_().TheRepository();
- rAry.Set_Title(rCommand.ReposyName());
-
- Dyn< FileCollector_Ifc >
- pFiles( ParseToolsFactory().Create_FileCollector(6000) );
-
- bool bIDL = false;
-
- command::Parse::ProjectIterator
- itEnd = rCommand.ProjectsEnd();
- for ( command::Parse::ProjectIterator it = rCommand.ProjectsBegin();
- it != itEnd;
- ++it )
- {
- uintt nCount = GatherFiles( *pFiles, *(*it) );
- Cout() << nCount
- << " files found to parse in project "
- << (*it)->Name()
- << "."
- << Endl();
-
- switch ( (*it)->Language().eLanguage )
- {
- case command::S_LanguageInfo::idl:
- {
- Get_IdlParser().Run(*pFiles);
- bIDL = true;
- } break;
- default:
- Cerr() << "Project in yet unimplemented language skipped."
- << Endl();
- }
- } // end for
-
- if (bIDL)
- {
- rAry.Gate_Idl().Calculate_AllSecondaryInformation(
- rCommand.DevelopersManual_RefFilePath() );
-
-// ::ary::idl::SecondariesPilot &
-// rIdl2sPilot = rAry.Gate_Idl().Secondaries();
-//
-// rIdl2sPilot.CheckAllInterfaceBases( rAry.Gate_Idl() );
-// rIdl2sPilot.Connect_Types2Ces();
-// rIdl2sPilot.Gather_CrossReferences();
-//
-// if (NOT rCommand.DevelopersManual_RefFilePath().empty())
-// {
-// csv::File
-// aFile(rCommand.DevelopersManual_RefFilePath(), csv::CFM_READ);
-// if ( aFile.open() )
-// {
-// rIdl2sPilot.Read_Links2DevManual(aFile);
-// aFile.close();
-// }
-// }
- } // endif (bIDL)
-
- return true;
-
- } // end try
- catch (csv::Exception & xx)
- {
- xx.GetInfo(Cerr());
- Cerr() << " program will exit." << Endl();
-
- return false;
- }
-}
-
-IdlParser &
-Parser::Get_IdlParser()
-{
- if ( NOT pIdlParser )
- Create_IdlParser();
- return *pIdlParser;
-}
-
-void
-Parser::Create_IdlParser()
-{
- pIdlParser = new IdlParser(CommandLine::Get_().TheRepository());
-}
-
-const ParseToolsFactory_Ifc &
-Parser::ParseToolsFactory()
-{
- return ParseToolsFactory_Ifc::GetIt_();
-}
-
-uintt
-Parser::GatherFiles( FileCollector_Ifc & o_rFiles,
- const S_ProjectData & i_rProject )
-{
- uintt ret = 0;
- o_rFiles.EraseAll();
-
- typedef StringVector StrVector;
- typedef StrVector::const_iterator StrIterator;
- const S_Sources &
- rSources = i_rProject.Sources();
- const StrVector &
- rExtensions = i_rProject.Language().aExtensions;
-
- StrIterator it;
- StrIterator itTreesEnd = rSources.aTrees.end();
- StrIterator itDirsEnd = rSources.aDirectories.end();
- StrIterator itFilesEnd = rSources.aFiles.end();
- StrIterator itExt;
- StrIterator itExtEnd = rExtensions.end();
-
- csv::StreamStr aDir(500);
- i_rProject.RootDirectory().Get( aDir );
-
- uintt nProjectDir_AddPosition =
- ( strcmp(aDir.c_str(),".\\") == 0 OR strcmp(aDir.c_str(),"./") == 0 )
- ? 0
- : uintt( aDir.tellp() );
-
- for ( it = rSources.aDirectories.begin();
- it != itDirsEnd;
- ++it )
- {
- aDir.seekp( nProjectDir_AddPosition );
- aDir << *it;
-
- for ( itExt = rExtensions.begin();
- itExt != itExtEnd;
- ++itExt )
- {
- ret += o_rFiles.AddFilesFrom( aDir.c_str(),
- *itExt,
- FileCollector_Ifc::flat );
- } // end for itExt
- } // end for it
- for ( it = rSources.aTrees.begin();
- it != itTreesEnd;
- ++it )
- {
- aDir.seekp( nProjectDir_AddPosition );
- aDir << *it;
-
- for ( itExt = rExtensions.begin();
- itExt != itExtEnd;
- ++itExt )
- {
- ret += o_rFiles.AddFilesFrom( aDir.c_str(),
- *itExt,
- FileCollector_Ifc::recursive );
- } // end for itExt
- } // end for it
- for ( it = rSources.aFiles.begin();
- it != itFilesEnd;
- ++it )
- {
- aDir.seekp( nProjectDir_AddPosition );
- aDir << *it;
-
- o_rFiles.AddFile( aDir.c_str() );
- } // end for it
- ret += rSources.aFiles.size();
-
- return ret;
-}
-
-
-} // namespace run
-} // namespace command
-} // namespace autodoc
-
-
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/exes/adc_uni/cmd_run.hxx b/autodoc/source/exes/adc_uni/cmd_run.hxx
deleted file mode 100644
index 91698779eb1e..000000000000
--- a/autodoc/source/exes/adc_uni/cmd_run.hxx
+++ /dev/null
@@ -1,89 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_CMD_RUN_HXX
-#define ADC_CMD_RUN_HXX
-
-
-
-// USED SERVICES
- // BASE CLASSES
-#include <cosv/comdline.hxx>
- // COMPONENTS
- // PARAMETERS
-
-namespace autodoc
-{
- class FileCollector_Ifc;
- class ParseToolsFactory_Ifc;
- class DocumentationParser_Ifc;
- class IdlParser;
-
-
-namespace command
-{
- class Parse;
- class S_ProjectData;
- struct S_LanguageInfo;
-
-namespace run
-{
-
-/** Performs an ::autodoc::command::Parse .
-*/
-class Parser
-{
- public:
- Parser(
- const Parse & i_command );
- ~Parser();
-
- bool Perform();
-
- private:
- // Locals
- IdlParser & Get_IdlParser();
- void Create_IdlParser();
- const ParseToolsFactory_Ifc &
- ParseToolsFactory();
- uintt GatherFiles(
- FileCollector_Ifc & o_rFiles,
- const S_ProjectData &
- i_rProject );
- // DATA
- const Parse & rCommand;
-
- Dyn<DocumentationParser_Ifc>
- pCppDocuInterpreter;
- Dyn<IdlParser> pIdlParser;
-};
-
-
-
-
-// IMPLEMENTATION
-
-
-} // namespace run
-} // namespace command
-} // namespace autodoc
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/exes/adc_uni/cmd_sincedata.cxx b/autodoc/source/exes/adc_uni/cmd_sincedata.cxx
deleted file mode 100644
index d2ebb0db684a..000000000000
--- a/autodoc/source/exes/adc_uni/cmd_sincedata.cxx
+++ /dev/null
@@ -1,123 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include "cmd_sincedata.hxx"
-
-
-// NOT FULLY DEFINED SERVICES
-#include <cosv/file.hxx>
-#include <cosv/tpl/tpltools.hxx>
-#include "adc_cmds.hxx"
-
-
-
-namespace autodoc
-{
-namespace command
-{
-
-SinceTagTransformationData::SinceTagTransformationData()
- : aTransformationTable()
-{
-}
-
-SinceTagTransformationData::~SinceTagTransformationData()
-{
-}
-
-bool
-SinceTagTransformationData::DoesTransform() const
-{
- return NOT aTransformationTable.empty();
-}
-
-const String &
-SinceTagTransformationData::DisplayOf( const String & i_versionNumber ) const
-{
- if (DoesTransform())
- {
- StreamLock
- sl(200);
- sl() << i_versionNumber;
- sl().strip_frontback_whitespace();
- String
- sVersionNumber(sl().c_str());
-
- const String *
- ret = csv::find_in_map(aTransformationTable, sVersionNumber);
- return ret != 0
- ? *ret
- : String::Null_();
- }
- else
- {
- return i_versionNumber;
- }
-}
-
-void
-SinceTagTransformationData::do_Init( opt_iter & it,
- opt_iter itEnd )
-{
- ++it; // Cur is since-file path.
-
- CHECKOPT( it != itEnd ,
- "file path",
- C_opt_SinceFile );
-
- csv::File aSinceFile(*it);
- csv::OpenCloseGuard aSinceFileGuard(aSinceFile);
- StreamStr sLine(200);
-
- if (aSinceFileGuard)
- {
- for ( sLine.operator_read_line(aSinceFile);
- NOT sLine.empty();
- sLine.operator_read_line(aSinceFile) )
- {
-
- if (*sLine.begin() != '"')
- continue;
-
- const char * pVersion = sLine.c_str() + 1;
- const char * pVersionEnd = strchr(pVersion, '"');
- if (pVersionEnd == 0)
- continue;
- const char * pDisplay = strchr(pVersionEnd+1, '"');
- if (pDisplay == 0)
- continue;
- ++pDisplay;
- const char * pDisplayEnd = strchr(pDisplay, '"');
- if (pDisplayEnd == 0)
- continue;
-
- aTransformationTable[ String(pVersion,pVersionEnd) ]
- = String(pDisplay,pDisplayEnd);
- sLine.clear();
- } // end for
- } // end if
-
- ++it; // Cur is next option.
-}
-
-} // namespace command
-} // namespace autodoc
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/exes/adc_uni/cmd_sincedata.hxx b/autodoc/source/exes/adc_uni/cmd_sincedata.hxx
deleted file mode 100644
index ee8ba84fd7c1..000000000000
--- a/autodoc/source/exes/adc_uni/cmd_sincedata.hxx
+++ /dev/null
@@ -1,85 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_CMD_SINCEDATA_HXX
-#define ADC_CMD_SINCEDATA_HXX
-
-
-
-// USED SERVICES
- // BASE CLASSES
-#include "adc_cmd.hxx"
- // COMPONENTS
- // PARAMETERS
-
-namespace autodoc
-{
-namespace command
-{
-
-
-/** Provides replacements for the contents of the @@since documentation tag.
-
- Because the @@since tag is part of the source code, it allows only one kind
- of version information there. If this is to be mapped for different products
- (example: from OpenOffice.org versions in the @@since tag to StarOffice or
- StarSuite products), the value of @@since needs a replacement, which is provided
- by this class.
-
-*/
-class SinceTagTransformationData : public Context
-{
- public:
- /** The key of this map are the version numbers within @since.
- The value is the string to display for each version number.
- */
- typedef std::map<String,String> Map_Version2Display;
-
- // LIFECYCLE
- SinceTagTransformationData();
- virtual ~SinceTagTransformationData();
-
- // INQUIRY
- /// False, if no transformation table exists.
- bool DoesTransform() const;
-
- /** Gets the string to display for a version number.
-
- @param i_sVersionNumber
- Usually should be the result of ->StripSinceTagValue().
- */
- const String & DisplayOf(
- const String & i_sVersionNumber ) const;
- private:
- // Interface Context:
- virtual void do_Init(
- opt_iter & i_nCurArgsBegin,
- opt_iter i_nEndOfAllArgs );
- // DATA
- Map_Version2Display aTransformationTable;
-};
-
-
-} // namespace command
-} // namespace autodoc
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/exes/adc_uni/main.cxx b/autodoc/source/exes/adc_uni/main.cxx
deleted file mode 100644
index 725218dcf503..000000000000
--- a/autodoc/source/exes/adc_uni/main.cxx
+++ /dev/null
@@ -1,47 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-
-
-// NOT FULLY DECLARED SERVICES
-
-#include <adc_cl.hxx>
-#include "cmd_run.hxx"
-
-
-int
-#ifdef WNT
- __cdecl
-#endif
-main( int argc,
- char * argv[] )
-{
- autodoc::CommandLine aCL;
- aCL.Init(argc, argv);
- if (NOT aCL.CheckParameters() )
- return 1;
-
- int ret = aCL.Run();
- return ret;
-}
-
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/exes/adc_uni/spec-CommandLine.txt b/autodoc/source/exes/adc_uni/spec-CommandLine.txt
deleted file mode 100644
index 20560e719fa6..000000000000
--- a/autodoc/source/exes/adc_uni/spec-CommandLine.txt
+++ /dev/null
@@ -1,197 +0,0 @@
-#
-# This file is part of the LibreOffice project.
-#
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-#
-# This file incorporates work covered by the following license notice:
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed
-# with this work for additional information regarding copyright
-# ownership. The ASF licenses this file to you under the Apache
-# License, Version 2.0 (the "License"); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.apache.org/licenses/LICENSE-2.0 .
-#
-
- Command Line Options
- --------------------
-
-autodoc [-v <level>]
- -html <out>
- [-extroot <externroot> -extnsp <externnamespace>]
- -lg <proglang>
- [-t <sourcetree>[ <sourcetree> ...]
- [-d <sourcedir>[ <sourcedir> ...]
- [-f <sourcefile>[ <sourcefile> ...]
-
-
- -html <OutputDirectory>
- Directory where the output will be created.
-
- -lg <ProgrammingLanguage>
- Allowed values: "idl"
-
- -extroot <externroot>
- Only together with "-lg idl" and -extnsp.
- Links to code entities not found within the current parsed
- code, will be linked there, but only if -extnsp is given and
- the linked entity is in the given namespace.
- <externroot> is a http link, it needs no "http://" at the
- beginning nor slash at the end.
-
- -extnsp <externnamespace>
- Only together with "-lg idl" and -extroot.
- If a code entity is not found in the current parsed code, but
- dwells in the namespace (or its children) given here, it is
- linked into the locátion given by -extroot.
- <externnamespace> is an absolute qualified namespace,
- starting with "::".
-
- -t <SourceTree>*
- Directory with all subdirectories.
-
- -d <SourceDirectory>*
- Directory without subdirectories.
-
- -f <SourceFile>*
- Any file. Here also files with extensions not matching the
- language are accepted.
-
- -I:<ResponseFile>
- Each line in the response file has to have one command line
- option. No whitespace at start of line.
-
- -C:<ConfigurationFile>
- Format see below.
-
- -v <VerboseLevel>
- Only for debugging. Bits 1, 2 and 4 in any combination give
- different output.
-
- -h
- Displays help.
- -?
- Displays help.
-
-
-
-
-
- Command Line Options especially for the OpenOffice.org SDK
- ----------------------------------------------------------
-
- -dvgroot <DevelopersGuide>
- Root directory of the SDK Developers Guide.
-
- -dvgfile <ReferenceFile>
- File with references to the SDK Developers Guide.
-
- -sincefile <@since-AssociationFile>
- File that maps OpenOffice versions to the wished displayed version names.
-
- -idlref <IdlDocumentationRoot> <Namespace[,Namespace ...]>
- Gives the outputdirectory of an IDL documentation, where
- symbols not found in the currently parsed namespaces of C++
- can be found.
-
-
-
- Configure File Format
- ---------------------
-
-<AutodocConfiguration>
- <RepositoryName></RepositoryName>
- // Base name of the binary repository files.
- // Has to be a valid file name.
-
- <HtmlOutputTitle></HtmlOutputTitle>
- // Title on the "welcome page" of the created HTML documentation.
- // Can be any text.
-
- <CppExtensions></CppExtensions>
- // Overwrites the default. Default is: .hxx .h .hpp
- // Format: File extensions with a dot in front, like ".hcc".
-
- <IdlExtensions></IdlExtensions>
- // Overwrites the default. Default is: .idl
- // Format: File extensions with a dot in front, like ".txt".
-
- <CppDocu html="(on|off) off"/>
-
- <IdlDocu html="(on|off) on"/>
-
-</AutodocConfiguration>
-
-
-
-
-
-
- Historical Command Line Options
- -------------------------------
-
-autodoc.exe
- [ -v <VerboseNr> ]
- -html <OutputDirectory>
- {
- [ -parse ]
- [ -name <RepositoryName> ]
- -lg <ProgrammingLanguage>
- {
- [ -p <ProjectName> <ProjectRootDirectory> ]
- {
- -t <SourceDirectory>*
- -d <SourceDirectory>*
- -f <SourceFile>*
- }+
- }+
- }
-
-Legend:
- <Text>
- command line parameter
- [ ]
- optional
- { }
- Block of connected options.
- The sequence of not connected options does not matter. So the -html or -v options can be used before or after all the parsing options.
- +
- once or more times
- *
- none or more times
-
-
-Explanation of the Options
- -v <VerboseNr> Only for debugging. Bits 1, 2 and 4 in any combination give different output.
- -html <OutputDirectory>
- Gives the directory, where a HTML version of the docu shall be generated.
- -parse Starts the block, where all the parse options are given. This can be omitted, because the parse options are identifiable without it, but it may make a commandline more readable.
- -name <RepositoryName> This name appears as title of the documentation (currently only in the in the C++ version).
- -lg <ProgrammingLanguage>
-
-
- Possible values are:
-
- idl
- This parses all files with the ending .idl .
-
- -p with -t/-d/-f: If there are more than one project, the -p option is required for each one.
-
- The directory given wit the -p option is the root directory of the project.
- If there is no -p option, the working directory is seen as root.
-
- All paths given with -t/-d/-f are relative to that root directory. It is possible to use "." as argument for -t or -d.
-
- Each of -t/-d/-f can have several arguments:
- One could write "-f file1.hxx file2.hxx file_xyz.hxx"
- After each -p (or after -lg, if there is no -p option), there has to be at least one of the following three:
- -t Tree, which means: include subdirectories
- -d Directory, which means: no subdirectories
- -f File", which means: single file name with ending.
- This option also allows to parse some files with an ending different from those, the -lg option implies.
-
-
-
diff --git a/autodoc/source/exes/adc_uni/spec-SinceTag_Handling.txt b/autodoc/source/exes/adc_uni/spec-SinceTag_Handling.txt
deleted file mode 100644
index 502224cd654e..000000000000
--- a/autodoc/source/exes/adc_uni/spec-SinceTag_Handling.txt
+++ /dev/null
@@ -1,67 +0,0 @@
-#
-# This file is part of the LibreOffice project.
-#
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-#
-# This file incorporates work covered by the following license notice:
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed
-# with this work for additional information regarding copyright
-# ownership. The ASF licenses this file to you under the Apache
-# License, Version 2.0 (the "License"); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.apache.org/licenses/LICENSE-2.0 .
-#
-
- General Handling
- ----------------
-
-- The developer inserts the OpenOffice.org version into the @since tag.
-
-- @since-Tag may contain any string which needs to end with a Version number.
- The first cipher following immediately on a white space is interpreted as start of the version number.
-
-- The @since Tag must stay completely within one line to allow tool support for retargeting.
-
-- To replace @since entries in the generated documentation, one needs to use
- the command line option
-
- -sincefile <TransformationFile-path>
-
- This option has to occur immediately after the -html option.
- If this option is not given, the original text of the @since tag is
- displayed.
-
- If the TransformationFile does not contain a specific entry,
- nothing is displayed for this entry.
-
-
-
- Format of the @since Tag Transformation File
- --------------------------------------------
-
-Example
--------
-
-***** BEGIN OF FILE ******
-"1.1" "StarOffice 7.0"
-"2.0" "StarOffice 8.0"
-"2.1" "StarOffice 9.0"
-***** END OF FILE ******
-
-
-
-Rules and Restrictions
-----------------------
-
-* Each line contains two strings within "".
- The first string is the OpenOffice.org version number which is found in the @since tag.
- The second string is the string to display for this version.
-* No specific order among product versions is needed.
-* Empty lines and whitespaces are allowed, except:
- - Non empty lines must not start with white space.
- - Within OpenOffice.org version strings, no whitespace is allowed.
-* Whitespace within display strings is displayed as it is.
diff --git a/autodoc/source/inc/adc_cl.hxx b/autodoc/source/inc/adc_cl.hxx
deleted file mode 100644
index 67db5e3ba24b..000000000000
--- a/autodoc/source/inc/adc_cl.hxx
+++ /dev/null
@@ -1,183 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_ADC_CL_HXX
-#define ADC_ADC_CL_HXX
-
-
-
-// USED SERVICES
- // BASE CLASSES
-#include <cosv/comdline.hxx>
- // COMPONENTS
- // PARAMETERS
-
-namespace ary
-{
- class Repository;
-}
-
-namespace autodoc
-{
-namespace command
-{
- class Command;
- class CreateHtml;
- class SinceTagTransformationData;
-}
-
-
-/** Reads and runs an Autodoc command line.
-*/
-class CommandLine : public csv::CommandLine_Ifc
-{
- public:
- // LIFECYCLE
- CommandLine();
- ~CommandLine();
- // OPERATIONS
- int Run() const;
-
- // INQUIRY
- // debugging
- bool DebugStyle_ShowText() const;
- bool DebugStyle_ShowStoredObjects() const;
- bool DebugStyle_ShowTokens() const;
-
- // @since tags
- bool DoesTransform_SinceTag() const;
-
-// /// @see command::SinceTagTransformationData::StripSinceTagValue()
-// bool Strip_SinceTagText(
-// String & io_sSinceTagValue ) const;
-
- /// @see command::SinceTagTransformationData::DisplayOf()
- const String & DisplayOf_SinceTagValue(
- const String & i_sVersionNumber ) const;
-
- // extern IDL links
- const String & ExternRoot() const { return sExternRoot; }
- const String & ExternNamespace() const { return sExternNamespace; }
-
- bool IdlUsed() const { return bIdl; }
-
- // ACCESS
- static CommandLine &
- Get_();
- void Set_ExternRoot(
- const String & i_s )
- { sExternRoot = i_s; }
- void Set_ExternNamespace(
- const String & i_s )
- { sExternNamespace = i_s; }
- ary::Repository & TheRepository() const { csv_assert(pReposy != 0);
- return *pReposy; }
- void Set_IdlUsed() { bIdl = true; }
-
- private:
- // Interface cosv::CommandLine_Ifc:
- virtual void do_Init(
- int argc,
- char * argv[] );
- virtual void do_PrintUse() const;
- virtual bool inq_CheckParameters() const;
-
- // Locals
- typedef StringVector::const_iterator opt_iter;
- typedef std::vector< DYN command::Command* > CommandList;
-
- void load_IncludedCommands(
- StringVector & out,
- const char * i_filePath );
-
- void do_clVerbose(
- opt_iter & it,
- opt_iter itEnd );
- void do_clParse(
- opt_iter & it,
- opt_iter itEnd );
- void do_clCreateHtml(
- opt_iter & it,
- opt_iter itEnd );
- void do_clSinceFile(
- opt_iter & it,
- opt_iter itEnd );
-
-// void do_clCreateXml(
-// opt_iter & it,
-// opt_iter itEnd );
-// void do_clLoad(
-// opt_iter & it,
-// opt_iter itEnd );
-// void do_clSave(
-// opt_iter & it,
-// opt_iter itEnd );
-
- void sort_Commands();
-
- // DATA
- uintt nDebugStyle;
- Dyn<command::SinceTagTransformationData>
- pSinceTransformator;
-
- CommandList aCommands;
- bool bInitOk;
- command::CreateHtml *
- pCommand_CreateHtml;
-
- String sExternRoot;
- String sExternNamespace;
-
- mutable Dyn<ary::Repository>
- pReposy;
- bool bIdl;
-
- static CommandLine *
- pTheInstance_;
-};
-
-
-
-// IMPLEMENTATION
-inline bool
-CommandLine::DebugStyle_ShowText() const
- { return (nDebugStyle & 2) != 0; }
-inline bool
-CommandLine::DebugStyle_ShowStoredObjects() const
- { return (nDebugStyle & 4) != 0; }
-inline bool
-CommandLine::DebugStyle_ShowTokens() const
- { return (nDebugStyle & 1) != 0; }
-
-} // namespace autodoc
-
-
-inline bool
-DEBUG_ShowText()
- { return autodoc::CommandLine::Get_().DebugStyle_ShowText(); }
-inline bool
-DEBUG_ShowStoring()
- { return autodoc::CommandLine::Get_().DebugStyle_ShowStoredObjects(); }
-inline bool
-DEBUG_ShowTokens()
- { return autodoc::CommandLine::Get_().DebugStyle_ShowTokens(); }
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/inc/adc_msg.hxx b/autodoc/source/inc/adc_msg.hxx
deleted file mode 100644
index 1ce653f23cbb..000000000000
--- a/autodoc/source/inc/adc_msg.hxx
+++ /dev/null
@@ -1,134 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_ADC_MSG_HXX
-#define ADC_ADC_MSG_HXX
-
-
-
-// USED SERVICES
- // BASE CLASSES
- // COMPONENTS
- // PARAMETERS
-namespace csv
-{
- class File;
-}
-
-
-namespace autodoc
-{
-
-
-/** Gathers, sorts and displays (mainly diagnostic) messages to the
- user of Autodoc.
-*/
-class Messages
-{
- public:
- // LIFECYCLE
- Messages();
- ~Messages();
- // OPERATIONS
- void WriteFile(
- const String & i_sOutputFilePath);
- // INQUIRY
-
- // ACCESS
- void Out_MissingDoc(
- const String & i_sEntity,
- const String & i_sFile,
- uintt i_nLine);
- void Out_ParseError(
- const String & i_sFile,
- uintt i_nLine);
- void Out_InvalidConstSymbol(
- const String & i_sText,
- const String & i_sFile,
- uintt i_nLine);
- void Out_UnresolvedLink(
- const String & i_sLinkText,
- const String & i_sFile,
- uintt i_nLine);
- void Out_TypeVsMemberMisuse(
- const String & i_sLinkText,
- const String & i_sFile,
- uintt i_nLine);
-
- static Messages & The_();
-
- private:
- struct Location
- {
- String sFile;
- uintt nLine;
-
- Location(
- const String & i_file,
- uintt i_line)
- : sFile(i_file),
- nLine(i_line) {}
- bool operator<(
- const Location & i_other) const
- { int cmp = csv::compare(sFile,i_other.sFile);
- return cmp < 0
- ? true
- : cmp > 0
- ? false
- : nLine < i_other.nLine;
- }
- };
-
- typedef std::map<Location,String> MessageMap;
-
- // Locals
- void AddValue(
- MessageMap & o_dest,
- const String & i_sText,
- const String & i_sFile,
- uintt i_nLine );
- void WriteParagraph(
- csv::File & o_out,
- const MessageMap & i_source,
- const String & i_title );
-
- // DATA
- MessageMap aMissingDocs;
- MessageMap aParseErrors;
- MessageMap aInvalidConstSymbols;
- MessageMap aUnresolvedLinks;
- MessageMap aTypeVsMemberMisuses;
-};
-
-
-
-// IMPLEMENTATION
-
-
-} // namespace autodoc
-
-inline autodoc::Messages &
-TheMessages()
-{
- return autodoc::Messages::The_();
-}
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/inc/docu_node_ids.hxx b/autodoc/source/inc/docu_node_ids.hxx
deleted file mode 100644
index 6bb86698e538..000000000000
--- a/autodoc/source/inc/docu_node_ids.hxx
+++ /dev/null
@@ -1,58 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_DOCU_NODE_IDS_HXX
-#define ADC_DOCU_NODE_IDS_HXX
-
-
-
-namespace ary
-{
-namespace doc
-{
-namespace nodetype
-{
-enum E_Ids
-{
-
- nt_none,
- nt_OldCppDocu,
- nt_OldIdlDocu
-
-
-
-
-
-
-
-
-
-};
-} // namespace nodetype
-} // namespace doc
-} // namespace ary
-
-namespace docnt = ::ary::doc::nodetype;
-
-
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/inc/estack.hxx b/autodoc/source/inc/estack.hxx
deleted file mode 100644
index ae260f10410a..000000000000
--- a/autodoc/source/inc/estack.hxx
+++ /dev/null
@@ -1,85 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ARY_ESTACK_HXX
-#define ARY_ESTACK_HXX
-
-
-
-// USED SERVICES
- // BASE CLASSES
-#include <list>
- // COMPONENTS
- // PARAMETERS
-
-
-
-template <class ELEM>
-class EStack : private std::list<ELEM>
-{
- private:
- typedef std::list<ELEM> base;
- const base & Base() const { return *this; }
- base & Base() { return *this; }
-
- public:
- typedef ELEM value_type;
- typedef typename std::list<ELEM>::size_type size_type;
-
- // LIFECYCLE
- EStack() {}
- EStack(
- const EStack & i_rStack )
- : base( (const base &)(i_rStack) ) {}
- ~EStack() {}
- // OPERATORS
- EStack & operator=(
- const EStack & i_rStack )
- { base::operator=( i_rStack.Base() );
- return *this; }
- bool operator==(
- const EStack<ELEM> & ) const
- { return std::operator==( Base(), this->i_rStack.Base() ); }
- bool operator<(
- const EStack<ELEM> & ) const
- { return std::operator<( Base(), this->i_rStack.Base() ); }
- // OPERATIONS
- void push(
- const value_type & i_rElem )
- { base::push_front(i_rElem); }
- void pop() { base::pop_front(); }
- void erase_all() { while (NOT empty()) pop(); }
-
- // INQUIRY
- const value_type & top() const { return base::front(); }
- size_type size() const { return base::size(); }
- bool empty() const { return base::empty(); }
-
- // ACCESS
- value_type & top() { return base::front(); }
-};
-
-
-
-// IMPLEMENTATION
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/inc/luxenum.hxx b/autodoc/source/inc/luxenum.hxx
deleted file mode 100644
index 35a7522ec8d4..000000000000
--- a/autodoc/source/inc/luxenum.hxx
+++ /dev/null
@@ -1,96 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef UDM_LUXENUM_HXX
-#define UDM_LUXENUM_HXX
-
-
-
-// USED SERVICES
- // BASE CLASSES
- // COMPONENTS
- // PARAMETERS
-#include <map>
-#include <algorithm>
-
-
-namespace lux
-{
-
-typedef std::map< intt, String > EnumValueMap;
-
-
-template <class DIFF>
-class Enum // : public Template_Base
-{
- public:
- // TYPES
- typedef Enum< DIFF > self;
-
- // LIFECYCLE
- Enum(
- DIFF i_nValue,
- const char * i_sText )
- : nValue(i_nValue) { Values_()[nValue] = i_sText;
- // Sequence_().insert(
- // std::lower_bound( Sequence_().begin(), Sequence_().end(), i_nValue ),
- // i_nValue );
- }
- Enum(
- DIFF i_nValue )
- : nValue(i_nValue) { ; }
- Enum(
- intt i_nValue = 0 )
- : nValue(i_nValue) { if ( NOT CheckIntt(i_nValue) ) { csv_assert(false); } }
- Enum(
- const self & i_rEnum )
- : nValue(i_rEnum.nValue) {;}
-
- self & operator=(
- DIFF i_nValue )
- { nValue = i_nValue; return *this; }
- self & operator=(
- intt i_nValue )
- { if ( CheckIntt(i_nValue) ) {nValue = DIFF(i_nValue);}
- else {csv_assert(false);} return *this; }
- self & operator=(
- const self & i_rEnum )
- { nValue = i_rEnum.nValue; return *this; }
- operator DIFF() const { return DIFF(nValue); }
-
- DIFF operator()() const { return nValue; }
- const String & Text() const { return Values_()[nValue]; }
-
- private:
- static EnumValueMap &
- Values_();
- bool CheckIntt(
- intt i_nNumber )
- { return Values_().find(i_nNumber) != Values_().end(); }
- // DATA
- intt nValue;
-};
-
-
-
-
-} // namespace lux
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/inc/precomp.h b/autodoc/source/inc/precomp.h
deleted file mode 100644
index 22f0f8c62d08..000000000000
--- a/autodoc/source/inc/precomp.h
+++ /dev/null
@@ -1,60 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-#ifndef ADC_PRECOMP_H_06071998
-#define ADC_PRECOMP_H_06071998
-
-
-// For en/disabling csv_assertions:
-#ifndef DEBUG
-#define CSV_NO_ASSERTIONS
-#endif
-
-#include <cosv/csv_precomp.h>
-
-#include <vector>
-#include <map>
-#include <set>
-
-
-
-// Shortcuts to access csv::-types:
-using csv::String;
-using csv::StringVector;
-using csv::StreamStr;
-using csv::c_str;
-typedef csv::StreamStrLock StreamLock;
-
-
-
-inline std::ostream &
-Cout() { return std::cout; }
-inline std::ostream &
-Cerr() { return std::cerr; }
-
-inline csv::F_FLUSHING_FUNC
-Endl() { return csv::Endl; }
-inline csv::F_FLUSHING_FUNC
-Flush() { return csv::Flush; }
-
-
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/inc/tools/filecoll.hxx b/autodoc/source/inc/tools/filecoll.hxx
deleted file mode 100644
index a8099fe502f2..000000000000
--- a/autodoc/source/inc/tools/filecoll.hxx
+++ /dev/null
@@ -1,62 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_FILECOLL_HXX
-#define ADC_FILECOLL_HXX
-
-// USED SERVICES
- // BASE CLASSES
-#include <autodoc/filecoli.hxx>
- // COMPONENTS
- // PARAMETERS
-
-
-
-class FileCollector : public autodoc::FileCollector_Ifc
-{
- public:
- // LIFECYCLE
- FileCollector(
- uintt i_nRoughNrOfFiles = 0 );
-
- // OPERATIONS
- virtual uintt AddFilesFrom(
- const char * i_sRootDir,
- const char * i_sFilter,
- E_SearchMode i_eSearchMode );
- virtual uintt AddFile(
- const char * i_sFilePath );
- virtual void EraseAll();
-
- // INQUIRY
- virtual const_iterator
- Begin() const;
- virtual const_iterator
- End() const;
- virtual uintt Size() const;
-
- private:
- // DATA
- StringVector aFoundFiles;
-};
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/inc/tools/tkpchars.hxx b/autodoc/source/inc/tools/tkpchars.hxx
deleted file mode 100644
index 345d2ff47279..000000000000
--- a/autodoc/source/inc/tools/tkpchars.hxx
+++ /dev/null
@@ -1,134 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_TKPCHARS_HXX
-#define ADC_TKPCHARS_HXX
-
-// USED SERVICES
- // BASE CLASSES
- // COMPONENTS
- // PARAMETRS
-#include <adc_cl.hxx>
-#include <stack>
-
-
-
-/** @descr
-
- dpSource:
-
- 1||||||||||||||||||||||a||||||||||||b|||c||||||||||||||||||||...
-
-
- 1 := first character of Sourcecode.
- a := nLastTokenStart, there starts the last cut token.
- b := nLastCut, there is a '\0'-char which marks the end of
- the last cut token. The original character at b is stored
- in cCharAtLastCut and will replace the '\0'-char, when the
- next token is cut.
- c := The current cursor position.
-
-
- @needs cosv.lib
-
- @use This class can be used by any parser to get the chars of a
- text one by one and separate them to tokens.
-**/
-
-class CharacterSource
-{
- public:
- // LIFECYCLE
- CharacterSource();
- ~CharacterSource();
-
- // OPERATIONS
- /** Loads the complete contents of in_rSource into the classes private memory.
- If in_rSource is a file, it has to be open of course.
- After loading the text, the CurChar() is set on the begin of the text.
- **/
- void LoadText(
- csv::bstream & io_rSource);
-
- /// @return CurChar() after moving forward one char.
- char MoveOn();
- /** @return
- The token which starts at the char which was CurChar(), when
- CutToken() was called the last time - or at the beginning of the text.
- The token ends by the CurChar() being replaced by a '\0'.
-
- Value is valid until the next call of CutToken() or ~CharacterSource().
- **/
- const char * CutToken();
-
- // INQUIRY
- char CurChar() const;
- /// @return The result of the last CutToken(). Or NULL, if there was none yet.
- const char * CurToken() const;
-
- // INQUIRY
- /// @return true, if
- bool IsFinished() const;
-
- private:
- void BeginSource();
- intt CurPos() const;
-
- DYN char * dpSource;
- intt nSourceSize;
-
- intt nCurPos;
- intt nLastCut;
- intt nLastTokenStart;
- char cCharAtLastCut;
-};
-
-
-inline char
-CharacterSource::MoveOn()
- {
-if (DEBUG_ShowText())
-{
- Cerr() << char(dpSource[nCurPos+1]) << Flush();
-}
- if ( nCurPos < nSourceSize-1 )
- return dpSource[++nCurPos];
- else
- return dpSource[nCurPos = nSourceSize];
- }
-inline char
-CharacterSource::CurChar() const
- { return nCurPos != nLastCut ? dpSource[nCurPos] : cCharAtLastCut; }
-inline const char *
-CharacterSource::CurToken() const
- { return &dpSource[nLastTokenStart]; }
-inline bool
-CharacterSource::IsFinished() const
- { return nCurPos >= nSourceSize; }
-inline intt
-CharacterSource::CurPos() const
- { return nCurPos; }
-
-
-
-
-#endif
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/mkinc/fullcpp.mk b/autodoc/source/mkinc/fullcpp.mk
deleted file mode 100644
index 4b63761705b3..000000000000
--- a/autodoc/source/mkinc/fullcpp.mk
+++ /dev/null
@@ -1,32 +0,0 @@
-#
-# This file is part of the LibreOffice project.
-#
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-#
-# This file incorporates work covered by the following license notice:
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed
-# with this work for additional information regarding copyright
-# ownership. The ASF licenses this file to you under the Apache
-# License, Version 2.0 (the "License"); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.apache.org/licenses/LICENSE-2.0 .
-#
-
-
-
-# --- Settings -----------------------------------------------------
-# Has to be included AFTER settings.mk !
-
-
-# RTTI
-.IF "$(COM)"=="MSC"
-CFLAGS+= -GR
-.ENDIF
-.IF "$(OS)"=="LINUX" || "$(OS)"=="FREEBSD" || "$(OS)"=="NETBSD" || \
- "$(OS)"=="DRAGONFLY" || $(COM) == "GCC"
-CFLAGSCXX+= -frtti
-.ENDIF
diff --git a/autodoc/source/parser/inc/tokens/parseinc.hxx b/autodoc/source/parser/inc/tokens/parseinc.hxx
deleted file mode 100644
index 56fd2fccd18f..000000000000
--- a/autodoc/source/parser/inc/tokens/parseinc.hxx
+++ /dev/null
@@ -1,196 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_PARSEINC_HXX
-#define ADC_PARSEINC_HXX
-
-
-#include <tools/tkpchars.hxx>
-
-inline char
-jumpOver( CharacterSource & io_rText,
- char in_c )
-{
- char cNext;
- for ( cNext = io_rText.CurChar();
- cNext == in_c;
- cNext = io_rText.MoveOn() )
- { }
-
- return cNext;
-}
-
-inline char
-jumpTo( CharacterSource & io_rText,
- char in_c )
-{
- char cNext;
- for ( cNext = io_rText.CurChar();
- cNext != in_c AND cNext != 0;
- cNext = io_rText.MoveOn() )
- { }
-
- return cNext;
-}
-
-inline char
-jumpTo( CharacterSource & io_rText,
- char in_c1,
- char in_c2 )
-{
- char cNext;
- for ( cNext = io_rText.CurChar();
- cNext != in_c1 AND cNext != in_c2 AND cNext != 0;
- cNext = io_rText.MoveOn() )
- { }
-
- return cNext;
-}
-
-inline char
-jumpTo( CharacterSource & io_rText,
- char in_c1,
- char in_c2,
- char in_c3 )
-{
- char cNext;
- for ( cNext = io_rText.CurChar();
- cNext != in_c1 AND cNext != in_c2 AND cNext != in_c3 AND cNext != 0;
- cNext = io_rText.MoveOn() )
- { }
-
- return cNext;
-}
-
-inline char
-jumpTo( CharacterSource & io_rText,
- char in_c1,
- char in_c2,
- char in_c3,
- char in_c4 )
-{
- char cNext;
- for ( cNext = io_rText.CurChar();
- cNext != in_c1 AND cNext != in_c2 AND cNext != in_c3
- AND cNext != in_c4 AND cNext != 0;
- cNext = io_rText.MoveOn() )
- { }
-
- return cNext;
-}
-
-inline char
-jumpOverWhite(CharacterSource & io_rText)
-{
- char cNext;
- for ( cNext = io_rText.CurChar();
- static_cast<UINT8>(cNext) < 33
- AND cNext != 0 AND cNext != 13 AND cNext != 10;
- cNext = io_rText.MoveOn() )
- { }
-
- return cNext;
-}
-
-inline char
-jumpToWhite(CharacterSource & io_rText)
-{
- char cNext;
- for ( cNext = io_rText.CurChar();
- static_cast<UINT8>(cNext) > 32;
- cNext = io_rText.MoveOn() )
- { }
-
- return cNext;
-}
-
-inline char
-jumpToEol(CharacterSource & io_rText, int & o_rCount_BackslashedLineBreaks )
-{
- o_rCount_BackslashedLineBreaks = 0;
- char cNext;
- for ( cNext = io_rText.CurChar();
- cNext != 13 AND cNext != 10 AND cNext != NULCH;
- cNext = io_rText.MoveOn() )
- {
- if ( cNext == '\\')
- {
- cNext = io_rText.MoveOn();
- if ( cNext == 13 )
- io_rText.MoveOn();
- if ( cNext == 10 )
- ++o_rCount_BackslashedLineBreaks;
- }
- }
- return cNext;
-}
-
-inline char
-jumpToEol(CharacterSource & io_rText)
-{
- char cNext;
- for ( cNext = io_rText.CurChar();
- cNext != 13 AND cNext != 10 AND cNext != NULCH;
- cNext = io_rText.MoveOn() )
- {
- if ( cNext == '\\')
- io_rText.MoveOn();
- }
- return cNext;
-}
-
-inline char
-jumpOverEol(CharacterSource & io_rText)
-{
- char cNext = io_rText.CurChar();
-
- if (cNext == 13)
- io_rText.MoveOn();
- if (cNext == 10)
- io_rText.MoveOn();
- return cNext;
-}
-
-
-inline char // Finds a matching closing bracket after the opening one is passed
-jumpToMatchingBracket( CharacterSource & io_rText,
- char in_cBegin,
- char in_cEnd )
-{
- intt nCounter = 1;
- char cNext;
- for ( cNext = io_rText.CurChar();
- nCounter - (cNext == in_cEnd ? 1 : 0) > 0 AND cNext != NULCH;
- cNext = io_rText.MoveOn() )
- {
- if (cNext == in_cEnd)
- nCounter++;
- else if (cNext == in_cBegin)
- nCounter--;
- }
-
- return cNext;
-}
-
-
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser/inc/tokens/stmstate.hxx b/autodoc/source/parser/inc/tokens/stmstate.hxx
deleted file mode 100644
index 02470439e08e..000000000000
--- a/autodoc/source/parser/inc/tokens/stmstate.hxx
+++ /dev/null
@@ -1,58 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_STMSTATE_HXX
-#define ADC_STMSTATE_HXX
-
-// USED SERVICES
- // BASE CLASSES
- // COMPONENTS
- // PARAMETERS
-class StmArrayStatus;
-
-/** A StmStatus is a state within a StateMachine.
- There are two kinds of it. Either its an array of pointers to
- other states within the state machine - an ArrayStatus.
-
- Or it is a BoundsStatus, which shows, the token cannot be
- followed further within the StateMachine.
-**/
-class StmStatus // := "State machine status"
-{
- public:
- typedef intt Branch; /// Values >= 0 give a next #Status' ID.
- /// Values <= 0 tell, that a token is finished.
- /// a value < 0 returns the status back to an upper level state machine.
- // LIFECYCLE
- virtual ~StmStatus() {}
-
- // OPERATIONS
- virtual StmArrayStatus *
- AsArray();
-
- // INQUIRY
- virtual bool IsADefault() const = 0;
-};
-
-
-
-#endif
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser/inc/tokens/tkpcontx.hxx b/autodoc/source/parser/inc/tokens/tkpcontx.hxx
deleted file mode 100644
index 7d2e53a6da6e..000000000000
--- a/autodoc/source/parser/inc/tokens/tkpcontx.hxx
+++ /dev/null
@@ -1,129 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_TKPCONTX_HXX
-#define ADC_TKPCONTX_HXX
-
-// USED SERVICES
- // BASE CLASSES
- // COMPONENTS
- // PARAMETERS
-#include <tokens/token.hxx>
-class CharacterSource;
-class TkpNullContext;
-
-/** @task
- Specifies a context within which tokens are interpreted in a special
- way. For example in parsing C++ there could be a context for code,
- one for comments and a third one for preprocessor statements, because
- each of these would give the same token different meanings.
-
- The three functions
- ReadCharChain()
- PassNewToken()
- FollowUpContext()
- have to be called in this sequence.
-
-**/
-class TkpContext
-{
- public:
- // LIFECYCLE
- virtual ~TkpContext() {}
-
- // OPERATIONS
- /** @descr
- The functions starts to parse with the CurChar() of io_rText.
- It leaves io_rText.CurChar() at the first char of the following Token or
- the following Context.
-
- This function returns, when a context has parsed some characterss
- and completed a token OR left the context.
- If the token is to be ignored, it is cut from io_rText.
-
- If the token is to be parsed further in a different context,
- it is NOT cut from io_rText.
-
- After this function PassNewToken() has to be called.
-
- If the function has found a valid and complete token, PassNewToken()
- passes the parsed token to the internally known receiver and
- returns true. The token is cut from io_rText.
- **/
- virtual void ReadCharChain(
- CharacterSource & io_rText ) = 0;
- /** Has to pass the parsed token to a known receiver.
- If the token is to be parsed further in a different context,
- PassNewToken() returns false, but the token is NOT cut from io_rText.
-
- @return true, if a token was passed.
- false, if the token was not parsed completely by this context
- or if the token is to be ignored.
- */
- virtual bool PassNewToken() = 0;
- virtual TkpContext &
- FollowUpContext() = 0;
-};
-
-class StateMachineContext
-{
- public:
- typedef TextToken::F_CRTOK F_CRTOK;
-
- virtual ~StateMachineContext() {}
-
- virtual void PerformStatusFunction(
- uintt i_nStatusSignal,
- F_CRTOK i_fTokenCreateFunction,
- CharacterSource & io_rText ) = 0;
-};
-
-class TkpNullContext : public TkpContext
-{
- public:
- ~TkpNullContext();
-
- virtual void ReadCharChain(
- CharacterSource & io_rText );
- virtual bool PassNewToken();
- virtual TkpContext &
- FollowUpContext();
-};
-
-namespace autodoc
-{
-
-class TkpDocuContext : public TkpContext
-{
- public:
- virtual void SetParentContext(
- TkpContext & io_rParentContext,
- const char * i_sMultiLineEndToken ) = 0;
- virtual void AssignDealer(
- TokenDealer & o_rDealer ) = 0;
- virtual void SetMode_IsMultiLine(
- bool i_bTrue ) = 0;
-};
-
-} // namespace autodoc
-
-#endif
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser/inc/tokens/tokdeal.hxx b/autodoc/source/parser/inc/tokens/tokdeal.hxx
deleted file mode 100644
index e772f9dc95ee..000000000000
--- a/autodoc/source/parser/inc/tokens/tokdeal.hxx
+++ /dev/null
@@ -1,35 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_TOKDEAL_HXX
-#define ADC_TOKDEAL_HXX
-
-class TokenDealer
-
-{
- public:
- virtual ~TokenDealer() {}
-
- virtual void Deal_Eol() = 0;
- virtual void Deal_Eof() = 0;
-};
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser/inc/tokens/token.hxx b/autodoc/source/parser/inc/tokens/token.hxx
deleted file mode 100644
index 520991a7c4a2..000000000000
--- a/autodoc/source/parser/inc/tokens/token.hxx
+++ /dev/null
@@ -1,59 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_TOKEN_HXX
-#define ADC_TOKEN_HXX
-
-// USED SERVICES
- // BASE CLASSES
- // COMPONENTS
- // PARAMETRS
-
-
-class TokenDealer;
-
-/**
-*/
-class TextToken
-{
- public:
- typedef TextToken * (*F_CRTOK)(const char*);
-
- // LIFECYCLE
- virtual ~TextToken() {}
-
-
- // INQUIRY
- virtual const char* Text() const = 0;
-
- virtual void DealOut(
- ::TokenDealer & o_rDealer ) = 0;
-};
-
-class Tok_Eof : public TextToken
-{
- virtual void DealOut( // Implemented in tokdeal.cxx
- TokenDealer & o_rDealer );
- virtual const char* Text() const;
-};
-
-#endif
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser/inc/tokens/tokproct.hxx b/autodoc/source/parser/inc/tokens/tokproct.hxx
deleted file mode 100644
index f0f0ec35400b..000000000000
--- a/autodoc/source/parser/inc/tokens/tokproct.hxx
+++ /dev/null
@@ -1,76 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_CPP_TOKPROCT_HXX
-#define ADC_CPP_TOKPROCT_HXX
-
-
-
-// USED SERVICES
- // BASE CLASSES
- // COMPONENTS
- // PARAMETERS
-
-
-class ParseEnvironment;
-
-/** is a parent class for classes, which take part in parsing tokens semantically.
- It provides some types for them.
-*/
-class TokenProcessing_Types
-{
- public:
- enum E_TokenDone
- {
- not_done = 0,
- done = 1
- };
-
- enum E_EnvStackAction
- {
- stay, // same parse environment
- push, // push sub environment
- pop_success, // return to parent environment, parsing was successful
- pop_failure // return to parent environment, but an error occurred.
- };
-
- struct TokenProcessing_Result
- {
- E_TokenDone eDone;
- E_EnvStackAction eStackAction;
- ParseEnvironment * pEnv2Push;
-
- TokenProcessing_Result()
- : eDone(not_done), eStackAction(stay), pEnv2Push(0) {}
- void Reset() { eDone = not_done; eStackAction = stay; pEnv2Push = 0; }
- };
-
- enum E_ParseResult
- {
- res_error,
- res_complete,
- res_predeclaration
- };
-};
-
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser/inc/x_docu.hxx b/autodoc/source/parser/inc/x_docu.hxx
deleted file mode 100644
index 76bd1aa7fe9d..000000000000
--- a/autodoc/source/parser/inc/x_docu.hxx
+++ /dev/null
@@ -1,52 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_X_DOCU_HXX
-#define ADC_X_DOCU_HXX
-
-// BASE CLASSES
-#include <autodoc/x_parsing.hxx>
-
-
-
-
-class X_Docu : public autodoc::X_Parser_Ifc
-{
- public:
- // LIFECYCLE
- X_Docu(
- const char * i_tag,
- const char * i_explanation );
- ~X_Docu();
- // INQUIRY
- virtual E_Event GetEvent() const;
- virtual void GetInfo(
- std::ostream & o_rOutputMedium ) const;
-
- private:
- String sTagName;
- String sExplanation;
-};
-
-
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser/kernel/parsefct.cxx b/autodoc/source/parser/kernel/parsefct.cxx
deleted file mode 100644
index 0ba3daeac931..000000000000
--- a/autodoc/source/parser/kernel/parsefct.cxx
+++ /dev/null
@@ -1,60 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include "parsefct.hxx"
-
-
-// NOT FULLY DECLARED SERVICES
-#include <tools/filecoll.hxx>
-
-
-DYN ParseToolsFactory * ParseToolsFactory::dpTheInstance_ = 0;
-
-
-namespace autodoc
-{
-
-ParseToolsFactory_Ifc &
-ParseToolsFactory_Ifc::GetIt_()
-{
- if ( ParseToolsFactory::dpTheInstance_ == 0 )
- ParseToolsFactory::dpTheInstance_ = new ParseToolsFactory;
- return *ParseToolsFactory::dpTheInstance_;
-}
-
-} // namespace autodoc
-
-
-ParseToolsFactory::ParseToolsFactory()
-{
-}
-
-ParseToolsFactory::~ParseToolsFactory()
-{
-}
-
-DYN autodoc::FileCollector_Ifc *
-ParseToolsFactory::Create_FileCollector( uintt i_nEstimatedNrOfFiles ) const
-{
- return new FileCollector(i_nEstimatedNrOfFiles);
-}
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser/kernel/parsefct.hxx b/autodoc/source/parser/kernel/parsefct.hxx
deleted file mode 100644
index 47ca84009748..000000000000
--- a/autodoc/source/parser/kernel/parsefct.hxx
+++ /dev/null
@@ -1,49 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_PARSER_PARSEFCT_HXX
-#define ADC_PARSER_PARSEFCT_HXX
-
-
-#include <autodoc/parsing.hxx>
-
-
-/** Interface for parsing code of a programming language and
- delivering the information into an Autodoc Repository.
-**/
-class ParseToolsFactory : public autodoc::ParseToolsFactory_Ifc
-{
- public:
- ParseToolsFactory();
- virtual ~ParseToolsFactory();
-
- virtual DYN autodoc::FileCollector_Ifc *
- Create_FileCollector(
- uintt i_nEstimatedNrOfFiles ) const;
- private:
- static DYN ParseToolsFactory *
- dpTheInstance_;
-
- friend class autodoc::ParseToolsFactory_Ifc;
-};
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser/kernel/x_docu.cxx b/autodoc/source/parser/kernel/x_docu.cxx
deleted file mode 100644
index f989e95e8dd4..000000000000
--- a/autodoc/source/parser/kernel/x_docu.cxx
+++ /dev/null
@@ -1,55 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <x_docu.hxx>
-
-// NOT FULLY DECLARED SERVICES
-
-
-
-X_Docu::X_Docu( const char * i_tag,
- const char * i_explanation )
- : sTagName(i_tag),
- sExplanation(i_explanation)
-{
-}
-
-X_Docu::~X_Docu()
-{
-}
-
-X_Docu::E_Event
-X_Docu::GetEvent() const
-{
- return x_Any;
-}
-
-void
-X_Docu::GetInfo( std::ostream & o_rOutputMedium ) const
-{
- o_rOutputMedium
- << "Error in tag '"
- << sTagName
- << "': "
- << sExplanation
- << Endl();
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser/kernel/x_parse.cxx b/autodoc/source/parser/kernel/x_parse.cxx
deleted file mode 100644
index 1800771b3dba..000000000000
--- a/autodoc/source/parser/kernel/x_parse.cxx
+++ /dev/null
@@ -1,31 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <autodoc/x_parsing.hxx>
-
-std::ostream &
-operator<<( std::ostream & o_rOut,
- const autodoc::X_Parser_Ifc & i_rException )
-{
- i_rException.GetInfo(o_rOut);
- return o_rOut;
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser/tokens/stmstate.cxx b/autodoc/source/parser/tokens/stmstate.cxx
deleted file mode 100644
index 6d12a4ffb296..000000000000
--- a/autodoc/source/parser/tokens/stmstate.cxx
+++ /dev/null
@@ -1,32 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <tokens/stmstate.hxx>
-
-
-// NOT FULLY DECLARED SERVICES
-
-StmArrayStatus *
-StmStatus::AsArray()
-{
- return 0;
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser/tokens/tkpcontx.cxx b/autodoc/source/parser/tokens/tkpcontx.cxx
deleted file mode 100644
index 005ffac43ab1..000000000000
--- a/autodoc/source/parser/tokens/tkpcontx.cxx
+++ /dev/null
@@ -1,51 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <tokens/tkpcontx.hxx>
-
-// NOT FULLY DECLARED SERVICES
-
-TkpNullContext::~TkpNullContext()
-{
-}
-
-void
-TkpNullContext::ReadCharChain( CharacterSource & )
-{
-}
-
-bool
-TkpNullContext::PassNewToken()
-{
- return false;
-}
-
-TkpContext &
-TkpNullContext::FollowUpContext()
-{
- return *this;
-}
-
-
-
-
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser/tokens/tokdeal.cxx b/autodoc/source/parser/tokens/tokdeal.cxx
deleted file mode 100644
index 2b2cc0f07d9d..000000000000
--- a/autodoc/source/parser/tokens/tokdeal.cxx
+++ /dev/null
@@ -1,43 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <tokens/tokdeal.hxx>
-#include <tokens/token.hxx>
-
-
-// NOT FULLY DEFINED SERVICES
-
-
-
-void
-Tok_Eof::DealOut( TokenDealer & o_rDealer )
-{
- o_rDealer.Deal_Eof();
-};
-
-const char *
-Tok_Eof::Text() const
-{
- return "";
-}
-
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/idl/cx_idlco.cxx b/autodoc/source/parser_i/idl/cx_idlco.cxx
deleted file mode 100644
index 89ffdf068101..000000000000
--- a/autodoc/source/parser_i/idl/cx_idlco.cxx
+++ /dev/null
@@ -1,538 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <s2_luidl/cx_idlco.hxx>
-
-
-// NOT FULLY DECLARED SERVICES
-#include <s2_luidl/cx_sub.hxx>
-#include <s2_dsapi/cx_dsapi.hxx>
-#include <tools/tkpchars.hxx>
-#include <tokens/tkpstam2.hxx>
-#include <s2_luidl/tk_ident.hxx>
-#include <s2_luidl/tk_keyw.hxx>
-#include <s2_luidl/tk_punct.hxx>
-#include <s2_luidl/tokrecv.hxx>
-#include <x_parse2.hxx>
-
-
-namespace csi
-{
-namespace uidl
-{
-
-
-const intt C_nCppInitialNrOfStati = 400;
-const intt C_nStatusSize = 128;
-
-
-
-const uintt nF_fin_Error = 1;
-const uintt nF_fin_Ignore = 2;
-const uintt nF_fin_Identifier = 3;
-const uintt nF_fin_Keyword = 4;
-const uintt nF_fin_Punctuation = 5;
-const uintt nF_fin_EOL = 6;
-const uintt nF_fin_EOF = 7;
-
-const uintt nF_goto_MLDocu = 10;
-const uintt nF_goto_SLDocu = 11;
-const uintt nF_goto_MLComment = 12;
-const uintt nF_goto_SLComment = 13;
-const uintt nF_goto_Praeprocessor = 14;
-const uintt nF_goto_Assignment = 15;
-
-
-
-const UINT16 nTok_bty_any = 100 + TokBuiltInType::bty_any;
-const UINT16 nTok_bty_boolean = 100 + TokBuiltInType::bty_boolean;
-const UINT16 nTok_bty_byte = 100 + TokBuiltInType::bty_byte;
-const UINT16 nTok_bty_char = 100 + TokBuiltInType::bty_char;
-const UINT16 nTok_bty_double = 100 + TokBuiltInType::bty_double;
-const UINT16 nTok_bty_hyper = 100 + TokBuiltInType::bty_hyper;
-const UINT16 nTok_bty_long = 100 + TokBuiltInType::bty_long;
-const UINT16 nTok_bty_short = 100 + TokBuiltInType::bty_short;
-const UINT16 nTok_bty_string = 100 + TokBuiltInType::bty_string;
-const UINT16 nTok_bty_void = 100 + TokBuiltInType::bty_void;
-const UINT16 nTok_bty_ellipse = 100 + TokBuiltInType::bty_ellipse;
-
-const UINT16 nTok_tmod_unsigned = 200 + TokTypeModifier::tmod_unsigned;
-const UINT16 nTok_tmod_sequence = 200 + TokTypeModifier::tmod_sequence;
-
-const UINT16 nTok_ph_in = 250 + TokParameterHandling::ph_in;
-const UINT16 nTok_ph_out = 250 + TokParameterHandling::ph_out;
-const UINT16 nTok_ph_inout = 250 + TokParameterHandling::ph_inout;
-
-const UINT16 nTok_mt_attribute = 300 + TokMetaType::mt_attribute;
-const UINT16 nTok_mt_constants = 300 + TokMetaType::mt_constants;
-const UINT16 nTok_mt_enum = 300 + TokMetaType::mt_enum;
-const UINT16 nTok_mt_exception = 300 + TokMetaType::mt_exception;
-const UINT16 nTok_mt_ident = 300 + TokMetaType::mt_ident;
-const UINT16 nTok_mt_interface = 300 + TokMetaType::mt_interface;
-const UINT16 nTok_mt_module = 300 + TokMetaType::mt_module;
-const UINT16 nTok_mt_property = 300 + TokMetaType::mt_property;
-const UINT16 nTok_mt_service = 300 + TokMetaType::mt_service;
-const UINT16 nTok_mt_singleton = 300 + TokMetaType::mt_singleton;
-const UINT16 nTok_mt_struct = 300 + TokMetaType::mt_struct;
-const UINT16 nTok_mt_typedef = 300 + TokMetaType::mt_typedef;
-const UINT16 nTok_mt_uik = 300 + TokMetaType::mt_uik;
-
-const UINT16 nTok_ste_bound = 400 + TokStereotype::ste_bound;
-const UINT16 nTok_ste_constrained = 400 + TokStereotype::ste_constrained;
-const UINT16 nTok_ste_const = 400 + TokStereotype::ste_const;
-const UINT16 nTok_ste_maybeambiguous = 400 + TokStereotype::ste_maybeambiguous;
-const UINT16 nTok_ste_maybedefault = 400 + TokStereotype::ste_maybedefault;
-const UINT16 nTok_ste_maybevoid = 400 + TokStereotype::ste_maybevoid;
-const UINT16 nTok_ste_oneway = 400 + TokStereotype::ste_oneway;
-const UINT16 nTok_ste_optional = 400 + TokStereotype::ste_optional;
-const UINT16 nTok_ste_readonly = 400 + TokStereotype::ste_readonly;
-const UINT16 nTok_ste_removable = 400 + TokStereotype::ste_removable;
-const UINT16 nTok_ste_virtual = 400 + TokStereotype::ste_virtual;
-const UINT16 nTok_ste_transient = 400 + TokStereotype::ste_transient;
-const UINT16 nTok_ste_published = 400 + TokStereotype::ste_published;
-
-const UINT16 nTok_raises = 501;
-const UINT16 nTok_needs = 502;
-const UINT16 nTok_observes = 503;
-
-const UINT16 nTok_assignment = 550;
-
-const UINT16 nTok_ignore = 600;
-const UINT16 nTok_none_MLCommentBegin = 601;
-const UINT16 nTok_none_SLCommentBegin = 602;
-const UINT16 nTok_none_MLDocuBegin = 603;
-const UINT16 nTok_none_SLDocuBegin = 604;
-const UINT16 nTok_none_PraeprocessorBegin = 605;
-
-
-const UINT16 nTok_punct_BracketOpen = 700 + TokPunctuation::BracketOpen;
-const UINT16 nTok_punct_BracketClose = 700 + TokPunctuation::BracketClose;
-const UINT16 nTok_punct_ArrayBracketOpen = 700 + TokPunctuation::ArrayBracketOpen;
-const UINT16 nTok_punct_ArrayBracketClose = 700 + TokPunctuation::ArrayBracketClose;
-const UINT16 nTok_punct_CurledBracketOpen = 700 + TokPunctuation::CurledBracketOpen;
-const UINT16 nTok_punct_CurledBracketClose = 700 + TokPunctuation::CurledBracketClose;
-const UINT16 nTok_punct_Semicolon = 700 + TokPunctuation::Semicolon;
-const UINT16 nTok_punct_Colon = 700 + TokPunctuation::Colon;
-const UINT16 nTok_punct_DoubleColon = 700 + TokPunctuation::DoubleColon;
-const UINT16 nTok_punct_Comma = 700 + TokPunctuation::Comma;
-const UINT16 nTok_punct_Minus = 700 + TokPunctuation::Minus;
-const UINT16 nTok_punct_Fullstop = 700 + TokPunctuation::Fullstop;
-const UINT16 nTok_punct_Lesser = 700 + TokPunctuation::Lesser;
-const UINT16 nTok_punct_Greater = 700 + TokPunctuation::Greater;
-
-const UINT16 nTok_EOL = 801;
-const UINT16 nTok_EOF = 802;
-
-
-
-Context_UidlCode::Context_UidlCode( Token_Receiver & o_rReceiver,
- DYN TkpDocuContext & let_drContext_Docu )
- : aStateMachine(C_nStatusSize,C_nCppInitialNrOfStati),
- pReceiver(&o_rReceiver),
- pDocuContext(&let_drContext_Docu),
- dpContext_MLComment(0),
- dpContext_SLComment(0),
- dpContext_Preprocessor(0),
- dpContext_Assignment(0),
- pNewToken(0),
- pFollowUpContext(0)
-{
- dpContext_MLComment = new Context_MLComment(o_rReceiver,*this),
- dpContext_SLComment = new Context_SLComment(o_rReceiver,*this),
- dpContext_Preprocessor = new Context_Praeprocessor(o_rReceiver,*this),
- dpContext_Assignment = new Context_Assignment(o_rReceiver,*this),
-
- pDocuContext->SetParentContext(*this,"*/");
- SetupStateMachine();
-}
-
-Context_UidlCode::~Context_UidlCode()
-{
-}
-
-void
-Context_UidlCode::ReadCharChain( CharacterSource & io_rText )
-{
- pNewToken = 0;
-
- UINT16 nTokenId = 0;
- StmBoundsStatu2 & rBound = aStateMachine.GetCharChain(nTokenId, io_rText);
-
- // !!!
- // The order of the next two lines is essential, because
- // pFollowUpContext may be changed by PerformStatusFunction() also,
- // which then MUST override the previous assignment.
- pFollowUpContext = rBound.FollowUpContext();
- PerformStatusFunction(rBound.StatusFunctionNr(), nTokenId, io_rText);
-}
-
-bool
-Context_UidlCode::PassNewToken()
-{
- if (pNewToken)
- {
- pReceiver->Receive(*pNewToken.Release());
- return true;
- }
- return false;
-}
-
-TkpContext &
-Context_UidlCode::FollowUpContext()
-{
- csv_assert(pFollowUpContext != 0);
- return *pFollowUpContext;
-}
-
-void
-Context_UidlCode::PerformStatusFunction( uintt i_nStatusSignal,
- UINT16 i_nTokenId,
- CharacterSource & io_rText )
-{
- switch (i_nStatusSignal)
- {
- case nF_fin_Error:
- // KORR_FUTURE
- throw X_AutodocParser(X_AutodocParser::x_InvalidChar);
- // no break, because of throw
- case nF_fin_Ignore:
- pNewToken = 0;
- io_rText.CutToken();
- break;
- case nF_fin_Identifier:
- pNewToken = new TokIdentifier(io_rText.CutToken());
- break;
- case nF_fin_Keyword:
- io_rText.CutToken();
- switch ( i_nTokenId / 50 )
- {
- case 2:
- pNewToken = new TokBuiltInType(i_nTokenId - 100);
- break;
- case 4:
- pNewToken = new TokTypeModifier(i_nTokenId - 200);
- break;
- case 5:
- pNewToken = new TokParameterHandling(i_nTokenId - 250);
- break;
- case 6:
- pNewToken = new TokMetaType(i_nTokenId - 300);
- break;
- case 8:
- pNewToken = new TokStereotype(i_nTokenId - 400);
- break;
- case 10:
- switch (i_nTokenId-500)
- {
- case 1:
- pNewToken = new TokRaises;
- break;
- case 2:
- pNewToken = new TokNeeds;
- break;
- case 3:
- pNewToken = new TokObserves;
- break;
- default:
- csv_assert(false);
- }
- break;
- default:
- csv_assert(false);
- } // end switch ( i_nTokenId / 50 )
- break;
- case nF_fin_Punctuation:
- io_rText.CutToken();
- if (i_nTokenId == nTok_punct_DoubleColon)
- pNewToken = new TokNameSeparator;
- else
- pNewToken = new TokPunctuation(i_nTokenId - 700);
- break;
- case nF_fin_EOL:
- io_rText.CutToken();
- pNewToken = new Tok_EOL;
- pReceiver->Increment_CurLine();
- break;
- case nF_fin_EOF:
- pNewToken = new Tok_EOF;
- break;
- case nF_goto_MLDocu:
- while ( io_rText.CurChar() == '*')
- io_rText.MoveOn();
- io_rText.CutToken();
- pDocuContext->SetMode_IsMultiLine(true);
- break;
- case nF_goto_SLDocu:
- io_rText.CutToken();
- pDocuContext->SetMode_IsMultiLine(false);
- break;
- case nF_goto_MLComment:
- break;
- case nF_goto_SLComment:
- break;
- case nF_goto_Praeprocessor:
- break;
- case nF_goto_Assignment:
- break;
- default:
- csv_assert(false);
- } // end switch (i_nStatusSignal)
-}
-
-void
-Context_UidlCode::SetupStateMachine()
-{
- // special array statuses (no tokenfinish or change of context):
-// const INT16 top = 0; // top status
- const INT16 wht = 1; // skip whitespace status
- const INT16 bez = 2; // read identifier status
-
- // tokenfinish statuses:
- const INT16 finErr = 3;
- const INT16 finIgn = 4;
- const INT16 finBez = 5;
- const INT16 finKeyw = 6;
- const INT16 finPunct = 7;
- const INT16 finEOL = 8;
- const INT16 finEOF = 9;
-
- // change of context statuses:
- const INT16 gotoMld = 10;
- const INT16 gotoSld = 11;
- const INT16 gotoMlc = 12;
- const INT16 gotoSlc = 13;
- const INT16 gotoPrp = 14;
- const INT16 gotoAsg = 15;
-
- // constants for use in the table:
- const INT16 err = finErr;
- const INT16 fbz = finBez;
- const INT16 fig = finIgn;
- const INT16 fof = finEOF;
-// const INT16 fkw = finKeyw;
-// const INT16 fpc = finPunct;
-
- /// '0's are going to be replaced by AddToken() later
-
- const INT16 A_nTopStatus[C_nStatusSize] =
- // 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
- {fof,err,err,err,err,err,err,err,err,wht, 0,wht,wht, 0,err,err,
- err,err,err,err,err,err,err,err,err,err,fof,err,err,err,err,err, // 16 ...
- wht,err,wht, 0,err,err,err,err, 0, 0,err,err, 0, 0, 0,err,
- bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,err,err,err,err,err,err, // 48 ...
- err,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,
- bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez, 0,err, 0,err,bez, // 80 ...
- err,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,
- bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez, 0,err, 0,err,err, // 112 ...
- };
-
- const INT16 A_nWhitespaceStatus[C_nStatusSize] =
- // 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
- {fof,err,err,err,err,err,err,err,err,wht,fig,wht,wht,fig,err,err,
- err,err,err,err,err,err,err,err,err,err,fof,err,err,err,err,err, // 16 ...
- wht,fig,wht,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,
- fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig, // 48 ...
- fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,
- fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig, // 80 ...
- fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,
- fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,fig,err // 112 ...
- };
-
- const INT16 A_nBezeichnerStatus[C_nStatusSize] =
- // 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
- {fbz,err,err,err,err,err,err,err,err,fbz,fbz,fbz,fbz,fbz,err,err,
- err,err,err,err,err,err,err,err,err,err,fbz,err,err,err,err,err, // 16 ...
- fbz,fbz,fbz,fbz,fbz,fbz,fbz,fbz,fbz,fbz,fbz,fbz,fbz,fbz,fbz,fbz,
- bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,fbz,fbz,fbz,fbz,fbz,fbz, // 48 ...
- fbz,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,
- bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,fbz,fbz,fbz,fbz,bez, // 80 ...
- fbz,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,
- bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,fbz,fbz,fbz,fbz,err // 112 ...
- };
-
- const INT16 A_nPunctDefStatus[C_nStatusSize] =
- // 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
- {err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,
- err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,err, // 16 ...
- err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,
- err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,err, // 48 ...
- err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,
- err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,err, // 80 ...
- err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,
- err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,err // 112 ...
- };
-
- const INT16 A_nKeywordDefStatus[C_nStatusSize] =
- // 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
- {fbz,err,err,err,err,err,err,err,err,fbz,fbz,fbz,fbz,fbz,err,err,
- err,err,err,err,err,err,err,err,err,err,fbz,err,err,err,err,err, // 16 ...
- fbz,fbz,fbz,fbz,fbz,fbz,fbz,fbz,fbz,fbz,fbz,fbz,fbz,fbz,fbz,fbz,
- bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,fbz,fbz,fbz,fbz,fbz,fbz, // 48 ...
- fbz,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,
- bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,fbz,fbz,fbz,fbz,bez, // 80 ...
- fbz,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,
- bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,bez,fbz,fbz,fbz,fbz,err // 112 ...
- };
-
- DYN StmArrayStatu2 * dpStatusTop
- = new StmArrayStatu2( C_nStatusSize, A_nTopStatus, 0, true);
- DYN StmArrayStatu2 * dpStatusWhite
- = new StmArrayStatu2( C_nStatusSize, A_nWhitespaceStatus, 0, true);
- DYN StmArrayStatu2 * dpStatusBez
- = new StmArrayStatu2( C_nStatusSize, A_nBezeichnerStatus, 0, true);
-
- DYN StmBoundsStatu2 * dpBst_finErr
- = new StmBoundsStatu2( TkpContext_Null2_(), nF_fin_Error, true );
- DYN StmBoundsStatu2 * dpBst_finIgn
- = new StmBoundsStatu2( *this, nF_fin_Ignore, true );
- DYN StmBoundsStatu2 * dpBst_finBez
- = new StmBoundsStatu2( *this, nF_fin_Identifier, true );
- DYN StmBoundsStatu2 * dpBst_finKeyw
- = new StmBoundsStatu2( *this, nF_fin_Keyword, false );
- DYN StmBoundsStatu2 * dpBst_finPunct
- = new StmBoundsStatu2( *this, nF_fin_Punctuation, false );
- DYN StmBoundsStatu2 * dpBst_finEOL
- = new StmBoundsStatu2( *this, nF_fin_EOL, false );
- DYN StmBoundsStatu2 * dpBst_finEOF
- = new StmBoundsStatu2( TkpContext_Null2_(), nF_fin_EOF, false );
-
- DYN StmBoundsStatu2 * dpBst_gotoMld
- = new StmBoundsStatu2( *pDocuContext, nF_goto_MLDocu, false );
- DYN StmBoundsStatu2 * dpBst_gotoSld
- = new StmBoundsStatu2( *pDocuContext, nF_goto_SLDocu, false );
- DYN StmBoundsStatu2 * dpBst_gotoMlc
- = new StmBoundsStatu2( *dpContext_MLComment, nF_goto_MLComment, false );
- DYN StmBoundsStatu2 * dpBst_gotoSlc
- = new StmBoundsStatu2( *dpContext_SLComment, nF_goto_SLComment, false );
- DYN StmBoundsStatu2 * dpBst_gotoPrp
- = new StmBoundsStatu2( *dpContext_Preprocessor, nF_goto_Praeprocessor, false );
- DYN StmBoundsStatu2 * dpBst_gotoAsg
- = new StmBoundsStatu2( *dpContext_Assignment, nF_goto_Assignment, false );
-
- // construct dpMain:
- aStateMachine.AddStatus(dpStatusTop);
-
- aStateMachine.AddStatus(dpStatusWhite);
- aStateMachine.AddStatus(dpStatusBez);
-
- aStateMachine.AddStatus(dpBst_finErr);
- aStateMachine.AddStatus(dpBst_finIgn);
- aStateMachine.AddStatus(dpBst_finBez);
- aStateMachine.AddStatus(dpBst_finKeyw);
- aStateMachine.AddStatus(dpBst_finPunct);
- aStateMachine.AddStatus(dpBst_finEOL);
- aStateMachine.AddStatus(dpBst_finEOF);
-
- aStateMachine.AddStatus(dpBst_gotoMld);
- aStateMachine.AddStatus(dpBst_gotoSld);
- aStateMachine.AddStatus(dpBst_gotoMlc);
- aStateMachine.AddStatus(dpBst_gotoSlc);
- aStateMachine.AddStatus(dpBst_gotoPrp);
- aStateMachine.AddStatus(dpBst_gotoAsg);
-
- aStateMachine.AddToken("any", nTok_bty_any, A_nKeywordDefStatus, finKeyw);
- aStateMachine.AddToken("attribute", nTok_mt_attribute, A_nKeywordDefStatus, finKeyw);
- aStateMachine.AddToken("boolean", nTok_bty_boolean, A_nKeywordDefStatus, finKeyw);
- aStateMachine.AddToken("bound", nTok_ste_bound, A_nKeywordDefStatus, finKeyw);
- aStateMachine.AddToken("byte", nTok_bty_byte, A_nKeywordDefStatus, finKeyw);
- aStateMachine.AddToken("char", nTok_bty_char, A_nKeywordDefStatus, finKeyw);
- aStateMachine.AddToken("const", nTok_ste_const, A_nKeywordDefStatus, finKeyw);
- aStateMachine.AddToken("constants", nTok_mt_constants, A_nKeywordDefStatus, finKeyw);
- aStateMachine.AddToken("constrained",
- nTok_ste_constrained, A_nKeywordDefStatus, finKeyw);
- aStateMachine.AddToken("double", nTok_bty_double, A_nKeywordDefStatus, finKeyw);
- aStateMachine.AddToken("enum", nTok_mt_enum, A_nKeywordDefStatus, finKeyw);
- aStateMachine.AddToken("exception", nTok_mt_exception, A_nKeywordDefStatus, finKeyw);
- aStateMachine.AddToken("hyper", nTok_bty_hyper, A_nKeywordDefStatus, finKeyw);
- aStateMachine.AddToken("ident", nTok_mt_ident, A_nKeywordDefStatus, finKeyw);
- aStateMachine.AddToken("in", nTok_ph_in, A_nKeywordDefStatus, finKeyw);
- aStateMachine.AddToken("inout", nTok_ph_inout, A_nKeywordDefStatus, finKeyw);
- aStateMachine.AddToken("interface", nTok_mt_interface, A_nKeywordDefStatus, finKeyw);
- aStateMachine.AddToken("long", nTok_bty_long, A_nKeywordDefStatus, finKeyw);
- aStateMachine.AddToken("maybeambiguous",
- nTok_ste_maybeambiguous,A_nKeywordDefStatus, finKeyw);
- aStateMachine.AddToken("maybedefault",
- nTok_ste_maybedefault, A_nKeywordDefStatus, finKeyw);
- aStateMachine.AddToken("maybevoid", nTok_ste_maybevoid, A_nKeywordDefStatus, finKeyw);
- aStateMachine.AddToken("module", nTok_mt_module, A_nKeywordDefStatus, finKeyw);
- aStateMachine.AddToken("needs", nTok_needs, A_nKeywordDefStatus, finKeyw);
- aStateMachine.AddToken("observes", nTok_observes, A_nKeywordDefStatus, finKeyw);
- aStateMachine.AddToken("oneway", nTok_ste_oneway, A_nKeywordDefStatus, finKeyw);
- aStateMachine.AddToken("optional", nTok_ste_optional, A_nKeywordDefStatus, finKeyw);
- aStateMachine.AddToken("out", nTok_ph_out, A_nKeywordDefStatus, finKeyw);
- aStateMachine.AddToken("property", nTok_mt_property, A_nKeywordDefStatus, finKeyw);
- aStateMachine.AddToken("published", nTok_ste_published, A_nKeywordDefStatus, finKeyw);
- aStateMachine.AddToken("raises", nTok_raises, A_nKeywordDefStatus, finKeyw);
- aStateMachine.AddToken("readonly", nTok_ste_readonly, A_nKeywordDefStatus, finKeyw);
- aStateMachine.AddToken("removable", nTok_ste_removable, A_nKeywordDefStatus, finKeyw);
- aStateMachine.AddToken("sequence", nTok_tmod_sequence, A_nKeywordDefStatus, finKeyw);
- aStateMachine.AddToken("service", nTok_mt_service, A_nKeywordDefStatus, finKeyw);
- aStateMachine.AddToken("short", nTok_bty_short, A_nKeywordDefStatus, finKeyw);
- aStateMachine.AddToken("singleton", nTok_mt_singleton, A_nKeywordDefStatus, finKeyw);
- aStateMachine.AddToken("string", nTok_bty_string, A_nKeywordDefStatus, finKeyw);
- aStateMachine.AddToken("struct", nTok_mt_struct, A_nKeywordDefStatus, finKeyw);
- aStateMachine.AddToken("transient", nTok_ste_transient, A_nKeywordDefStatus, finKeyw);
- aStateMachine.AddToken("typedef", nTok_mt_typedef, A_nKeywordDefStatus, finKeyw);
- aStateMachine.AddToken("uik", nTok_mt_uik, A_nKeywordDefStatus, finKeyw);
- aStateMachine.AddToken("unsigned", nTok_tmod_unsigned, A_nKeywordDefStatus, finKeyw);
- aStateMachine.AddToken("virtual", nTok_ste_virtual, A_nKeywordDefStatus, finKeyw);
- aStateMachine.AddToken("void", nTok_bty_void, A_nKeywordDefStatus, finKeyw);
- aStateMachine.AddToken("...", nTok_bty_ellipse, A_nPunctDefStatus, finKeyw);
-
- aStateMachine.AddToken("=", nTok_assignment, A_nPunctDefStatus, gotoAsg);
-
- aStateMachine.AddToken("(", nTok_punct_BracketOpen, A_nPunctDefStatus, finPunct);
- aStateMachine.AddToken(")", nTok_punct_BracketClose,A_nPunctDefStatus, finPunct);
- aStateMachine.AddToken("[", nTok_punct_ArrayBracketOpen,
- A_nPunctDefStatus, finIgn);
- aStateMachine.AddToken("]", nTok_punct_ArrayBracketClose,
- A_nPunctDefStatus, finIgn);
- aStateMachine.AddToken("{", nTok_punct_CurledBracketOpen,
- A_nPunctDefStatus, finPunct);
- aStateMachine.AddToken("}", nTok_punct_CurledBracketClose,
- A_nPunctDefStatus, finPunct);
- aStateMachine.AddToken("<", nTok_punct_Lesser, A_nPunctDefStatus, finPunct);
- aStateMachine.AddToken(">", nTok_punct_Greater, A_nPunctDefStatus, finPunct);
- aStateMachine.AddToken(";", nTok_punct_Semicolon, A_nPunctDefStatus, finPunct);
- aStateMachine.AddToken(":", nTok_punct_Colon, A_nPunctDefStatus, finPunct);
- aStateMachine.AddToken("::", nTok_punct_DoubleColon, A_nPunctDefStatus, finPunct);
- aStateMachine.AddToken(",", nTok_punct_Comma, A_nPunctDefStatus, finPunct);
- aStateMachine.AddToken("-", nTok_punct_Minus, A_nPunctDefStatus, finPunct);
- aStateMachine.AddToken(".", nTok_punct_Fullstop, A_nPunctDefStatus, finPunct);
- aStateMachine.AddToken("/**", nTok_none_MLDocuBegin, A_nPunctDefStatus, gotoMld);
- aStateMachine.AddToken("///", nTok_none_SLDocuBegin, A_nPunctDefStatus, gotoSld);
- aStateMachine.AddToken("/*", nTok_none_MLCommentBegin,
- A_nPunctDefStatus, gotoMlc);
- aStateMachine.AddToken("//", nTok_none_SLCommentBegin,
- A_nPunctDefStatus, gotoSlc);
- aStateMachine.AddToken("/**/", nTok_ignore, A_nPunctDefStatus, finIgn);
- aStateMachine.AddToken("#", nTok_none_PraeprocessorBegin,
- A_nPunctDefStatus, gotoPrp);
- aStateMachine.AddToken("\r\n", nTok_EOL, A_nPunctDefStatus, finEOL);
- aStateMachine.AddToken("\r", nTok_EOL, A_nPunctDefStatus, finEOL);
- aStateMachine.AddToken("\n", nTok_EOL, A_nPunctDefStatus, finEOL);
- aStateMachine.AddToken("\n\r", nTok_EOL, A_nPunctDefStatus, finEOL);
-};
-
-
-} // namespace uidl
-} // namespace csi
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/idl/cx_sub.cxx b/autodoc/source/parser_i/idl/cx_sub.cxx
deleted file mode 100644
index e91f945ac629..000000000000
--- a/autodoc/source/parser_i/idl/cx_sub.cxx
+++ /dev/null
@@ -1,140 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <s2_luidl/cx_sub.hxx>
-
-
-
-// NOT FULLY DECLARED SERVICES
-#include <s2_luidl/tokrecv.hxx>
-#include <../../parser/inc/tokens/parseinc.hxx>
-#include <x_parse2.hxx>
-#include <s2_luidl/tk_const.hxx>
-
-
-
-namespace csi
-{
-namespace uidl
-{
-
-bool
-Cx_Base::PassNewToken()
-{
- if (pNewToken)
- {
- rReceiver.Receive(*pNewToken.Release());
- return true;
- }
- return false;
-}
-
-TkpContext &
-Cx_Base::FollowUpContext()
-{
- csv_assert(pFollowUpContext != 0);
- return *pFollowUpContext;
-}
-
-void
-Context_MLComment::ReadCharChain( CharacterSource & io_rText )
-{
- char cNext = NULCH;
-
- do {
- do {
- cNext = jumpTo(io_rText,'*','\n');
- if (cNext == '\n')
- {
- Receiver().Increment_CurLine();
- cNext = io_rText.MoveOn();
- }
- else if (cNext == NULCH)
- throw X_AutodocParser(X_AutodocParser::x_UnexpectedEOF);
- } while (cNext != '*');
-
- cNext = jumpOver(io_rText,'*');
- if (cNext == NULCH)
- throw X_AutodocParser(X_AutodocParser::x_UnexpectedEOF);
- } while (cNext != '/');
- io_rText.MoveOn();
- io_rText.CutToken();
- SetToken(0);
-}
-
-void
-Context_SLComment::ReadCharChain( CharacterSource & io_rText )
-{
- jumpToEol(io_rText);
- if (io_rText.CurChar() != NULCH)
- jumpOverEol(io_rText);
- io_rText.CutToken();
- SetToken(0);
-
- Receiver().Increment_CurLine();
-}
-
-void
-Context_Praeprocessor::ReadCharChain( CharacterSource & io_rText )
-{
- jumpToEol(io_rText);
- if (io_rText.CurChar() != NULCH)
- jumpOverEol(io_rText);
- io_rText.CutToken();
- SetToken(0);
-
- Receiver().Increment_CurLine();
-}
-
-void
-Context_Assignment::ReadCharChain( CharacterSource & io_rText )
-{
- // KORR_FUTURE
- // How to handle new lines within this, so he y get realised by
- // ParserInfo?
-
- char cNext = NULCH;
- do {
- if ( (cNext = jumpTo(io_rText,';',',','"','}')) == NULCH )
- throw X_AutodocParser(X_AutodocParser::x_UnexpectedEOF);
- if (cNext == '"')
- {
- cNext = io_rText.MoveOn();
- while (cNext != '"')
- {
- if ( (cNext = jumpTo(io_rText,'"','\\')) == NULCH )
- throw X_AutodocParser(X_AutodocParser::x_UnexpectedEOF);
- if (cNext == '\\')
- io_rText.MoveOn();
- }
- cNext = io_rText.MoveOn();
- } // endif (cNext == '"')
- } while (cNext != ';' AND cNext != ',' AND cNext != '}');
-
- if (cNext == ',' OR cNext == ';')
- io_rText.MoveOn();
- SetToken(new TokAssignment(io_rText.CutToken()));
-}
-
-
-} // namespace uidl
-} // namespace csi
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/idl/distrib.cxx b/autodoc/source/parser_i/idl/distrib.cxx
deleted file mode 100644
index cff100993ad2..000000000000
--- a/autodoc/source/parser_i/idl/distrib.cxx
+++ /dev/null
@@ -1,256 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <s2_luidl/distrib.hxx>
-
-
-// NOT FULLY DECLARED SERVICES
-#include <ary/doc/d_oldidldocu.hxx>
-#include <parser/parserinfo.hxx>
-#include <s2_luidl/tkp_uidl.hxx>
-#include <s2_luidl/parsenv2.hxx>
-#include <s2_luidl/tk_punct.hxx>
-#include <s2_dsapi/docu_pe2.hxx>
-#include <adc_cl.hxx>
-#include <x_parse2.hxx>
-
-
-
-const uintt C_nNO_TRY = uintt(-1);
-
-
-namespace csi
-{
-namespace uidl
-{
-
-TokenDistributor::TokenDistributor( ary::Repository & io_rRepository,
- ParserInfo & io_rParserInfo )
- : pTokenSource(0),
- aDocumentation(io_rParserInfo),
- aProcessingData( io_rRepository, aDocumentation, io_rParserInfo )
-{
-}
-
-TokenDistributor::~TokenDistributor()
-{
-}
-
-void
-TokenDistributor::TradeToken()
-{
- bool bGoon = true;
- while (bGoon AND NOT aProcessingData.NextTokenExists())
- {
- bGoon = pTokenSource->GetNextToken();
- }
- if (bGoon)
- aProcessingData.ProcessCurToken();
-}
-
-TokenDistributor::ProcessingData::ProcessingData(
- ary::Repository & io_rRepository,
- Documentation & i_rDocuProcessor,
- ParserInfo & io_rParserInfo )
- : // aEnvironments
- // aTokenQueue
- // itCurToken
- // aCurResult
- nTryCount(0),
- rRepository(io_rRepository),
- rParserInfo(io_rParserInfo),
- pDocuProcessor(&i_rDocuProcessor),
- bPublishedRecentlyOn(false)
-{
- itCurToken = aTokenQueue.end();
-}
-
-TokenDistributor::ProcessingData::~ProcessingData()
-{
-}
-
-void
-TokenDistributor::ProcessingData::SetTopParseEnvironment( UnoIDL_PE & io_pTopParseEnvironment )
-{
- csv::erase_container(aEnvironments);
- aEnvironments.push_back( EnvironmentInfo( &io_pTopParseEnvironment, 0 ) );
- io_pTopParseEnvironment.EstablishContacts(0,rRepository,aCurResult);
-}
-
-void
-TokenDistributor::ProcessingData::Receive( DYN csi::uidl::Token & let_drToken )
-{
- aTokenQueue.push_back( &let_drToken );
- itCurToken = aTokenQueue.end()-1;
-}
-
-void
-TokenDistributor::ProcessingData::Increment_CurLine()
-{
- rParserInfo.Increment_CurLine();
-}
-
-void
-TokenDistributor::ProcessingData::ProcessCurToken()
-{
-
-if (DEBUG_ShowTokens())
-{
- Cout() << (*itCurToken)->Text() << Endl();
-}
-
- aCurResult.reset();
-
- CurEnvironment().ProcessToken( CurToken() );
- AcknowledgeResult();
-}
-
-
-UnoIDL_PE &
-TokenDistributor::ProcessingData::CurEnvironment() const
-{
- csv_assert(aEnvironments.size() > 0);
- csv_assert(aEnvironments.back().first != 0);
-
- return *aEnvironments.back().first;
-}
-
-bool
-TokenDistributor::ProcessingData::NextTokenExists() const
-{
- return itCurToken != aTokenQueue.end();
-}
-
-void
-TokenDistributor::ProcessingData::AcknowledgeResult()
-{
- if (aCurResult.eDone == done)
- ++itCurToken;
-
- switch ( aCurResult.eStackAction )
- {
- case stay:
- if (aCurResult.eDone != done)
- {
- csv_assert(false);
- }
- break;
- case push_sure:
- CurEnv().Leave(push_sure);
- aEnvironments.push_back( EnvironmentInfo(&PushEnv(), C_nNO_TRY) );
- PushEnv().Enter(push_sure);
- PushEnv().SetDocu(pDocuProcessor->ReleaseLastParsedDocu());
- if (bPublishedRecentlyOn)
- {
- PushEnv().SetPublished();
- bPublishedRecentlyOn = false;
- }
-
- break;
- case push_try:
- Cout() << "TestInfo: Environment tried." << Endl();
- CurEnv().Leave(push_try);
- aEnvironments.push_back( EnvironmentInfo(&PushEnv(), CurTokenPosition()) );
- nTryCount++;
- PushEnv().Enter(push_try);
- break;
- case pop_success:
- CurEnv().Leave(pop_success);
- if ( CurEnv_TriedTokenPosition() > 0 )
- DecrementTryCount();
- aEnvironments.pop_back();
- CurEnv().Enter(pop_success);
- break;
- case pop_failure:
- {
- CurEnv().Leave(pop_failure);
- if (aCurResult.eDone == done)
- {
- csv_assert(false);
- }
-
- if ( CurEnv_TriedTokenPosition() == C_nNO_TRY )
- throw X_AutodocParser( X_AutodocParser::x_UnexpectedToken, (*itCurToken)->Text() );
-
- itCurToken = aTokenQueue.begin() + CurEnv_TriedTokenPosition();
- DecrementTryCount();
- aEnvironments.pop_back();
- CurEnv().Enter(pop_failure);
- } break;
- default:
- csv_assert(false);
- } // end switch(aCurResult.eStackAction)
-}
-
-void
-TokenDistributor::ProcessingData::DecrementTryCount()
-{
- nTryCount--;
- if (nTryCount == 0)
- {
- aTokenQueue.erase(aTokenQueue.begin(), itCurToken);
- itCurToken = aTokenQueue.begin();
- }
-}
-
-TokenDistributor::
-Documentation::Documentation(ParserInfo & io_rParserInfo)
- : pDocuParseEnv(new csi::dsapi::SapiDocu_PE(io_rParserInfo)),
- rParserInfo(io_rParserInfo),
- pMostRecentDocu(0),
- bIsPassedFirstDocu(false)
-{
-}
-
-TokenDistributor::
-Documentation::~Documentation()
-{
-}
-
-void
-TokenDistributor::
-Documentation::Receive( DYN csi::dsapi::Token & let_drToken )
-{
- csv_assert(pDocuParseEnv);
-
- pDocuParseEnv->ProcessToken(let_drToken);
- if ( pDocuParseEnv->IsComplete() )
- {
- pMostRecentDocu = pDocuParseEnv->ReleaseJustParsedDocu();
- if (NOT bIsPassedFirstDocu)
- {
- pMostRecentDocu = 0; // Deletes the most recent docu.
- bIsPassedFirstDocu = true;
- }
- }
-}
-
-void
-TokenDistributor::
-Documentation::Increment_CurLine()
-{
- rParserInfo.Increment_CurLine();
-}
-
-
-} // namespace uidl
-} // namespace csi
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/idl/parsenv2.cxx b/autodoc/source/parser_i/idl/parsenv2.cxx
deleted file mode 100644
index e72e7c02a33f..000000000000
--- a/autodoc/source/parser_i/idl/parsenv2.cxx
+++ /dev/null
@@ -1,206 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <s2_luidl/parsenv2.hxx>
-
-
-// NOT FULLY DEFINED SERVICES
-#include <ary/ary.hxx>
-#include <ary/getncast.hxx>
-#include <ary/qualiname.hxx>
-#include <ary/doc/d_oldidldocu.hxx>
-#include <ary/idl/i_gate.hxx>
-#include <ary/idl/i_ce.hxx>
-#include <ary/idl/i_enum.hxx>
-#include <ary/idl/i_enumvalue.hxx>
-#include <ary/idl/i_module.hxx>
-#include <ary/idl/ip_ce.hxx>
-#include <parser/parserinfo.hxx>
-#include <adc_msg.hxx>
-#include <s2_luidl/uidl_tok.hxx>
-#include <x_parse2.hxx>
-
-
-
-
-namespace csi
-{
-namespace uidl
-{
-
-
-UnoIDL_PE::~UnoIDL_PE()
-{
-}
-
-void
-UnoIDL_PE::EstablishContacts( UnoIDL_PE * io_pParentPE,
- ary::Repository & io_rRepository,
- TokenProcessing_Result & o_rResult )
-{
- pRepository = &io_rRepository;
- aMyNode.EstablishContacts(io_pParentPE, io_rRepository.Gate_Idl(), o_rResult);
-}
-
-//void
-//UnoIDL_PE::EstablishContacts( UnoIDL_PE * io_pParentPE,
-// ary::idl::Gate & io_rGate,
-// TokenProcessing_Result & o_rResult )
-//{
-// aMyNode.EstablishContacts(io_pParentPE, io_rGate, o_rResult);
-//}
-
-void
-UnoIDL_PE::Enter( E_EnvStackAction i_eWayOfEntering )
-{
- switch (i_eWayOfEntering)
- {
- case push_sure:
- InitData();
- break;
- case push_try:
- csv_assert(false);
- break;
- case pop_success:
- ReceiveData();
- break;
- case pop_failure:
- throw X_AutodocParser(X_AutodocParser::x_Any);
- // no break because of throw
- default:
- csv_assert(false);
- } // end switch
-}
-
-void
-UnoIDL_PE::Leave( E_EnvStackAction i_eWayOfLeaving )
-{
- switch (i_eWayOfLeaving)
- {
- case push_sure:
- break;
- case push_try:
- csv_assert(false);
- break;
- case pop_success:
- TransferData();
- break;
- case pop_failure:
- throw X_AutodocParser(X_AutodocParser::x_Any);
- // no break because of throw
- default:
- csv_assert(false);
- } // end switch
-}
-
-void
-UnoIDL_PE::SetDocu( DYN ary::doc::OldIdlDocu * let_dpDocu )
-{
- pDocu = let_dpDocu;
-}
-
-void
-UnoIDL_PE::SetPublished()
-{
- if (NOT pDocu)
- {
- pDocu = new ary::doc::OldIdlDocu;
- }
- pDocu->SetPublished();
-}
-
-void
-UnoIDL_PE::SetOptional()
-{
- if (NOT pDocu)
- {
- pDocu = new ary::doc::OldIdlDocu;
- }
- pDocu->SetOptional();
-}
-
-void
-UnoIDL_PE::PassDocuAt( ary::idl::CodeEntity & io_rCe )
-{
- if (pDocu)
- {
- io_rCe.Set_Docu(*pDocu.Release());
- }
- else if // KORR_FUTURE
- // Re-enable doc-warning for Enum Values, as soon as there is a
- // @option -no-doc-for-enumvalues.
- ( NOT ary::is_type<ary::idl::Module>(io_rCe)
- AND NOT ary::is_type<ary::idl::Enum>(io_rCe) )
- {
- TheMessages().Out_MissingDoc(
- io_rCe.LocalName(),
- ParseInfo().CurFile(),
- ParseInfo().CurLine() );
- }
-}
-
-void
-UnoIDL_PE::InitData()
-{
- // Needs not anything to do.
-}
-
-void
-UnoIDL_PE::ReceiveData()
-{
- // Needs not anything to do.
-}
-
-const ary::idl::Module &
-UnoIDL_PE::CurNamespace() const
-{
- if ( Parent() != 0 )
- return Parent()->CurNamespace();
- else
- {
- csv_assert(false);
- return *(const ary::idl::Module*)0;
- }
-}
-
-const ParserInfo &
-UnoIDL_PE::ParseInfo() const
-{
- if ( Parent() != 0 )
- return Parent()->ParseInfo();
- else
- {
- csv_assert(false);
- return *(const ParserInfo*)0;
- }
-}
-
-UnoIDL_PE::UnoIDL_PE()
- : aMyNode(),
- pDocu(),
- pRepository(0)
-{
-}
-
-
-} // namespace uidl
-} // namespace csi
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/idl/pe_attri.cxx b/autodoc/source/parser_i/idl/pe_attri.cxx
deleted file mode 100644
index f0a129302af8..000000000000
--- a/autodoc/source/parser_i/idl/pe_attri.cxx
+++ /dev/null
@@ -1,288 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <s2_luidl/pe_attri.hxx>
-
-
-// NOT FULLY DEFINED SERVICES
-#include <ary/idl/i_gate.hxx>
-#include <ary/idl/i_attribute.hxx>
-#include <ary/idl/i_service.hxx>
-#include <ary/idl/ip_ce.hxx>
-#include <ary/doc/d_oldidldocu.hxx>
-#include <s2_luidl/pe_type2.hxx>
-#include <s2_luidl/pe_vari2.hxx>
-#include <s2_luidl/tk_keyw.hxx>
-#include <s2_luidl/tk_ident.hxx>
-#include <s2_luidl/tk_punct.hxx>
-
-
-
-namespace csi
-{
-namespace uidl
-{
-
-
-
-PE_Attribute::PE_Attribute( const Ce_id & i_rCurOwner )
- : eState(e_none),
- pCurOwner(&i_rCurOwner),
- pPE_Variable(0),
- pPE_Exception(0),
- pCurAttribute(0),
- nCurParsedType(0),
- sCurParsedName(),
- bReadOnly(false),
- bBound(false)
-{
- pPE_Variable = new PE_Variable(nCurParsedType, sCurParsedName);
- pPE_Exception = new PE_Type(nCurParsedType);
-}
-
-void
-PE_Attribute::EstablishContacts( UnoIDL_PE * io_pParentPE,
- ary::Repository & io_rRepository,
- TokenProcessing_Result & o_rResult )
-{
- UnoIDL_PE::EstablishContacts(io_pParentPE,io_rRepository,o_rResult);
- pPE_Variable->EstablishContacts(this,io_rRepository,o_rResult);
- pPE_Exception->EstablishContacts(this,io_rRepository,o_rResult);
-}
-
-PE_Attribute::~PE_Attribute()
-{
-}
-
-void
-PE_Attribute::ProcessToken( const Token & i_rToken )
-{
- i_rToken.Trigger(*this);
-}
-
-void
-PE_Attribute::Process_Identifier( const TokIdentifier & i_rToken )
-{
- switch (eState)
- {
- case e_start:
- SetResult(not_done, push_sure, pPE_Variable.Ptr());
- eState = in_variable;
- break;
- case in_raise_std:
- if (strcmp(i_rToken.Text(),"get") == 0)
- {
- SetResult(done, stay);
- eState = in_get;
- }
- else if (strcmp(i_rToken.Text(),"set") == 0)
- {
- SetResult(done, stay);
- eState = in_set;
- }
- else
- {
- SetResult(not_done, pop_failure);
- eState = e_none;
- }
- break;
- case in_get:
- case in_set:
- SetResult(not_done, push_sure, pPE_Exception.Ptr());
- break;
- default:
- SetResult(not_done, pop_failure);
- } // end switch
-}
-
-void
-PE_Attribute::Process_Stereotype( const TokStereotype & i_rToken )
-{
- if (eState != e_start)
- {
- SetResult(not_done, pop_failure);
- eState = e_none;
- return;
- }
-
- switch (i_rToken.Id())
- {
- case TokStereotype::ste_readonly:
- bReadOnly = true;
- break;
- case TokStereotype::ste_bound:
- bBound = true;
- break;
- default:
- SetResult(not_done, pop_failure);
- eState = e_none;
- return;
- } // end switch
-
- SetResult(done, stay);
-}
-
-void
-PE_Attribute::Process_MetaType( const TokMetaType & i_rToken )
-{
- if (eState != e_start OR i_rToken.Id() != TokMetaType::mt_attribute)
- {
- SetResult(not_done, pop_failure);
- eState = e_none;
- return;
- }
-
- SetResult(done, stay);
-}
-
-void
-PE_Attribute::Process_Punctuation( const TokPunctuation & i_rToken )
-{
- switch (eState)
- {
- case e_start:
- SetResult(done, stay);
- break;
- case expect_end:
- switch(i_rToken.Id())
- {
- case TokPunctuation::Semicolon:
- SetResult(done, pop_success);
- eState = e_none;
- break;
- case TokPunctuation::Comma:
- SetResult(not_done, pop_failure);
- Cerr() << "Autodoc does not support comma separated attributes, because those are discouraged by IDL policies." << Endl();
- break;
- case TokPunctuation::CurledBracketOpen:
- SetResult(done, stay);
- eState = in_raise_std;
- break;
- default:
- SetResult(not_done, pop_failure);
- } // end switch
- break;
- case in_raise_std:
- SetResult(done, stay);
- if (i_rToken.Id() == TokPunctuation::CurledBracketClose)
- {
- eState = expect_end;
- }
- break;
- case in_get:
- case in_set:
- SetResult(done, stay);
- if (i_rToken.Id() == TokPunctuation::Semicolon)
- {
- eState = in_raise_std;
- }
- break;
- default:
- csv_assert(false);
- }
-}
-
-void
-PE_Attribute::Process_Raises()
-{
- if (eState == in_get OR eState == in_set)
- {
- SetResult(done, stay);
- }
- else
- SetResult(not_done, pop_failure);
-}
-
-void
-PE_Attribute::Process_Default()
-{
- if (eState == e_start)
- {
- SetResult(not_done, push_sure, pPE_Variable.Ptr());
- eState = in_variable;
- }
- else if (eState == in_get OR eState == in_set)
- SetResult(not_done, push_sure, pPE_Exception.Ptr());
- else
- SetResult(not_done, pop_failure);
-}
-
-void
-PE_Attribute::InitData()
-{
- eState = e_start;
-
- pCurAttribute = 0;
- nCurParsedType = 0;
- sCurParsedName = "";
- bReadOnly = false;
- bBound = false;
-}
-
-void
-PE_Attribute::TransferData()
-{
- eState = e_none;
-}
-
-void
-PE_Attribute::ReceiveData()
-{
- switch (eState)
- {
- case in_variable:
- csv_assert(pCurOwner->IsValid());
- pCurAttribute = &Gate().Ces().Store_Attribute(
- *pCurOwner,
- sCurParsedName,
- nCurParsedType,
- bReadOnly,
- bBound );
- PassDocuAt(*pCurAttribute);
- nCurParsedType = 0;
- eState = expect_end;
- break;
- case in_get:
- csv_assert(pCurAttribute != 0);
- pCurAttribute->Add_GetException(nCurParsedType);
- nCurParsedType = 0;
- break;
- case in_set:
- csv_assert(pCurAttribute != 0);
- pCurAttribute->Add_SetException(nCurParsedType);
- nCurParsedType = 0;
- break;
- default:
- csv_assert(false);
- } // end switch
-}
-
-
-UnoIDL_PE &
-PE_Attribute::MyPE()
-{
- return *this;
-}
-
-
-} // namespace uidl
-} // namespace csi
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/idl/pe_const.cxx b/autodoc/source/parser_i/idl/pe_const.cxx
deleted file mode 100644
index 205585f89970..000000000000
--- a/autodoc/source/parser_i/idl/pe_const.cxx
+++ /dev/null
@@ -1,277 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include "sal/config.h"
-
-#include "sal/types.h"
-
-#include <precomp.h>
-#include <s2_luidl/pe_const.hxx>
-
-// NOT FULLY DECLARED SERVICES
-#include <ary/idl/i_gate.hxx>
-#include <ary/idl/i_constant.hxx>
-#include <ary/idl/i_constgroup.hxx>
-#include <ary/idl/ip_ce.hxx>
-#include <ary/doc/d_oldidldocu.hxx>
-#include <s2_luidl/pe_type2.hxx>
-#include <s2_luidl/pe_evalu.hxx>
-#include <s2_luidl/tk_punct.hxx>
-#include <s2_luidl/tk_ident.hxx>
-#include <s2_luidl/tk_keyw.hxx>
-
-
-namespace csi
-{
-namespace uidl
-{
-
-
-#ifdef DF
-#undef DF
-#endif
-#define DF &PE_Constant::On_Default
-
-PE_Constant::F_TOK
-PE_Constant::aDispatcher[PE_Constant::e_STATES_MAX][PE_Constant::tt_MAX] =
- { { DF, DF, DF }, // e_none
- { DF, &PE_Constant::On_expect_name_Identifier,
- DF }, // expect_name
- { DF, DF, &PE_Constant::On_expect_curl_bracket_open_Punctuation }, // expect_curl_bracket_open
- { &PE_Constant::On_expect_const_Stereotype,
- DF, &PE_Constant::On_expect_const_Punctuation }, // expect_const
- { DF, &PE_Constant::On_expect_value_Identifier,
- DF }, // expect_value
- { DF, DF, &PE_Constant::On_expect_finish_Punctuation } // expect_finish
- };
-
-
-
-inline void
-PE_Constant::CallHandler( const char * i_sTokenText,
- E_TokenType i_eTokenType )
- { (this->*aDispatcher[eState][i_eTokenType])(i_sTokenText); }
-
-
-
-
-PE_Constant::PE_Constant()
- : eState(e_none),
- sData_Name(),
- nDataId(0),
- pPE_Type(0),
- nType(0),
- pPE_Value(0),
- sName(),
- sAssignment()
-{
- pPE_Type = new PE_Type(nType);
- pPE_Value = new PE_Value(sName, sAssignment, true);
-}
-
-void
-PE_Constant::EstablishContacts( UnoIDL_PE * io_pParentPE,
- ary::Repository & io_rRepository,
- TokenProcessing_Result & o_rResult )
-{
- UnoIDL_PE::EstablishContacts(io_pParentPE,io_rRepository,o_rResult);
- pPE_Type->EstablishContacts(this,io_rRepository,o_rResult);
- pPE_Value->EstablishContacts(this,io_rRepository,o_rResult);
-}
-
-PE_Constant::~PE_Constant()
-{
-}
-
-void
-PE_Constant::ProcessToken( const Token & i_rToken )
-{
- i_rToken.Trigger(*this);
-}
-
-void
-PE_Constant::Process_Identifier( const TokIdentifier & i_rToken )
-{
- CallHandler(i_rToken.Text(), tt_identifier);
-}
-
-void
-PE_Constant::Process_Punctuation( const TokPunctuation & i_rToken )
-{
- CallHandler(i_rToken.Text(), tt_punctuation);
-}
-
-void
-PE_Constant::Process_Stereotype( const TokStereotype & i_rToken )
-{
- CallHandler(i_rToken.Text(), tt_stereotype);
-}
-
-void
-PE_Constant::On_expect_name_Identifier(const char * i_sText)
-{
- sName = i_sText;
-
- SetResult(done,stay);
- eState = expect_curl_bracket_open;
-}
-
-void
-PE_Constant::On_expect_curl_bracket_open_Punctuation(const char * i_sText)
-{
- if ( i_sText[0] == '{')
- {
- sData_Name = sName;
-
- ary::idl::ConstantsGroup &
- rCe = Gate().Ces().
- Store_ConstantsGroup(CurNamespace().CeId(),sData_Name);
- PassDocuAt(rCe);
- nDataId = rCe.CeId();
-
- SetResult(done,stay);
- eState = expect_const;
- }
- else
- {
- On_Default(i_sText);
- }
-}
-
-void
-PE_Constant::On_expect_const_Stereotype(SAL_UNUSED_PARAMETER const char *)
-{
- SetResult( done, push_sure, pPE_Type.Ptr() );
-}
-
-void
-PE_Constant::On_expect_const_Punctuation(const char * i_sText)
-{
- if ( i_sText[0] == '}')
- {
- SetResult(done,stay);
- eState = expect_finish;
- }
- else
- {
- On_Default(i_sText);
- }
-}
-
-void
-PE_Constant::On_expect_value_Identifier(SAL_UNUSED_PARAMETER const char *)
-{
- SetResult( not_done, push_sure, pPE_Value.Ptr() );
-}
-
-void
-PE_Constant::On_expect_finish_Punctuation(const char * i_sText)
-{
- if ( i_sText[0] == ';')
- {
- SetResult(done,pop_success);
- eState = e_none;
- }
- else
- {
- On_Default(i_sText);
- }
-}
-
-void
-PE_Constant::On_Default(SAL_UNUSED_PARAMETER const char * )
-{
- SetResult(not_done,pop_failure);
- eState = e_none;
-}
-
-void
-PE_Constant::EmptySingleConstData()
-{
- nType = 0;
- sName = "";
- sAssignment = "";
-}
-
-void
-PE_Constant::CreateSingleConstant()
-{
- ary::idl::Constant &
- rCe = Gate().Ces().Store_Constant( nDataId,
- sName,
- nType,
- sAssignment );
- pPE_Type->PassDocuAt(rCe);
-}
-
-void
-PE_Constant::InitData()
-{
- eState = expect_name;
-
- sData_Name.clear();
- nDataId = 0;
-
- EmptySingleConstData();
-}
-
-void
-PE_Constant::ReceiveData()
-{
- switch (eState)
- {
- case expect_const:
- eState = expect_value;
- break;
- case expect_value:
- {
- if (sName.length() == 0 OR sAssignment.length() == 0 OR NOT nType.IsValid())
- {
- Cerr() << "Constant without value found." << Endl();
- eState = expect_const;
- break;
- }
-
- CreateSingleConstant();
- EmptySingleConstData();
- eState = expect_const;
- } break;
- default:
- SetResult(not_done, pop_failure);
- eState = e_none;
- } // end switch
-}
-
-void
-PE_Constant::TransferData()
-{
- csv_assert(nDataId.IsValid());
- eState = e_none;
-}
-
-UnoIDL_PE &
-PE_Constant::MyPE()
-{
- return *this;
-}
-
-} // namespace uidl
-} // namespace csi
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/idl/pe_enum2.cxx b/autodoc/source/parser_i/idl/pe_enum2.cxx
deleted file mode 100644
index c5d4943143f7..000000000000
--- a/autodoc/source/parser_i/idl/pe_enum2.cxx
+++ /dev/null
@@ -1,248 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include "sal/config.h"
-
-#include "sal/types.h"
-
-#include <precomp.h>
-#include <s2_luidl/pe_enum2.hxx>
-
-
-// NOT FULLY DECLARED SERVICES
-#include <ary/idl/i_enum.hxx>
-#include <ary/idl/i_enumvalue.hxx>
-#include <ary/idl/i_gate.hxx>
-#include <ary/idl/ip_ce.hxx>
-#include <ary/doc/d_oldidldocu.hxx>
-#include <s2_luidl/pe_evalu.hxx>
-#include <s2_luidl/tk_punct.hxx>
-#include <s2_luidl/tk_ident.hxx>
-#include <s2_luidl/tk_keyw.hxx>
-
-
-namespace csi
-{
-namespace uidl
-{
-
-
-#ifdef DF
-#undef DF
-#endif
-#define DF &PE_Enum::On_Default
-
-PE_Enum::F_TOK
-PE_Enum::aDispatcher[PE_Enum::e_STATES_MAX][PE_Enum::tt_MAX] =
- { { DF, DF }, // e_none
- { &PE_Enum::On_expect_name_Identifier,
- DF }, // expect_name
- { DF, &PE_Enum::On_expect_curl_bracket_open_Punctuation }, // expect_curl_bracket_open
- { &PE_Enum::On_expect_value_Identifier,
- &PE_Enum::On_expect_value_Punctuation }, // expect_value
- { DF, &PE_Enum::On_expect_finish_Punctuation } // expect_finish
- };
-
-
-
-inline void
-PE_Enum::CallHandler( const char * i_sTokenText,
- E_TokenType i_eTokenType )
- { (this->*aDispatcher[eState][i_eTokenType])(i_sTokenText); }
-
-
-
-
-PE_Enum::PE_Enum()
- : eState(e_none),
- sData_Name(),
- nDataId(0),
- pPE_Value(0),
- sName(),
- sAssignment()
-{
- pPE_Value = new PE_Value(sName, sAssignment, false);
-}
-
-void
-PE_Enum::EstablishContacts( UnoIDL_PE * io_pParentPE,
- ary::Repository & io_rRepository,
- TokenProcessing_Result & o_rResult )
-{
- UnoIDL_PE::EstablishContacts(io_pParentPE,io_rRepository,o_rResult);
- pPE_Value->EstablishContacts(this,io_rRepository,o_rResult);
-}
-
-PE_Enum::~PE_Enum()
-{
-}
-
-void
-PE_Enum::ProcessToken( const Token & i_rToken )
-{
- i_rToken.Trigger(*this);
-}
-
-void
-PE_Enum::Process_Identifier( const TokIdentifier & i_rToken )
-{
- CallHandler(i_rToken.Text(), tt_identifier);
-}
-
-void
-PE_Enum::Process_Punctuation( const TokPunctuation & i_rToken )
-{
- CallHandler(i_rToken.Text(), tt_punctuation);
-}
-
-void
-PE_Enum::On_expect_name_Identifier(const char * i_sText)
-{
- sName = i_sText;
-
- SetResult(done,stay);
- eState = expect_curl_bracket_open;
-}
-
-void
-PE_Enum::On_expect_curl_bracket_open_Punctuation(const char * i_sText)
-{
- if ( i_sText[0] == '{')
- {
- sData_Name = sName;
- ary::idl::Enum &
- rCe = Gate().Ces().Store_Enum(CurNamespace().CeId(), sData_Name);
- PassDocuAt(rCe);
- nDataId = rCe.CeId();
-
- SetResult(done,stay);
- eState = expect_value;
- }
- else
- {
- On_Default(i_sText);
- }
-}
-
-void
-PE_Enum::On_expect_value_Punctuation(const char * i_sText)
-{
- if ( i_sText[0] == '}' )
- {
- SetResult(done,stay);
- eState = expect_finish;
- }
- else
- {
- On_Default(i_sText);
- }
-}
-
-void
-PE_Enum::On_expect_value_Identifier(SAL_UNUSED_PARAMETER const char *)
-{
- SetResult( not_done, push_sure, pPE_Value.Ptr() );
-}
-
-void
-PE_Enum::On_expect_finish_Punctuation(const char * i_sText)
-{
- if ( i_sText[0] == ';')
- {
- SetResult(done,pop_success);
- eState = e_none;
- }
- else
- {
- On_Default(i_sText);
- }
-}
-
-void
-PE_Enum::On_Default(SAL_UNUSED_PARAMETER const char * )
-{
- SetResult(not_done,pop_failure);
- eState = e_none;
-}
-
-void
-PE_Enum::EmptySingleValueData()
-{
- sName = "";
- sAssignment = "";
-}
-
-void
-PE_Enum::CreateSingleValue()
-{
- ary::idl::EnumValue &
- rCe = Gate().Ces().Store_EnumValue( nDataId, sName, sAssignment );
- pPE_Value->PassDocuAt(rCe);
-}
-
-void
-PE_Enum::InitData()
-{
- eState = expect_name;
-
- sData_Name.clear();
- nDataId = 0;
-
- EmptySingleValueData();
-}
-
-void
-PE_Enum::ReceiveData()
-{
- switch (eState)
- {
- case expect_value:
- {
- if (sName.length() == 0)
- {
- On_Default("");
- break;
- }
-
- CreateSingleValue();
- EmptySingleValueData();
- } break;
- default:
- SetResult(not_done, pop_failure);
- eState = e_none;
- } // end switch
-}
-
-void
-PE_Enum::TransferData()
-{
- csv_assert(sData_Name.length() > 0);
- eState = e_none;
-}
-
-UnoIDL_PE &
-PE_Enum::MyPE()
-{
- return *this;
-}
-
-} // namespace uidl
-} // namespace csi
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/idl/pe_evalu.cxx b/autodoc/source/parser_i/idl/pe_evalu.cxx
deleted file mode 100644
index 24454ef755d2..000000000000
--- a/autodoc/source/parser_i/idl/pe_evalu.cxx
+++ /dev/null
@@ -1,179 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include "sal/config.h"
-
-#include "sal/types.h"
-
-#include <precomp.h>
-#include <s2_luidl/pe_evalu.hxx>
-
-// NOT FULLY DECLARED SERVICES
-#include <ary/idl/i_enumvalue.hxx>
-#include <ary/idl/i_gate.hxx>
-#include <ary/idl/ip_ce.hxx>
-#include <ary/doc/d_oldidldocu.hxx>
-#include <s2_luidl/tk_ident.hxx>
-#include <s2_luidl/tk_punct.hxx>
-#include <s2_luidl/tk_const.hxx>
-
-
-namespace csi
-{
-namespace uidl
-{
-
-
-#ifdef DF
-#undef DF
-#endif
-#define DF &PE_Value::On_Default
-
-PE_Value::F_TOK
-PE_Value::aDispatcher[PE_Value::e_STATES_MAX][PE_Value::tt_MAX] =
- { { DF, DF, DF }, // e_none
- { &PE_Value::On_expect_name_Identifier,
- DF, DF }, // expect_name
- { DF, &PE_Value::On_got_name_Punctuation,
- &PE_Value::On_got_name_Assignment } // got_name
- };
-
-
-
-inline void
-PE_Value::CallHandler( const char * i_sTokenText,
- E_TokenType i_eTokenType )
- { (this->*aDispatcher[eState][i_eTokenType])(i_sTokenText); }
-
-
-
-
-
-PE_Value::PE_Value( String & o_rName,
- String & o_rAssignment,
- bool i_bIsConst )
- : eState(e_none),
- pName(&o_rName),
- pAssignment(&o_rAssignment),
- bIsConst(i_bIsConst)
-{
-}
-
-void
-PE_Value::EstablishContacts( UnoIDL_PE * io_pParentPE,
- ary::Repository & io_rRepository,
- TokenProcessing_Result & o_rResult )
-{
- UnoIDL_PE::EstablishContacts(io_pParentPE,io_rRepository,o_rResult);
-}
-
-PE_Value::~PE_Value()
-{
-}
-
-void
-PE_Value::ProcessToken( const Token & i_rToken )
-{
- i_rToken.Trigger(*this);
-}
-
-void
-PE_Value::Process_Identifier( const TokIdentifier & i_rToken )
-{
- CallHandler(i_rToken.Text(), tt_identifier);
-}
-
-void
-PE_Value::Process_Punctuation( const TokPunctuation & i_rToken )
-{
- CallHandler(i_rToken.Text(), tt_punctuation);
-}
-
-void
-PE_Value::Process_Assignment( const TokAssignment & i_rToken )
-{
- CallHandler(i_rToken.Text(), tt_assignment);
-}
-
-void
-PE_Value::On_expect_name_Identifier(const char * i_sText)
-{
- *pName = i_sText;
- SetResult(done,stay);
- eState = got_name;
-}
-
-void
-PE_Value::On_got_name_Punctuation(const char * i_sText)
-{
- if ( (i_sText[0] == ',' AND NOT IsConst())
- OR (i_sText[0] == ';' AND IsConst()) )
- {
- SetResult(done,pop_success);
- eState = e_none;
- }
- else if (i_sText[0] == '}' AND NOT IsConst())
- {
- SetResult(not_done,pop_success);
- eState = e_none;
- }
- else
- On_Default(i_sText);
-}
-
-void
-PE_Value::On_got_name_Assignment(const char * i_sText)
-{
- *pAssignment = i_sText;
- SetResult(done,pop_success);
- eState = e_none;
-}
-
-void
-PE_Value::On_Default(SAL_UNUSED_PARAMETER const char * )
-{
- SetResult(not_done,pop_failure);
-}
-
-void
-PE_Value::InitData()
-{
- eState = expect_name;
-
- *pName = "";
- *pAssignment = "";
-}
-
-void
-PE_Value::TransferData()
-{
- csv_assert(pName->length() > 0);
- eState = e_none;
-}
-
-UnoIDL_PE &
-PE_Value::MyPE()
-{
- return *this;
-}
-
-} // namespace uidl
-} // namespace csi
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/idl/pe_excp.cxx b/autodoc/source/parser_i/idl/pe_excp.cxx
deleted file mode 100644
index d0ba60a6112d..000000000000
--- a/autodoc/source/parser_i/idl/pe_excp.cxx
+++ /dev/null
@@ -1,292 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <s2_luidl/pe_excp.hxx>
-
-
-// NOT FULLY DECLARED SERVICES
-#include <ary/idl/i_exception.hxx>
-#include <ary/idl/i_gate.hxx>
-#include <ary/idl/i_structelem.hxx>
-#include <ary/idl/ip_ce.hxx>
-#include <ary/doc/d_oldidldocu.hxx>
-#include <s2_luidl/tk_ident.hxx>
-#include <s2_luidl/tk_punct.hxx>
-#include <s2_luidl/tk_keyw.hxx>
-#include <s2_luidl/pe_type2.hxx>
-#include <s2_luidl/pe_selem.hxx>
-
-
-
-namespace csi
-{
-namespace uidl
-{
-
-
-PE_Exception::PE_Exception()
- // : aWork,
- // pStati
-{
- pStati = new S_Stati(*this);
-}
-
-void
-PE_Exception::EstablishContacts( UnoIDL_PE * io_pParentPE,
- ary::Repository & io_rRepository,
- TokenProcessing_Result & o_rResult )
-{
- UnoIDL_PE::EstablishContacts(io_pParentPE,io_rRepository,o_rResult);
- Work().pPE_Element->EstablishContacts(this,io_rRepository,o_rResult);
- Work().pPE_Type->EstablishContacts(this,io_rRepository,o_rResult);
-}
-
-PE_Exception::~PE_Exception()
-{
-}
-
-void
-PE_Exception::ProcessToken( const Token & i_rToken )
-{
- i_rToken.Trigger(*Stati().pCurStatus);
-}
-
-
-void
-PE_Exception::InitData()
-{
- Work().InitData();
- Stati().pCurStatus = &Stati().aWaitForName;
-}
-
-void
-PE_Exception::TransferData()
-{
- if (NOT Work().bIsPreDeclaration)
- {
- csv_assert(Work().sData_Name.size() > 0);
- csv_assert(Work().nCurStruct.IsValid());
- }
- Stati().pCurStatus = &Stati().aNone;
-}
-
-void
-PE_Exception::ReceiveData()
-{
- Stati().pCurStatus->On_SubPE_Left();
-}
-
-PE_Exception::S_Work::S_Work()
- : sData_Name(),
- bIsPreDeclaration(false),
- nCurStruct(0),
- pPE_Element(0),
- nCurParsed_ElementRef(0),
- pPE_Type(0),
- nCurParsed_Base(0)
-
-{
- pPE_Element = new PE_StructElement(nCurParsed_ElementRef,nCurStruct);
- pPE_Type = new PE_Type(nCurParsed_Base);
-}
-
-void
-PE_Exception::S_Work::InitData()
-{
- sData_Name.clear();
- bIsPreDeclaration = false;
- nCurStruct = 0;
-
- nCurParsed_ElementRef = 0;
- nCurParsed_Base = 0;
-}
-
-void
-PE_Exception::S_Work::Prepare_PE_QualifiedName()
-{
- nCurParsed_ElementRef = 0;
-}
-
-void
-PE_Exception::S_Work::Prepare_PE_Element()
-{
- nCurParsed_Base = 0;
-}
-
-void
-PE_Exception::S_Work::Data_Set_Name( const char * i_sName )
-{
- sData_Name = i_sName;
-}
-
-PE_Exception::S_Stati::S_Stati(PE_Exception & io_rStruct)
- : aNone(io_rStruct),
- aWaitForName(io_rStruct),
- aGotName(io_rStruct),
- aWaitForBase(io_rStruct),
- aGotBase(io_rStruct),
- aWaitForElement(io_rStruct),
- aWaitForFinish(io_rStruct),
- pCurStatus(0)
-{
- pCurStatus = &aNone;
-}
-
-
-//*********************** Stati ***************************//
-
-
-UnoIDL_PE &
-PE_Exception::PE_StructState::MyPE()
-{
- return rStruct;
-}
-
-
-void
-PE_Exception::State_WaitForName::Process_Identifier( const TokIdentifier & i_rToken )
-{
- Work().Data_Set_Name(i_rToken.Text());
- MoveState( Stati().aGotName );
- SetResult(done,stay);
-}
-
-void
-PE_Exception::State_GotName::Process_Punctuation( const TokPunctuation & i_rToken )
-{
- if ( i_rToken.Id() != TokPunctuation::Semicolon )
- {
- switch (i_rToken.Id())
- {
- case TokPunctuation::Colon:
- MoveState( Stati().aWaitForBase );
- SetResult(done,push_sure,Work().pPE_Type.Ptr());
- Work().Prepare_PE_QualifiedName();
- break;
- case TokPunctuation::CurledBracketOpen:
- PE().store_Exception();
- MoveState( Stati().aWaitForElement );
- SetResult(done,stay);
- break;
- default:
- SetResult(not_done,pop_failure);
- } // end switch
- }
- else
- {
- Work().sData_Name.clear();
- SetResult(done,pop_success);
- }
-}
-
-void
-PE_Exception::State_WaitForBase::On_SubPE_Left()
-{
- MoveState(Stati().aGotBase);
-}
-
-void
-PE_Exception::State_GotBase::Process_Punctuation( const TokPunctuation & i_rToken )
-{
- if ( i_rToken.Id() == TokPunctuation::CurledBracketOpen )
- {
- PE().store_Exception();
- MoveState( Stati().aWaitForElement );
- SetResult(done,stay);
- }
- else
- {
- SetResult(not_done,pop_failure);
- }
-}
-
-void
-PE_Exception::State_WaitForElement::Process_Identifier( const TokIdentifier & )
-{
- SetResult( not_done, push_sure, Work().pPE_Element.Ptr() );
- Work().Prepare_PE_Element();
-}
-
-void
-PE_Exception::State_WaitForElement::Process_NameSeparator()
-{
- SetResult( not_done, push_sure, Work().pPE_Element.Ptr());
- Work().Prepare_PE_Element();
-}
-
-void
-PE_Exception::State_WaitForElement::Process_BuiltInType( const TokBuiltInType & )
-{
- SetResult( not_done, push_sure, Work().pPE_Element.Ptr());
- Work().Prepare_PE_Element();
-}
-
-void
-PE_Exception::State_WaitForElement::Process_TypeModifier(const TokTypeModifier & )
-{
- SetResult( not_done, push_sure, Work().pPE_Element.Ptr());
- Work().Prepare_PE_Element();
-}
-
-void
-PE_Exception::State_WaitForElement::Process_Punctuation( const TokPunctuation & i_rToken )
-{
- if ( i_rToken.Id() == TokPunctuation::CurledBracketClose )
- {
- MoveState( Stati().aWaitForFinish );
- SetResult( done, stay );
- }
- else
- {
- SetResult( not_done, pop_failure );
- }
-}
-
-void
-PE_Exception::State_WaitForFinish::Process_Punctuation( const TokPunctuation & i_rToken )
-{
- if (i_rToken.Id() == TokPunctuation::Semicolon)
- {
- MoveState( Stati().aNone );
- SetResult( done, pop_success );
- }
- else
- {
- SetResult( not_done, pop_failure );
- }
-}
-
-void
-PE_Exception::store_Exception()
-{
- ary::idl::Exception &
- rCe = Gate().Ces().Store_Exception(
- CurNamespace().CeId(),
- Work().sData_Name,
- Work().nCurParsed_Base );
- PassDocuAt(rCe);
- Work().nCurStruct = rCe.Id();
-}
-
-
-} // namespace uidl
-} // namespace csi
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/idl/pe_file2.cxx b/autodoc/source/parser_i/idl/pe_file2.cxx
deleted file mode 100644
index faa8d93a7a47..000000000000
--- a/autodoc/source/parser_i/idl/pe_file2.cxx
+++ /dev/null
@@ -1,311 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <s2_luidl/pe_file2.hxx>
-
-
-// NOT FULLY DECLARED SERVICES
-#include <ary/idl/i_gate.hxx>
-#include <ary/idl/i_module.hxx>
-#include <ary/idl/ip_ce.hxx>
-#include <ary/doc/d_oldidldocu.hxx>
-#include <s2_luidl/distrib.hxx>
-#include <s2_luidl/pe_servi.hxx>
-#include <s2_luidl/pe_iface.hxx>
-#include <s2_luidl/pe_singl.hxx>
-#include <s2_luidl/pe_struc.hxx>
-#include <s2_luidl/pe_excp.hxx>
-#include <s2_luidl/pe_const.hxx>
-#include <s2_luidl/pe_enum2.hxx>
-#include <s2_luidl/pe_tydf2.hxx>
-#include <s2_luidl/tk_keyw.hxx>
-#include <s2_luidl/tk_ident.hxx>
-#include <s2_luidl/tk_punct.hxx>
-
-
-
-
-namespace csi
-{
-namespace uidl
-{
-
-
-PE_File::PE_File( TokenDistributor & i_rTokenAdmin,
- const ParserInfo & i_parseInfo )
- : pTokenAdmin(&i_rTokenAdmin),
- pPE_Service(new PE_Service),
- pPE_Singleton(new PE_Singleton),
- pPE_Interface(new PE_Interface),
- pPE_Struct(new PE_Struct),
- pPE_Exception(new PE_Exception),
- pPE_Constant(new PE_Constant),
- pPE_Enum(new PE_Enum),
- pPE_Typedef(new PE_Typedef),
- pCurNamespace(0),
- pParseInfo(&i_parseInfo),
- eState(e_none),
- nBracketCount_inDefMode(0)
-{
-}
-
-void
-PE_File::EstablishContacts( UnoIDL_PE * io_pParentPE,
- ary::Repository & io_rRepository,
- TokenProcessing_Result & o_rResult )
-{
- UnoIDL_PE::EstablishContacts(io_pParentPE,io_rRepository,o_rResult);
- pPE_Service->EstablishContacts(this,io_rRepository,o_rResult);
- pPE_Singleton->EstablishContacts(this,io_rRepository,o_rResult);
- pPE_Interface->EstablishContacts(this,io_rRepository,o_rResult);
- pPE_Struct->EstablishContacts(this,io_rRepository,o_rResult);
- pPE_Exception->EstablishContacts(this,io_rRepository,o_rResult);
- pPE_Constant->EstablishContacts(this,io_rRepository,o_rResult);
- pPE_Enum->EstablishContacts(this,io_rRepository,o_rResult);
- pPE_Typedef->EstablishContacts(this,io_rRepository,o_rResult);
-
- pCurNamespace = &Gate().Ces().GlobalNamespace();
-}
-
-PE_File::~PE_File()
-{
-}
-
-void
-PE_File::ProcessToken( const Token & i_rToken )
-{
- i_rToken.Trigger(*this);
-}
-
-void
-PE_File::Process_Identifier( const TokIdentifier & i_rToken )
-{
- switch (eState)
- {
- case wait_for_module:
- {
- csv_assert(pCurNamespace != 0);
-
- ary::idl::Module & rCe = Gate().Ces().CheckIn_Module(pCurNamespace->CeId(), i_rToken.Text());
- pCurNamespace = &rCe;
-
- // Get docu out of normal:
- SetDocu(pTokenAdmin->ReleaseLastParsedDocu());
- PassDocuAt(rCe);
-
- csv_assert(pCurNamespace != 0);
-
- SetResult(done, stay);
- eState = wait_for_module_bracket;
- } break;
- case on_default:
- SetResult(done, stay);
- break;
- default:
- csv_assert(false);
- }
-}
-
-void
-PE_File::Process_Punctuation( const TokPunctuation & i_rToken )
-{
- switch (eState)
- {
- case e_std:
- if (i_rToken.Id() == TokPunctuation::CurledBracketClose)
- {
- csv_assert(pCurNamespace != 0);
-
- pCurNamespace = &Gate().Ces().Find_Module(pCurNamespace->Owner());
-
- SetResult(done, stay);
- eState = wait_for_module_semicolon;
- }
- else
- {
- csv_assert(false);
- }
- break;
- case wait_for_module_bracket:
- if (i_rToken.Id() == TokPunctuation::CurledBracketOpen)
- {
- SetResult(done, stay);
- eState = e_std;
- }
- else
- {
- csv_assert(false);
- }
- break;
- case wait_for_module_semicolon:
- if (i_rToken.Id() == TokPunctuation::Semicolon)
- {
- SetResult(done, stay);
- eState = e_std;
- }
- else
- {
- csv_assert(false);
- }
- break;
- case on_default:
- if (i_rToken.Id() == TokPunctuation::CurledBracketClose)
- {
- nBracketCount_inDefMode--;
- }
- else if (i_rToken.Id() == TokPunctuation::CurledBracketOpen)
- {
- nBracketCount_inDefMode++;
- }
- else if (i_rToken.Id() == TokPunctuation::Semicolon)
- {
- if (nBracketCount_inDefMode <= 0)
- {
- eState = e_std;
- }
- }
- SetResult(done, stay);
- break;
- default:
- csv_assert(false);
- }
-}
-
-void
-PE_File::Process_MetaType( const TokMetaType & i_rToken )
-{
- switch (i_rToken.Id())
- {
- case TokMetaType::mt_service:
- eState = in_sub_pe;
- SetResult( not_done, push_sure, pPE_Service.Ptr());
- break;
- case TokMetaType::mt_singleton:
- eState = in_sub_pe;
- SetResult( not_done, push_sure, pPE_Singleton.Ptr());
- break;
- case TokMetaType::mt_uik:
- Cerr() << "Syntax error: [uik ....] is obsolete now." << Endl();
- SetResult( not_done, pop_failure);
- break;
- case TokMetaType::mt_interface:
- eState = in_sub_pe;
- SetResult( not_done, push_sure, pPE_Interface.Ptr());
- break;
- case TokMetaType::mt_module:
- eState = wait_for_module;
- SetResult( done, stay );
- break;
- case TokMetaType::mt_struct:
- eState = in_sub_pe;
- SetResult( done, push_sure, pPE_Struct.Ptr());
- break;
- case TokMetaType::mt_exception:
- eState = in_sub_pe;
- SetResult( done, push_sure, pPE_Exception.Ptr());
- break;
- case TokMetaType::mt_constants:
- eState = in_sub_pe;
- SetResult( done, push_sure, pPE_Constant.Ptr());
- break;
- case TokMetaType::mt_enum:
- eState = in_sub_pe;
- SetResult( done, push_sure, pPE_Enum.Ptr());
- break;
- case TokMetaType::mt_typedef:
- eState = in_sub_pe;
- SetResult( done, push_sure, pPE_Typedef.Ptr());
- break;
-
- default:
- Process_Default();
- } // end switch
-}
-
-void
-PE_File::Process_Stereotype( const TokStereotype & i_rToken )
-{
- if (i_rToken.Id() == TokStereotype::ste_published)
- {
- pTokenAdmin->Set_PublishedOn();
-
- SetResult(done, stay);
- }
- else
- {
- Process_Default();
- }
-}
-
-void
-PE_File::Process_Default()
-{
- if (eState != on_default)
- {
- eState = on_default;
- nBracketCount_inDefMode = 0;
- }
- SetResult(done, stay);
-}
-
-const ary::idl::Module &
-PE_File::CurNamespace() const
-{
- csv_assert(pCurNamespace);
- return *pCurNamespace;
-}
-
-const ParserInfo &
-PE_File::ParseInfo() const
-{
- csv_assert(pParseInfo);
- return *pParseInfo;
-}
-
-void
-PE_File::InitData()
-{
- eState = e_std;
-}
-
-void
-PE_File::TransferData()
-{
- eState = e_none;
-}
-
-void
-PE_File::ReceiveData()
-{
- eState = e_std;
-}
-
-
-UnoIDL_PE &
-PE_File::MyPE()
-{
- return *this;
-}
-
-} // namespace uidl
-} // namespace csi
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/idl/pe_func2.cxx b/autodoc/source/parser_i/idl/pe_func2.cxx
deleted file mode 100644
index 04b32f4d8e65..000000000000
--- a/autodoc/source/parser_i/idl/pe_func2.cxx
+++ /dev/null
@@ -1,438 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <s2_luidl/pe_func2.hxx>
-
-
-// NOT FULLY DEFINED SERVICES
-#include <ary/idl/i_function.hxx>
-#include <ary/idl/i_type.hxx>
-#include <ary/idl/i_gate.hxx>
-#include <ary/idl/ip_ce.hxx>
-#include <ary/idl/ip_type.hxx>
-#include <ary/doc/d_oldidldocu.hxx>
-#include <s2_luidl/pe_type2.hxx>
-#include <s2_luidl/pe_vari2.hxx>
-#include <s2_luidl/tk_keyw.hxx>
-#include <s2_luidl/tk_ident.hxx>
-#include <s2_luidl/tk_punct.hxx>
-#include <x_parse2.hxx>
-
-
-namespace csi
-{
-namespace uidl
-{
-
-
-PE_Function::PE_Function( const RParent & i_rCurInterface )
- : eState(e_none),
- sData_Name(),
- nData_ReturnType(0),
- bData_Oneway(false),
- pCurFunction(0),
- pCurParent(&i_rCurInterface),
- pPE_Type(0),
- nCurParsedType(0),
- sName(),
- pPE_Variable(0),
- eCurParsedParam_Direction(ary::idl::param_in),
- nCurParsedParam_Type(0),
- sCurParsedParam_Name(),
- bIsForConstructors(false)
-{
- pPE_Type = new PE_Type(nCurParsedType);
- pPE_Variable = new PE_Variable(nCurParsedParam_Type, sCurParsedParam_Name);
-}
-
-PE_Function::PE_Function( const RParent & i_rCurService,
- E_Constructor )
- : eState(expect_name),
- sData_Name(),
- nData_ReturnType(0),
- bData_Oneway(false),
- pCurFunction(0),
- pCurParent(&i_rCurService),
- pPE_Type(0),
- nCurParsedType(0),
- sName(),
- pPE_Variable(0),
- eCurParsedParam_Direction(ary::idl::param_in),
- nCurParsedParam_Type(0),
- sCurParsedParam_Name(),
- bIsForConstructors(true)
-{
- pPE_Type = new PE_Type(nCurParsedType);
- pPE_Variable = new PE_Variable(nCurParsedParam_Type, sCurParsedParam_Name);
-}
-
-void
-PE_Function::EstablishContacts( UnoIDL_PE * io_pParentPE,
- ary::Repository & io_rRepository,
- TokenProcessing_Result & o_rResult )
-{
- UnoIDL_PE::EstablishContacts(io_pParentPE,io_rRepository,o_rResult);
- pPE_Type->EstablishContacts(this,io_rRepository,o_rResult);
- pPE_Variable->EstablishContacts(this,io_rRepository,o_rResult);
-}
-
-PE_Function::~PE_Function()
-{
-}
-
-void
-PE_Function::ProcessToken( const Token & i_rToken )
-{
- i_rToken.Trigger(*this);
-}
-
-void
-PE_Function::Process_Stereotype( const TokStereotype & i_rToken )
-{
- if (eState == e_start)
- {
- switch (i_rToken.Id())
- {
- case TokStereotype::ste_oneway:
- bData_Oneway = true;
- SetResult(done, stay);
- break;
- default:
- OnDefault();
- } // end switch
- }
- else
- OnDefault();
-}
-
-void
-PE_Function::Process_Identifier( const TokIdentifier & i_rToken )
-{
- switch (eState)
- {
- case e_start:
- GoIntoReturnType();
- break;
- case expect_name:
- sData_Name = i_rToken.Text();
- SetResult(done,stay);
- eState = expect_params_list;
-
- if (NOT bIsForConstructors)
- {
- pCurFunction = &Gate().Ces().Store_Function(
- *pCurParent,
- sData_Name,
- nData_ReturnType,
- bData_Oneway );
- }
- else
- {
- pCurFunction = &Gate().Ces().Store_ServiceConstructor(
- *pCurParent,
- sData_Name );
- }
- PassDocuAt(*pCurFunction);
- break;
- case expect_parameter_variable:
- GoIntoParameterVariable();
- break;
- case expect_exception:
- GoIntoException();
- break;
- default:
- OnDefault();
- }
-}
-
-void
-PE_Function::Process_Punctuation( const TokPunctuation & i_rToken )
-{
- switch (eState)
- {
- case e_start:
- SetResult(done,stay);
- break;
- case expect_params_list:
- if (i_rToken.Id() != TokPunctuation::BracketOpen)
- {
- OnDefault();
- return;
- }
- SetResult(done,stay);
- eState = expect_parameter;
- break;
- case expect_parameter:
- if (i_rToken.Id() == TokPunctuation::BracketClose)
- {
- SetResult(done,stay);
- eState = params_finished;
- }
- else
- {
- OnDefault();
- return;
- }
- break;
- case expect_parameter_separator:
- if (i_rToken.Id() == TokPunctuation::Comma)
- {
- SetResult(done,stay);
- eState = expect_parameter;
- }
- else if (i_rToken.Id() == TokPunctuation::BracketClose)
- {
- SetResult(done,stay);
- eState = params_finished;
- }
- else
- {
- OnDefault();
- return;
- }
- break;
- case params_finished:
- case exceptions_finished:
- if (i_rToken.Id() != TokPunctuation::Semicolon)
- {
- OnDefault();
- return;
- }
- SetResult(done,pop_success);
- eState = e_none;
- break;
- case expect_exceptions_list:
- if (i_rToken.Id() != TokPunctuation::BracketOpen)
- {
- OnDefault();
- return;
- }
- SetResult(done,stay);
- eState = expect_exception;
- break;
- case expect_exception_separator:
- if (i_rToken.Id() == TokPunctuation::Comma)
- {
- SetResult(done,stay);
- eState = expect_exception;
- }
- else if (i_rToken.Id() == TokPunctuation::BracketClose)
- {
- SetResult(done,stay);
- eState = exceptions_finished;
- }
- else
- {
- OnDefault();
- return;
- }
- break;
- default:
- OnDefault();
- }
-}
-
-void
-PE_Function::Process_BuiltInType( const TokBuiltInType & i_rToken )
-{
- switch (eState)
- {
- case e_start:
- GoIntoReturnType();
- break;
- case expect_parameter_variable:
- GoIntoParameterVariable();
- break;
- case expect_parameter_separator:
- if (i_rToken.Id() != TokBuiltInType::bty_ellipse)
- {
- OnDefault();
- }
- else
- {
- pCurFunction->Set_Ellipse();
- SetResult(done,stay);
- // eState stays the same, because we wait for the closing ")" now.
- }
- break;
- case expect_exception:
- GoIntoException();
- break;
- default:
- OnDefault();
- } // end switch
-}
-
-void
-PE_Function::Process_ParameterHandling( const TokParameterHandling & i_rToken )
-{
- if (eState != expect_parameter)
- {
- OnDefault();
- return;
- }
-
- switch (i_rToken.Id())
- {
- case TokParameterHandling::ph_in:
- eCurParsedParam_Direction = ary::idl::param_in;
- break;
- case TokParameterHandling::ph_out:
- eCurParsedParam_Direction = ary::idl::param_out;
- break;
- case TokParameterHandling::ph_inout:
- eCurParsedParam_Direction = ary::idl::param_inout;
- break;
- default:
- csv_assert(false);
- }
- SetResult(done,stay);
- eState = expect_parameter_variable;
-}
-
-void
-PE_Function::Process_Raises()
-{
- if (eState != params_finished)
- {
- OnDefault();
- return;
- }
- SetResult(done,stay);
- eState = expect_exceptions_list;
-}
-
-void
-PE_Function::Process_Default()
-{
- switch (eState)
- {
- case e_start:
- GoIntoReturnType();
- break;
- case expect_parameter_variable:
- GoIntoParameterVariable();
- break;
- case expect_exception:
- GoIntoException();
- break;
- default:
- OnDefault();
- } // end switch
-}
-
-void
-PE_Function::GoIntoReturnType()
-{
- SetResult(not_done, push_sure, pPE_Type.Ptr());
- eState = in_return_type;
-}
-
-void
-PE_Function::GoIntoParameterVariable()
-{
- SetResult(not_done, push_sure, pPE_Variable.Ptr());
- eState = in_parameter_variable;
-}
-
-void
-PE_Function::GoIntoException()
-{
- SetResult(not_done, push_sure, pPE_Type.Ptr());
- eState = in_exception;
-}
-
-void
-PE_Function::OnDefault()
-{
- throw X_AutodocParser(X_AutodocParser::x_Any);
-}
-
-void
-PE_Function::InitData()
-{
- eState = e_start;
-
- sData_Name.clear();
- nData_ReturnType = 0;
- bData_Oneway = false;
- pCurFunction = 0;
-
- nCurParsedType = 0;
- eCurParsedParam_Direction = ary::idl::param_in;
- nCurParsedParam_Type = 0;
- sCurParsedParam_Name.clear();
-
- if (bIsForConstructors)
- {
- eState = expect_name;
- }
-}
-
-void
-PE_Function::ReceiveData()
-{
- switch (eState)
- {
- case in_return_type:
- nData_ReturnType = nCurParsedType;
- nCurParsedType = 0;
- eState = expect_name;
- break;
- case in_parameter_variable:
- csv_assert(pCurFunction != 0);
- pCurFunction->Add_Parameter(
- sCurParsedParam_Name,
- nCurParsedParam_Type,
- eCurParsedParam_Direction );
- sCurParsedParam_Name = "";
- nCurParsedParam_Type = 0;
- eCurParsedParam_Direction = ary::idl::param_in;
- eState = expect_parameter_separator;
- break;
- case in_exception:
- csv_assert(pCurFunction != 0);
- pCurFunction->Add_Exception(nCurParsedType);
- eState = expect_exception_separator;
- break;
- default:
- csv_assert(false);
- } // end switch
-}
-
-void
-PE_Function::TransferData()
-{
- pCurFunction = 0;
- eState = e_none;
-}
-
-UnoIDL_PE &
-PE_Function::MyPE()
-{
- return *this;
-}
-
-
-
-} // namespace uidl
-} // namespace csi
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/idl/pe_iface.cxx b/autodoc/source/parser_i/idl/pe_iface.cxx
deleted file mode 100644
index 7ab2c4e153ce..000000000000
--- a/autodoc/source/parser_i/idl/pe_iface.cxx
+++ /dev/null
@@ -1,461 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <s2_luidl/pe_iface.hxx>
-
-
-// NOT FULLY DEFINED SERVICES
-#include <ary/idl/i_interface.hxx>
-#include <ary/idl/i_gate.hxx>
-#include <ary/idl/ip_ce.hxx>
-#include <ary/doc/d_oldidldocu.hxx>
-#include <s2_luidl/pe_func2.hxx>
-#include <s2_luidl/pe_attri.hxx>
-#include <s2_luidl/pe_type2.hxx>
-#include <s2_luidl/tk_keyw.hxx>
-#include <s2_luidl/tk_ident.hxx>
-#include <s2_luidl/tk_punct.hxx>
-#include <adc_cl.hxx>
-
-
-
-namespace csi
-{
-namespace uidl
-{
-
-#ifdef DF
-#undef DF
-#endif
-#define DF &PE_Interface::On_Default
-
-PE_Interface::F_TOK
-PE_Interface::aDispatcher[PE_Interface::e_STATES_MAX][PE_Interface::tt_MAX] =
- { { DF, DF, DF, DF, DF }, // e_none
- { &PE_Interface::On_need_uik_MetaType,
- DF, DF, DF, DF }, // need_uik
- { DF, &PE_Interface::On_uik_Identifier,
- &PE_Interface::On_uik_Punctuation,
- DF, DF }, // uik
- { &PE_Interface::On_need_ident_MetaType,
- DF, DF, DF, DF }, // need_ident
- { DF, &PE_Interface::On_ident_Identifier,
- &PE_Interface::On_ident_Punctuation,
- DF, DF }, // ident
- { &PE_Interface::On_need_interface_MetaType,
- DF, DF, DF, DF }, // need_interface
- { DF, &PE_Interface::On_need_name_Identifer,
- DF, DF, DF }, // need_name
- { DF, DF, &PE_Interface::On_wait_for_base_Punctuation,
- DF, DF }, // wait_for_base
- { DF, DF, DF, DF, DF }, // in_base
- { DF, DF, &PE_Interface::On_need_curlbr_open_Punctuation,
- DF, DF }, // need_curlbr_open
- { &PE_Interface::On_std_Metatype,
- &PE_Interface::On_std_GotoFunction,
- &PE_Interface::On_std_Punctuation,
- &PE_Interface::On_std_GotoFunction,
- &PE_Interface::On_std_Stereotype }, // e_std
- { DF, DF, DF, DF, DF }, // in_function
- { DF, DF, DF, DF, DF }, // in_attribute
- { DF, DF, &PE_Interface::On_need_finish_Punctuation,
- DF, DF }, // need_finish
- { DF, DF, DF, DF, DF } // in_base_interface
- };
-
-
-
-inline void
-PE_Interface::CallHandler( const char * i_sTokenText,
- E_TokenType i_eTokenType )
- { (this->*aDispatcher[eState][i_eTokenType])(i_sTokenText); }
-
-
-
-PE_Interface::PE_Interface()
- : eState(e_none),
- sData_Name(),
- bIsPreDeclaration(false),
- pCurInterface(0),
- nCurInterface(0),
- pPE_Function(0),
- pPE_Attribute(0),
- pPE_Type(0),
- nCurParsed_Base(0),
- bOptionalMember(false)
-{
- pPE_Function = new PE_Function(nCurInterface);
- pPE_Type = new PE_Type(nCurParsed_Base);
- pPE_Attribute = new PE_Attribute(nCurInterface);
-}
-
-void
-PE_Interface::EstablishContacts( UnoIDL_PE * io_pParentPE,
- ary::Repository & io_rRepository,
- TokenProcessing_Result & o_rResult )
-{
- UnoIDL_PE::EstablishContacts(io_pParentPE,io_rRepository,o_rResult);
- pPE_Function->EstablishContacts(this,io_rRepository,o_rResult);
- pPE_Type->EstablishContacts(this,io_rRepository,o_rResult);
- pPE_Attribute->EstablishContacts(this,io_rRepository,o_rResult);
-}
-
-PE_Interface::~PE_Interface()
-{
-}
-
-void
-PE_Interface::ProcessToken( const Token & i_rToken )
-{
- i_rToken.Trigger(*this);
-}
-
-
-void
-PE_Interface::Process_MetaType( const TokMetaType & i_rToken )
-{
- CallHandler( i_rToken.Text(), tt_metatype );
-}
-
-void
-PE_Interface::Process_Identifier( const TokIdentifier & i_rToken )
-{
- CallHandler( i_rToken.Text(), tt_identifier );
-}
-
-void
-PE_Interface::Process_Punctuation( const TokPunctuation & i_rToken )
-{
- CallHandler( i_rToken.Text(), tt_punctuation );
-}
-
-void
-PE_Interface::Process_NameSeparator()
-{
- CallHandler( "", tt_startoftype );
-}
-
-void
-PE_Interface::Process_BuiltInType( const TokBuiltInType & i_rToken )
-{
- CallHandler( i_rToken.Text(), tt_startoftype );
-}
-
-void
-PE_Interface::Process_TypeModifier( const TokTypeModifier & i_rToken )
-{
- CallHandler( i_rToken.Text(), tt_startoftype );
-}
-
-void
-PE_Interface::Process_Stereotype( const TokStereotype & i_rToken )
-{
- CallHandler( i_rToken.Text(), tt_stereotype );
-}
-
-void
-PE_Interface::Process_Default()
-{
- SetResult(done, stay);
-}
-
-
-void
-PE_Interface::On_need_uik_MetaType(SAL_UNUSED_PARAMETER const char *)
-{
- // Deprecated, data will be ignored
- SetResult(done, stay);
- eState = uik;
-}
-
-void
-PE_Interface::On_uik_Identifier(SAL_UNUSED_PARAMETER const char *)
-{
- // Deprecated, data will be ignored
- SetResult(done, stay);
-}
-
-void
-PE_Interface::On_uik_Punctuation(const char * i_sText)
-{
- // Deprecated, data will be ignored
- SetResult(done, stay);
- if (strcmp(",",i_sText) == 0)
- {
- eState = need_ident;
- }
-}
-
-void
-PE_Interface::On_need_ident_MetaType(SAL_UNUSED_PARAMETER const char *)
-{
- SetResult(done, stay);
- eState = ident;
-}
-
-void
-PE_Interface::On_ident_Identifier(SAL_UNUSED_PARAMETER const char *)
-{
- SetResult(done, stay);
-}
-
-void
-PE_Interface::On_ident_Punctuation(const char * i_sText)
-{
- SetResult(done, stay);
- if (strcmp(")",i_sText) == 0)
- {
- eState = need_interface;
- }
-}
-
-void
-PE_Interface::On_need_interface_MetaType(SAL_UNUSED_PARAMETER const char *)
-{
- SetResult(done, stay);
- eState = need_name;
-}
-
-void
-PE_Interface::On_need_name_Identifer(const char * i_sText)
-{
- SetResult(done, stay);
- sData_Name = i_sText;
- eState = wait_for_base;
-}
-
-void
-PE_Interface::On_wait_for_base_Punctuation(const char * i_sText)
-{
- if (i_sText[0] != ';')
- {
- switch (i_sText[0])
- {
- case ':':
- SetResult(done, push_sure, pPE_Type.Ptr());
- eState = in_base;
- break;
- case '{':
- store_Interface();
-
- SetResult(done,stay);
- eState = e_std;
- break;
- default:
- SetResult(not_done, pop_failure);
- eState = e_none;
- } // end switch
- }
- else
- {
- bIsPreDeclaration = true;
- SetResult(done, pop_success);
- eState = e_none;
- }
-}
-
-void
-PE_Interface::On_need_curlbr_open_Punctuation(const char * i_sText)
-{
- if (i_sText[0] == '{')
- {
- store_Interface();
-
- SetResult(done, stay);
- eState = e_std;
- }
- else {
- csv_assert(false);
- }
-}
-
-
-void
-PE_Interface::On_std_Metatype(const char * i_sText)
-{
- if (strcmp(i_sText,"attribute") == 0)
- On_std_GotoAttribute(i_sText);
- else if (strcmp(i_sText,"interface") == 0)
- On_std_GotoBaseInterface(i_sText);
- else
- On_std_GotoFunction(i_sText);
-}
-
-void
-PE_Interface::On_std_Punctuation(const char * i_sText)
-{
- switch (i_sText[0])
- {
- case '}':
- SetResult(done, stay);
- eState = need_finish;
- break;
- case ';': // Appears after base interface declarations.
- SetResult(done, stay);
- break;
- default:
- SetResult(not_done, pop_failure);
- eState = e_none;
- } // end switch
-}
-
-void
-PE_Interface::On_std_Stereotype(const char * i_sText)
-{
- if (strcmp(i_sText,"oneway") == 0)
- On_std_GotoFunction(i_sText);
- else if ( strcmp(i_sText,"readonly") == 0
- OR strcmp(i_sText,"bound") == 0 )
- On_std_GotoAttribute(i_sText);
- else if (strcmp(i_sText,"optional") == 0)
- {
- bOptionalMember = true;
- SetResult(done, stay);
- }
- else
- SetResult(not_done, pop_failure);
-}
-
-void
-PE_Interface::On_std_GotoFunction(SAL_UNUSED_PARAMETER const char * )
-{
- SetResult(not_done, push_sure, pPE_Function.Ptr());
- eState = in_function;
-}
-
-void
-PE_Interface::On_std_GotoAttribute(SAL_UNUSED_PARAMETER const char * )
-{
- SetResult(not_done, push_sure, pPE_Attribute.Ptr());
- eState = in_attribute;
-}
-
-void
-PE_Interface::On_std_GotoBaseInterface(SAL_UNUSED_PARAMETER const char * )
-{
- SetResult(done, push_sure, pPE_Type.Ptr());
- eState = in_base_interface;
-}
-
-void
-PE_Interface::On_need_finish_Punctuation(const char * i_sText)
-{
- switch (i_sText[0])
- {
- case ';':
- SetResult(done, pop_success);
- eState = e_none;
- break;
- default:
- SetResult(not_done, pop_failure);
- eState = e_none;
- } // end switch
-}
-
-void
-PE_Interface::On_Default(SAL_UNUSED_PARAMETER const char *)
-{
- SetResult(not_done, pop_failure);
-}
-
-void
-PE_Interface::InitData()
-{
- eState = need_interface;
-
- sData_Name.clear();
- bIsPreDeclaration = false;
- pCurInterface = 0;
- nCurInterface = 0;
- nCurParsed_Base = 0;
- bOptionalMember = false;
-}
-
-void
-PE_Interface::TransferData()
-{
- if (NOT bIsPreDeclaration)
- {
- csv_assert(sData_Name.size() > 0);
- csv_assert(nCurInterface.IsValid());
- }
- else
- {
- sData_Name.clear();
- pCurInterface = 0;
- nCurInterface = 0;
- }
-
- eState = e_none;
-}
-
-void
-PE_Interface::ReceiveData()
-{
- switch (eState)
- {
- case in_base:
- eState = need_curlbr_open;
- break;
- case in_function:
- eState = e_std;
- break;
- case in_attribute:
- eState = e_std;
- break;
- case in_base_interface:
- if (bOptionalMember)
- {
- pPE_Type->SetOptional();
- bOptionalMember = false;
- }
- pCurInterface->Add_Base(
- nCurParsed_Base,
- pPE_Type->ReleaseDocu());
- nCurParsed_Base = 0;
- eState = e_std;
- break;
- default:
- csv_assert(false);
- }
-}
-
-UnoIDL_PE &
-PE_Interface::MyPE()
-{
- return *this;
-}
-
-void
-PE_Interface::store_Interface()
-{
- pCurInterface = & Gate().Ces().Store_Interface(
- CurNamespace().CeId(),
- sData_Name,
- nCurParsed_Base );
- nCurInterface = pCurInterface->CeId();
- PassDocuAt(*pCurInterface);
-}
-
-
-} // namespace uidl
-} // namespace csi
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/idl/pe_property.cxx b/autodoc/source/parser_i/idl/pe_property.cxx
deleted file mode 100644
index 628a06306cf5..000000000000
--- a/autodoc/source/parser_i/idl/pe_property.cxx
+++ /dev/null
@@ -1,231 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <s2_luidl/pe_property.hxx>
-
-
-// NOT FULLY DEFINED SERVICES
-#include <ary/idl/i_gate.hxx>
-#include <ary/idl/i_property.hxx>
-#include <ary/idl/i_service.hxx>
-#include <ary/idl/ip_ce.hxx>
-#include <ary/doc/d_oldidldocu.hxx>
-#include <s2_luidl/pe_vari2.hxx>
-#include <s2_luidl/tk_keyw.hxx>
-#include <s2_luidl/tk_ident.hxx>
-#include <s2_luidl/tk_punct.hxx>
-
-
-
-namespace csi
-{
-namespace uidl
-{
-
-
-
-PE_Property::PE_Property( const Ce_id & i_rCurOwner )
- : eState(e_none),
- pCurOwner(&i_rCurOwner),
- pPE_Variable(0),
- nCurParsedType(0),
- sCurParsedName(),
- bIsOptional(false),
- aStereotypes()
-{
- pPE_Variable = new PE_Variable(nCurParsedType, sCurParsedName);
-}
-
-void
-PE_Property::EstablishContacts( UnoIDL_PE * io_pParentPE,
- ary::Repository & io_rRepository,
- TokenProcessing_Result & o_rResult )
-{
- UnoIDL_PE::EstablishContacts(io_pParentPE,io_rRepository,o_rResult);
- pPE_Variable->EstablishContacts(this,io_rRepository,o_rResult);
-}
-
-PE_Property::~PE_Property()
-{
-}
-
-void
-PE_Property::ProcessToken( const Token & i_rToken )
-{
- i_rToken.Trigger(*this);
-}
-
-void
-PE_Property::Process_Stereotype( const TokStereotype & i_rToken )
-{
- switch (i_rToken.Id())
- {
- case TokStereotype::ste_optional:
- bIsOptional = true;
- break;
- case TokStereotype::ste_readonly:
- aStereotypes.Set_Flag(Stereotypes::readonly);
- break;
- case TokStereotype::ste_bound:
- aStereotypes.Set_Flag(Stereotypes::bound);
- break;
- case TokStereotype::ste_constrained:
- aStereotypes.Set_Flag(Stereotypes::constrained);
- break;
- case TokStereotype::ste_maybeambiguous:
- aStereotypes.Set_Flag(Stereotypes::maybeambiguous);
- break;
- case TokStereotype::ste_maybedefault:
- aStereotypes.Set_Flag(Stereotypes::maybedefault);
- break;
- case TokStereotype::ste_maybevoid:
- aStereotypes.Set_Flag(Stereotypes::maybevoid);
- break;
- case TokStereotype::ste_removable:
- aStereotypes.Set_Flag(Stereotypes::removable);
- break;
- case TokStereotype::ste_transient:
- aStereotypes.Set_Flag(Stereotypes::transient);
- break;
-
- default:
- SetResult(not_done, pop_failure);
- eState = e_none;
- return;
- }
-
- SetResult(done, stay);
-}
-
-void
-PE_Property::Process_MetaType( const TokMetaType & i_rToken )
-{
- if (eState == e_start)
- {
- if ( i_rToken.Id() == TokMetaType::mt_property )
- {
- SetResult(done, stay);
- eState = expect_variable;
- return;
- }
- } // endif (eState == e_start)
-
- SetResult(not_done, pop_failure);
- eState = e_none;
-}
-
-void
-PE_Property::Process_Punctuation( const TokPunctuation & i_rToken )
-{
- switch (eState)
- {
- case e_start:
- SetResult(done, stay);
- break;
- case expect_variable:
- if (i_rToken.Id() == TokPunctuation::Semicolon)
- {
- SetResult(done, pop_success);
- eState = e_none;
- }
- else if (i_rToken.Id() == TokPunctuation::Comma)
- SetResult(done, stay);
- else
- SetResult(not_done, pop_failure);
- break;
- default:
- csv_assert(false);
- }
-}
-
-void
-PE_Property::Process_Default()
-{
- if (eState == expect_variable)
- {
- SetResult(not_done, push_sure, pPE_Variable.Ptr());
- eState = in_variable;
- }
- else
- SetResult(not_done, pop_failure);
-}
-
-void
-PE_Property::InitData()
-{
- eState = e_start;
-
- nCurParsedType = 0;
- sCurParsedName = "";
-
- // bIsOptional and
- // aStereotypes
- // may be preset by the PE_Service-(or PE_Interface-)parent
- // with PresetOptional() or
- // PresetStereotype()
- // - therefore it must not be set here!
-}
-
-void
-PE_Property::TransferData()
-{
- if (bIsOptional)
- {
- SetOptional();
- bIsOptional = false;
- }
-
- ary::idl::CodeEntity *
- pCe = 0;
- csv_assert(pCurOwner->IsValid());
-
- pCe = &Gate().Ces().Store_Property( *pCurOwner,
- sCurParsedName,
- nCurParsedType,
- aStereotypes );
-
- csv_assert(pCe != 0);
- PassDocuAt(*pCe);
-
- nCurParsedType = 0;
- sCurParsedName.clear();
- aStereotypes = Stereotypes();
-
- eState = e_none;
-}
-
-void
-PE_Property::ReceiveData()
-{
- eState = expect_variable;
-}
-
-
-UnoIDL_PE &
-PE_Property::MyPE()
-{
- return *this;
-}
-
-
-} // namespace uidl
-} // namespace csi
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/idl/pe_selem.cxx b/autodoc/source/parser_i/idl/pe_selem.cxx
deleted file mode 100644
index 283f17cf835c..000000000000
--- a/autodoc/source/parser_i/idl/pe_selem.cxx
+++ /dev/null
@@ -1,199 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <s2_luidl/pe_selem.hxx>
-
-// NOT FULLY DECLARED SERVICES
-#include <ary/idl/i_gate.hxx>
-#include <ary/idl/i_struct.hxx>
-#include <ary/idl/i_structelem.hxx>
-#include <ary/idl/ip_ce.hxx>
-#include <ary/doc/d_oldidldocu.hxx>
-#include <s2_luidl/pe_type2.hxx>
-#include <s2_luidl/tk_ident.hxx>
-#include <s2_luidl/tk_punct.hxx>
-
-
-namespace csi
-{
-namespace uidl
-{
-
-namespace
-{
- const String C_sNone;
-}
-
-PE_StructElement::PE_StructElement( RStructElement & o_rResult,
- const RStruct & i_rCurStruct,
- const String & i_rCurStructTemplateParam )
- : eState(e_none),
- pResult(&o_rResult),
- pCurStruct(&i_rCurStruct),
- bIsExceptionElement(false),
- pPE_Type(0),
- nType(0),
- sName(),
- pCurStructTemplateParam(&i_rCurStructTemplateParam)
-{
- pPE_Type = new PE_Type(nType);
-}
-
-PE_StructElement::PE_StructElement( RStructElement & o_rResult,
- const RStruct & i_rCurExc )
- : eState(e_none),
- pResult(&o_rResult),
- pCurStruct(&i_rCurExc),
- bIsExceptionElement(true),
- pPE_Type(0),
- nType(0),
- sName(),
- pCurStructTemplateParam(&C_sNone)
-{
- pPE_Type = new PE_Type(nType);
-}
-
-void
-PE_StructElement::EstablishContacts( UnoIDL_PE * io_pParentPE,
- ary::Repository & io_rRepository,
- TokenProcessing_Result & o_rResult )
-{
- UnoIDL_PE::EstablishContacts(io_pParentPE,io_rRepository,o_rResult);
- pPE_Type->EstablishContacts(this,io_rRepository,o_rResult);
-}
-
-PE_StructElement::~PE_StructElement()
-{
-}
-
-void
-PE_StructElement::ProcessToken( const Token & i_rToken )
-{
- i_rToken.Trigger(*this);
-}
-
-void
-PE_StructElement::Process_Default()
-{
- if (eState == expect_type)
- {
- SetResult( not_done, push_sure, pPE_Type.Ptr() );
- eState = expect_name;
- }
- else {
- csv_assert(false);
- }
-}
-
-void
-PE_StructElement::Process_Identifier( const TokIdentifier & i_rToken )
-{
- csv_assert(*i_rToken.Text() != 0);
-
- if (eState == expect_type)
- {
- if ( *pCurStructTemplateParam == i_rToken.Text() )
- {
- nType = lhf_FindTemplateParamType();
- SetResult( done, stay );
- eState = expect_name;
- }
- else // No template parameter type existing, or not matching:
- {
- SetResult( not_done, push_sure, pPE_Type.Ptr() );
- eState = expect_name;
- }
- }
- else if (eState == expect_name)
- {
- sName = i_rToken.Text();
- SetResult( done, stay );
- eState = expect_finish;
- }
- else {
- csv_assert(false);
- }
-}
-
-void
-PE_StructElement::Process_Punctuation( const TokPunctuation &)
-{
- csv_assert(eState == expect_finish);
-
- SetResult( done, pop_success );
-}
-
-void
-PE_StructElement::InitData()
-{
- eState = expect_type;
-
- nType = 0;
- sName = "";
-}
-
-void
-PE_StructElement::TransferData()
-{
- csv_assert(pResult != 0 AND pCurStruct != 0);
-
- ary::idl::StructElement *
- pCe = 0;
- if (bIsExceptionElement)
- {
- pCe = & Gate().Ces().Store_ExceptionMember(
- *pCurStruct,
- sName,
- nType );
- }
- else
- {
- pCe = & Gate().Ces().Store_StructMember(
- *pCurStruct,
- sName,
- nType );
- }
- *pResult = pCe->CeId();
- PassDocuAt(*pCe);
-
- eState = e_none;
-}
-
-UnoIDL_PE &
-PE_StructElement::MyPE()
-{
- return *this;
-}
-
-ary::idl::Type_id
-PE_StructElement::lhf_FindTemplateParamType() const
-{
- const ary::idl::CodeEntity &
- rCe = Gate().Ces().Find_Ce(*pCurStruct);
- const ary::idl::Struct &
- rStruct = static_cast< const ary::idl::Struct& >(rCe);
- return rStruct.TemplateParameterType();
-}
-
-
-} // namespace uidl
-} // namespace csi
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/idl/pe_servi.cxx b/autodoc/source/parser_i/idl/pe_servi.cxx
deleted file mode 100644
index 2b35c4327dcb..000000000000
--- a/autodoc/source/parser_i/idl/pe_servi.cxx
+++ /dev/null
@@ -1,386 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <s2_luidl/pe_servi.hxx>
-
-
-// NOT FULLY DEFINED SERVICES
-#include <ary/idl/i_gate.hxx>
-#include <ary/idl/i_service.hxx>
-#include <ary/idl/i_siservice.hxx>
-#include <ary/idl/ip_ce.hxx>
-#include <ary/doc/d_oldidldocu.hxx>
-#include <s2_luidl/pe_func2.hxx>
-#include <s2_luidl/pe_property.hxx>
-#include <s2_luidl/pe_type2.hxx>
-#include <s2_luidl/tk_keyw.hxx>
-#include <s2_luidl/tk_ident.hxx>
-#include <s2_luidl/tk_punct.hxx>
-
-
-
-namespace csi
-{
-namespace uidl
-{
-
-
-
-PE_Service::PE_Service()
- : eState(e_none),
- sData_Name(),
- bIsPreDeclaration(false),
- pCurService(0),
- pCurSiService(0),
- nCurService(0),
- pPE_Property(0),
- nCurParsed_Property(0),
- pPE_Type(0),
- nCurParsed_Type(0),
- pPE_Constructor(0),
- bOptionalMember(false)
-{
- pPE_Property = new PE_Property(nCurService);
- pPE_Type = new PE_Type(nCurParsed_Type);
- pPE_Constructor = new PE_Function(nCurService, PE_Function::constructor);
-}
-
-void
-PE_Service::EstablishContacts( UnoIDL_PE * io_pParentPE,
- ary::Repository & io_rRepository,
- TokenProcessing_Result & o_rResult )
-{
- UnoIDL_PE::EstablishContacts(io_pParentPE,io_rRepository,o_rResult);
- pPE_Property->EstablishContacts(this,io_rRepository,o_rResult);
- pPE_Type->EstablishContacts(this,io_rRepository,o_rResult);
- pPE_Constructor->EstablishContacts(this,io_rRepository,o_rResult);
-}
-
-PE_Service::~PE_Service()
-{
-}
-
-void
-PE_Service::ProcessToken( const Token & i_rToken )
-{
- i_rToken.Trigger(*this);
-}
-
-
-void
-PE_Service::Process_MetaType( const TokMetaType & i_rToken )
-{
- switch ( i_rToken.Id() )
- {
- case TokMetaType::mt_service:
- if (eState == need_name)
- SetResult(done, stay );
- else if (eState == e_std)
- {
- SetResult(done, push_sure, pPE_Type.Ptr());
- eState = in_service_type;
- }
- else
- On_Default();
- break;
- case TokMetaType::mt_interface:
- if (eState == e_std)
- {
- SetResult(done, push_sure, pPE_Type.Ptr());
- eState = in_ifc_type;
- }
- else
- On_Default();
- break;
- case TokMetaType::mt_property:
- if (eState == e_std)
- {
- StartProperty();
- }
- else
- On_Default();
- break;
- default:
- // KORR_FUTURE:
- // Should throw syntax error warning.
- ;
- } // end switch
-}
-
-void
-PE_Service::Process_Identifier( const TokIdentifier & i_rToken )
-{
- if (eState == need_name)
- {
- sData_Name = i_rToken.Text();
- SetResult(done, stay);
- eState = need_curlbr_open;
- }
- else if (eState == e_std_sib)
- {
- SetResult(not_done, push_sure, pPE_Constructor.Ptr());
- }
- else
- On_Default();
-}
-
-void
-PE_Service::Process_Punctuation( const TokPunctuation & i_rToken )
-{
- switch (i_rToken.Id())
- {
- case TokPunctuation::Colon:
- if (eState == need_curlbr_open)
- {
- SetResult(done, push_sure, pPE_Type.Ptr());
- eState = need_base_interface;
- }
- else
- On_Default();
- break;
-
- case TokPunctuation::CurledBracketOpen:
- if (eState == need_curlbr_open)
- {
- pCurService = &Gate().Ces().Store_Service(
- CurNamespace().CeId(),
- sData_Name );
- nCurService = pCurService->CeId();
- PassDocuAt(*pCurService);
- SetResult(done, stay);
- eState = e_std;
- }
- else if (eState == need_curlbr_open_sib)
- {
- SetResult(done, stay);
- eState = e_std_sib;
- }
- else
- On_Default();
- break;
- case TokPunctuation::CurledBracketClose:
- if (eState == e_std OR eState == e_std_sib)
- {
- SetResult(done, stay);
- eState = need_finish;
- }
- else
- On_Default();
- break;
- case TokPunctuation::Comma:
- if (eState == expect_ifc_separator)
- {
- SetResult(done, push_sure, pPE_Type.Ptr());
- eState = in_ifc_type;
- }
- else if (eState == expect_service_separator)
- {
- SetResult(done, push_sure, pPE_Type.Ptr());
- eState = in_service_type;
- }
- else if (eState == e_std)
- {
- SetResult(done, stay);
- }
- else
- On_Default();
- break;
- case TokPunctuation::Semicolon:
- switch (eState)
- {
- case need_curlbr_open:
- sData_Name.clear();
- bIsPreDeclaration = true;
- SetResult(done, pop_success);
- eState = e_none;
- break;
- case need_curlbr_open_sib:
- SetResult(done, pop_success);
- eState = e_none;
- break;
- case expect_ifc_separator:
- case expect_service_separator:
- SetResult(done, stay);
- eState = e_std;
- break;
- case need_finish:
- SetResult(done, pop_success);
- eState = e_none;
- break;
- case at_ignore:
- SetResult(done, stay);
- eState = e_std;
- break;
- default:
- On_Default();
- } // end switch
- break;
- default:
- On_Default();
- } // end switch
-}
-
-void
-PE_Service::Process_Stereotype( const TokStereotype & i_rToken )
-{
- if (i_rToken.Id() == TokStereotype::ste_optional)
- {
- bOptionalMember = true;
- SetResult(done, stay);
- }
- else if ( eState == e_std )
- {
- StartProperty();
- }
- else
- On_Default();
-}
-
-void
-PE_Service::Process_Needs()
-{
- SetResult(done,stay);
- eState = at_ignore;
-}
-
-void
-PE_Service::Process_Observes()
-{
- SetResult(done,stay);
- eState = at_ignore;
-}
-
-void
-PE_Service::Process_Default()
-{
- On_Default();
-}
-
-
-void
-PE_Service::On_Default()
-{
- if (eState == at_ignore)
- SetResult(done, stay);
- else
- SetResult(not_done, pop_failure);
-}
-
-void
-PE_Service::InitData()
-{
- eState = need_name;
- sData_Name.clear();
- bIsPreDeclaration = false;
- pCurService = 0;
- pCurSiService = 0;
- nCurService = 0;
- nCurParsed_Property = 0;
- nCurParsed_Type = 0;
- bOptionalMember = false;
-}
-
-void
-PE_Service::TransferData()
-{
- if (NOT bIsPreDeclaration)
- {
- csv_assert(sData_Name.size() > 0);
- csv_assert( (pCurService != 0) != (pCurSiService != 0) );
- }
-
- eState = e_none;
-}
-
-void
-PE_Service::ReceiveData()
-{
- switch (eState)
- {
- case in_property:
- eState = e_std;
- break;
- case in_ifc_type:
- if (bOptionalMember)
- {
- pPE_Type->SetOptional();
- }
- pCurService->AddRef_SupportedInterface(
- nCurParsed_Type,
- pPE_Type->ReleaseDocu());
- nCurParsed_Type = 0;
- eState = expect_ifc_separator;
- break;
- case in_service_type:
- if (bOptionalMember)
- {
- pPE_Type->SetOptional();
- }
- pCurService->AddRef_IncludedService(
- nCurParsed_Type,
- pPE_Type->ReleaseDocu());
- nCurParsed_Type = 0;
- eState = expect_service_separator;
- break;
- case need_base_interface:
- pCurSiService = &Gate().Ces().Store_SglIfcService(
- CurNamespace().CeId(),
- sData_Name,
- nCurParsed_Type );
- nCurService = pCurSiService->CeId();
- PassDocuAt(*pCurSiService);
-
- nCurParsed_Type = 0;
- eState = need_curlbr_open_sib;
- break;
- case e_std_sib:
- break;
- default:
- csv_assert(false);
- }
-
- bOptionalMember = false;
-}
-
-
-UnoIDL_PE &
-PE_Service::MyPE()
-{
- return *this;
-}
-
-void
-PE_Service::StartProperty()
-{
- SetResult(not_done, push_sure, pPE_Property.Ptr());
- eState = in_property;
-
- if (bOptionalMember)
- {
- pPE_Property->PresetOptional();
- bOptionalMember = false;
- }
-}
-
-
-} // namespace uidl
-} // namespace csi
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/idl/pe_singl.cxx b/autodoc/source/parser_i/idl/pe_singl.cxx
deleted file mode 100644
index 2c9da4334185..000000000000
--- a/autodoc/source/parser_i/idl/pe_singl.cxx
+++ /dev/null
@@ -1,241 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <s2_luidl/pe_singl.hxx>
-
-
-// NOT FULLY DEFINED SERVICES
-#include <ary/idl/i_gate.hxx>
-#include <ary/idl/i_singleton.hxx>
-#include <ary/idl/i_sisingleton.hxx>
-#include <ary/idl/ip_ce.hxx>
-#include <ary/doc/d_oldidldocu.hxx>
-#include <s2_luidl/pe_type2.hxx>
-#include <s2_luidl/tk_keyw.hxx>
-#include <s2_luidl/tk_ident.hxx>
-#include <s2_luidl/tk_punct.hxx>
-
-
-
-namespace csi
-{
-namespace uidl
-{
-
-
-PE_Singleton::PE_Singleton()
- : eState(e_none),
- sData_Name(),
- bIsPreDeclaration(false),
- pCurSingleton(0),
- pCurSiSingleton(0),
- pPE_Type(0),
- nCurParsed_Type(0)
-{
- pPE_Type = new PE_Type(nCurParsed_Type);
-}
-
-void
-PE_Singleton::EstablishContacts( UnoIDL_PE * io_pParentPE,
- ary::Repository & io_rRepository,
- TokenProcessing_Result & o_rResult )
-{
- UnoIDL_PE::EstablishContacts(io_pParentPE,io_rRepository,o_rResult);
- pPE_Type->EstablishContacts(this,io_rRepository,o_rResult);
-}
-
-PE_Singleton::~PE_Singleton()
-{
-}
-
-void
-PE_Singleton::ProcessToken( const Token & i_rToken )
-{
- i_rToken.Trigger(*this);
-}
-
-
-void
-PE_Singleton::Process_MetaType( const TokMetaType & i_rToken )
-{
- switch ( i_rToken.Id() )
- {
- case TokMetaType::mt_service:
- if (eState == e_std)
- {
- SetResult(done, push_sure, pPE_Type.Ptr());
- eState = in_service;
- }
- else
- On_Default();
- break;
- case TokMetaType::mt_singleton:
- if (eState == need_name)
- SetResult(done, stay);
- else
- On_Default();
- break;
- default:
- // KORR_FUTURE
- // Should throw syntax error warning
- ;
-
- } // end switch
-}
-
-void
-PE_Singleton::Process_Identifier( const TokIdentifier & i_rToken )
-{
- if (eState == need_name)
- {
- sData_Name = i_rToken.Text();
- SetResult(done, stay);
- eState = need_curlbr_open;
- }
- else
- On_Default();
-}
-
-void
-PE_Singleton::Process_Punctuation( const TokPunctuation & i_rToken )
-{
- switch (i_rToken.Id())
- {
- case TokPunctuation::CurledBracketOpen:
- if (eState == need_curlbr_open)
- {
- pCurSingleton = &Gate().Ces().Store_Singleton(
- CurNamespace().CeId(),
- sData_Name );
- PassDocuAt(*pCurSingleton);
- SetResult(done, stay);
- eState = e_std;
- }
- else
- On_Default();
- break;
- case TokPunctuation::CurledBracketClose:
- if (eState == e_std)
- {
- SetResult(done, stay);
- eState = need_finish;
- }
- else
- On_Default();
- break;
- case TokPunctuation::Semicolon:
- switch (eState)
- {
- case e_std: SetResult(done, stay);
- break;
- case need_finish:
- SetResult(done, pop_success);
- eState = e_none;
- break;
- default:
- On_Default();
- } // end switch
- break;
- case TokPunctuation::Colon:
- switch (eState)
- {
- case need_curlbr_open:
- SetResult(done, push_sure, pPE_Type.Ptr());
- eState = in_base_interface;
- break;
- default:
- On_Default();
- } // end switch
- break;
- default:
- On_Default();
- } // end switch
-}
-
-void
-PE_Singleton::Process_Default()
-{
- On_Default();
-}
-
-
-void
-PE_Singleton::On_Default()
-{
- SetResult(not_done, pop_failure);
-}
-
-void
-PE_Singleton::InitData()
-{
- eState = need_name;
- sData_Name.clear();
- bIsPreDeclaration = false;
- pCurSingleton = 0;
- pCurSiSingleton = 0;
- nCurParsed_Type = 0;
-}
-
-void
-PE_Singleton::TransferData()
-{
- if (NOT bIsPreDeclaration)
- {
- csv_assert(sData_Name.size() > 0);
- csv_assert( (pCurSingleton != 0) != (pCurSiSingleton != 0) );
- }
-
- eState = e_none;
-}
-
-void
-PE_Singleton::ReceiveData()
-{
- switch (eState)
- {
- case in_service:
- pCurSingleton->Set_Service(nCurParsed_Type);
- nCurParsed_Type = 0;
- eState = e_std;
- break;
- case in_base_interface:
- pCurSiSingleton = &Gate().Ces().Store_SglIfcSingleton(
- CurNamespace().CeId(),
- sData_Name,
- nCurParsed_Type );
- PassDocuAt(*pCurSiSingleton);
- nCurParsed_Type = 0;
- eState = need_finish;
- break;
- default:
- csv_assert(false);
- } // end switch
-}
-
-UnoIDL_PE &
-PE_Singleton::MyPE()
-{
- return *this;
-}
-
-} // namespace uidl
-} // namespace csi
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/idl/pe_struc.cxx b/autodoc/source/parser_i/idl/pe_struc.cxx
deleted file mode 100644
index afe382c99cbf..000000000000
--- a/autodoc/source/parser_i/idl/pe_struc.cxx
+++ /dev/null
@@ -1,321 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <s2_luidl/pe_struc.hxx>
-
-
-// NOT FULLY DECLARED SERVICES
-#include <ary/idl/i_gate.hxx>
-#include <ary/idl/i_struct.hxx>
-#include <ary/idl/ip_ce.hxx>
-#include <ary/doc/d_oldidldocu.hxx>
-#include <s2_luidl/tk_ident.hxx>
-#include <s2_luidl/tk_punct.hxx>
-#include <s2_luidl/tk_keyw.hxx>
-#include <s2_luidl/pe_type2.hxx>
-#include <s2_luidl/pe_selem.hxx>
-
-
-
-namespace csi
-{
-namespace uidl
-{
-
-
-PE_Struct::PE_Struct()
- // : aWork,
- // pStati
-{
- pStati = new S_Stati(*this);
-}
-
-void
-PE_Struct::EstablishContacts( UnoIDL_PE * io_pParentPE,
- ary::Repository & io_rRepository,
- TokenProcessing_Result & o_rResult )
-{
- UnoIDL_PE::EstablishContacts(io_pParentPE,io_rRepository,o_rResult);
- Work().pPE_Element->EstablishContacts(this,io_rRepository,o_rResult);
- Work().pPE_Type->EstablishContacts(this,io_rRepository,o_rResult);
-}
-
-PE_Struct::~PE_Struct()
-{
-}
-
-void
-PE_Struct::ProcessToken( const Token & i_rToken )
-{
- i_rToken.Trigger(*Stati().pCurStatus);
-}
-
-
-void
-PE_Struct::InitData()
-{
- Work().InitData();
- Stati().pCurStatus = &Stati().aWaitForName;
-}
-
-void
-PE_Struct::TransferData()
-{
- if (NOT Work().bIsPreDeclaration)
- {
- csv_assert(Work().sData_Name.size() > 0);
- csv_assert(Work().nCurStruct.IsValid());
- }
- Stati().pCurStatus = &Stati().aNone;
-}
-
-void
-PE_Struct::ReceiveData()
-{
- Stati().pCurStatus->On_SubPE_Left();
-}
-
-PE_Struct::S_Work::S_Work()
- : sData_Name(),
- sData_TemplateParam(),
- bIsPreDeclaration(false),
- nCurStruct(0),
- pPE_Element(0),
- nCurParsed_ElementRef(0),
- pPE_Type(0),
- nCurParsed_Base(0)
-
-{
- pPE_Element = new PE_StructElement(nCurParsed_ElementRef,nCurStruct,sData_TemplateParam);
- pPE_Type = new PE_Type(nCurParsed_Base);
-}
-
-void
-PE_Struct::S_Work::InitData()
-{
- sData_Name.clear();
- sData_TemplateParam.clear();
- bIsPreDeclaration = false;
- nCurStruct = 0;
- nCurParsed_ElementRef = 0;
- nCurParsed_Base = 0;
-}
-
-void
-PE_Struct::S_Work::Prepare_PE_QualifiedName()
-{
- nCurParsed_ElementRef = 0;
-}
-
-void
-PE_Struct::S_Work::Prepare_PE_Element()
-{
- nCurParsed_Base = 0;
-}
-
-void
-PE_Struct::S_Work::Data_Set_Name( const char * i_sName )
-{
- sData_Name = i_sName;
-}
-
-void
-PE_Struct::S_Work::Data_Set_TemplateParam( const char * i_sTemplateParam )
-{
- sData_TemplateParam = i_sTemplateParam;
-}
-
-PE_Struct::S_Stati::S_Stati(PE_Struct & io_rStruct)
- : aNone(io_rStruct),
- aWaitForName(io_rStruct),
- aGotName(io_rStruct),
- aWaitForTemplateParam(io_rStruct),
- aWaitForTemplateEnd(io_rStruct),
- aWaitForBase(io_rStruct),
- aGotBase(io_rStruct),
- aWaitForElement(io_rStruct),
- aWaitForFinish(io_rStruct),
- pCurStatus(0)
-{
- pCurStatus = &aNone;
-}
-
-
-//*********************** Stati ***************************//
-
-
-UnoIDL_PE &
-PE_Struct::PE_StructState::MyPE()
-{
- return rStruct;
-}
-
-
-void
-PE_Struct::State_WaitForName::Process_Identifier( const TokIdentifier & i_rToken )
-{
- Work().Data_Set_Name(i_rToken.Text());
- MoveState( Stati().aGotName );
- SetResult(done,stay);
-}
-
-void
-PE_Struct::State_GotName::Process_Punctuation( const TokPunctuation & i_rToken )
-{
- if ( i_rToken.Id() != TokPunctuation::Semicolon )
- {
- switch (i_rToken.Id())
- {
- case TokPunctuation::Colon:
- MoveState( Stati().aWaitForBase );
- SetResult(done,push_sure,Work().pPE_Type.Ptr());
- Work().Prepare_PE_QualifiedName();
- break;
- case TokPunctuation::CurledBracketOpen:
- PE().store_Struct();
- MoveState( Stati().aWaitForElement );
- SetResult(done,stay);
- break;
- case TokPunctuation::Lesser:
- MoveState( Stati().aWaitForTemplateParam );
- SetResult(done,stay);
- break;
- default:
- SetResult(not_done,pop_failure);
- } // end switch
- }
- else
- {
- Work().sData_Name.clear();
- SetResult(done,pop_success);
- }
-}
-
-void
-PE_Struct::State_WaitForTemplateParam::Process_Identifier( const TokIdentifier & i_rToken )
-{
- Work().Data_Set_TemplateParam(i_rToken.Text());
- MoveState( Stati().aWaitForTemplateEnd );
- SetResult(done,stay);
-}
-
-void
-PE_Struct::State_WaitForTemplateEnd::Process_Punctuation( const TokPunctuation & )
-{
- // Assume: TokPunctuation::Greater
- MoveState( Stati().aGotName );
- SetResult(done,stay);
-}
-
-void
-PE_Struct::State_WaitForBase::On_SubPE_Left()
-{
- MoveState(Stati().aGotBase);
-}
-
-void
-PE_Struct::State_GotBase::Process_Punctuation( const TokPunctuation & i_rToken )
-{
- if ( i_rToken.Id() == TokPunctuation::CurledBracketOpen )
- {
- PE().store_Struct();
- MoveState( Stati().aWaitForElement );
- SetResult(done,stay);
- }
- else
- {
- SetResult(not_done,pop_failure);
- }
-}
-
-void
-PE_Struct::State_WaitForElement::Process_Identifier( const TokIdentifier & )
-{
- SetResult( not_done, push_sure, Work().pPE_Element.Ptr() );
- Work().Prepare_PE_Element();
-}
-
-void
-PE_Struct::State_WaitForElement::Process_NameSeparator()
-{
- SetResult( not_done, push_sure, Work().pPE_Element.Ptr());
- Work().Prepare_PE_Element();
-}
-
-void
-PE_Struct::State_WaitForElement::Process_BuiltInType( const TokBuiltInType & )
-{
- SetResult( not_done, push_sure, Work().pPE_Element.Ptr());
- Work().Prepare_PE_Element();
-}
-
-void
-PE_Struct::State_WaitForElement::Process_TypeModifier(const TokTypeModifier & )
-{
- SetResult( not_done, push_sure, Work().pPE_Element.Ptr());
- Work().Prepare_PE_Element();
-}
-
-void
-PE_Struct::State_WaitForElement::Process_Punctuation( const TokPunctuation & i_rToken )
-{
- if ( i_rToken.Id() == TokPunctuation::CurledBracketClose )
- {
- MoveState( Stati().aWaitForFinish );
- SetResult( done, stay );
- }
- else
- {
- SetResult( not_done, pop_failure );
- }
-}
-
-void
-PE_Struct::State_WaitForFinish::Process_Punctuation( const TokPunctuation & i_rToken )
-{
- if (i_rToken.Id() == TokPunctuation::Semicolon)
- {
- MoveState( Stati().aNone );
- SetResult( done, pop_success );
- }
- else
- {
- SetResult( not_done, pop_failure );
- }
-}
-
-void
-PE_Struct::store_Struct()
-{
- ary::idl::Struct &
- rCe = Gate().Ces().Store_Struct(
- CurNamespace().CeId(),
- Work().sData_Name,
- Work().nCurParsed_Base,
- Work().sData_TemplateParam );
- PassDocuAt(rCe);
- Work().nCurStruct = rCe.CeId();
-}
-
-
-} // namespace uidl
-} // namespace csi
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/idl/pe_tydf2.cxx b/autodoc/source/parser_i/idl/pe_tydf2.cxx
deleted file mode 100644
index 7d43b1847588..000000000000
--- a/autodoc/source/parser_i/idl/pe_tydf2.cxx
+++ /dev/null
@@ -1,181 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include "sal/config.h"
-
-#include "sal/types.h"
-
-#include <precomp.h>
-#include <s2_luidl/pe_tydf2.hxx>
-
-// NOT FULLY DECLARED SERVICES
-#include <ary/idl/i_gate.hxx>
-#include <ary/idl/i_typedef.hxx>
-#include <ary/idl/ip_ce.hxx>
-#include <ary/doc/d_oldidldocu.hxx>
-#include <s2_luidl/pe_type2.hxx>
-#include <s2_luidl/tk_ident.hxx>
-#include <s2_luidl/tk_punct.hxx>
-#include <s2_luidl/tk_const.hxx>
-
-
-namespace csi
-{
-namespace uidl
-{
-
-
-#ifdef DF
-#undef DF
-#endif
-#define DF &PE_Typedef::On_Default
-
-PE_Typedef::F_TOK
-PE_Typedef::aDispatcher[PE_Typedef::e_STATES_MAX][PE_Typedef::tt_MAX] =
- { { DF, DF, DF }, // e_none
- { &PE_Typedef::On_expect_description_Any,
- &PE_Typedef::On_expect_description_Any,
- DF }, // expect_description
- { DF, &PE_Typedef::On_expect_name_Identifier,
- DF }, // expect_name
- { DF, DF, &PE_Typedef::On_got_name_Punctuation } // got_name
- };
-
-
-
-inline void
-PE_Typedef::CallHandler( const char * i_sTokenText,
- E_TokenType i_eTokenType )
- { (this->*aDispatcher[eState][i_eTokenType])(i_sTokenText); }
-
-
-
-
-
-PE_Typedef::PE_Typedef()
- : eState(e_none),
- pPE_Type(0),
- nType(0),
- sName()
-{
- pPE_Type = new PE_Type(nType);
-}
-
-void
-PE_Typedef::EstablishContacts( UnoIDL_PE * io_pParentPE,
- ary::Repository & io_rRepository,
- TokenProcessing_Result & o_rResult )
-{
- UnoIDL_PE::EstablishContacts(io_pParentPE,io_rRepository,o_rResult);
- pPE_Type->EstablishContacts(this,io_rRepository,o_rResult);
-}
-
-PE_Typedef::~PE_Typedef()
-{
-}
-
-void
-PE_Typedef::ProcessToken( const Token & i_rToken )
-{
- i_rToken.Trigger(*this);
-}
-
-void
-PE_Typedef::Process_Identifier( const TokIdentifier & i_rToken )
-{
- CallHandler(i_rToken.Text(), tt_identifier);
-}
-
-void
-PE_Typedef::Process_Punctuation( const TokPunctuation & i_rToken )
-{
- CallHandler(i_rToken.Text(), tt_punctuation);
-}
-
-void
-PE_Typedef::Process_Default()
-{
- CallHandler("", tt_any);
-}
-
-void
-PE_Typedef::On_expect_description_Any(SAL_UNUSED_PARAMETER const char *)
-{
- SetResult(not_done,push_sure, pPE_Type.Ptr());
-}
-
-void
-PE_Typedef::On_expect_name_Identifier(const char * i_sText)
-{
- sName = i_sText;
- SetResult(done,stay);
- eState = got_name;
-}
-
-void
-PE_Typedef::On_got_name_Punctuation(const char * i_sText)
-{
- if ( i_sText[0] == ';' )
- {
- SetResult(done,pop_success);
- eState = e_none;
- }
- else
- On_Default(i_sText);
-}
-
-void
-PE_Typedef::On_Default(SAL_UNUSED_PARAMETER const char * )
-{
- SetResult(not_done,pop_failure);
-}
-
-void
-PE_Typedef::InitData()
-{
- eState = expect_description;
- nType = 0;
- sName = "";
-}
-
-void
-PE_Typedef::ReceiveData()
-{
- eState = expect_name;
-}
-
-void
-PE_Typedef::TransferData()
-{
- ary::idl::Typedef &
- rCe = Gate().Ces().Store_Typedef(CurNamespace().CeId(), sName, nType);
- PassDocuAt(rCe);
- eState = e_none;
-}
-
-UnoIDL_PE &
-PE_Typedef::MyPE()
-{
- return *this;
-}
-
-} // namespace uidl
-} // namespace csi
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/idl/pe_type2.cxx b/autodoc/source/parser_i/idl/pe_type2.cxx
deleted file mode 100644
index 17d5d708aca0..000000000000
--- a/autodoc/source/parser_i/idl/pe_type2.cxx
+++ /dev/null
@@ -1,308 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <s2_luidl/pe_type2.hxx>
-
-
-// NOT FULLY DEFINED SERVICES
-#include <ary/idl/i_gate.hxx>
-#include <ary/idl/i_type.hxx>
-#include <ary/idl/ip_type.hxx>
-#include <ary/doc/d_oldidldocu.hxx>
-#include <s2_luidl/uidl_tok.hxx>
-#include <s2_luidl/tk_ident.hxx>
-#include <s2_luidl/tk_keyw.hxx>
-#include <s2_luidl/tk_punct.hxx>
-
-
-
-/** Implementation Concept for Parsing a Type
-
-Example Type:
- sequence < ::abc::TName< TplType > > AnyName;
-
-Status Changes:
-
-expect_type:
- sequence -> expect_type
- < -> expect_type
- :: -> expect_quname_part
- abc -> expect_quname_separator
- :: -> expect_quname_part
- TName -> expect_quname_separator
- < -> in_template_type (process in nested PE_Type instance)
-
- expect_type:
- TplType ->expect_quname_separator
- > -> e_none (finish, '>' not handled)
-
- > -> expect_quname_separator
- > -> expect_quname_separator (not finish, because sequencecounter > 0)
- AnyName -> e_none (finish)
-*/
-
-
-namespace csi
-{
-namespace uidl
-{
-
-
-PE_Type::PE_Type( ary::idl::Type_id & o_rResult )
- : pResult(&o_rResult),
- nIsSequenceCounter(0),
- nSequenceDownCounter(0),
- bIsUnsigned(false),
- sFullType(),
- eState(e_none),
- sLastPart(),
- pPE_TemplateType(0), // @attention Recursion, only initiate, if needed!
- nTemplateType(0),
- aTemplateParameters()
-{
-}
-
-PE_Type::~PE_Type()
-{
-}
-
-void
-PE_Type::ProcessToken( const Token & i_rToken )
-{
- i_rToken.Trigger(*this);
-}
-
-void
-PE_Type::Process_Identifier( const TokIdentifier & i_rToken )
-{
- if (eState == expect_type)
- {
- sLastPart = i_rToken.Text();
- eState = expect_quname_separator;
- SetResult(done, stay);
- }
- else if (eState == expect_quname_part)
- {
- sLastPart = i_rToken.Text();
- eState = expect_quname_separator;
- SetResult(done, stay);
- }
- else if (eState == expect_quname_separator)
- {
- Finish();
- }
-}
-
-void
-PE_Type::Process_NameSeparator()
-{
- if (eState == expect_type)
- {
- sFullType.Init(true);
- eState = expect_quname_part;
- SetResult(done, stay);
- }
- else if (eState == expect_quname_separator)
- {
- sFullType += sLastPart;
- eState = expect_quname_part;
- SetResult(done, stay);
- }
-}
-
-void
-PE_Type::Process_Punctuation( const TokPunctuation & i_rToken )
-{
- if (eState == expect_type)
- {
- csv_assert(i_rToken.Id() == TokPunctuation::Lesser);
- SetResult(done, stay);
- }
- else if (eState == expect_quname_separator)
- {
- switch (i_rToken.Id())
- {
- case TokPunctuation::Lesser:
- eState = in_template_type;
- SetResult( done, push_sure, &MyTemplateType() );
- break;
-
- case TokPunctuation::Greater:
- if (nSequenceDownCounter > 0)
- {
- nSequenceDownCounter--;
- SetResult(done, stay);
- }
- else
- {
- Finish();
- }
- break;
-
- default:
- Finish();
- } // end switch
- }
- else if (eState == in_template_type)
- {
- aTemplateParameters.push_back(nTemplateType);
- nTemplateType = 0;
-
- if (i_rToken.Id() == TokPunctuation::Greater)
- {
- eState = expect_quname_separator;
- SetResult(done, stay);
- }
- else if (i_rToken.Id() == TokPunctuation::Comma)
- {
- SetResult(done, push_sure, &MyTemplateType());
- }
- else
- {
- csv_assert(false);
- Finish();
- }
- }
-}
-
-void
-PE_Type::Process_BuiltInType( const TokBuiltInType & i_rToken )
-{
- if (eState == expect_type)
- {
- sLastPart = i_rToken.Text();
- eState = expect_quname_separator;
- SetResult(done, stay);
- }
- else if (eState == expect_quname_part)
- {
- // Can this happen?
-
- sLastPart = i_rToken.Text();
- eState = expect_quname_separator;
- SetResult(done, stay);
- }
- else if (eState == expect_quname_separator)
- {
- // Can this happen?
-
- Finish();
- }
-}
-
-void
-PE_Type::Process_TypeModifier( const TokTypeModifier & i_rToken )
-{
- if (eState == expect_type)
- {
- switch ( i_rToken.Id() )
- {
- case TokTypeModifier::tmod_unsigned:
- bIsUnsigned = true;
- break;
- case TokTypeModifier::tmod_sequence:
- nIsSequenceCounter++;
- nSequenceDownCounter++;
- break;
- default:
- csv_assert(false);
- }
- SetResult(done, stay);
- }
- else if (eState == expect_quname_separator)
- {
- // Can this happen?
-
- Finish();
- }
-}
-
-void
-PE_Type::Process_Default()
-{
- Finish();
-}
-
-void
-PE_Type::Finish()
-{
- csv_assert(nSequenceDownCounter == 0);
-
- sFullType.SetLocalName(sLastPart);
- SetResult(not_done, pop_success);
-}
-
-PE_Type &
-PE_Type::MyTemplateType()
-{
- if (NOT pPE_TemplateType)
- {
- pPE_TemplateType = new PE_Type(nTemplateType);
- pPE_TemplateType->EstablishContacts( this,
- MyRepository(),
- TokenResult() );
- }
- return *pPE_TemplateType;
-}
-
-void
-PE_Type::InitData()
-{
- eState = expect_type;
-
- nIsSequenceCounter = 0;
- nSequenceDownCounter = 0;
- bIsUnsigned = false;
- sFullType.Empty();
- sLastPart.clear();
- nTemplateType = 0;
- csv::erase_container(aTemplateParameters);
-}
-
-void
-PE_Type::TransferData()
-{
- if (bIsUnsigned)
- {
- StreamLock sl(40);
- String sName( sl() << "unsigned " << sFullType.LocalName() << c_str );
- sFullType.SetLocalName(sName);
- }
-
- const ary::idl::Type &
- result = Gate().Types().CheckIn_Type( sFullType,
- nIsSequenceCounter,
- CurNamespace().CeId(),
- &aTemplateParameters );
- *pResult = result.TypeId();
- eState = e_none;
-}
-
-UnoIDL_PE &
-PE_Type::MyPE()
-{
- return *this;
-}
-
-
-} // namespace uidl
-} // namespace csi
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/idl/pe_vari2.cxx b/autodoc/source/parser_i/idl/pe_vari2.cxx
deleted file mode 100644
index 1c0fdeb1e903..000000000000
--- a/autodoc/source/parser_i/idl/pe_vari2.cxx
+++ /dev/null
@@ -1,166 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <s2_luidl/pe_vari2.hxx>
-
-
-// NOT FULLY DECLARED SERVICES
-#include <ary/idl/i_gate.hxx>
-#include <ary/idl/i_property.hxx>
-#include <ary/idl/ip_ce.hxx>
-#include <ary/doc/d_oldidldocu.hxx>
-#include <s2_luidl/pe_type2.hxx>
-#include <s2_luidl/tk_keyw.hxx>
-#include <s2_luidl/tk_ident.hxx>
-#include <s2_luidl/tk_punct.hxx>
-
-
-namespace csi
-{
-namespace uidl
-{
-
-
-PE_Variable::PE_Variable( ary::idl::Type_id & i_rResult_Type,
- String & i_rResult_Name )
- : eState(e_none),
- pResult_Type(&i_rResult_Type),
- pResult_Name(&i_rResult_Name),
- pPE_Type(0)
-{
- pPE_Type = new PE_Type(i_rResult_Type);
-}
-
-void
-PE_Variable::EstablishContacts( UnoIDL_PE * io_pParentPE,
- ary::Repository & io_rRepository,
- TokenProcessing_Result & o_rResult )
-{
- UnoIDL_PE::EstablishContacts(io_pParentPE,io_rRepository,o_rResult);
- pPE_Type->EstablishContacts(this,io_rRepository,o_rResult);
-}
-
-PE_Variable::~PE_Variable()
-{
-}
-
-void
-PE_Variable::ProcessToken( const Token & i_rToken )
-{
- i_rToken.Trigger(*this);
-}
-
-
-void
-PE_Variable::Process_Default()
-{
- if (eState == expect_type)
- {
- SetResult( not_done, push_sure, pPE_Type.Ptr() );
- }
- else{
- csv_assert(false);
- }
-}
-
-void
-PE_Variable::Process_Identifier( const TokIdentifier & i_rToken )
-{
- if (eState == expect_type)
- {
- SetResult( not_done, push_sure, pPE_Type.Ptr() );
- }
- else if (eState == expect_name)
- {
- *pResult_Name = i_rToken.Text();
- SetResult( done, stay );
- eState = expect_finish;
- }
- else {
- csv_assert(false);
- }
-}
-
-void
-PE_Variable::Process_Punctuation( const TokPunctuation & )
-{
- if (eState == expect_finish)
- {
- SetResult( not_done, pop_success );
- eState = e_none;
- }
- else if (eState == expect_name)
- {
- SetResult( not_done, pop_success );
- eState = e_none;
- }
- else {
- csv_assert(false);
- }
-}
-
-void
-PE_Variable::Process_BuiltInType( const TokBuiltInType & i_rToken )
-{
- if (eState == expect_type)
- {
- SetResult( not_done, push_sure, pPE_Type.Ptr() );
- }
- else if (eState == expect_name AND i_rToken.Id() == TokBuiltInType::bty_ellipse)
- {
- SetResult( not_done, pop_success );
- eState = e_none;
- }
- else {
- csv_assert(false);
- }
-}
-
-void
-PE_Variable::InitData()
-{
- eState = expect_type;
-
- *pResult_Type = 0;
- *pResult_Name = "";
-}
-
-void
-PE_Variable::ReceiveData()
-{
- eState = expect_name;
-}
-
-void
-PE_Variable::TransferData()
-{
- eState = e_none;
-}
-
-UnoIDL_PE &
-PE_Variable::MyPE()
-{
- return *this;
-}
-
-} // namespace uidl
-} // namespace csi
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/idl/pestate.cxx b/autodoc/source/parser_i/idl/pestate.cxx
deleted file mode 100644
index bd6967ad0249..000000000000
--- a/autodoc/source/parser_i/idl/pestate.cxx
+++ /dev/null
@@ -1,133 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <s2_luidl/pestate.hxx>
-
-
-// NOT FULLY DEFINED SERVICES
-#include <ary/doc/d_oldidldocu.hxx>
-#include <s2_luidl/parsenv2.hxx>
-
-
-
-
-namespace csi
-{
-namespace uidl
-{
-
-void
-ParseEnvState::Process_Identifier( const TokIdentifier & )
-{
- Process_Default();
-}
-
-void
-ParseEnvState::Process_NameSeparator()
-{
- Process_Default();
-}
-
-void
-ParseEnvState::Process_Punctuation( const TokPunctuation & )
-{
- Process_Default();
-}
-
-void
-ParseEnvState::Process_BuiltInType( const TokBuiltInType & )
-{
- Process_Default();
-}
-
-void
-ParseEnvState::Process_TypeModifier( const TokTypeModifier & )
-{
- Process_Default();
-}
-
-void
-ParseEnvState::Process_MetaType( const TokMetaType & )
-{
- Process_Default();
-}
-
-void
-ParseEnvState::Process_Stereotype( const TokStereotype & )
-{
- Process_Default();
-}
-
-void
-ParseEnvState::Process_ParameterHandling( const TokParameterHandling & )
-{
- Process_Default();
-}
-
-void
-ParseEnvState::Process_Raises()
-{
- Process_Default();
-}
-
-void
-ParseEnvState::Process_Needs()
-{
- Process_Default();
-}
-
-void
-ParseEnvState::Process_Observes()
-{
- Process_Default();
-}
-
-void
-ParseEnvState::Process_Assignment( const TokAssignment & )
-{
- Process_Default();
-}
-
-void
-ParseEnvState::Process_EOL()
-{
- MyPE().SetResult(done,stay);
-}
-
-
-void
-ParseEnvState::On_SubPE_Left()
-{
-}
-
-void
-ParseEnvState::Process_Default()
-{
- if (bDefaultIsError)
- MyPE().SetResult(not_done, pop_failure);
- else // ignore:
- MyPE().SetResult(done, stay);
-}
-
-
-} // namespace uidl
-} // namespace csi
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/idl/semnode.cxx b/autodoc/source/parser_i/idl/semnode.cxx
deleted file mode 100644
index 6080c1574559..000000000000
--- a/autodoc/source/parser_i/idl/semnode.cxx
+++ /dev/null
@@ -1,76 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <s2_luidl/semnode.hxx>
-
-
-// NOT FULLY DEFINED SERVICES
-#include <ary/ary.hxx>
-#include <ary/idl/i_gate.hxx>
-#include <ary/idl/i_module.hxx>
-#include <ary/doc/d_oldidldocu.hxx>
-#include <s2_luidl/parsenv2.hxx>
-
-
-namespace csi
-{
-namespace uidl
-{
-
-
-
-SemanticNode::SemanticNode()
- : pParentPE(0),
- pAryGate(0),
- pTokenResult(0)
-{
-}
-
-void
-SemanticNode::EstablishContacts( UnoIDL_PE * io_pParentPE,
- ary::idl::Gate & io_rGate,
- TokenProcessing_Result & o_rResult )
-{
- pParentPE = io_pParentPE;
- pAryGate = &io_rGate;
- pTokenResult = &o_rResult;
-}
-
-SemanticNode::~SemanticNode()
-{
-}
-
-void
-SemanticNode::SetTokenResult( E_TokenDone i_eDone,
- E_EnvStackAction i_eWhat2DoWithEnvStack,
- UnoIDL_PE * i_pParseEnv2Push )
-{
- csv_assert(pTokenResult != 0);
-
- pTokenResult->eDone = i_eDone;
- pTokenResult->eStackAction = i_eWhat2DoWithEnvStack;
- pTokenResult->pEnv2Push = i_pParseEnv2Push;
-}
-
-
-} // namespace uidl
-} // namespace csi
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/idl/tk_const.cxx b/autodoc/source/parser_i/idl/tk_const.cxx
deleted file mode 100644
index 9285ede16e67..000000000000
--- a/autodoc/source/parser_i/idl/tk_const.cxx
+++ /dev/null
@@ -1,50 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <s2_luidl/tk_const.hxx>
-
-
-// NOT FULLY DECLARED SERVICES
-#include <s2_luidl/tokintpr.hxx>
-
-
-
-namespace csi
-{
-namespace uidl
-{
-
-
-void
-TokAssignment::Trigger( TokenInterpreter & io_rInterpreter ) const
-{
- io_rInterpreter.Process_Assignment(*this);
-}
-
-const char *
-TokAssignment::Text() const
-{
- return sText;
-}
-
-} // namespace uidl
-} // namespace csi
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/idl/tk_ident.cxx b/autodoc/source/parser_i/idl/tk_ident.cxx
deleted file mode 100644
index 414b2b8336c5..000000000000
--- a/autodoc/source/parser_i/idl/tk_ident.cxx
+++ /dev/null
@@ -1,61 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <s2_luidl/tk_ident.hxx>
-
-
-// NOT FULLY DECLARED SERVICES
-#include <s2_luidl/tokintpr.hxx>
-
-
-
-namespace csi
-{
-namespace uidl
-{
-
-void
-TokIdentifier::Trigger( TokenInterpreter & io_rInterpreter ) const
-{
- io_rInterpreter.Process_Identifier(*this);
-}
-
-const char *
-TokIdentifier::Text() const
-{
- return sText;
-}
-
-void
-TokNameSeparator::Trigger( TokenInterpreter & io_rInterpreter ) const
-{
- io_rInterpreter.Process_NameSeparator();
-}
-
-const char *
-TokNameSeparator::Text() const
-{
- return "::";
-}
-
-} // namespace uidl
-} // namespace csi
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/idl/tk_keyw.cxx b/autodoc/source/parser_i/idl/tk_keyw.cxx
deleted file mode 100644
index 25beab914491..000000000000
--- a/autodoc/source/parser_i/idl/tk_keyw.cxx
+++ /dev/null
@@ -1,218 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <s2_luidl/tk_keyw.hxx>
-
-
-// NOT FULLY DECLARED SERVICES
-#include <s2_luidl/tokintpr.hxx>
-
-
-using csi::uidl::TokBuiltInType;
-using csi::uidl::TokTypeModifier;
-using csi::uidl::TokMetaType;
-using csi::uidl::TokStereotype;
-using csi::uidl::TokParameterHandling;
-
-
-lux::EnumValueMap G_aTokBuiltInType_EV_TokenId_Values;
-TokBuiltInType::EV_TokenId ev_bty_none(TokBuiltInType::e_none,"");
-TokBuiltInType::EV_TokenId ev_bty_any(TokBuiltInType::bty_any,"any");
-TokBuiltInType::EV_TokenId ev_bty_boolean(TokBuiltInType::bty_boolean,"boolean");
-TokBuiltInType::EV_TokenId ev_bty_byte(TokBuiltInType::bty_byte,"byte");
-TokBuiltInType::EV_TokenId ev_bty_char(TokBuiltInType::bty_char,"char");
-TokBuiltInType::EV_TokenId ev_bty_double(TokBuiltInType::bty_double,"double");
-TokBuiltInType::EV_TokenId ev_bty_hyper(TokBuiltInType::bty_hyper,"hyper");
-TokBuiltInType::EV_TokenId ev_bty_long(TokBuiltInType::bty_long,"long");
-TokBuiltInType::EV_TokenId ev_bty_short(TokBuiltInType::bty_short,"short");
-TokBuiltInType::EV_TokenId ev_bty_string(TokBuiltInType::bty_string,"string");
-TokBuiltInType::EV_TokenId ev_bty_void(TokBuiltInType::bty_void,"void");
-TokBuiltInType::EV_TokenId ev_bty_ellipse(TokBuiltInType::bty_ellipse,"...");
-
-
-lux::EnumValueMap G_aTokTypeModifier_EV_TokenId_Values;
-TokTypeModifier::EV_TokenId ev_tmod_none(TokTypeModifier::e_none,"");
-TokTypeModifier::EV_TokenId ev_tmod_unsigned(TokTypeModifier::tmod_unsigned,"unsigned");
-TokTypeModifier::EV_TokenId ev_tmod_sequence(TokTypeModifier::tmod_sequence,"sequence");
-
-
-lux::EnumValueMap G_aTokMetaType_EV_TokenId_Values;
-TokMetaType::EV_TokenId ev_mt_none(TokMetaType::e_none,"");
-TokMetaType::EV_TokenId ev_mt_attribute(TokMetaType::mt_attribute,"attribute");
-TokMetaType::EV_TokenId ev_mt_constants(TokMetaType::mt_constants,"constants");
-TokMetaType::EV_TokenId ev_mt_enum(TokMetaType::mt_enum,"enum");
-TokMetaType::EV_TokenId ev_mt_exception(TokMetaType::mt_exception,"exception");
-TokMetaType::EV_TokenId ev_mt_ident(TokMetaType::mt_ident,"ident");
-TokMetaType::EV_TokenId ev_mt_interface(TokMetaType::mt_interface,"interface");
-TokMetaType::EV_TokenId ev_mt_module(TokMetaType::mt_module,"module");
-TokMetaType::EV_TokenId ev_mt_property(TokMetaType::mt_property,"property");
-TokMetaType::EV_TokenId ev_mt_service(TokMetaType::mt_service,"service");
-TokMetaType::EV_TokenId ev_mt_singleton(TokMetaType::mt_singleton,"singleton");
-TokMetaType::EV_TokenId ev_mt_struct(TokMetaType::mt_struct,"struct");
-TokMetaType::EV_TokenId ev_mt_typedef(TokMetaType::mt_typedef,"typedef");
-TokMetaType::EV_TokenId ev_mt_uik(TokMetaType::mt_uik,"uik");
-
-
-lux::EnumValueMap G_aTokStereotype_EV_TokenId_Values;
-TokStereotype::EV_TokenId ev_ste_none(TokStereotype::e_none,"");
-TokStereotype::EV_TokenId ev_ste_bound(TokStereotype::ste_bound,"bound");
-TokStereotype::EV_TokenId ev_ste_const(TokStereotype::ste_const,"const");
-TokStereotype::EV_TokenId ev_ste_constrained(TokStereotype::ste_constrained,"constrained");
-TokStereotype::EV_TokenId ev_ste_maybeambiguous(TokStereotype::ste_maybeambiguous,"maybeambiguous");
-TokStereotype::EV_TokenId ev_ste_maybedefault(TokStereotype::ste_maybedefault,"maybedefault");
-TokStereotype::EV_TokenId ev_ste_maybevoid(TokStereotype::ste_maybevoid,"maybevoid");
-TokStereotype::EV_TokenId ev_ste_oneway(TokStereotype::ste_oneway,"oneway");
-TokStereotype::EV_TokenId ev_ste_optional(TokStereotype::ste_optional,"optional");
-TokStereotype::EV_TokenId ev_ste_readonly(TokStereotype::ste_readonly,"readonly");
-TokStereotype::EV_TokenId ev_ste_removable(TokStereotype::ste_removable,"removable");
-TokStereotype::EV_TokenId ev_ste_virtual(TokStereotype::ste_virtual,"virtual");
-TokStereotype::EV_TokenId ev_ste_transient(TokStereotype::ste_transient,"transient");
-TokStereotype::EV_TokenId ev_ste_published(TokStereotype::ste_published,"published");
-
-
-lux::EnumValueMap G_aTokParameterHandling_EV_TokenId_Values;
-TokParameterHandling::EV_TokenId ev_ph_none(TokParameterHandling::e_none,"");
-TokParameterHandling::EV_TokenId ev_ph_in(TokParameterHandling::ph_in,"in");
-TokParameterHandling::EV_TokenId ev_ph_out(TokParameterHandling::ph_out,"out");
-TokParameterHandling::EV_TokenId ev_ph_inout(TokParameterHandling::ph_inout,"inout");
-
-
-namespace lux
-{
-
-template<> EnumValueMap &
-Enum<TokBuiltInType::E_TokenId>::Values_() { return G_aTokBuiltInType_EV_TokenId_Values; }
-template<> EnumValueMap &
-Enum<TokTypeModifier::E_TokenId>::Values_() { return G_aTokTypeModifier_EV_TokenId_Values; }
-template<> EnumValueMap &
-Enum<TokMetaType::E_TokenId>::Values_() { return G_aTokMetaType_EV_TokenId_Values; }
-template<> EnumValueMap &
-Enum<TokStereotype::E_TokenId>::Values_() { return G_aTokStereotype_EV_TokenId_Values; }
-template<> EnumValueMap &
-Enum<TokParameterHandling::E_TokenId>::Values_() { return G_aTokParameterHandling_EV_TokenId_Values; }
-
-} // namespace lux
-
-
-
-namespace csi
-{
-namespace uidl
-{
-
-void
-TokBuiltInType::Trigger( TokenInterpreter & io_rInterpreter ) const
-{
- io_rInterpreter.Process_BuiltInType(*this);
-}
-
-const char *
-TokBuiltInType::Text() const
-{
- return eTag.Text();
-}
-
-void
-TokTypeModifier::Trigger( TokenInterpreter & io_rInterpreter ) const
-{
- io_rInterpreter.Process_TypeModifier(*this);
-}
-
-const char *
-TokTypeModifier::Text() const
-{
- return eTag.Text();
-}
-
-void
-TokMetaType::Trigger( TokenInterpreter & io_rInterpreter ) const
-{
- io_rInterpreter.Process_MetaType(*this);
-}
-
-const char *
-TokMetaType::Text() const
-{
- return eTag.Text();
-}
-
-void
-TokStereotype::Trigger( TokenInterpreter & io_rInterpreter ) const
-{
- io_rInterpreter.Process_Stereotype(*this);
-}
-
-const char *
-TokStereotype::Text() const
-{
- return eTag.Text();
-}
-
-void
-TokParameterHandling::Trigger( TokenInterpreter & io_rInterpreter ) const
-{
- io_rInterpreter.Process_ParameterHandling(*this);
-}
-
-const char *
-TokParameterHandling::Text() const
-{
- return eTag.Text();
-}
-
-void
-TokRaises::Trigger( TokenInterpreter & io_rInterpreter ) const
-{
- io_rInterpreter.Process_Raises();
-}
-
-const char *
-TokRaises::Text() const
-{
- return "raises";
-}
-
-void
-TokNeeds::Trigger( TokenInterpreter & io_rInterpreter ) const
-{
- io_rInterpreter.Process_Needs();
-}
-
-const char *
-TokNeeds::Text() const
-{
- return "needs";
-}
-void
-TokObserves::Trigger( TokenInterpreter & io_rInterpreter ) const
-{
- io_rInterpreter.Process_Observes();
-}
-
-const char *
-TokObserves::Text() const
-{
- return "observes";
-}
-
-} // namespace uidl
-} // namespace csi
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/idl/tk_punct.cxx b/autodoc/source/parser_i/idl/tk_punct.cxx
deleted file mode 100644
index c3c3f8eb771b..000000000000
--- a/autodoc/source/parser_i/idl/tk_punct.cxx
+++ /dev/null
@@ -1,107 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <s2_luidl/tk_punct.hxx>
-
-
-// NOT FULLY DECLARED SERVICES
-#include <parser/parserinfo.hxx>
-#include <s2_luidl/tokintpr.hxx>
-
-
-using csi::uidl::TokPunctuation;
-
-
-lux::EnumValueMap G_aTokPunctuation_EV_TokenId_Values;
-TokPunctuation::EV_TokenId ev_none(TokPunctuation::e_none,"");
-TokPunctuation::EV_TokenId BracketOpen(TokPunctuation::BracketOpen,"(");
-TokPunctuation::EV_TokenId BracketClose(TokPunctuation::BracketClose,")");
-TokPunctuation::EV_TokenId ArrayBracketOpen(TokPunctuation::ArrayBracketOpen,"[");
-TokPunctuation::EV_TokenId ArrayBracketClose(TokPunctuation::ArrayBracketClose,"]");
-TokPunctuation::EV_TokenId CurledBracketOpen(TokPunctuation::CurledBracketOpen,"{");
-TokPunctuation::EV_TokenId CurledBracketClose(TokPunctuation::CurledBracketClose,"}");
-TokPunctuation::EV_TokenId Semicolon(TokPunctuation::Semicolon,";");
-TokPunctuation::EV_TokenId Colon(TokPunctuation::Colon,":");
-TokPunctuation::EV_TokenId DoubleColon(TokPunctuation::DoubleColon,"::");
-TokPunctuation::EV_TokenId Comma(TokPunctuation::Comma,",");
-TokPunctuation::EV_TokenId Minus(TokPunctuation::Minus,"-");
-TokPunctuation::EV_TokenId Fullstop(TokPunctuation::Fullstop,".");
-TokPunctuation::EV_TokenId Lesser(TokPunctuation::Lesser,"<");
-TokPunctuation::EV_TokenId Greater(TokPunctuation::Greater,">");
-
-
-
-
-namespace lux
-{
-template<> EnumValueMap &
-Enum<TokPunctuation::E_TokenId>::Values_() { return G_aTokPunctuation_EV_TokenId_Values; }
-}
-
-
-
-
-namespace csi
-{
-namespace uidl
-{
-
-void
-TokPunctuation::Trigger( TokenInterpreter & io_rInterpreter ) const
-{
- io_rInterpreter.Process_Punctuation(*this);
-}
-
-const char *
-TokPunctuation::Text() const
-{
- return eTag.Text();
-}
-
-void
-Tok_EOL::Trigger( TokenInterpreter & io_rInterpreter ) const
-{
- io_rInterpreter.Process_EOL();
-}
-
-const char *
-Tok_EOL::Text() const
-{
- return "\r\n";
-}
-
-void
-Tok_EOF::Trigger( TokenInterpreter & ) const
-{
- csv_assert(false);
-// io_rInterpreter.Process_EOF();
-}
-
-const char *
-Tok_EOF::Text() const
-{
- return "";
-}
-
-
-} // namespace uidl
-} // namespace csi
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/idl/tkp_uidl.cxx b/autodoc/source/parser_i/idl/tkp_uidl.cxx
deleted file mode 100644
index 255ca19c0299..000000000000
--- a/autodoc/source/parser_i/idl/tkp_uidl.cxx
+++ /dev/null
@@ -1,67 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <s2_luidl/tkp_uidl.hxx>
-
-// NOT FULLY DECLARED SERVICES
-#include <s2_luidl/cx_idlco.hxx>
-
-
-
-namespace csi
-{
-namespace uidl
-{
-
-
-TokenParser_Uidl::TokenParser_Uidl( Token_Receiver & o_rUidlReceiver,
- DYN ::TkpDocuContext & let_drDocuContext )
- : pBaseContext(new Context_UidlCode(o_rUidlReceiver, let_drDocuContext)),
- pCurContext(0)
-{
- SetStartContext();
-}
-
-TokenParser_Uidl::~TokenParser_Uidl()
-{
-}
-
-void
-TokenParser_Uidl::SetStartContext()
-{
- pCurContext = pBaseContext.Ptr();
-}
-
-void
-TokenParser_Uidl::SetCurrentContext( TkpContext & io_rContext )
-{
- pCurContext = &io_rContext;
-}
-
-TkpContext &
-TokenParser_Uidl::CurrentContext()
-{
- return *pCurContext;
-}
-
-} // namespace uidl
-} // namespace csi
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/idl/unoidl.cxx b/autodoc/source/parser_i/idl/unoidl.cxx
deleted file mode 100644
index bf213b1cf1d9..000000000000
--- a/autodoc/source/parser_i/idl/unoidl.cxx
+++ /dev/null
@@ -1,156 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <parser/unoidl.hxx>
-
-
-// NOT FULLY DECLARED SERVICES
-#include <stdlib.h>
-#include <cosv/file.hxx>
-#include <ary/ary.hxx>
-#include <ary/idl/i_gate.hxx>
-#include <ary/doc/d_oldidldocu.hxx>
-#include <../parser/inc/x_docu.hxx>
-#include <parser/parserinfo.hxx>
-#include <tools/filecoll.hxx>
-#include <tools/tkpchars.hxx>
-#include <s2_luidl/tkp_uidl.hxx>
-#include <s2_luidl/distrib.hxx>
-#include <s2_luidl/pe_file2.hxx>
-#include <s2_dsapi/cx_dsapi.hxx>
-#include <adc_msg.hxx>
-#include <x_parse2.hxx>
-
-
-
-namespace autodoc
-{
-
-
-class FileParsePerformers
-{
- public:
- FileParsePerformers(
- ary::Repository &
- io_rRepository,
- ParserInfo & io_rParserInfo );
-
- void ParseFile(
- const char * i_sFullPath );
-
- private:
- CharacterSource aFileLoader;
- Dyn<csi::uidl::TokenParser_Uidl>
- pTokens;
- csi::uidl::TokenDistributor
- aDistributor;
- Dyn<csi::uidl::PE_File>
- pFileParseEnvironment;
- ParserInfo & rParserInfo;
-};
-
-
-IdlParser::IdlParser( ary::Repository & io_rRepository )
- : pRepository(&io_rRepository)
-{
-}
-
-void
-IdlParser::Run( const autodoc::FileCollector_Ifc & i_rFiles )
-{
- Dyn<FileParsePerformers>
- pFileParsePerformers(
- new FileParsePerformers(*pRepository,
- static_cast< ParserInfo& >(*this)) );
-
- FileCollector::const_iterator iEnd = i_rFiles.End();
- for ( FileCollector::const_iterator iter = i_rFiles.Begin();
- iter != iEnd;
- ++iter )
- {
- Cout() << (*iter) << " ..."<< Endl();
-
- try
- {
- pFileParsePerformers->ParseFile(*iter);
- }
- catch (const X_AutodocParser &)
- {
- /// Ignore and goon
- TheMessages().Out_ParseError(CurFile(), CurLine());
- pFileParsePerformers
- = new FileParsePerformers(*pRepository,
- static_cast< ParserInfo& >(*this));
- }
- catch (X_Docu & xd)
- {
- // Currently thic catches only wrong since tags, while since tags are
- // transformed. In this case the program shall be terminated.
- Cerr() << xd << Endl();
- exit(1);
- }
- catch (...)
- {
- Cout() << "Unknown error." << Endl();
- exit(0);
-// pFileParsePerformers = new FileParsePerformers( *pRepository );
- }
- }
-}
-
-FileParsePerformers::FileParsePerformers( ary::Repository & io_rRepository,
- ParserInfo & io_rParserInfo )
- : pTokens(0),
- aDistributor(io_rRepository, io_rParserInfo),
- rParserInfo(io_rParserInfo)
-{
- DYN csi::dsapi::Context_Docu *
- dpDocuContext
- = new csi::dsapi::Context_Docu( aDistributor.DocuTokens_Receiver() );
- pTokens = new csi::uidl::TokenParser_Uidl( aDistributor.CodeTokens_Receiver(), *dpDocuContext );
- pFileParseEnvironment
- = new csi::uidl::PE_File(aDistributor,rParserInfo);
-
- aDistributor.SetTokenProvider(*pTokens);
- aDistributor.SetTopParseEnvironment(*pFileParseEnvironment);
-}
-
-void
-FileParsePerformers::ParseFile( const char * i_sFullPath )
-{
- csv::File aFile(i_sFullPath);
-
- aFile.open( csv::CFM_READ );
- csv_assert( aFile.is_open() );
- aFileLoader.LoadText(aFile);
- aFile.close();
-
- rParserInfo.Set_CurFile(i_sFullPath, true); // true = count lines
- pTokens->Start(aFileLoader);
- aDistributor.Reset();
-
- do {
- aDistributor.TradeToken();
- } while ( NOT aFileLoader.IsFinished() );
-}
-
-} // namespace autodoc
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/idoc/cx_docu2.cxx b/autodoc/source/parser_i/idoc/cx_docu2.cxx
deleted file mode 100644
index 08857af6d1bd..000000000000
--- a/autodoc/source/parser_i/idoc/cx_docu2.cxx
+++ /dev/null
@@ -1,260 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <s2_dsapi/cx_docu2.hxx>
-
-
-// NOT FULLY DEFINED SERVICES
-#include <../../parser/inc/tokens/parseinc.hxx>
-#include <s2_dsapi/tokrecv.hxx>
-#include <s2_dsapi/tk_html.hxx>
-#include <s2_dsapi/tk_xml.hxx>
-#include <s2_dsapi/tk_docw2.hxx>
-#include <x_parse2.hxx>
-
-
-
-namespace csi
-{
-namespace dsapi
-{
-
-
-
-bool
-Cx_Base::PassNewToken()
-{
- if (pNewToken)
- {
- rReceiver.Receive(*pNewToken.Release());
-
- return true;
- }
- return false;
-}
-
-TkpContext &
-Cx_Base::FollowUpContext()
-{
- csv_assert(pFollowUpContext != 0);
- return *pFollowUpContext;
-}
-
-void
-Cx_Base::Handle_DocuSyntaxError( CharacterSource & io_rText )
-{
- // KORR_FUTURE
- // Put this into Error Log File
-
- Cerr() << "Error: Syntax error in documentation within "
- << "this text:\n\""
- << io_rText.CutToken()
- << "\"."
- << Endl();
- SetToken( new Tok_Word(io_rText.CurToken()) );
-}
-
-void
-Cx_EoHtml::ReadCharChain( CharacterSource & io_rText )
-{
- if ( NULCH == jumpTo(io_rText,'>') )
- throw X_AutodocParser(X_AutodocParser::x_UnexpectedEOF);
- io_rText.MoveOn();
- SetToken(new Tok_HtmlTag(io_rText.CutToken(),bToken_IsStartOfParagraph));
-}
-
-void
-Cx_EoXmlConst::ReadCharChain( CharacterSource & io_rText )
-{
- char c = jumpTo(io_rText,'>','*');
- if ( NULCH == c OR '*' == c )
- {
- Handle_DocuSyntaxError(io_rText);
- return;
- }
-
- io_rText.MoveOn();
- io_rText.CutToken();
- SetToken(new Tok_XmlConst(eTokenId));
-}
-
-void
-Cx_EoXmlLink_BeginTag::ReadCharChain( CharacterSource & io_rText )
-{
- String sScope;
- String sDim;
-
- do {
- char cReached = jumpTo(io_rText,'"','>','*');
- switch (cReached)
- {
- case '"':
- {
- io_rText.MoveOn();
- io_rText.CutToken();
- char c = jumpTo(io_rText,'"','*', '>');
- if ( NULCH == c OR '*' == c OR '>' == c)
- {
- if ( '>' == c )
- io_rText.MoveOn();
- Handle_DocuSyntaxError(io_rText);
- return;
- }
-
- const char * pAttribute = io_rText.CutToken();
- if ( *pAttribute != '[' )
- sScope = pAttribute;
- else
- sDim = pAttribute;
-
- io_rText.MoveOn();
- break;
- }
- case '>':
- break;
- case '*':
- Handle_DocuSyntaxError(io_rText);
- return;
- default:
- throw X_AutodocParser(X_AutodocParser::x_UnexpectedEOF);
- } // end switch
- } while ( io_rText.CurChar() != '>' );
-
- io_rText.MoveOn();
- io_rText.CutToken();
- SetToken( new Tok_XmlLink_BeginTag(eTokenId, sScope.c_str(), sDim.c_str()) );
-}
-
-void
-Cx_EoXmlLink_EndTag::ReadCharChain( CharacterSource & io_rText )
-{
- char c = jumpTo(io_rText,'>','*');
- if ( NULCH == c OR '*' == c )
- {
- Handle_DocuSyntaxError(io_rText);
- return;
- }
-
- io_rText.MoveOn();
- io_rText.CutToken();
- SetToken(new Tok_XmlLink_EndTag(eTokenId));
-}
-
-void
-Cx_EoXmlFormat_BeginTag::ReadCharChain( CharacterSource & io_rText )
-{
- String sDim;
-
- char cReached = jumpTo(io_rText,'"','>','*');
- switch (cReached)
- {
- case '"':
- {
- io_rText.MoveOn();
- io_rText.CutToken();
-
- char c = jumpTo(io_rText,'"','*','>');
- if ( NULCH == c OR '*' == c OR '>' == c )
- {
- if ('>' == c )
- io_rText.MoveOn();
- Handle_DocuSyntaxError(io_rText);
- return;
- }
-
- sDim = io_rText.CutToken();
-
- c = jumpTo(io_rText,'>','*');
- if ( NULCH == c OR '*' == c )
- {
- Handle_DocuSyntaxError(io_rText);
- return;
- }
- break;
- }
- case '>':
- break;
- case '*':
- Handle_DocuSyntaxError(io_rText);
- return;
- default:
- throw X_AutodocParser(X_AutodocParser::x_UnexpectedEOF);
- } // end switch
-
- io_rText.MoveOn();
- io_rText.CutToken();
- SetToken(new Tok_XmlFormat_BeginTag(eTokenId, sDim));
-}
-
-void
-Cx_EoXmlFormat_EndTag::ReadCharChain( CharacterSource & io_rText )
-{
- char c = jumpTo(io_rText,'>','*');
- if ( NULCH == c OR '*' == c )
- {
- Handle_DocuSyntaxError(io_rText);
- return;
- }
-
- io_rText.MoveOn();
- io_rText.CutToken();
- SetToken(new Tok_XmlFormat_EndTag(eTokenId));
-}
-
-void
-Cx_CheckStar::ReadCharChain( CharacterSource & io_rText )
-{
- bEndTokenFound = false;
- if (bIsEnd)
- {
- char cNext = jumpOver(io_rText,'*');
- if ( NULCH == cNext )
- throw X_AutodocParser(X_AutodocParser::x_UnexpectedEOF);
- if (cNext == '/')
- {
- io_rText.MoveOn();
- SetToken(new Tok_DocuEnd);
- bEndTokenFound = true;
- }
- else
- {
- SetToken( new Tok_Word(io_rText.CutToken()) );
- }
- }
- else
- {
- jumpToWhite(io_rText);
- SetToken( new Tok_Word(io_rText.CutToken()) );
- }
-}
-
-TkpContext &
-Cx_CheckStar::FollowUpContext()
-{
- if (bEndTokenFound)
- return *pEnd_FollowUpContext;
- else
- return Cx_Base::FollowUpContext();
-}
-
-} // namespace dsapi
-} // namespace csi
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/idoc/cx_dsapi.cxx b/autodoc/source/parser_i/idoc/cx_dsapi.cxx
deleted file mode 100644
index a7d8b65bd600..000000000000
--- a/autodoc/source/parser_i/idoc/cx_dsapi.cxx
+++ /dev/null
@@ -1,519 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <s2_dsapi/cx_dsapi.hxx>
-
-
-// NOT FULLY DEFINED SERVICES
-#include <x_parse2.hxx>
-#include <tools/tkpchars.hxx>
-#include <s2_dsapi/tk_atag2.hxx>
-#include <s2_dsapi/tk_docw2.hxx>
-#include <s2_dsapi/tk_xml.hxx>
-#include <s2_dsapi/cx_docu2.hxx>
-#include <s2_dsapi/tokrecv.hxx>
-
-
-namespace csi
-{
-namespace dsapi
-{
-
-
-const intt C_nStatusSize = 128;
-const intt C_nCppInitialNrOfStati = 400;
-
-
-const uintt nF_fin_Error = 1;
-const uintt nF_fin_Ignore = 2;
-const uintt nF_fin_Eof = 3;
-const uintt nF_fin_AnyWord = 4;
-const uintt nF_fin_AtTag = 5;
-const uintt nF_fin_EndSign = 6;
-const uintt nF_goto_EoHtml = 7;
-const uintt nF_goto_EoXmlConst = 8;
-const uintt nF_goto_EoXmlLink_BeginTag = 9;
-const uintt nF_goto_EoXmlLink_EndTag = 10;
-const uintt nF_goto_EoXmlFormat_BeginTag = 11;
-const uintt nF_goto_EoXmlFormat_EndTag = 12;
-const uintt nF_goto_CheckStar = 13;
-const uintt nF_fin_Comma = 14;
-const uintt nF_fin_White = 15;
-
-const UINT16 nTok_at_author = 100 + Tok_AtTag::author;
-const UINT16 nTok_at_see = 100 + Tok_AtTag::see;
-const UINT16 nTok_at_param = 100 + Tok_AtTag::param;
-const UINT16 nTok_at_return = 100 + Tok_AtTag::e_return;
-const UINT16 nTok_at_throws = 100 + Tok_AtTag::e_throw;
-const UINT16 nTok_at_example = 100 + Tok_AtTag::example;
-const UINT16 nTok_at_deprecated = 100 + Tok_AtTag::deprecated;
-const UINT16 nTok_at_suspicious = 100 + Tok_AtTag::suspicious;
-const UINT16 nTok_at_missing = 100 + Tok_AtTag::missing;
-const UINT16 nTok_at_incomplete = 100 + Tok_AtTag::incomplete;
-const UINT16 nTok_at_version = 100 + Tok_AtTag::version;
-const UINT16 nTok_at_guarantees = 100 + Tok_AtTag::guarantees;
-const UINT16 nTok_at_exception = 100 + Tok_AtTag::exception;
-const UINT16 nTok_at_since = 100 + Tok_AtTag::since;
-
-const UINT16 nTok_const_TRUE = 200 + Tok_XmlConst::e_true;
-const UINT16 nTok_const_FALSE = 200 + Tok_XmlConst::e_false;
-const UINT16 nTok_const_NULL = 200 + Tok_XmlConst::e_null;
-const UINT16 nTok_const_void = 200 + Tok_XmlConst::e_void;
-
-const UINT16 nTok_link_typeB = 300 + Tok_XmlLink_BeginTag::type;
-const UINT16 nTok_link_typeE = 325 + Tok_XmlLink_EndTag::type;
-const UINT16 nTok_link_memberB = 300 + Tok_XmlLink_BeginTag::member;
-const UINT16 nTok_link_membeE = 325 + Tok_XmlLink_EndTag::member;
-const UINT16 nTok_link_constB = 300 + Tok_XmlLink_BeginTag::e_const;
-const UINT16 nTok_link_constE = 325 + Tok_XmlLink_EndTag::e_const;
-
-const UINT16 nTok_format_listingB = 350 + Tok_XmlFormat_BeginTag::listing;
-const UINT16 nTok_format_listingE = 375 + Tok_XmlFormat_EndTag::listing;
-const UINT16 nTok_format_codeB = 350 + Tok_XmlFormat_BeginTag::code;
-const UINT16 nTok_format_codeE = 375 + Tok_XmlFormat_EndTag::code;
-const UINT16 nTok_format_atomB = 350 + Tok_XmlFormat_BeginTag::atom;
-const UINT16 nTok_format_atomE = 375 + Tok_XmlFormat_EndTag::atom;
-
-
-const UINT16 nTok_html_parastart = 400;
-
-const UINT16 nTok_MLDocuEnd = 501;
-const UINT16 nTok_EOL = 502;
-
-
-Context_Docu::Context_Docu( Token_Receiver & o_rReceiver )
- : aStateMachine(C_nStatusSize, C_nCppInitialNrOfStati),
- pReceiver(&o_rReceiver),
- pParentContext(0),
- pCx_EoHtml(0),
- pCx_EoXmlConst(0),
- pCx_EoXmlLink_BeginTag(0),
- pCx_EoXmlLink_EndTag(0),
- pCx_EoXmlFormat_BeginTag(0),
- pCx_EoXmlFormat_EndTag(0),
- pCx_CheckStar(0),
- pNewToken(0),
- pFollowUpContext(0),
- bIsMultiline(false)
-{
- pCx_EoHtml = new Cx_EoHtml(o_rReceiver, *this);
- pCx_EoXmlConst = new Cx_EoXmlConst(o_rReceiver, *this);
- pCx_EoXmlLink_BeginTag = new Cx_EoXmlLink_BeginTag(o_rReceiver, *this);
- pCx_EoXmlLink_EndTag = new Cx_EoXmlLink_EndTag(o_rReceiver, *this);
- pCx_EoXmlFormat_BeginTag = new Cx_EoXmlFormat_BeginTag(o_rReceiver, *this);
- pCx_EoXmlFormat_EndTag = new Cx_EoXmlFormat_EndTag(o_rReceiver, *this);
- pCx_CheckStar = new Cx_CheckStar(*pReceiver,*this);
-
- SetupStateMachine();
-}
-
-void
-Context_Docu::SetParentContext( TkpContext & io_rParentContext,
- const char * )
-{
- pFollowUpContext = pParentContext = &io_rParentContext;
- pCx_CheckStar->Set_End_FolloUpContext(io_rParentContext);
-}
-
-Context_Docu::~Context_Docu()
-{
-}
-
-void
-Context_Docu::ReadCharChain( CharacterSource & io_rText )
-{
- csv_assert(pParentContext != 0);
-
- pNewToken = 0;
-
- UINT16 nTokenId = 0;
- StmBoundsStatu2 & rBound = aStateMachine.GetCharChain(nTokenId, io_rText);
-
- // !!!
- // The order of the next two lines is essential, because
- // pFollowUpContext may be changed by PerformStatusFunction() also,
- // which then MUST override the previous assignment.
- pFollowUpContext = rBound.FollowUpContext();
- PerformStatusFunction(rBound.StatusFunctionNr(), nTokenId, io_rText);
-}
-
-bool
-Context_Docu::PassNewToken()
-{
- if (pNewToken)
- {
- pReceiver->Receive(*pNewToken.Release());
- return true;
- }
- return false;
-}
-
-TkpContext &
-Context_Docu::FollowUpContext()
-{
- csv_assert(pFollowUpContext != 0);
- return *pFollowUpContext;
-}
-
-void
-Context_Docu::PerformStatusFunction( uintt i_nStatusSignal,
- UINT16 i_nTokenId,
- CharacterSource & io_rText )
-{
- switch (i_nStatusSignal)
- {
- case nF_fin_White:
- io_rText.CutToken();
- pNewToken = new Tok_White;
- break;
- case nF_fin_Error:
- throw X_AutodocParser(X_AutodocParser::x_InvalidChar);
- // no break because of throw
- case nF_fin_Ignore:
- pNewToken = 0;
- io_rText.CutToken();
- break;
- case nF_fin_Eof:
- if (bIsMultiline)
- throw X_AutodocParser(X_AutodocParser::x_UnexpectedEOF);
- else
- io_rText.CutToken();
- pNewToken = new Tok_EOF;
- break;
- case nF_fin_AnyWord:
- pNewToken = new Tok_Word(io_rText.CutToken());
- break;
- case nF_fin_AtTag:
- io_rText.CutToken();
- pNewToken = new Tok_AtTag( i_nTokenId - 100 );
- break;
- case nF_fin_Comma:
- io_rText.CutToken();
- pNewToken = new Tok_Comma;
- break;
- case nF_fin_EndSign:
- io_rText.CutToken();
- switch (i_nTokenId)
- {
- case nTok_MLDocuEnd:
- if (bIsMultiline)
- {
- pNewToken = new Tok_DocuEnd;
- pFollowUpContext = pParentContext;
- }
- else
- {
- pNewToken = new Tok_Word(io_rText.CutToken());
- pFollowUpContext = this;
- }
- break;
- case nTok_EOL:
- if (bIsMultiline)
- {
- pNewToken = new Tok_EOL;
- pFollowUpContext = this;
- }
- else
- {
- pNewToken = new Tok_DocuEnd;
- pFollowUpContext = pParentContext;
- }
- pReceiver->Increment_CurLine();
- break;
- default:
- csv_assert(false);
- }
- break;
- case nF_goto_EoHtml:
- pCx_EoHtml->SetIfIsStartOfParagraph(i_nTokenId == nTok_html_parastart);
- break;
- case nF_goto_EoXmlConst:
- pCx_EoXmlConst->SetTokenId(i_nTokenId - 200);
- break;
- case nF_goto_EoXmlLink_BeginTag:
- pCx_EoXmlLink_BeginTag->SetTokenId(i_nTokenId - 300);
- break;
- case nF_goto_EoXmlLink_EndTag:
- pCx_EoXmlLink_EndTag->SetTokenId(i_nTokenId - 325);
- break;
- case nF_goto_EoXmlFormat_BeginTag:
- pCx_EoXmlFormat_BeginTag->SetTokenId(i_nTokenId - 350);
- break;
- case nF_goto_EoXmlFormat_EndTag:
- pCx_EoXmlFormat_EndTag->SetTokenId(i_nTokenId - 375);
- break;
- case nF_goto_CheckStar:
- pCx_CheckStar->SetIsEnd( bIsMultiline );
- break;
- default:
- csv_assert(false);
- } // end switch (i_nStatusSignal)
-}
-
-void
-Context_Docu::SetupStateMachine()
-{
- // special array statuses (no tokenfinish or change of context):
-// const INT16 bas = 0; // base status
- const INT16 wht = 1; // skip whitespace status
- const INT16 awd = 2; // any word read status
-
- // change of context statuses:
- const INT16 goto_EoHtml = 3;
- const INT16 goto_EoXmlConst = 4;
- const INT16 goto_EoXmlLink_BeginTag = 5;
- const INT16 goto_EoXmlLink_EndTag = 6;
- const INT16 goto_EoXmlFormat_BeginTag = 7;
- const INT16 goto_EoXmlFormat_EndTag = 8;
- const INT16 goto_CheckStar = 9;
-
- // tokenfinish statuses:
- const INT16 finError = 10;
-// const INT16 finIgnore = 11;
- const INT16 finEof = 12;
- const INT16 finAnyWord = 13;
- const INT16 finAtTag = 14;
- const INT16 finEndSign = 15;
-// const INT16 finComma = 16;
- const INT16 finWhite = 17;
-
- // constants for use in the table:
- const INT16 ght = goto_EoHtml;
- const INT16 err = finError;
- const INT16 faw = finAnyWord;
-// const INT16 fig = finIgnore;
-// const INT16 fes = finEndSign;
- const INT16 fof = finEof;
-// const INT16 fat = finAtTag;
- const INT16 fwh = finWhite;
-
- /// The '0's will be replaced by calls of AddToken().
-
- const INT16 A_nTopStatus[C_nStatusSize] =
- // 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
- {fof,err,err,err,err,err,err,err,err,wht, 0,wht,wht, 0,err,err,
- err,err,err,err,err,err,err,err,err,err,fof,err,err,err,err,err, // ... 31
- wht,awd,awd,awd,awd,awd,awd,awd,awd,awd, 0,awd,awd,awd,awd,awd,
- awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd, 0,awd,awd,awd, // ... 63
- 0,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,
- awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd, // ... 95
- awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,
- awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd // ... 127
- };
-
- const INT16 A_nWhitespaceStatus[C_nStatusSize] =
- // 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
- {fof,err,err,err,err,err,err,err,err,wht,fwh,wht,wht,fwh,err,err,
- err,err,err,err,err,err,err,err,err,err,fof,err,err,err,err,err, // ... 31
- wht,fwh,fwh,fwh,fwh,fwh,fwh,fwh,fwh,fwh,fwh,fwh,fwh,fwh,fwh,fwh,
- fwh,fwh,fwh,fwh,fwh,fwh,fwh,fwh,fwh,fwh,fwh,fwh,fwh,fwh,fwh,fwh, // ... 63
- fwh,fwh,fwh,fwh,fwh,fwh,fwh,fwh,fwh,fwh,fwh,fwh,fwh,fwh,fwh,fwh,
- fwh,fwh,fwh,fwh,fwh,fwh,fwh,fwh,fwh,fwh,fwh,fwh,fwh,fwh,fwh,fwh, // ... 95
- fwh,fwh,fwh,fwh,fwh,fwh,fwh,fwh,fwh,fwh,fwh,fwh,fwh,fwh,fwh,fwh,
- fwh,fwh,fwh,fwh,fwh,fwh,fwh,fwh,fwh,fwh,fwh,fwh,fwh,fwh,fwh,fwh // ... 127
- };
-
- const INT16 A_nWordStatus[C_nStatusSize] =
- // 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
- {faw,err,err,err,err,err,err,err,err,faw,faw,faw,faw,faw,err,err,
- err,err,err,err,err,err,err,err,err,err,faw,err,err,err,err,err, // ... 31
- faw,awd,awd,awd,awd,awd,awd,awd,awd,awd,faw,awd,awd,awd,awd,awd,
- awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,faw,awd,awd,awd, // ... 63
- faw,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,
- awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd, // ... 95
- awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,
- awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd // ... 127
- };
-
- const INT16 A_nAtTagDefStatus[C_nStatusSize] =
- // 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
- {faw,err,err,err,err,err,err,err,err,faw,faw,faw,faw,faw,err,err,
- err,err,err,err,err,err,err,err,err,err,faw,err,err,err,err,err, // ... 31
- faw,awd,awd,awd,awd,awd,awd,awd,awd,awd,faw,awd,awd,awd,awd,awd,
- awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,faw,awd,faw,awd,awd,awd, // ... 63
- awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,
- awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd, // ... 95
- awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,
- awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd,awd // ... 127
- };
-
- const INT16 A_nHtmlDefStatus[C_nStatusSize] =
- // 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
- {ght,err,err,err,err,err,err,err,err,ght,ght,ght,ght,ght,err,err,
- err,err,err,err,err,err,err,err,err,err,ght,err,err,err,err,err, // ... 31
- ght,ght,ght,ght,ght,ght,ght,ght,ght,ght,ght,ght,ght,ght,ght,ght,
- ght,ght,ght,ght,ght,ght,ght,ght,ght,ght,ght,ght,ght,ght,ght,ght, // ... 63
- ght,ght,ght,ght,ght,ght,ght,ght,ght,ght,ght,ght,ght,ght,ght,ght,
- ght,ght,ght,ght,ght,ght,ght,ght,ght,ght,ght,ght,ght,ght,ght,ght, // ... 95
- ght,ght,ght,ght,ght,ght,ght,ght,ght,ght,ght,ght,ght,ght,ght,ght,
- ght,ght,ght,ght,ght,ght,ght,ght,ght,ght,ght,ght,ght,ght,ght,ght // ... 127
- };
-
- const INT16 A_nPunctDefStatus[C_nStatusSize] =
- // 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
- {err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,
- err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,err, // 16 ...
- err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,
- err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,err, // 48 ...
- err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,
- err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,err, // 80 ...
- err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,
- err,err,err,err,err,err,err,err,err,err,err,err,err,err,err,err // 112 ...
- };
-
- DYN StmArrayStatu2 * dpStatusTop
- = new StmArrayStatu2( C_nStatusSize, A_nTopStatus, 0, true);
- DYN StmArrayStatu2 * dpStatusWhite
- = new StmArrayStatu2( C_nStatusSize, A_nWhitespaceStatus, 0, true);
- DYN StmArrayStatu2 * dpStatusWord
- = new StmArrayStatu2( C_nStatusSize, A_nWordStatus, 0, true);
-
- DYN StmBoundsStatu2 * dpBst_goto_EoHtml
- = new StmBoundsStatu2( *pCx_EoHtml, nF_goto_EoHtml, true );
- DYN StmBoundsStatu2 * dpBst_goto_EoXmlConst
- = new StmBoundsStatu2( *pCx_EoXmlConst, nF_goto_EoXmlConst, true );
- DYN StmBoundsStatu2 * dpBst_goto_EoXmlLink_BeginTag
- = new StmBoundsStatu2( *pCx_EoXmlLink_BeginTag, nF_goto_EoXmlLink_BeginTag, true );
- DYN StmBoundsStatu2 * dpBst_goto_EoXmlLink_EndTag
- = new StmBoundsStatu2( *pCx_EoXmlLink_EndTag, nF_goto_EoXmlLink_EndTag, true );
- DYN StmBoundsStatu2 * dpBst_goto_EoXmlFormat_BeginTag
- = new StmBoundsStatu2( *pCx_EoXmlFormat_BeginTag, nF_goto_EoXmlFormat_BeginTag, true );
- DYN StmBoundsStatu2 * dpBst_goto_EoXmlFormat_EndTag
- = new StmBoundsStatu2( *pCx_EoXmlFormat_EndTag, nF_goto_EoXmlFormat_EndTag, true );
- DYN StmBoundsStatu2 * dpBst_goto_CheckStar
- = new StmBoundsStatu2( *pCx_CheckStar, nF_goto_CheckStar, true );
-
-
- DYN StmBoundsStatu2 * dpBst_finError
- = new StmBoundsStatu2( TkpContext_Null2_(), nF_fin_Error, true );
- DYN StmBoundsStatu2 * dpBst_finIgnore
- = new StmBoundsStatu2( *this, nF_fin_Ignore, true);
- DYN StmBoundsStatu2 * dpBst_finEof
- = new StmBoundsStatu2( TkpContext_Null2_(), nF_fin_Eof, false);
- DYN StmBoundsStatu2 * dpBst_finAnyWord
- = new StmBoundsStatu2( *this, nF_fin_AnyWord, true);
- DYN StmBoundsStatu2 * dpBst_finAtTag
- = new StmBoundsStatu2( *this, nF_fin_AtTag, false);
- DYN StmBoundsStatu2 * dpBst_finEndSign
- = new StmBoundsStatu2( *pParentContext, nF_fin_EndSign, false);
- DYN StmBoundsStatu2 * dpBst_fin_Comma
- = new StmBoundsStatu2( *this, nF_fin_Comma, false );
- DYN StmBoundsStatu2 * dpBst_finWhite
- = new StmBoundsStatu2( *this, nF_fin_White, false);
-
-
- // construct dpMain:
- aStateMachine.AddStatus(dpStatusTop);
- aStateMachine.AddStatus(dpStatusWhite);
- aStateMachine.AddStatus(dpStatusWord);
-
- aStateMachine.AddStatus(dpBst_goto_EoHtml);
- aStateMachine.AddStatus(dpBst_goto_EoXmlConst);
- aStateMachine.AddStatus(dpBst_goto_EoXmlLink_BeginTag);
- aStateMachine.AddStatus(dpBst_goto_EoXmlLink_EndTag);
- aStateMachine.AddStatus(dpBst_goto_EoXmlFormat_BeginTag);
- aStateMachine.AddStatus(dpBst_goto_EoXmlFormat_EndTag);
- aStateMachine.AddStatus(dpBst_goto_CheckStar);
-
- aStateMachine.AddStatus(dpBst_finError);
- aStateMachine.AddStatus(dpBst_finIgnore);
- aStateMachine.AddStatus(dpBst_finEof);
- aStateMachine.AddStatus(dpBst_finAnyWord);
- aStateMachine.AddStatus(dpBst_finAtTag);
- aStateMachine.AddStatus(dpBst_finEndSign);
- aStateMachine.AddStatus(dpBst_fin_Comma);
- aStateMachine.AddStatus(dpBst_finWhite);
-
-
- aStateMachine.AddToken( "@author", nTok_at_author, A_nAtTagDefStatus, finAtTag );
- aStateMachine.AddToken( "@param", nTok_at_param, A_nAtTagDefStatus, finAtTag );
- aStateMachine.AddToken( "@throws", nTok_at_throws, A_nAtTagDefStatus, finAtTag );
- aStateMachine.AddToken( "@see", nTok_at_see, A_nAtTagDefStatus, finAtTag );
- aStateMachine.AddToken( "@since", nTok_at_since, A_nAtTagDefStatus, finAtTag );
- aStateMachine.AddToken( "@example", nTok_at_example, A_nAtTagDefStatus, finAtTag );
- aStateMachine.AddToken( "@return", nTok_at_return, A_nAtTagDefStatus, finAtTag );
- aStateMachine.AddToken( "@returns", nTok_at_return, A_nAtTagDefStatus, finAtTag );
- aStateMachine.AddToken( "@deprecated",
- nTok_at_deprecated, A_nAtTagDefStatus, finAtTag );
- aStateMachine.AddToken( "@suspicious",
- nTok_at_suspicious, A_nAtTagDefStatus, finAtTag );
- aStateMachine.AddToken( "@missing", nTok_at_missing, A_nAtTagDefStatus, finAtTag );
- aStateMachine.AddToken( "@incomplete",
- nTok_at_incomplete, A_nAtTagDefStatus, finAtTag );
- aStateMachine.AddToken( "@version", nTok_at_version, A_nAtTagDefStatus, finAtTag );
- aStateMachine.AddToken( "@guarantees",
- nTok_at_guarantees, A_nAtTagDefStatus, finAtTag );
- aStateMachine.AddToken( "@exception",
- nTok_at_exception, A_nAtTagDefStatus, finAtTag );
-
- aStateMachine.AddToken( "<", 0, A_nHtmlDefStatus, goto_EoHtml );
- aStateMachine.AddToken( "*", 0, A_nPunctDefStatus, goto_CheckStar );
-// aStateMachine.AddToken( ",", 0, A_nPunctDefStatus, finComma );
-
- aStateMachine.AddToken( "<type", nTok_link_typeB, A_nHtmlDefStatus, goto_EoXmlLink_BeginTag );
- aStateMachine.AddToken( "</type", nTok_link_typeE, A_nHtmlDefStatus, goto_EoXmlLink_EndTag );
- aStateMachine.AddToken( "<member", nTok_link_memberB, A_nHtmlDefStatus, goto_EoXmlLink_BeginTag );
- aStateMachine.AddToken( "</member", nTok_link_membeE, A_nHtmlDefStatus, goto_EoXmlLink_EndTag );
- aStateMachine.AddToken( "<const", nTok_link_constB, A_nHtmlDefStatus, goto_EoXmlLink_BeginTag );
- aStateMachine.AddToken( "</const", nTok_link_constE, A_nHtmlDefStatus, goto_EoXmlLink_EndTag );
-
- aStateMachine.AddToken( "<listing", nTok_format_listingB,A_nHtmlDefStatus, goto_EoXmlFormat_BeginTag );
- aStateMachine.AddToken( "</listing",nTok_format_listingE,A_nHtmlDefStatus, goto_EoXmlFormat_EndTag );
- aStateMachine.AddToken( "<code", nTok_format_codeB, A_nHtmlDefStatus, goto_EoXmlFormat_BeginTag );
- aStateMachine.AddToken( "</code", nTok_format_codeE, A_nHtmlDefStatus, goto_EoXmlFormat_EndTag );
- aStateMachine.AddToken( "<atom", nTok_format_atomB, A_nHtmlDefStatus, goto_EoXmlFormat_BeginTag );
- aStateMachine.AddToken( "</atom", nTok_format_atomE, A_nHtmlDefStatus, goto_EoXmlFormat_EndTag );
-
- aStateMachine.AddToken( "<TRUE/", nTok_const_TRUE, A_nHtmlDefStatus, goto_EoXmlConst );
- aStateMachine.AddToken( "<true/", nTok_const_TRUE, A_nHtmlDefStatus, goto_EoXmlConst );
- aStateMachine.AddToken( "<FALSE/", nTok_const_FALSE, A_nHtmlDefStatus, goto_EoXmlConst );
- aStateMachine.AddToken( "<false/", nTok_const_FALSE, A_nHtmlDefStatus, goto_EoXmlConst );
- aStateMachine.AddToken( "<NULL/", nTok_const_NULL, A_nHtmlDefStatus, goto_EoXmlConst );
- aStateMachine.AddToken( "<void/", nTok_const_void, A_nHtmlDefStatus, goto_EoXmlConst );
-
- aStateMachine.AddToken( "<p", nTok_html_parastart, A_nHtmlDefStatus, goto_EoHtml );
- aStateMachine.AddToken( "<pre", nTok_html_parastart, A_nHtmlDefStatus, goto_EoHtml );
- aStateMachine.AddToken( "<dl", nTok_html_parastart, A_nHtmlDefStatus, goto_EoHtml );
- aStateMachine.AddToken( "<ul", nTok_html_parastart, A_nHtmlDefStatus, goto_EoHtml );
- aStateMachine.AddToken( "<ol", nTok_html_parastart, A_nHtmlDefStatus, goto_EoHtml );
- aStateMachine.AddToken( "<table", nTok_html_parastart, A_nHtmlDefStatus, goto_EoHtml );
- aStateMachine.AddToken( "<P", nTok_html_parastart, A_nHtmlDefStatus, goto_EoHtml );
- aStateMachine.AddToken( "<PRE", nTok_html_parastart, A_nHtmlDefStatus, goto_EoHtml );
- aStateMachine.AddToken( "<DL", nTok_html_parastart, A_nHtmlDefStatus, goto_EoHtml );
- aStateMachine.AddToken( "<UL", nTok_html_parastart, A_nHtmlDefStatus, goto_EoHtml );
- aStateMachine.AddToken( "<OL", nTok_html_parastart, A_nHtmlDefStatus, goto_EoHtml );
- aStateMachine.AddToken( "<TABLE", nTok_html_parastart, A_nHtmlDefStatus, goto_EoHtml );
-
- aStateMachine.AddToken( "\r\n", nTok_EOL, A_nPunctDefStatus, finEndSign );
- aStateMachine.AddToken( "\n", nTok_EOL, A_nPunctDefStatus, finEndSign );
- aStateMachine.AddToken( "\r", nTok_EOL, A_nPunctDefStatus, finEndSign );
-};
-
-void
-Context_Docu::SetMode_IsMultiLine( bool i_bTrue )
-{
- bIsMultiline = i_bTrue;
-}
-
-
-} // namespace dsapi
-} // namespace csi
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/idoc/docu_pe2.cxx b/autodoc/source/parser_i/idoc/docu_pe2.cxx
deleted file mode 100644
index e99020ee7cc0..000000000000
--- a/autodoc/source/parser_i/idoc/docu_pe2.cxx
+++ /dev/null
@@ -1,686 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <s2_dsapi/docu_pe2.hxx>
-
-
-// NOT FULLY DEFINED SERVICES
-#include <cctype>
-#include <ary/doc/d_oldidldocu.hxx>
-#include <ary_i/d_token.hxx>
-#include <parser/parserinfo.hxx>
-#include <adc_cl.hxx>
-#include <adc_msg.hxx>
-#include <../parser/inc/x_docu.hxx>
-#include <s2_dsapi/dsapitok.hxx>
-#include <s2_dsapi/tk_atag2.hxx>
-#include <s2_dsapi/tk_html.hxx>
-#include <s2_dsapi/tk_docw2.hxx>
-#include <s2_dsapi/tk_xml.hxx>
-
-
-#ifdef UNX
-#define strnicmp strncasecmp
-#endif
-
-
-namespace csi
-{
-namespace dsapi
-{
-
-
-const char * AtTagTitle(
- const Tok_AtTag & i_rToken );
-
-
-SapiDocu_PE::SapiDocu_PE(ParserInfo & io_rPositionInfo)
- : pDocu(0),
- eState(e_none),
- pPositionInfo(&io_rPositionInfo),
- fCurTokenAddFunction(&SapiDocu_PE::AddDocuToken2Void),
- pCurAtTag(0),
- sCurDimAttribute(),
- sCurAtSeeType_byXML(200)
-{
-}
-
-SapiDocu_PE::~SapiDocu_PE()
-{
-}
-
-void
-SapiDocu_PE::ProcessToken( DYN csi::dsapi::Token & let_drToken )
-{
- if (IsComplete())
- {
- pDocu = 0;
- eState = e_none;
- }
-
- if ( eState == e_none )
- {
- pDocu = new ary::doc::OldIdlDocu;
- eState = st_short;
- fCurTokenAddFunction = &SapiDocu_PE::AddDocuToken2Short;
- }
-
- csv_assert(pDocu);
-
- let_drToken.Trigger(*this);
- delete &let_drToken;
-}
-
-void
-SapiDocu_PE::Process_AtTag( const Tok_AtTag & i_rToken )
-{
- if (NOT pCurAtTag)
- {
- eState = st_attags;
- fCurTokenAddFunction = &SapiDocu_PE::AddDocuToken2CurAtTag;
- }
- else
- {
- csv_assert(eState == st_attags);
- pDocu->AddAtTag(*pCurAtTag.Release());
- }
-
- if (i_rToken.Id() == Tok_AtTag::param)
- {
- pCurAtTag = new DT_ParameterAtTag;
- fCurTokenAddFunction = &SapiDocu_PE::SetCurParameterAtTagName;
- }
- else if (i_rToken.Id() == Tok_AtTag::see)
- {
- pCurAtTag = new DT_SeeAlsoAtTag;
- fCurTokenAddFunction = &SapiDocu_PE::SetCurSeeAlsoAtTagLinkText;
- }
- else if (i_rToken.Id() == Tok_AtTag::deprecated)
- {
- pDocu->SetDeprecated();
- pCurAtTag = new DT_StdAtTag(""); // Dummy that will not be used.
- fCurTokenAddFunction = &SapiDocu_PE::AddDocuToken2Deprecated;
- }
- else if (i_rToken.Id() == Tok_AtTag::since)
- {
- pCurAtTag = new DT_SinceAtTag;
- fCurTokenAddFunction = &SapiDocu_PE::SetCurSinceAtTagVersion_OOo;
- }
- else
- {
- pCurAtTag = new DT_StdAtTag( AtTagTitle(i_rToken) );
- fCurTokenAddFunction = &SapiDocu_PE::AddDocuToken2CurAtTag;
- }
-}
-
-void
-SapiDocu_PE::Process_HtmlTag( const Tok_HtmlTag & i_rToken )
-{
- if (eState == st_short AND i_rToken.IsParagraphStarter())
- {
- eState = st_description;
- fCurTokenAddFunction = &SapiDocu_PE::AddDocuToken2Description;
- }
-
- // Workaround special for some errors in API docu:
- if ( strnicmp("<true",i_rToken.Text(),5 ) == 0 )
- {
- if ( strcmp("<TRUE/>",i_rToken.Text()) != 0 )
- TheMessages().Out_InvalidConstSymbol( i_rToken.Text(),
- pPositionInfo->CurFile(),
- pPositionInfo->CurLine() );
- (this->*fCurTokenAddFunction)( *new DT_TextToken("<b>true</b>") );
- return;
- }
- else if ( strnicmp("<false",i_rToken.Text(),6 ) == 0 )
- {
- if ( strcmp("<FALSE/>",i_rToken.Text()) != 0 )
- TheMessages().Out_InvalidConstSymbol( i_rToken.Text(),
- pPositionInfo->CurFile(),
- pPositionInfo->CurLine() );
- (this->*fCurTokenAddFunction)( *new DT_TextToken("<b>false</b>") );
- return;
- }
- else if ( strnicmp("<NULL",i_rToken.Text(),5 ) == 0 )
- {
- if ( strcmp("<NULL/>",i_rToken.Text()) != 0 )
- TheMessages().Out_InvalidConstSymbol( i_rToken.Text(),
- pPositionInfo->CurFile(),
- pPositionInfo->CurLine() );
- (this->*fCurTokenAddFunction)( *new DT_TextToken("<b>null</b>") );
- return;
- }
- else if ( strnicmp("<void",i_rToken.Text(),5 ) == 0 )
- {
- if ( strcmp("<void/>",i_rToken.Text()) != 0 )
- TheMessages().Out_InvalidConstSymbol( i_rToken.Text(),
- pPositionInfo->CurFile(),
- pPositionInfo->CurLine() );
- (this->*fCurTokenAddFunction)( *new DT_TextToken("<b>void</b>") );
- return;
- }
-
- (this->*fCurTokenAddFunction)( *new DT_Style(i_rToken.Text(),false) );
-}
-
-void
-SapiDocu_PE::Process_XmlConst( const Tok_XmlConst & i_rToken )
-{
- (this->*fCurTokenAddFunction)(*new DT_MupConst(i_rToken.Text()));
-}
-
-void
-SapiDocu_PE::Process_XmlLink_BeginTag( const Tok_XmlLink_BeginTag & i_rToken )
-{
- switch (i_rToken.Id())
- {
- case Tok_XmlLink_Tag::e_const:
- (this->*fCurTokenAddFunction)(*new DT_Style("<b>",false));
- break;
- case Tok_XmlLink_Tag::member:
- (this->*fCurTokenAddFunction)(*new DT_MupMember(i_rToken.Scope()));
- break;
- case Tok_XmlLink_Tag::type:
- (this->*fCurTokenAddFunction)(*new DT_MupType(i_rToken.Scope()));
- break;
- default:
- // Do nothing.
- ;
- }
-
- if ( i_rToken.Dim().length() > 0 )
- sCurDimAttribute = i_rToken.Dim();
- else
- sCurDimAttribute.clear();
-}
-
-void
-SapiDocu_PE::Process_XmlLink_EndTag( const Tok_XmlLink_EndTag & i_rToken )
-{
- switch (i_rToken.Id())
- {
- case Tok_XmlLink_Tag::e_const:
- (this->*fCurTokenAddFunction)(*new DT_Style("</b>",false));
- break;
- case Tok_XmlLink_Tag::member:
- (this->*fCurTokenAddFunction)(*new DT_MupMember);
- break;
- case Tok_XmlLink_Tag::type:
- (this->*fCurTokenAddFunction)(*new DT_MupType);
- break;
- default:
- // Do nothing.
- ;
- }
- if ( sCurDimAttribute.length() > 0 )
- {
- (this->*fCurTokenAddFunction)( *new DT_TextToken(sCurDimAttribute.c_str()) );
- sCurDimAttribute.clear();
- }
-}
-
-void
-SapiDocu_PE::Process_XmlFormat_BeginTag( const Tok_XmlFormat_BeginTag & i_rToken )
-{
- switch (i_rToken.Id())
- {
- case Tok_XmlFormat_Tag::code:
- (this->*fCurTokenAddFunction)(*new DT_Style("<code>",false));
- break;
- case Tok_XmlFormat_Tag::listing:
- (this->*fCurTokenAddFunction)(*new DT_Style("<pre>",true));
- break;
- case Tok_XmlFormat_Tag::atom:
- (this->*fCurTokenAddFunction)(*new DT_Style("<code>",true));
- break;
- default:
- // Do nothing.
- ;
- }
- if ( i_rToken.Dim().length() > 0 )
- sCurDimAttribute = i_rToken.Dim();
- else
- sCurDimAttribute.clear();
-}
-
-void
-SapiDocu_PE::Process_XmlFormat_EndTag( const Tok_XmlFormat_EndTag & i_rToken )
-{
- switch (i_rToken.Id())
- {
- case Tok_XmlFormat_Tag::code:
- (this->*fCurTokenAddFunction)(*new DT_Style("</code>",false));
- break;
- case Tok_XmlFormat_Tag::listing:
- (this->*fCurTokenAddFunction)(*new DT_Style("</pre>",true));
- break;
- case Tok_XmlFormat_Tag::atom:
- (this->*fCurTokenAddFunction)(*new DT_Style("</code>",true));
- break;
- default:
- // Do nothing.
- ;
- }
- if ( sCurDimAttribute.length() > 0 )
- {
- (this->*fCurTokenAddFunction)( *new DT_TextToken(sCurDimAttribute.c_str()) );
- sCurDimAttribute.clear();
- }
-}
-
-void
-SapiDocu_PE::Process_Word( const Tok_Word & i_rToken )
-{
- (this->*fCurTokenAddFunction)(*new DT_TextToken(i_rToken.Text()));
-}
-
-void
-SapiDocu_PE::Process_Comma()
-{
- csv_assert(1==7);
-// (this->*fCurTokenAddFunction)(*new DT_Comma(i_rToken.Text()));
-}
-
-void
-SapiDocu_PE::Process_DocuEnd()
-{
- eState = st_complete;
- if (pCurAtTag)
- pDocu->AddAtTag(*pCurAtTag.Release());
- fCurTokenAddFunction = &SapiDocu_PE::AddDocuToken2Void;
-}
-
-void
-SapiDocu_PE::Process_EOL()
-{
- (this->*fCurTokenAddFunction)(*new DT_EOL);
-}
-
-void
-SapiDocu_PE::Process_White()
-{
- (this->*fCurTokenAddFunction)(*new DT_White);
-}
-
-DYN ary::doc::OldIdlDocu *
-SapiDocu_PE::ReleaseJustParsedDocu()
-{
- if (IsComplete())
- {
- eState = e_none;
- return pDocu.Release();
- }
- return 0;
-}
-
-
-bool
-SapiDocu_PE::IsComplete() const
-{
- return eState == st_complete;
-}
-
-void
-SapiDocu_PE::AddDocuToken2Void( DYN ary::inf::DocuToken & let_drNewToken )
-{
- delete &let_drNewToken;
-}
-
-void
-SapiDocu_PE::AddDocuToken2Short( DYN ary::inf::DocuToken & let_drNewToken )
-{
- csv_assert(pDocu);
- pDocu->AddToken2Short(let_drNewToken);
-}
-
-void
-SapiDocu_PE::AddDocuToken2Description( DYN ary::inf::DocuToken & let_drNewToken )
-{
- csv_assert(pDocu);
- pDocu->AddToken2Description(let_drNewToken);
-}
-
-void
-SapiDocu_PE::AddDocuToken2Deprecated( DYN ary::inf::DocuToken & let_drNewToken )
-{
- csv_assert(pDocu);
- pDocu->AddToken2DeprecatedText(let_drNewToken);
-}
-
-void
-SapiDocu_PE::AddDocuToken2CurAtTag( DYN ary::inf::DocuToken & let_drNewToken )
-{
- csv_assert(pCurAtTag);
- pCurAtTag->AddToken(let_drNewToken);
-}
-
-void
-SapiDocu_PE::SetCurParameterAtTagName( DYN ary::inf::DocuToken & let_drNewToken )
-{
- if (let_drNewToken.IsWhiteOnly())
- {
- delete &let_drNewToken;
- return;
- }
-
- csv_assert(pCurAtTag);
- DT_TextToken * dpText = dynamic_cast< DT_TextToken* >(&let_drNewToken);
- if (dpText != 0)
- pCurAtTag->SetName(dpText->GetText());
- else
- pCurAtTag->SetName("parameter ?");
- delete &let_drNewToken;
- fCurTokenAddFunction = &SapiDocu_PE::AddDocuToken2CurAtTag;
-}
-
-void
-SapiDocu_PE::SetCurSeeAlsoAtTagLinkText( DYN ary::inf::DocuToken & let_drNewToken )
-{
- csv_assert(pCurAtTag);
-
- if (let_drNewToken.IsWhiteOnly())
- {
- delete &let_drNewToken;
- return;
- }
-
- DT_TextToken * pText = dynamic_cast< DT_TextToken* >(&let_drNewToken);
- if (pText != 0)
- pCurAtTag->SetName(pText->GetText());
- else
- {
- DT_MupType *
- pTypeBegin = dynamic_cast< DT_MupType* >(&let_drNewToken);
- DT_MupMember *
- pMemberBegin = dynamic_cast< DT_MupMember* >(&let_drNewToken);
- if (pTypeBegin != 0 OR pMemberBegin != 0)
- {
- sCurAtSeeType_byXML.reset();
-
- sCurAtSeeType_byXML
- << ( pTypeBegin != 0
- ? pTypeBegin->Scope()
- : pMemberBegin->Scope() );
-
- if (sCurAtSeeType_byXML.tellp() > 0)
- {
- sCurAtSeeType_byXML
- << "::";
- }
- delete &let_drNewToken;
- fCurTokenAddFunction = &SapiDocu_PE::SetCurSeeAlsoAtTagLinkText_2;
- return;
- }
- else
- {
- pCurAtTag->SetName("? (no identifier found)");
- }
- }
- delete &let_drNewToken;
- fCurTokenAddFunction = &SapiDocu_PE::AddDocuToken2CurAtTag;
-}
-
-void
-SapiDocu_PE::SetCurSeeAlsoAtTagLinkText_2( DYN ary::inf::DocuToken & let_drNewToken )
-{
- csv_assert(pCurAtTag);
-
- if (let_drNewToken.IsWhiteOnly())
- {
- delete &let_drNewToken;
- return;
- }
-
- DT_TextToken *
- pText = dynamic_cast< DT_TextToken* >(&let_drNewToken);
- if (pText != 0)
- {
- sCurAtSeeType_byXML
- << pText->GetText();
- pCurAtTag->SetName(sCurAtSeeType_byXML.c_str());
- }
- else
- {
- pCurAtTag->SetName("? (no identifier found)");
- }
- sCurAtSeeType_byXML.reset();
- delete &let_drNewToken;
- fCurTokenAddFunction = &SapiDocu_PE::SetCurSeeAlsoAtTagLinkText_3;
-}
-
-void
-SapiDocu_PE::SetCurSeeAlsoAtTagLinkText_3( DYN ary::inf::DocuToken & let_drNewToken )
-{
- csv_assert(pCurAtTag);
-
- if (let_drNewToken.IsWhiteOnly())
- {
- delete &let_drNewToken;
- return;
- }
-
- /// Could emit warning, but don't because this parser is obsolete.
-// Tok_XmlLink_BeginTag *
-// pLinkEnd = dynamic_cast< Tok_XmlLink_EndTag* >(&let_drNewToken);
-// if (pLinkEnd == 0)
-// {
-// warn_aboutMissingClosingTag();
-// }
-
- delete &let_drNewToken;
- fCurTokenAddFunction = &SapiDocu_PE::AddDocuToken2CurAtTag;
-}
-
-const String
- C_sSinceFormat("Correct version format: \"OOo <major>.<minor>[.<micro> if micro is not 0]\".");
-
-void
-SapiDocu_PE::SetCurSinceAtTagVersion_OOo( DYN ary::inf::DocuToken & let_drNewToken )
-{
- csv_assert(pCurAtTag);
-
- DT_TextToken * pToken = dynamic_cast< DT_TextToken* >(&let_drNewToken);
- if (pToken == 0)
- {
- delete &let_drNewToken;
- return;
- }
-
- const String
- sVersion(pToken->GetText());
- if (NOT CheckVersionSyntax_OOo(sVersion))
- {
- Cerr() << "Version information in @since tag has incorrect format.\n"
- << "Found: \"" << sVersion << "\"\n"
- << C_sSinceFormat
- << Endl();
- exit(1);
- }
-
- const autodoc::CommandLine &
- rCommandLine = autodoc::CommandLine::Get_();
- if (NOT rCommandLine.DoesTransform_SinceTag())
- pCurAtTag->AddToken(let_drNewToken);
-
- fCurTokenAddFunction = &SapiDocu_PE::SetCurSinceAtTagVersion_Number;
-}
-
-void
-SapiDocu_PE::SetCurSinceAtTagVersion_Number( DYN ary::inf::DocuToken & let_drNewToken )
-{
- csv_assert(pCurAtTag);
-
- DT_TextToken * pToken = dynamic_cast< DT_TextToken* >(&let_drNewToken);
- if (pToken == 0)
- {
- if (dynamic_cast< DT_White* >(&let_drNewToken) != 0)
- {
- String &
- sValue = pCurAtTag->Access_Text().Access_TextOfFirstToken();
- StreamLock
- sHelp(1000);
- sValue = sHelp() << sValue << " " << c_str;
- }
-
- delete &let_drNewToken;
- return;
- }
-
- const String
- sVersion(pToken->GetText());
- if (NOT CheckVersionSyntax_Number(sVersion))
- {
- Cerr() << "Version information in @since tag has incorrect format.\n"
- << "Found: \"" << sVersion << "\"\n"
- << C_sSinceFormat
- << Endl();
- exit(1);
- }
-
- const autodoc::CommandLine &
- rCommandLine = autodoc::CommandLine::Get_();
- if ( rCommandLine.DoesTransform_SinceTag())
- {
- pCurAtTag->AddToken(let_drNewToken);
-
- if (rCommandLine.DisplayOf_SinceTagValue(sVersion).empty())
- {
- // This is the numbered part, but we don't know it.
- delete &let_drNewToken;
-
- StreamLock
- sl(200);
- sl()
- << "Since-value '"
- << sVersion
- << "' not found in translation table.";
- throw X_Docu("since", sl().c_str());
- }
- }
- else
- {
- AddDocuToken2SinceAtTag(let_drNewToken);
- }
- fCurTokenAddFunction = &SapiDocu_PE::AddDocuToken2SinceAtTag;
-}
-
-void
-SapiDocu_PE::AddDocuToken2SinceAtTag( DYN ary::inf::DocuToken & let_drNewToken )
-{
- csv_assert(pCurAtTag);
- String &
- sValue = pCurAtTag->Access_Text().Access_TextOfFirstToken();
- StreamLock
- sHelp(1000);
-
- DT_TextToken *
- pToken = dynamic_cast< DT_TextToken* >(&let_drNewToken);
- if (pToken != 0)
- {
- sValue = sHelp() << sValue << pToken->GetText() << c_str;
- }
- else if (dynamic_cast< DT_White* >(&let_drNewToken) != 0)
- {
- sValue = sHelp() << sValue << " " << c_str;
- }
- delete &let_drNewToken;
-}
-
-bool
-SapiDocu_PE::CheckVersionSyntax_OOo(const String & i_versionPart1)
-{
- return i_versionPart1 == "OOo"
- OR i_versionPart1 == "OpenOffice.org"
- OR i_versionPart1 == "LibreOffice";
-}
-
-bool
-SapiDocu_PE::CheckVersionSyntax_Number(const String & i_versionPart2)
-{
- if (i_versionPart2.length () == 0)
- return false;
-
- const char
- pt = '.';
- unsigned int countDigit = 0;
- unsigned int countPoint = 0;
- const char *
- pFirstPoint = 0;
- const char *
- pLastPoint = 0;
-
- for ( const char * p = i_versionPart2.begin();
- *p != 0;
- ++p )
- {
- if ( std::isdigit(*p) )
- ++countDigit;
- else if (*p == pt)
- {
- if (countPoint == 0)
- pFirstPoint = p;
- pLastPoint = p;
- ++countPoint;
- }
- }
-
- if ( countDigit + countPoint == i_versionPart2.length() // only digits and points
- AND pFirstPoint != 0 AND countPoint < 3 // 1 or 2 points
- AND pFirstPoint + 1 != pLastPoint // there are digits between two points
- AND *i_versionPart2.begin() != pt AND *(pLastPoint + 1) != 0 // points are surrounded by digits
- AND (*(pLastPoint + 1) != '0' OR pLastPoint == pFirstPoint) ) // the first micro-digit is not 0
- {
- return true;
- }
- return false;
-}
-
-const char *
-AtTagTitle( const Tok_AtTag & i_rToken )
-{
- switch (i_rToken.Id())
- {
- case Tok_AtTag::author: return "";
- case Tok_AtTag::see: return "See also";
- case Tok_AtTag::param: return "Parameters";
- case Tok_AtTag::e_return: return "Returns";
- case Tok_AtTag::e_throw: return "Throws";
- case Tok_AtTag::example: return "Example";
- case Tok_AtTag::deprecated: return "Deprecated";
- case Tok_AtTag::suspicious: return "";
- case Tok_AtTag::missing: return "";
- case Tok_AtTag::incomplete: return "";
- case Tok_AtTag::version: return "";
- case Tok_AtTag::guarantees: return "Guarantees";
- case Tok_AtTag::exception: return "Exception";
- case Tok_AtTag::since: return "Since version";
- default:
- // See below.
- ;
- }
- return i_rToken.Text();
-}
-
-
-
-} // namespace dsapi
-} // namespace csi
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/idoc/tk_atag2.cxx b/autodoc/source/parser_i/idoc/tk_atag2.cxx
deleted file mode 100644
index aa9fb085baf2..000000000000
--- a/autodoc/source/parser_i/idoc/tk_atag2.cxx
+++ /dev/null
@@ -1,76 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <s2_dsapi/tk_atag2.hxx>
-
-
-// NOT FULLY DEFINED SERVICES
-#include <s2_dsapi/tokintpr.hxx>
-
-
-
-using csi::dsapi::Tok_AtTag;
-
-lux::EnumValueMap G_aTokAtTag_EV_TokenId_Values;
-Tok_AtTag::EV_TokenId ev_none2(Tok_AtTag::e_none,"");
-Tok_AtTag::EV_TokenId ev_author(Tok_AtTag::author,"@author");
-Tok_AtTag::EV_TokenId ev_see(Tok_AtTag::see,"@see");
-Tok_AtTag::EV_TokenId ev_param(Tok_AtTag::param,"@param");
-Tok_AtTag::EV_TokenId ev_e_return(Tok_AtTag::e_return,"@return");
-Tok_AtTag::EV_TokenId ev_e_throw(Tok_AtTag::e_throw,"@throws");
-Tok_AtTag::EV_TokenId ev_example(Tok_AtTag::example,"@example");
-Tok_AtTag::EV_TokenId ev_deprecated(Tok_AtTag::deprecated,"@deprecated");
-Tok_AtTag::EV_TokenId ev_suspicious(Tok_AtTag::suspicious,"@suspicious");
-Tok_AtTag::EV_TokenId ev_missing(Tok_AtTag::missing,"@missing");
-Tok_AtTag::EV_TokenId ev_incomplete(Tok_AtTag::incomplete,"@incomplete");
-Tok_AtTag::EV_TokenId ev_version(Tok_AtTag::version,"@version");
-Tok_AtTag::EV_TokenId ev_guarantees(Tok_AtTag::guarantees,"@guarantees");
-Tok_AtTag::EV_TokenId ev_exception(Tok_AtTag::exception,"@exception");
-Tok_AtTag::EV_TokenId ev_since(Tok_AtTag::since,"@since");
-
-
-namespace lux
-{
-template<> EnumValueMap &
-Enum<Tok_AtTag::E_TokenId>::Values_() { return G_aTokAtTag_EV_TokenId_Values; }
-}
-
-
-namespace csi
-{
-namespace dsapi
-{
-
-void
-Tok_AtTag::Trigger( TokenInterpreter & io_rInterpreter ) const
-{
- io_rInterpreter.Process_AtTag(*this);
-}
-
-const char *
-Tok_AtTag::Text() const
-{
- return eTag.Text();
-}
-
-} // namespace dsapi
-} // namespace csi
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/idoc/tk_docw2.cxx b/autodoc/source/parser_i/idoc/tk_docw2.cxx
deleted file mode 100644
index ba68e752bb9c..000000000000
--- a/autodoc/source/parser_i/idoc/tk_docw2.cxx
+++ /dev/null
@@ -1,112 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <s2_dsapi/tk_docw2.hxx>
-
-
-// NOT FULLY DEFINED SERVICES
-#include <s2_dsapi/tokintpr.hxx>
-
-
-
-namespace csi
-{
-namespace dsapi
-{
-
-void
-Tok_Word::Trigger( TokenInterpreter & io_rInterpreter ) const
-{
- io_rInterpreter.Process_Word(*this);
-}
-
-const char *
-Tok_Word::Text() const
-{
- return sText;
-}
-
-void
-Tok_Comma::Trigger( TokenInterpreter & io_rInterpreter ) const
-{
- io_rInterpreter.Process_Comma();
-}
-
-const char *
-Tok_Comma::Text() const
-{
- return ",";
-}
-
-void
-Tok_DocuEnd::Trigger( TokenInterpreter & io_rInterpreter ) const
-{
- io_rInterpreter.Process_DocuEnd();
-}
-
-const char *
-Tok_DocuEnd::Text() const
-{
- return "*/";
-}
-
-void
-Tok_EOL::Trigger( TokenInterpreter & io_rInterpreter ) const
-{
- io_rInterpreter.Process_EOL();
-}
-
-const char *
-Tok_EOL::Text() const
-{
- return "\r\n";
-}
-
-void
-Tok_EOF::Trigger( TokenInterpreter & ) const
-{
- csv_assert(false);
-}
-
-const char *
-Tok_EOF::Text() const
-{
- return "";
-}
-
-void
-Tok_White::Trigger( TokenInterpreter & io_rInterpreter ) const
-{
- io_rInterpreter.Process_White();
-}
-
-const char *
-Tok_White::Text() const
-{
- return " ";
-}
-
-
-
-
-} // namespace dsapi
-} // namespace csi
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/idoc/tk_html.cxx b/autodoc/source/parser_i/idoc/tk_html.cxx
deleted file mode 100644
index 6c072910d499..000000000000
--- a/autodoc/source/parser_i/idoc/tk_html.cxx
+++ /dev/null
@@ -1,51 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <s2_dsapi/tk_html.hxx>
-
-
-// NOT FULLY DEFINED SERVICES
-#include <s2_dsapi/tokintpr.hxx>
-
-
-
-namespace csi
-{
-namespace dsapi
-{
-
-void
-Tok_HtmlTag::Trigger( TokenInterpreter & io_rInterpreter ) const
-{
- io_rInterpreter.Process_HtmlTag(*this);
-}
-
-const char *
-Tok_HtmlTag::Text() const
-{
- return sTag;
-}
-
-
-} // namespace dsapi
-} // namespace csi
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/idoc/tk_xml.cxx b/autodoc/source/parser_i/idoc/tk_xml.cxx
deleted file mode 100644
index 5b9230a7208d..000000000000
--- a/autodoc/source/parser_i/idoc/tk_xml.cxx
+++ /dev/null
@@ -1,167 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <s2_dsapi/tk_xml.hxx>
-
-
-// NOT FULLY DEFINED SERVICES
-#include <s2_dsapi/tokintpr.hxx>
-
-using csi::dsapi::Tok_XmlConst;
-using csi::dsapi::Tok_XmlLink_Tag;
-using csi::dsapi::Tok_XmlFormat_Tag;
-
-
-lux::EnumValueMap G_aTok_XmlConst_EV_TokenId_Values;
-Tok_XmlConst::EV_TokenId ev_consts_none(Tok_XmlConst::e_none,"");
-Tok_XmlConst::EV_TokenId ev_e_true(Tok_XmlConst::e_true,"true");
-Tok_XmlConst::EV_TokenId ev_e_false(Tok_XmlConst::e_false,"false");
-Tok_XmlConst::EV_TokenId ev_e_null(Tok_XmlConst::e_null,"NULL");
-Tok_XmlConst::EV_TokenId ev_e_void(Tok_XmlConst::e_void,"void");
-
-lux::EnumValueMap G_aTok_XmlLink_Tag_EV_TokenId_Values;
-Tok_XmlLink_Tag::EV_TokenId ev_linktags_none(Tok_XmlLink_Tag::e_none,"");
-Tok_XmlLink_Tag::EV_TokenId ev_e_const(Tok_XmlLink_Tag::e_const,"const");
-Tok_XmlLink_Tag::EV_TokenId ev_member(Tok_XmlLink_Tag::member,"member");
-Tok_XmlLink_Tag::EV_TokenId ev_type(Tok_XmlLink_Tag::type,"type");
-
-lux::EnumValueMap G_aTok_XmlFormat_Tag_EV_TokenId_Values;
-Tok_XmlFormat_Tag::EV_TokenId ev_formattags_none(Tok_XmlFormat_Tag::e_none,"");
-Tok_XmlFormat_Tag::EV_TokenId ev_code(Tok_XmlFormat_Tag::code,"code");
-Tok_XmlFormat_Tag::EV_TokenId ev_listing(Tok_XmlFormat_Tag::listing,"listing");
-Tok_XmlFormat_Tag::EV_TokenId ev_atom(Tok_XmlFormat_Tag::atom,"code");
-
-
-namespace lux
-{
-
-template<> EnumValueMap &
-Enum<Tok_XmlConst::E_TokenId>::Values_() { return G_aTok_XmlConst_EV_TokenId_Values; }
-template<> EnumValueMap &
-Enum<Tok_XmlLink_Tag::E_TokenId>::Values_() { return G_aTok_XmlLink_Tag_EV_TokenId_Values; }
-template<> EnumValueMap &
-Enum<Tok_XmlFormat_Tag::E_TokenId>::Values_() { return G_aTok_XmlFormat_Tag_EV_TokenId_Values; }
-
-} // namespace lux
-
-
-
-namespace csi
-{
-namespace dsapi
-{
-
-void
-Tok_XmlConst::Trigger( TokenInterpreter & io_rInterpreter ) const
-{
- io_rInterpreter.Process_XmlConst(*this);
-}
-
-const char *
-Tok_XmlConst::Text() const
-{
- return eTag.Text();
-}
-
-void
-Tok_XmlLink_BeginTag::Trigger( TokenInterpreter & io_rInterpreter ) const
-{
- io_rInterpreter.Process_XmlLink_BeginTag(*this);
-}
-
-const char *
-Tok_XmlLink_BeginTag::Text() const
-{
- static StreamStr ret(120);
- ret.seekp(0);
- if (sScope.length() > 0)
- {
- ret << "<"
- << eTag.Text()
- << " scope=\""
- << sScope
- << "\">";
- }
- else
- {
- ret << "<"
- << eTag.Text()
- << ">";
- }
- return ret.c_str();
-}
-
-void
-Tok_XmlLink_EndTag::Trigger( TokenInterpreter & io_rInterpreter ) const
-{
- io_rInterpreter.Process_XmlLink_EndTag(*this);
-}
-
-const char *
-Tok_XmlLink_EndTag::Text() const
-{
- static StreamStr ret(120);
- ret.seekp(0);
- ret << "</"
- << eTag.Text()
- << ">";
- return ret.c_str();
-}
-
-void
-Tok_XmlFormat_BeginTag::Trigger( TokenInterpreter & io_rInterpreter ) const
-{
- io_rInterpreter.Process_XmlFormat_BeginTag(*this);
-}
-
-const char *
-Tok_XmlFormat_BeginTag::Text() const
-{
- static StreamStr ret(120);
- ret.seekp(0);
- ret << "<"
- << eTag.Text()
- << ">";
- return ret.c_str();
-}
-
-void
-Tok_XmlFormat_EndTag::Trigger( TokenInterpreter & io_rInterpreter ) const
-{
- io_rInterpreter.Process_XmlFormat_EndTag(*this);
-}
-
-const char *
-Tok_XmlFormat_EndTag::Text() const
-{
- static StreamStr ret(120);
- ret.seekp(0);
- ret << "</"
- << eTag.Text()
- << ">";
- return ret.c_str();
-}
-
-
-} // namespace dsapi
-} // namespace csi
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/inc/s2_dsapi/cx_docu2.hxx b/autodoc/source/parser_i/inc/s2_dsapi/cx_docu2.hxx
deleted file mode 100644
index 2fc3cbccc2d6..000000000000
--- a/autodoc/source/parser_i/inc/s2_dsapi/cx_docu2.hxx
+++ /dev/null
@@ -1,226 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef DSAPI_CX_DOCU2_HXX
-#define DSAPI_CX_DOCU2_HXX
-
-// USED SERVICES
- // BASE CLASSES
-#include <tokens/tkpcont2.hxx>
- // COMPONENTS
- // PARAMETERS
-#include <s2_dsapi/tk_xml.hxx>
-
-namespace csi
-{
-namespace dsapi
-{
-
-class Token_Receiver;
-
-
-/**
-@descr
-*/
-
-class Cx_Base : public ::TkpContext
-{
- public:
- virtual bool PassNewToken();
- virtual TkpContext &
- FollowUpContext();
- protected:
- // LIFECYCLE
- Cx_Base(
- Token_Receiver & o_rReceiver,
- TkpContext & i_rFollowUpContext )
- : rReceiver(o_rReceiver),
- pFollowUpContext(&i_rFollowUpContext)
- // pNewToken
- { }
- protected:
- void SetToken(
- DYN Token * let_dpToken )
- { pNewToken = let_dpToken; }
- void Handle_DocuSyntaxError(
- CharacterSource & io_rText );
-
- private:
- // DATA
- Token_Receiver & rReceiver;
- TkpContext * pFollowUpContext;
- Dyn<Token> pNewToken;
-};
-
-
-class Cx_EoHtml : public Cx_Base
-{
- public:
- // LIFECYCLE
- Cx_EoHtml(
- Token_Receiver & o_rReceiver,
- TkpContext & i_rFollowUpContext )
- : Cx_Base(o_rReceiver, i_rFollowUpContext) {}
- // OPERATIONS
- virtual void ReadCharChain(
- CharacterSource & io_rText );
- void SetIfIsStartOfParagraph(
- bool i_bNextTokenProperty )
- { bToken_IsStartOfParagraph = i_bNextTokenProperty; }
-
- private:
- bool bToken_IsStartOfParagraph;
-};
-
-class Cx_EoXmlConst : public Cx_Base
-{
- public:
- // LIFECYCLE
- Cx_EoXmlConst(
- Token_Receiver & o_rReceiver,
- TkpContext & i_rFollowUpContext )
- : Cx_Base(o_rReceiver, i_rFollowUpContext) {}
- // OPERATIONS
- virtual void ReadCharChain(
- CharacterSource & io_rText );
- void SetTokenId(
- lux::Enum< Tok_XmlConst::E_TokenId >
- i_eTokenId )
- { eTokenId = i_eTokenId; }
- private:
- Tok_XmlConst::EV_TokenId
- eTokenId;
-};
-
-class Cx_EoXmlLink_BeginTag : public Cx_Base
-{
- public:
- // LIFECYCLE
- Cx_EoXmlLink_BeginTag(
- Token_Receiver & o_rReceiver,
- TkpContext & i_rFollowUpContext )
- : Cx_Base(o_rReceiver, i_rFollowUpContext) {}
- // OPERATIONS
- virtual void ReadCharChain(
- CharacterSource & io_rText );
- void SetTokenId(
- Tok_XmlLink_BeginTag::EV_TokenId
- i_eTokenId )
- { eTokenId = i_eTokenId; }
- private:
- Tok_XmlLink_BeginTag::EV_TokenId
- eTokenId;
-};
-
-class Cx_EoXmlLink_EndTag : public Cx_Base
-{
- public:
- // LIFECYCLE
- Cx_EoXmlLink_EndTag(
- Token_Receiver & o_rReceiver,
- TkpContext & i_rFollowUpContext )
- : Cx_Base(o_rReceiver, i_rFollowUpContext) {}
- // OPERATIONS
- virtual void ReadCharChain(
- CharacterSource & io_rText );
- void SetTokenId(
- Tok_XmlLink_EndTag::EV_TokenId
- i_eTokenId )
- { eTokenId = i_eTokenId; }
- private:
- Tok_XmlLink_EndTag::E_TokenId
- eTokenId;
-};
-
-class Cx_EoXmlFormat_BeginTag : public Cx_Base
-{
- public:
- // LIFECYCLE
- Cx_EoXmlFormat_BeginTag(
- Token_Receiver & o_rReceiver,
- TkpContext & i_rFollowUpContext )
- : Cx_Base(o_rReceiver, i_rFollowUpContext) {}
- // OPERATIONS
- virtual void ReadCharChain(
- CharacterSource & io_rText );
- void SetTokenId(
- lux::Enum< Tok_XmlFormat_BeginTag::E_TokenId >
- i_eTokenId )
- { eTokenId = i_eTokenId; }
- private:
- lux::Enum< Tok_XmlFormat_BeginTag::E_TokenId >
- eTokenId;
-};
-
-class Cx_EoXmlFormat_EndTag : public Cx_Base
-{
- public:
- // LIFECYCLE
- Cx_EoXmlFormat_EndTag(
- Token_Receiver & o_rReceiver,
- TkpContext & i_rFollowUpContext )
- : Cx_Base(o_rReceiver, i_rFollowUpContext) {}
- // OPERATIONS
- virtual void ReadCharChain(
- CharacterSource & io_rText );
- void SetTokenId(
- lux::Enum< Tok_XmlFormat_EndTag::E_TokenId >
- i_eTokenId )
- { eTokenId = i_eTokenId; }
- private:
- lux::Enum< Tok_XmlFormat_EndTag::E_TokenId >
- eTokenId;
-};
-
-class Cx_CheckStar : public Cx_Base
-{
- public:
- // LIFECYCLE
- Cx_CheckStar(
- Token_Receiver & o_rReceiver,
- TkpContext & i_rFollowUpContext )
- : Cx_Base(o_rReceiver, i_rFollowUpContext),
- bIsEnd(false), bEndTokenFound(false)
- { }
- void Set_End_FolloUpContext(
- TkpContext & i_rEnd_FollowUpContext )
- { pEnd_FollowUpContext = &i_rEnd_FollowUpContext; }
-
- virtual void ReadCharChain(
- CharacterSource & io_rText );
- void SetIsEnd(
- bool i_bIsEnd )
- { bIsEnd = i_bIsEnd; }
- virtual TkpContext &
- FollowUpContext();
- private:
- TkpContext * pEnd_FollowUpContext;
- bool bIsEnd;
- bool bEndTokenFound;
-};
-
-
-} // namespace dsapi
-} // namespace csi
-
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/inc/s2_dsapi/cx_dsapi.hxx b/autodoc/source/parser_i/inc/s2_dsapi/cx_dsapi.hxx
deleted file mode 100644
index 5e1a7cbead4a..000000000000
--- a/autodoc/source/parser_i/inc/s2_dsapi/cx_dsapi.hxx
+++ /dev/null
@@ -1,116 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_CX_DSAPI_HXX
-#define ADC_CX_DSAPI_HXX
-
-// USED SERVICES
- // BASE CLASSES
-#include <tokens/tkpcont2.hxx>
- // COMPONENTS
-#include <cosv/tpl/dyn.hxx>
-#include <tokens/tkpstam2.hxx>
- // PARAMETERS
-
-
-namespace csi
-{
-namespace dsapi
-{
-
-class Token_Receiver;
-class Token;
-
-class Cx_EoHtml;
-class Cx_EoXmlConst;
-class Cx_EoXmlLink_BeginTag;
-class Cx_EoXmlLink_EndTag;
-class Cx_EoXmlFormat_BeginTag;
-class Cx_EoXmlFormat_EndTag;
-class Cx_CheckStar;
-
-/**
-@descr
-*/
-class Context_Docu : public TkpDocuContext,
- private StateMachineContext
-{
- public:
- // LIFECYCLE
- Context_Docu(
- Token_Receiver & o_rReceiver );
- virtual void SetParentContext(
- TkpContext & io_rParentContext,
- const char * i_sMultiLineEndToken );
-
- ~Context_Docu();
- // OPERATIONS
- virtual void ReadCharChain(
- CharacterSource & io_rText );
-
- virtual bool PassNewToken();
- virtual void SetMode_IsMultiLine(
- bool i_bTrue );
-
- // INQUIRY
- virtual TkpContext &
- FollowUpContext();
- private:
- // SERVICE FUNCTIONS
- virtual void PerformStatusFunction(
- uintt i_nStatusSignal,
- UINT16 i_nTokenId,
- CharacterSource & io_rText );
-
- void SetupStateMachine();
-
- // DATA
- StateMachin2 aStateMachine;
- Token_Receiver * pReceiver;
-
- // Contexts
- TkpContext * pParentContext;
- String sMultiLineEndToken;
-
- Dyn<Cx_EoHtml> pCx_EoHtml;
- Dyn<Cx_EoXmlConst> pCx_EoXmlConst;
- Dyn<Cx_EoXmlLink_BeginTag>
- pCx_EoXmlLink_BeginTag;
- Dyn<Cx_EoXmlLink_EndTag>
- pCx_EoXmlLink_EndTag;
- Dyn<Cx_EoXmlFormat_BeginTag>
- pCx_EoXmlFormat_BeginTag;
- Dyn<Cx_EoXmlFormat_EndTag>
- pCx_EoXmlFormat_EndTag;
- Dyn<Cx_CheckStar> pCx_CheckStar;
-
- // Temporary data, used during ReadCharChain()
- Dyn<Token> pNewToken;
- ::TkpContext * pFollowUpContext;
- bool bIsMultiline;
-};
-
-
-} // namespace dsapi
-} // namespace csi
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/inc/s2_dsapi/docu_pe2.hxx b/autodoc/source/parser_i/inc/s2_dsapi/docu_pe2.hxx
deleted file mode 100644
index 609c94ace4ce..000000000000
--- a/autodoc/source/parser_i/inc/s2_dsapi/docu_pe2.hxx
+++ /dev/null
@@ -1,174 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_DSAPI_DOCU_PE2_HXX
-#define ADC_DSAPI_DOCU_PE2_HXX
-
-
-
-// USED SERVICES
- // BASE CLASSES
-#include <s2_dsapi/tokintpr.hxx>
- // COMPONENTS
- // PARAMETERS
-
-class ParserInfo;
-
-namespace ary
-{
-namespace doc
-{
- class OldIdlDocu;
-}
-
-namespace inf
-{
- class DocuToken;
-} // namespace info
-} // namespace ary
-
-
-
-namespace csi
-{
-namespace dsapi
-{
-
-
-class Token;
-class DT_AtTag;
-
-class SapiDocu_PE : public TokenInterpreter
-{
- public:
- SapiDocu_PE(
- ParserInfo & io_rPositionInfo );
- ~SapiDocu_PE();
-
- void ProcessToken(
- DYN csi::dsapi::Token &
- let_drToken );
-
- virtual void Process_AtTag(
- const Tok_AtTag & i_rToken );
- virtual void Process_HtmlTag(
- const Tok_HtmlTag & i_rToken );
- virtual void Process_XmlConst(
- const Tok_XmlConst &
- i_rToken );
- virtual void Process_XmlLink_BeginTag(
- const Tok_XmlLink_BeginTag &
- i_rToken );
- virtual void Process_XmlLink_EndTag(
- const Tok_XmlLink_EndTag &
- i_rToken );
- virtual void Process_XmlFormat_BeginTag(
- const Tok_XmlFormat_BeginTag &
- i_rToken );
- virtual void Process_XmlFormat_EndTag(
- const Tok_XmlFormat_EndTag &
- i_rToken );
- virtual void Process_Word(
- const Tok_Word & i_rToken );
- virtual void Process_Comma();
- virtual void Process_DocuEnd();
- virtual void Process_EOL();
- virtual void Process_White();
-
-
- DYN ary::doc::OldIdlDocu *
- ReleaseJustParsedDocu();
-
- bool IsComplete() const;
-
- private:
- enum E_State
- {
- e_none = 0,
- st_short,
- st_description,
- st_attags,
- st_complete
- };
-
- typedef void ( SapiDocu_PE::*F_TokenAdder )( DYN ary::inf::DocuToken & let_drNewToken );
-
- void AddDocuToken2Void(
- DYN ary::inf::DocuToken &
- let_drNewToken );
- void AddDocuToken2Short(
- DYN ary::inf::DocuToken &
- let_drNewToken );
- void AddDocuToken2Description(
- DYN ary::inf::DocuToken &
- let_drNewToken );
- void AddDocuToken2Deprecated(
- DYN ary::inf::DocuToken &
- let_drNewToken );
- void AddDocuToken2CurAtTag(
- DYN ary::inf::DocuToken &
- let_drNewToken );
- void SetCurParameterAtTagName(
- DYN ary::inf::DocuToken &
- let_drNewToken );
- void SetCurSeeAlsoAtTagLinkText(
- DYN ary::inf::DocuToken &
- let_drNewToken );
- void SetCurSeeAlsoAtTagLinkText_2(
- DYN ary::inf::DocuToken &
- let_drNewToken );
- void SetCurSeeAlsoAtTagLinkText_3(
- DYN ary::inf::DocuToken &
- let_drNewToken );
- void SetCurSinceAtTagVersion_OOo(
- DYN ary::inf::DocuToken &
- let_drNewToken );
- void SetCurSinceAtTagVersion_Number(
- DYN ary::inf::DocuToken &
- let_drNewToken );
- void AddDocuToken2SinceAtTag(
- DYN ary::inf::DocuToken &
- let_drNewToken );
-
- bool CheckVersionSyntax_OOo(
- const String & i_versionPart1 );
- bool CheckVersionSyntax_Number(
- const String & i_versionPart2 );
- // DATA
- Dyn<ary::doc::OldIdlDocu>
- pDocu;
- E_State eState;
- ParserInfo * pPositionInfo;
- F_TokenAdder fCurTokenAddFunction;
-
- Dyn<DT_AtTag> pCurAtTag;
- String sCurDimAttribute;
- StreamStr sCurAtSeeType_byXML;
-};
-
-} // namespace dsapi
-} // namespace csi
-
-
-// IMPLEMENTATION
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/inc/s2_dsapi/dsapitok.hxx b/autodoc/source/parser_i/inc/s2_dsapi/dsapitok.hxx
deleted file mode 100644
index 9ed159217273..000000000000
--- a/autodoc/source/parser_i/inc/s2_dsapi/dsapitok.hxx
+++ /dev/null
@@ -1,58 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef DSAPI_DSAPITOK_HXX
-#define DSAPI_DSAPITOK_HXX
-
-// USED SERVICES
- // BASE CLASSES
-#include <tokens/token2.hxx>
- // COMPONENTS
- // PARAMETERS
-
-
-namespace csi
-{
-namespace dsapi
-{
-
-
-class TokenInterpreter;
-
-
-class Token : public TextToken
-{
- public:
- // LIFECYCLE
- virtual ~Token() {}
-
- // OPERATIONS
- virtual void Trigger(
- TokenInterpreter & io_rInterpreter ) const = 0;
-};
-
-
-} // namespace dsapi
-} // namespace csi
-
-
-#endif
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/inc/s2_dsapi/tk_atag2.hxx b/autodoc/source/parser_i/inc/s2_dsapi/tk_atag2.hxx
deleted file mode 100644
index eadf0d81c85d..000000000000
--- a/autodoc/source/parser_i/inc/s2_dsapi/tk_atag2.hxx
+++ /dev/null
@@ -1,81 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef DSAPI_TK_ATAG2_HXX
-#define DSAPI_TK_ATAG2_HXX
-
-// USED SERVICES
- // BASE CLASSES
-#include <s2_dsapi/dsapitok.hxx>
- // COMPONENTS
- // PARAMETERS
-#include <luxenum.hxx>
-
-namespace csi
-{
-namespace dsapi
-{
-
-
-class Tok_AtTag : public Token
-{
- public:
- // TYPE
- enum E_TokenId
- {
- e_none = 0,
- author = 1,
- see = 2,
- param = 3,
- e_return = 4,
- e_throw = 5,
- example = 6,
- deprecated = 7,
- suspicious = 8,
- missing = 9,
- incomplete = 10,
- version = 11,
- guarantees = 12,
- exception = 13,
- since = 14
- };
- typedef lux::Enum<E_TokenId> EV_TokenId;
-
- // Spring and Fall
- Tok_AtTag(
- EV_TokenId i_eTag )
- : eTag(i_eTag) {}
- // OPERATIONS
- virtual void Trigger(
- TokenInterpreter & io_rInterpreter ) const;
- // INQUIRY
- virtual const char* Text() const;
- E_TokenId Id() const { return eTag; }
-
- private:
- EV_TokenId eTag;
-};
-
-} // namespace dsapi
-} // namespace csi
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/inc/s2_dsapi/tk_docw2.hxx b/autodoc/source/parser_i/inc/s2_dsapi/tk_docw2.hxx
deleted file mode 100644
index 3c3c3e6238a5..000000000000
--- a/autodoc/source/parser_i/inc/s2_dsapi/tk_docw2.hxx
+++ /dev/null
@@ -1,114 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef DSAPI_TK_DOCW2_HXX
-#define DSAPI_TK_DOCW2_HXX
-
-// USED SERVICES
- // BASE CLASSES
-#include <s2_dsapi/dsapitok.hxx>
- // COMPONENTS
- // PARAMETERS
-
-namespace csi
-{
-namespace dsapi
-{
-
-
-class Tok_Word : public Token
-{
- public:
- // Spring and Fall
- Tok_Word(
- const char * i_sText )
- : sText(i_sText) {}
- // OPERATIONS
- virtual void Trigger(
- TokenInterpreter & io_rInterpreter ) const;
- // INQUIRY
- virtual const char* Text() const;
-
- private:
- // DATA
- String sText;
-};
-
-class Tok_Comma : public Token
-{
- public:
- // OPERATIONS
- virtual void Trigger(
- TokenInterpreter & io_rInterpreter ) const;
- // INQUIRY
- virtual const char* Text() const;
-};
-
-class Tok_DocuEnd : public Token
-{
- public:
- // Spring and Fall
- // OPERATIONS
- virtual void Trigger(
- TokenInterpreter & io_rInterpreter ) const;
- // INQUIRY
- virtual const char* Text() const;
-};
-
-class Tok_EOL : public Token
-{
- public:
- // Spring and Fall
- // OPERATIONS
- virtual void Trigger(
- TokenInterpreter & io_rInterpreter ) const;
- // INQUIRY
- virtual const char* Text() const;
-};
-
-class Tok_EOF : public Token
-{
- public:
- // Spring and Fall
- // OPERATIONS
- virtual void Trigger(
- TokenInterpreter & io_rInterpreter ) const;
- // INQUIRY
- virtual const char* Text() const;
-};
-
-class Tok_White : public Token
-{
- public:
- // OPERATIONS
- virtual void Trigger(
- TokenInterpreter & io_rInterpreter ) const;
- // INQUIRY
- virtual const char* Text() const;
-};
-
-
-
-} // namespace dsapi
-} // namespace csi
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/inc/s2_dsapi/tk_html.hxx b/autodoc/source/parser_i/inc/s2_dsapi/tk_html.hxx
deleted file mode 100644
index 8e15d264a9b8..000000000000
--- a/autodoc/source/parser_i/inc/s2_dsapi/tk_html.hxx
+++ /dev/null
@@ -1,66 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef DSAPI_TK_HTML_HXX
-#define DSAPI_TK_HTML_HXX
-
-
-// USED SERVICES
- // BASE CLASSES
-#include <s2_dsapi/dsapitok.hxx>
- // COMPONENTS
- // PARAMETERS
-
-namespace csi
-{
-namespace dsapi
-{
-
-
-class Tok_HtmlTag : public Token
-{
- public:
- // Spring and Fall
- Tok_HtmlTag(
- const char * i_sTag,
- bool i_bIsParagraphStarter )
- : sTag(i_sTag),
- bIsParagraphStarter(i_bIsParagraphStarter)
- {}
- // OPERATIONS
- virtual void Trigger(
- TokenInterpreter & io_rInterpreter ) const;
- // INQUIRY
- virtual const char* Text() const;
- bool IsParagraphStarter() const
- { return bIsParagraphStarter; }
-
- private:
- String sTag;
- bool bIsParagraphStarter;
-};
-
-
-} // namespace dsapi
-} // namespace csi
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/inc/s2_dsapi/tk_xml.hxx b/autodoc/source/parser_i/inc/s2_dsapi/tk_xml.hxx
deleted file mode 100644
index 88ff8e0c7001..000000000000
--- a/autodoc/source/parser_i/inc/s2_dsapi/tk_xml.hxx
+++ /dev/null
@@ -1,194 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef DSAPI_TK_XML_HXX
-#define DSAPI_TK_XML_HXX
-
-// USED SERVICES
- // BASE CLASSES
-#include <s2_dsapi/dsapitok.hxx>
- // COMPONENTS
- // PARAMETERS
-#include <luxenum.hxx>
-
-
-namespace csi
-{
-namespace dsapi
-{
-
-
-class Tok_XmlTag : public Token
-{
- public:
-};
-
-class Tok_XmlConst : public Tok_XmlTag
-{
- public:
- // TYPE
- enum E_TokenId
- {
- e_none = 0,
- e_true = 1,
- e_false = 2,
- e_null = 3,
- e_void = 4
- };
- typedef lux::Enum<E_TokenId> EV_TokenId;
-
- // Spring and Fall
- Tok_XmlConst(
- EV_TokenId i_eTag )
- : eTag(i_eTag) {}
- // OPERATIONS
- virtual void Trigger(
- TokenInterpreter & io_rInterpreter ) const;
- // INQUIRY
- virtual const char* Text() const;
- E_TokenId Id() const { return eTag; }
-
- private:
- // DATA
- EV_TokenId eTag;
-};
-
-class Tok_XmlLink_Tag : public Tok_XmlTag
-{
- public:
- // TYPE
- enum E_TokenId
- {
- e_none = 0,
- e_const = 1,
- member = 2,
- type = 3
- };
- typedef lux::Enum<E_TokenId> EV_TokenId;
-};
-
-class Tok_XmlLink_BeginTag : public Tok_XmlLink_Tag
-{
- public:
- // Spring and Fall
- Tok_XmlLink_BeginTag(
- EV_TokenId i_eTag,
- const String & i_sScope,
- const String & i_sDim )
- : eTag(i_eTag),
- sScope(i_sScope),
- sDim(i_sDim) {}
- // OPERATIONS
- virtual void Trigger(
- TokenInterpreter & io_rInterpreter ) const;
- // INQUIRY
- virtual const char* Text() const;
- E_TokenId Id() const { return eTag; }
- const String & Scope() const { return sScope; }
- const String & Dim() const { return sDim; }
-
- private:
- // DATA
- EV_TokenId eTag;
- String sScope;
- String sDim;
-};
-
-class Tok_XmlLink_EndTag : public Tok_XmlLink_Tag
-{
- public:
- // Spring and Fall
- Tok_XmlLink_EndTag(
- EV_TokenId i_eTag )
- : eTag(i_eTag) {}
- // OPERATIONS
- virtual void Trigger(
- TokenInterpreter & io_rInterpreter ) const;
- // INQUIRY
- virtual const char* Text() const;
- E_TokenId Id() const { return eTag; }
-
- private:
- // DATA
- EV_TokenId eTag;
-};
-
-class Tok_XmlFormat_Tag : public Tok_XmlTag
-{
- public:
- // TYPE
- enum E_TokenId
- {
- e_none = 0,
- code = 1,
- listing = 2,
- atom = 3
- };
- typedef lux::Enum<E_TokenId> EV_TokenId;
-};
-
-class Tok_XmlFormat_BeginTag : public Tok_XmlFormat_Tag
-{
- public:
- // Spring and Fall
- Tok_XmlFormat_BeginTag(
- EV_TokenId i_eTag,
- const String & i_sDim )
- : eTag(i_eTag),
- sDim(i_sDim) {}
- // OPERATIONS
- virtual void Trigger(
- TokenInterpreter & io_rInterpreter ) const;
- // INQUIRY
- virtual const char* Text() const;
- E_TokenId Id() const { return eTag; }
- const String & Dim() const { return sDim; }
-
- private:
- // DATA
- EV_TokenId eTag;
- String sDim;
-};
-
-class Tok_XmlFormat_EndTag : public Tok_XmlFormat_Tag
-{
- public:
- // Spring and Fall
- Tok_XmlFormat_EndTag(
- EV_TokenId i_eTag )
- : eTag(i_eTag) {}
- // OPERATIONS
- virtual void Trigger(
- TokenInterpreter & io_rInterpreter ) const;
- // INQUIRY
- virtual const char* Text() const;
- E_TokenId Id() const { return eTag; }
-
- private:
- // DATA
- EV_TokenId eTag;
-};
-
-
-} // namespace dsapi
-} // namespace csi
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/inc/s2_dsapi/tokintpr.hxx b/autodoc/source/parser_i/inc/s2_dsapi/tokintpr.hxx
deleted file mode 100644
index 3cb73dce7588..000000000000
--- a/autodoc/source/parser_i/inc/s2_dsapi/tokintpr.hxx
+++ /dev/null
@@ -1,87 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_DSAPI_TOKINTPR_HXX
-#define ADC_DSAPI_TOKINTPR_HXX
-
-
-
-// USED SERVICES
- // BASE CLASSES
- // COMPONENTS
- // PARAMETERS
-
-namespace csi
-{
-namespace dsapi
-{
-
-
-class Tok_AtTag;
-class Tok_XmlConst;
-class Tok_XmlLink_BeginTag;
-class Tok_XmlLink_EndTag;
-class Tok_XmlFormat_BeginTag;
-class Tok_XmlFormat_EndTag;
-class Tok_Word;
-class Tok_HtmlTag;
-
-class TokenInterpreter
-{
- public:
- virtual ~TokenInterpreter() {}
-
- virtual void Process_AtTag(
- const Tok_AtTag & i_rToken ) = 0;
- virtual void Process_HtmlTag(
- const Tok_HtmlTag & i_rToken ) = 0;
- virtual void Process_XmlConst(
- const Tok_XmlConst &
- i_rToken ) = 0;
- virtual void Process_XmlLink_BeginTag(
- const Tok_XmlLink_BeginTag &
- i_rToken ) = 0;
- virtual void Process_XmlLink_EndTag(
- const Tok_XmlLink_EndTag &
- i_rToken ) = 0;
- virtual void Process_XmlFormat_BeginTag(
- const Tok_XmlFormat_BeginTag &
- i_rToken ) = 0;
- virtual void Process_XmlFormat_EndTag(
- const Tok_XmlFormat_EndTag &
- i_rToken ) = 0;
- virtual void Process_Word(
- const Tok_Word & i_rToken ) = 0;
- virtual void Process_Comma() = 0;
- virtual void Process_DocuEnd() = 0;
- virtual void Process_EOL() = 0;
- virtual void Process_White() = 0;
-};
-
-
-
-// IMPLEMENTATION
-
-
-} // namespace dsapi
-} // namespace csi
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/inc/s2_dsapi/tokrecv.hxx b/autodoc/source/parser_i/inc/s2_dsapi/tokrecv.hxx
deleted file mode 100644
index 306d1e5c04f4..000000000000
--- a/autodoc/source/parser_i/inc/s2_dsapi/tokrecv.hxx
+++ /dev/null
@@ -1,53 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef DSAPI_TOKRECV_HXX
-#define DSAPI_TOKRECV_HXX
-
-// USED SERVICES
- // BASE CLASSES
- // COMPONENTS
- // PARAMETERS
-
-namespace csi
-{
-namespace dsapi
-{
-
-
-class Token;
-/**
-@descr
-*/
-class Token_Receiver
-{
- public:
- virtual ~Token_Receiver() {}
- virtual void Receive(
- DYN Token & let_drToken ) = 0;
- virtual void Increment_CurLine() = 0;
-};
-
-
-} // namespace dsapi
-} // namespace csi
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/inc/s2_luidl/cx_idlco.hxx b/autodoc/source/parser_i/inc/s2_luidl/cx_idlco.hxx
deleted file mode 100644
index d32b57aa8f16..000000000000
--- a/autodoc/source/parser_i/inc/s2_luidl/cx_idlco.hxx
+++ /dev/null
@@ -1,92 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef LUIDL_CX_IDLCO_HXX
-#define LUIDL_CX_IDLCO_HXX
-
-// USED SERVICES
- // BASE CLASSES
-#include <tokens/tkpcont2.hxx>
- // COMPONENTS
-#include <tokens/tkpstam2.hxx>
- // PARAMETERS
-
-
-namespace csi
-{
-namespace uidl
-{
-
-class Token_Receiver;
-class Token;
-
-/**
-*/
-class Context_UidlCode : public TkpContext,
- private StateMachineContext
-{
- public:
- // LIFECYCLE
- Context_UidlCode(
- Token_Receiver & o_rReceiver,
- DYN TkpDocuContext &
- let_drContext_Docu );
- ~Context_UidlCode();
- // OPERATORS
-
- // OPERATIONS
- virtual void ReadCharChain(
- CharacterSource & io_rText );
- virtual bool PassNewToken();
-
- // INQUIRY
- virtual TkpContext &
- FollowUpContext();
- private:
- // SERVICE FUNCTIONS
- void PerformStatusFunction(
- uintt i_nStatusSignal,
- UINT16 i_nTokenId,
- CharacterSource & io_rText );
- void SetupStateMachine();
-
- // DATA
- StateMachin2 aStateMachine;
- Token_Receiver * pReceiver;
-
- // Contexts
- Dyn<TkpDocuContext> pDocuContext;
-
- Dyn<TkpContext> dpContext_MLComment;
- Dyn<TkpContext> dpContext_SLComment;
- Dyn<TkpContext> dpContext_Preprocessor;
- Dyn<TkpContext> dpContext_Assignment;
-
- // Temporary data, used during ReadCharChain()
- Dyn<Token> pNewToken;
- ::TkpContext * pFollowUpContext;
-};
-
-
-} // namespace uidl
-} // namespace csi
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/inc/s2_luidl/cx_sub.hxx b/autodoc/source/parser_i/inc/s2_luidl/cx_sub.hxx
deleted file mode 100644
index a466f14df371..000000000000
--- a/autodoc/source/parser_i/inc/s2_luidl/cx_sub.hxx
+++ /dev/null
@@ -1,124 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_LUIDL_CX_SUB_HXX
-#define ADC_LUIDL_CX_SUB_HXX
-
-// USED SERVICES
- // BASE CLASSES
-#include <tokens/tkpcont2.hxx>
- // COMPONENTS
- // PARAMETERS
-
-#include "uidl_tok.hxx"
-
-namespace csi
-{
-namespace uidl
-{
-
-class Token_Receiver;
-class Token;
-
-
-class Cx_Base : public ::TkpContext
-{
- public:
- virtual bool PassNewToken();
- virtual TkpContext &
- FollowUpContext();
- protected:
- // LIFECYCLE
- Cx_Base(
- Token_Receiver & o_rReceiver,
- TkpContext & i_rFollowUpContext )
- : rReceiver(o_rReceiver),
- pFollowUpContext(&i_rFollowUpContext),
- pNewToken()
- {}
- protected:
- void SetToken(
- DYN Token * let_dpToken )
- { pNewToken = let_dpToken; }
- Token_Receiver & Receiver() { return rReceiver; }
-
- private:
- // DATA
- Token_Receiver & rReceiver;
- TkpContext * pFollowUpContext;
- Dyn<Token> pNewToken;
-};
-
-
-
-/**
-@descr
-*/
-
-class Context_MLComment : public Cx_Base
-{
- public:
- Context_MLComment(
- Token_Receiver & o_rReceiver,
- TkpContext & i_rFollowUpContext )
- : Cx_Base(o_rReceiver, i_rFollowUpContext) {}
- virtual void ReadCharChain(
- CharacterSource & io_rText );
-};
-
-class Context_SLComment : public Cx_Base
-{
- public:
- Context_SLComment(
- Token_Receiver & o_rReceiver,
- TkpContext & i_rFollowUpContext )
- : Cx_Base(o_rReceiver, i_rFollowUpContext) {}
- virtual void ReadCharChain(
- CharacterSource & io_rText );
-};
-
-class Context_Praeprocessor : public Cx_Base
-{
- public:
- Context_Praeprocessor(
- Token_Receiver & o_rReceiver,
- TkpContext & i_rFollowUpContext )
- : Cx_Base(o_rReceiver, i_rFollowUpContext) {}
- virtual void ReadCharChain(
- CharacterSource & io_rText );
-};
-
-class Context_Assignment : public Cx_Base
-{
- public:
- Context_Assignment(
- Token_Receiver & o_rReceiver,
- TkpContext & i_rFollowUpContext )
- : Cx_Base(o_rReceiver, i_rFollowUpContext) {}
- virtual void ReadCharChain(
- CharacterSource & io_rText );
-};
-
-
-} // namespace uidl
-} // namespace csi
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/inc/s2_luidl/distrib.hxx b/autodoc/source/parser_i/inc/s2_luidl/distrib.hxx
deleted file mode 100644
index eeceabfa476d..000000000000
--- a/autodoc/source/parser_i/inc/s2_luidl/distrib.hxx
+++ /dev/null
@@ -1,264 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef LUIDL_DISTRIB_HXX
-#define LUIDL_DISTRIB_HXX
-
-
-
-// USED SERVICES
- // BASE CLASSES
-#include <s2_luidl/tokrecv.hxx>
-#include <s2_dsapi/tokrecv.hxx>
-#include <s2_luidl/tokproct.hxx>
- // COMPONENTS
- // PARAMETERS
-
-
-class ParserInfo;
-
-namespace ary
-{
- class Repository;
-
-namespace doc
-{
- class OldIdlDocu;
-} // namespace inf
-} // namespace ary)
-
-
-
-namespace csi
-{
-namespace dsapi
-{
- class Token_Receiver;
- class SapiDocu_PE;
-}
-
-
-
-namespace uidl
-{
-
-
-typedef std::vector< DYN Token * > TokenQueue;
-typedef TokenQueue::iterator TokenIterator;
-
-class TokenParser_Uidl;
-class UnoIDL_PE;
-class Token;
-
-
-class TokenDistributor : private TokenProcessing_Types
-
-{
- public:
- TokenDistributor(
- ary::Repository & io_rRepository,
- ParserInfo & io_rParserInfo );
- void SetTokenProvider(
- TokenParser_Uidl & io_rTokenSource );
- void SetTopParseEnvironment(
- UnoIDL_PE & io_pTopParseEnvironment );
- ~TokenDistributor();
-
-
- void Reset() { aDocumentation.Reset(); }
- /** calls pTokenSource->GetNextToken() and checks the incoming tokens, until a
- usable token is found. This token will be forwarded to
- pTopParseEnv;
- */
- void TradeToken();
-
- csi::uidl::Token_Receiver &
- CodeTokens_Receiver();
- csi::dsapi::Token_Receiver &
- DocuTokens_Receiver();
-
- /** Used from PE_File, if there is a docu to get without
- an environment to push (this is the case for modules).
- */
- DYN ary::doc::OldIdlDocu *
- ReleaseLastParsedDocu()
- { return aDocumentation.ReleaseLastParsedDocu(); }
-
- /** Used from PE_File, if the term "published" was parsed.
- The next opened parse environment will be set to be published
- (call ->UnoIDL_PE::SetPublished()).
- */
- void Set_PublishedOn()
- { aProcessingData.Set_PublishedOn(); }
-
-
- private:
- class Documentation;
- class ProcessingData;
- friend class ProcessingData;
-
- class ProcessingData : public csi::uidl::Token_Receiver,
- private TokenProcessing_Types
- {
- public:
- ProcessingData(
- ary::Repository & io_rRepository,
- Documentation & i_rDocuProcessor,
- ParserInfo & io_rParserInfo );
- ~ProcessingData();
- void SetTopParseEnvironment(
- UnoIDL_PE & io_pTopParseEnvironment );
-
-
- /** is called from pTokenSource before finishing a ::TokenParse2::GetNextToken()
- call and passes the just parsed token to this class.
- */
- virtual void Receive(
- DYN csi::uidl::Token &
- let_drToken );
- virtual void Increment_CurLine();
-
- void ProcessCurToken();
-
- UnoIDL_PE & CurEnvironment() const;
- bool NextTokenExists() const;
- void Set_PublishedOn()
- { bPublishedRecentlyOn = true; }
-
- private:
- typedef uintt TokenQ_Position;
- typedef std::pair< UnoIDL_PE *, TokenQ_Position > EnvironmentInfo;
- typedef std::vector< EnvironmentInfo > EnvironmentStack;
-
- void AcknowledgeResult();
- const csi::uidl::Token &
- CurToken() const;
- UnoIDL_PE & CurEnv() const;
- UnoIDL_PE & PushEnv() const;
- uintt CurTokenPosition() const;
- uintt CurEnv_TriedTokenPosition() const;
- void DecrementTryCount();
-
- EnvironmentStack aEnvironments;
- TokenQueue aTokenQueue;
- TokenIterator itCurToken;
- TokenProcessing_Result
- aCurResult;
- uintt nTryCount;
- ary::Repository &
- rRepository;
- ParserInfo & rParserInfo;
- Documentation * pDocuProcessor;
- bool bPublishedRecentlyOn;
- };
-
- class Documentation : public csi::dsapi::Token_Receiver
- {
- public:
- Documentation(
- ParserInfo & io_rParserInfo);
- ~Documentation();
-
- void Reset() { bIsPassedFirstDocu = false; }
-
- virtual void Receive(
- DYN csi::dsapi::Token &
- let_drToken );
- virtual void Increment_CurLine();
- DYN ary::doc::OldIdlDocu *
- ReleaseLastParsedDocu()
- { return pMostRecentDocu.Release(); }
- private:
- Dyn<csi::dsapi::SapiDocu_PE>
- pDocuParseEnv;
- ParserInfo & rParserInfo;
- Dyn<ary::doc::OldIdlDocu>
- pMostRecentDocu;
- bool bIsPassedFirstDocu;
- };
-
- // DATA
- TokenParser_Uidl * pTokenSource;
- Documentation aDocumentation;
- ProcessingData aProcessingData;
-};
-
-
-
-// IMPLEMENTATION
-
-inline void
-TokenDistributor::SetTokenProvider( TokenParser_Uidl & io_rTokenSource )
- { pTokenSource = &io_rTokenSource; }
-
-inline void
-TokenDistributor::SetTopParseEnvironment( UnoIDL_PE & io_pTopParseEnvironment )
- { aProcessingData.SetTopParseEnvironment(io_pTopParseEnvironment); }
-
-inline csi::uidl::Token_Receiver &
-TokenDistributor::CodeTokens_Receiver()
- { return aProcessingData; }
-
-inline csi::dsapi::Token_Receiver &
-TokenDistributor::DocuTokens_Receiver()
- { return aDocumentation; }
-
-inline const csi::uidl::Token &
-TokenDistributor::ProcessingData::CurToken() const
-{
- csv_assert( itCurToken != aTokenQueue.end() );
- csv_assert( *itCurToken != 0 );
- return *(*itCurToken);
-}
-
-inline UnoIDL_PE &
-TokenDistributor::ProcessingData::CurEnv() const
-{
- csv_assert( aEnvironments.size() > 0 );
- csv_assert( aEnvironments.back().first != 0 );
- return *aEnvironments.back().first;
-}
-
-inline UnoIDL_PE &
-TokenDistributor::ProcessingData::PushEnv() const
-{
- csv_assert( aCurResult.pEnv2Push != 0 );
- return *aCurResult.pEnv2Push;
-}
-
-inline uintt
-TokenDistributor::ProcessingData::CurTokenPosition() const
-{
- return itCurToken - aTokenQueue.begin();
-}
-
-inline uintt
-TokenDistributor::ProcessingData::CurEnv_TriedTokenPosition() const
-{
- csv_assert( aEnvironments.size() > 0 );
- return aEnvironments.back().second;
-}
-
-
-} // namespace uidl
-} // namespace csi
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/inc/s2_luidl/parsenv2.hxx b/autodoc/source/parser_i/inc/s2_luidl/parsenv2.hxx
deleted file mode 100644
index 0db352ca6666..000000000000
--- a/autodoc/source/parser_i/inc/s2_luidl/parsenv2.hxx
+++ /dev/null
@@ -1,135 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef LUIDL_PARSENV2_HXX
-#define LUIDL_PARSENV2_HXX
-
-
-// USED SERVICES
- // BASE CLASSES
-#include <s2_luidl/tokproct.hxx>
- // COMPONENTS
-#include <s2_luidl/semnode.hxx>
- // PARAMETERS
-#include <ary/idl/i_types4idl.hxx>
-#include <ary/idl/i_module.hxx>
-
-
-
-class ParserInfo;
-
-namespace ary
-{
- class Repository;
-
-namespace doc
-{
- class OldIdlDocu;
-}
-
-namespace idl
-{
- class CodeEntity;
-}
-}
-
-
-
-namespace csi
-{
-namespace uidl
-{
-
-
-class Token;
-class SemanticNode;
-
-
-class UnoIDL_PE : virtual protected TokenProcessing_Types
-{
- public:
- virtual ~UnoIDL_PE();
-
- virtual void EstablishContacts(
- UnoIDL_PE * io_pParentPE,
- ary::Repository &
- io_rRepository,
- TokenProcessing_Result &
- o_rResult );
-// virtual void EstablishContacts(
-// UnoIDL_PE * io_pParentPE,
-// ary::idl::Gate &
-// io_rGate,
-// TokenProcessing_Result &
-// o_rResult );
- virtual void Enter(
- E_EnvStackAction i_eWayOfEntering );
- virtual void Leave(
- E_EnvStackAction i_eWayOfLeaving );
- virtual void ProcessToken(
- const Token & i_rToken ) = 0;
-
- void SetDocu(
- DYN ary::doc::OldIdlDocu *
- let_dpDocu );
- void SetPublished();
- void SetOptional();
- void PassDocuAt(
- ary::idl::CodeEntity &
- io_rCe );
-
- UnoIDL_PE * Parent() const { return aMyNode.Parent(); }
-
- void SetResult(
- E_TokenDone i_eDone,
- E_EnvStackAction i_eWhat2DoWithEnvStack,
- UnoIDL_PE * i_pParseEnv2Push = 0 )
- { aMyNode.SetTokenResult( i_eDone, i_eWhat2DoWithEnvStack, i_pParseEnv2Push ); }
- virtual const ary::idl::Module &
- CurNamespace() const;
- virtual const ParserInfo &
- ParseInfo() const;
- ary::idl::Gate & Gate() const { return aMyNode.AryGate(); }
- TokenProcessing_Result &
- TokenResult() const { return aMyNode.TokenResult(); }
- DYN ary::doc::OldIdlDocu *
- ReleaseDocu() { return pDocu.Release(); }
- protected:
- UnoIDL_PE();
- ary::Repository & MyRepository() { csv_assert(pRepository != 0);
- return *pRepository; }
- private:
- virtual void InitData();
- virtual void TransferData() = 0;
- virtual void ReceiveData();
-
- SemanticNode aMyNode;
- Dyn<ary::doc::OldIdlDocu>
- pDocu;
- ary::Repository * pRepository;
-};
-
-
-
-
-} // namespace uidl
-} // namespace csi
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/inc/s2_luidl/pe_attri.hxx b/autodoc/source/parser_i/inc/s2_luidl/pe_attri.hxx
deleted file mode 100644
index 37a40346a4a2..000000000000
--- a/autodoc/source/parser_i/inc/s2_luidl/pe_attri.hxx
+++ /dev/null
@@ -1,128 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_UIDL_PE_ATTRI_HXX
-#define ADC_UIDL_PE_ATTRI_HXX
-
-
-
-// USED SERVICES
- // BASE CLASSES
-
-#include <s2_luidl/parsenv2.hxx>
-#include <s2_luidl/pestate.hxx>
- // COMPONENTS
-#include <ary/idl/i_property.hxx>
- // PARAMETERS
-#include <ary/idl/i_gate.hxx>
-
-
-namespace ary
-{
- namespace idl
- {
- class Attribute;
- }
-}
-
-namespace csi
-{
-namespace uidl
-{
-
-
-class PE_Variable;
-class PE_Type;
-
-class PE_Attribute : public UnoIDL_PE,
- public ParseEnvState
-{
- public:
- typedef ary::idl::Ce_id Ce_id;
- typedef ary::idl::Type_id Type_id;
-
- PE_Attribute(
- const Ce_id & i_rCurOwner );
-
- virtual void EstablishContacts(
- UnoIDL_PE * io_pParentPE,
- ary::Repository &
- io_rRepository,
- TokenProcessing_Result &
- o_rResult );
- virtual ~PE_Attribute();
-
- virtual void ProcessToken(
- const Token & i_rToken );
-
- virtual void Process_Identifier(
- const TokIdentifier &
- i_rToken );
- virtual void Process_Stereotype(
- const TokStereotype &
- i_rToken );
- virtual void Process_MetaType(
- const TokMetaType & i_rToken );
- virtual void Process_Punctuation(
- const TokPunctuation &
- i_rToken );
- virtual void Process_Raises();
- virtual void Process_Default();
-
- private:
- enum E_State
- {
- e_none,
- e_start,
- in_variable,
- expect_end,
- in_raise_std, /// before 'get', 'set', ';' or '}'
- in_get,
- in_set
- };
-
- virtual void InitData();
- virtual void ReceiveData();
- virtual void TransferData();
- virtual UnoIDL_PE & MyPE();
-
- // DATA
- E_State eState;
- const Ce_id * pCurOwner;
-
- Dyn<PE_Variable> pPE_Variable;
- Dyn<PE_Type> pPE_Exception;
-
- // object-data
- ary::idl::Attribute *
- pCurAttribute;
- Type_id nCurParsedType;
- String sCurParsedName;
- bool bReadOnly;
- bool bBound;
-};
-
-
-} // namespace uidl
-} // namespace csi
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/inc/s2_luidl/pe_const.hxx b/autodoc/source/parser_i/inc/s2_luidl/pe_const.hxx
deleted file mode 100644
index 05201c616aca..000000000000
--- a/autodoc/source/parser_i/inc/s2_luidl/pe_const.hxx
+++ /dev/null
@@ -1,131 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef LUIDL_PE_CONST_HXX
-#define LUIDL_PE_CONST_HXX
-
-
-// USED SERVICES
- // BASE CLASSES
-#include <s2_luidl/parsenv2.hxx>
-#include <s2_luidl/pestate.hxx>
- // COMPONENTS
- // PARAMETERS
-
-
-namespace csi
-{
-namespace uidl
-{
-
-class PE_Type;
-class PE_Value;
-
-class PE_Constant : public UnoIDL_PE,
- public ParseEnvState
-{
- public:
- PE_Constant();
- virtual void EstablishContacts(
- UnoIDL_PE * io_pParentPE,
- ary::Repository &
- io_rRepository,
- TokenProcessing_Result &
- o_rResult );
- ~PE_Constant();
-
- virtual void ProcessToken(
- const Token & i_rToken );
-
- virtual void Process_Identifier(
- const TokIdentifier &
- i_rToken );
- virtual void Process_Punctuation(
- const TokPunctuation &
- i_rToken );
- virtual void Process_Stereotype(
- const TokStereotype &
- i_rToken );
-
- private:
- enum E_State
- {
- e_none,
- expect_name,
- expect_curl_bracket_open,
- expect_const,
- expect_value,
- expect_finish,
- e_STATES_MAX
- };
- enum E_TokenType
- {
- tt_stereotype,
- tt_identifier,
- tt_punctuation,
- tt_MAX
- };
- typedef void (PE_Constant::*F_TOK)(const char *);
-
-
- void CallHandler(
- const char * i_sTokenText,
- E_TokenType i_eTokenType );
-
- void On_expect_name_Identifier(const char * i_sText);
- void On_expect_curl_bracket_open_Punctuation(const char * i_sText);
- void On_expect_const_Stereotype(const char * i_sText);
- void On_expect_const_Punctuation(const char * i_sText);
- void On_expect_value_Identifier(const char * i_sText);
- void On_expect_finish_Punctuation(const char * i_sText);
- void On_Default(const char * );
-
- void EmptySingleConstData();
- void CreateSingleConstant();
-
- virtual void InitData();
- virtual void ReceiveData();
- virtual void TransferData();
- virtual UnoIDL_PE & MyPE();
-
- // DATA
- static F_TOK aDispatcher[e_STATES_MAX][tt_MAX];
-
- E_State eState;
-
- String sData_Name;
- ary::idl::Ce_id nDataId;
-
- Dyn<PE_Type> pPE_Type;
- ary::idl::Type_id nType;
-
- Dyn<PE_Value> pPE_Value;
- String sName;
- String sAssignment;
-};
-
-
-
-} // namespace uidl
-} // namespace csi
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/inc/s2_luidl/pe_enum2.hxx b/autodoc/source/parser_i/inc/s2_luidl/pe_enum2.hxx
deleted file mode 100644
index b7376551a50b..000000000000
--- a/autodoc/source/parser_i/inc/s2_luidl/pe_enum2.hxx
+++ /dev/null
@@ -1,115 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_UIDL_PE_ENUM2_HXX
-#define ADC_UIDL_PE_ENUM2_HXX
-
-#include <s2_luidl/parsenv2.hxx>
-#include <s2_luidl/pestate.hxx>
-
-
-namespace csi
-{
-namespace uidl
-{
-
-class PE_Value;
-
-class PE_Enum : public UnoIDL_PE,
- public ParseEnvState
-{
- public:
- PE_Enum();
- virtual void EstablishContacts(
- UnoIDL_PE * io_pParentPE,
- ary::Repository & io_rRepository,
- TokenProcessing_Result &
- o_rResult );
- ~PE_Enum();
-
- virtual void ProcessToken(
- const Token & i_rToken );
-
- virtual void Process_Identifier(
- const TokIdentifier &
- i_rToken );
- virtual void Process_Punctuation(
- const TokPunctuation &
- i_rToken );
-
- private:
- enum E_State
- {
- e_none,
- expect_name,
- expect_curl_bracket_open,
- expect_value,
- expect_finish,
- e_STATES_MAX
- };
- enum E_TokenType
- {
- tt_identifier,
- tt_punctuation,
- tt_MAX
- };
- typedef void (PE_Enum::*F_TOK)(const char *);
-
-
- void CallHandler(
- const char * i_sTokenText,
- E_TokenType i_eTokenType );
-
- void On_expect_name_Identifier(const char * i_sText);
- void On_expect_curl_bracket_open_Punctuation(const char * i_sText);
- void On_expect_value_Punctuation(const char * i_sText);
- void On_expect_value_Identifier(const char * i_sText);
- void On_expect_finish_Punctuation(const char * i_sText);
- void On_Default(const char * );
-
- void EmptySingleValueData();
- void CreateSingleValue();
-
- virtual void InitData();
- virtual void ReceiveData();
- virtual void TransferData();
- virtual UnoIDL_PE & MyPE();
-
- // DATA
- static F_TOK aDispatcher[e_STATES_MAX][tt_MAX];
-
- E_State eState;
-
- String sData_Name;
- ary::idl::Ce_id nDataId;
-
- Dyn<PE_Value> pPE_Value;
- String sName;
- String sAssignment;
-};
-
-
-
-} // namespace uidl
-} // namespace csi
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/inc/s2_luidl/pe_evalu.hxx b/autodoc/source/parser_i/inc/s2_luidl/pe_evalu.hxx
deleted file mode 100644
index 6495305f0e4c..000000000000
--- a/autodoc/source/parser_i/inc/s2_luidl/pe_evalu.hxx
+++ /dev/null
@@ -1,115 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef LUIDL_PE_EVALU_HXX
-#define LUIDL_PE_EVALU_HXX
-
-
-
-// USED SERVICES
- // BASE CLASSES
-#include <s2_luidl/parsenv2.hxx>
-#include <s2_luidl/pestate.hxx>
- // COMPONENTS
- // PARAMETERS
-
-
-namespace csi
-{
-namespace uidl
-{
-
-class PE_Value : public UnoIDL_PE,
- public ParseEnvState
-{
- public:
- PE_Value(
- String & o_rName,
- String & o_rAssignment,
- bool i_bIsConst );
- virtual void EstablishContacts(
- UnoIDL_PE * io_pParentPE,
- ary::Repository &
- io_rRepository,
- TokenProcessing_Result &
- o_rResult );
- ~PE_Value();
-
- virtual void ProcessToken(
- const Token & i_rToken );
-
- virtual void Process_Identifier(
- const TokIdentifier &
- i_rToken );
- virtual void Process_Punctuation(
- const TokPunctuation &
- i_rToken );
- virtual void Process_Assignment(
- const TokAssignment &
- i_rToken );
- private:
- enum E_State
- {
- e_none = 0,
- expect_name,
- got_name,
- e_STATES_MAX
- };
- enum E_TokenType /// @ATTENTION Do not change existing values (except of tt_MAX) !!! Else array-indices will break.
- {
- tt_identifier = 0,
- tt_punctuation = 1,
- tt_assignment = 2,
- tt_MAX
- };
- typedef void (PE_Value::*F_TOK)(const char *);
-
-
- void CallHandler(
- const char * i_sTokenText,
- E_TokenType i_eTokenType );
-
- void On_expect_name_Identifier(const char * i_sText);
- void On_got_name_Punctuation(const char * i_sText);
- void On_got_name_Assignment(const char * i_sText);
- void On_Default(const char * );
-
- virtual void InitData();
- virtual void TransferData();
- virtual UnoIDL_PE & MyPE();
-
- bool IsConst() const { return bIsConst; }
-
- static F_TOK aDispatcher[e_STATES_MAX][tt_MAX];
-
- E_State eState;
- String * pName;
- String * pAssignment;
- bool bIsConst;
-};
-
-
-
-} // namespace uidl
-} // namespace csi
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/inc/s2_luidl/pe_excp.hxx b/autodoc/source/parser_i/inc/s2_luidl/pe_excp.hxx
deleted file mode 100644
index fbf6b183b7de..000000000000
--- a/autodoc/source/parser_i/inc/s2_luidl/pe_excp.hxx
+++ /dev/null
@@ -1,240 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef LUIDL_PE_EXCP_HXX
-#define LUIDL_PE_EXCP_HXX
-
-
-
-// USED SERVICES
- // BASE CLASSES
-#include <s2_luidl/parsenv2.hxx>
-#include <s2_luidl/pestate.hxx>
- // COMPONENTS
-#include <s2_luidl/semnode.hxx>
-#include <ary/qualiname.hxx>
- // PARAMETERS
-
-
-
-namespace csi
-{
-namespace uidl
-{
-
-
-class PE_StructElement;
-class PE_Type;
-
-
-class PE_Exception : public UnoIDL_PE
-{
- public:
- PE_Exception();
- virtual void EstablishContacts(
- UnoIDL_PE * io_pParentPE,
- ary::Repository & io_rRepository,
- TokenProcessing_Result &
- o_rResult );
- ~PE_Exception();
- virtual void ProcessToken(
- const Token & i_rToken );
-
- private:
- struct S_Work
- {
- S_Work();
-
- void InitData();
- void Prepare_PE_QualifiedName();
- void Prepare_PE_Element();
- void Data_Set_Name(
- const char * i_sName );
- // DATA
- String sData_Name;
- bool bIsPreDeclaration;
- ary::idl::Ce_id nCurStruct;
-
- Dyn<PE_StructElement>
- pPE_Element;
- ary::idl::Ce_id nCurParsed_ElementRef;
- Dyn<PE_Type> pPE_Type;
- ary::idl::Type_id nCurParsed_Base;
- };
-
- struct S_Stati;
- class PE_StructState;
- friend struct S_Stati;
- friend class PE_StructState;
-
-
- class PE_StructState : public ParseEnvState
- {
- public:
-
- protected:
- PE_StructState(
- PE_Exception & i_rStruct )
- : rStruct(i_rStruct) {}
- void MoveState(
- ParseEnvState & i_rState ) const;
- void SetResult(
- E_TokenDone i_eDone,
- E_EnvStackAction i_eWhat2DoWithEnvStack,
- UnoIDL_PE * i_pParseEnv2Push = 0 ) const
- { rStruct.SetResult(i_eDone, i_eWhat2DoWithEnvStack, i_pParseEnv2Push); }
-
- S_Stati & Stati() const { return *rStruct.pStati; }
- S_Work & Work() const { return rStruct.aWork; }
- PE_Exception & PE() const { return rStruct; }
-
- private:
- virtual UnoIDL_PE & MyPE();
- // DATA
- PE_Exception & rStruct;
- };
-
- class State_None : public PE_StructState
- {
- public:
- State_None(
- PE_Exception & i_rStruct )
- : PE_StructState(i_rStruct) {}
- };
- class State_WaitForName : public PE_StructState
- { // -> Name
- public:
- State_WaitForName(
- PE_Exception & i_rStruct )
- : PE_StructState(i_rStruct) {}
- virtual void Process_Identifier(
- const TokIdentifier &
- i_rToken );
- };
- class State_GotName : public PE_StructState
- { // -> : { ;
- public:
- State_GotName(
- PE_Exception & i_rStruct )
- : PE_StructState(i_rStruct) {}
- virtual void Process_Punctuation(
- const TokPunctuation &
- i_rToken );
- };
- class State_WaitForBase : public PE_StructState
- { // -> Base
- public:
- State_WaitForBase(
- PE_Exception & i_rStruct )
- : PE_StructState(i_rStruct) {}
- virtual void On_SubPE_Left();
- };
- class State_GotBase : public PE_StructState
- { // -> {
- public:
- State_GotBase(
- PE_Exception & i_rStruct )
- : PE_StructState(i_rStruct) {}
- virtual void Process_Punctuation(
- const TokPunctuation &
- i_rToken );
- };
- class State_WaitForElement : public PE_StructState
- { // -> Typ }
- public:
- State_WaitForElement(
- PE_Exception & i_rStruct )
- : PE_StructState(i_rStruct) {}
- virtual void Process_Identifier(
- const TokIdentifier &
- i_rToken );
- virtual void Process_NameSeparator();
- virtual void Process_BuiltInType(
- const TokBuiltInType &
- i_rToken );
- virtual void Process_TypeModifier(
- const TokTypeModifier &
- i_rToken );
- virtual void Process_Punctuation(
- const TokPunctuation &
- i_rToken );
-// virtual void On_SubPE_Left();
- };
- class State_WaitForFinish : public PE_StructState
- { // -> ;
- public:
- State_WaitForFinish(
- PE_Exception & i_rStruct )
- : PE_StructState(i_rStruct) {}
- virtual void Process_Punctuation(
- const TokPunctuation &
- i_rToken );
- };
-
- struct S_Stati
- {
- S_Stati(
- PE_Exception & io_rStruct );
- void SetState(
- ParseEnvState & i_rNextState )
- { pCurStatus = &i_rNextState; }
-
- State_None aNone;
- State_WaitForName aWaitForName;
- State_GotName aGotName;
- State_WaitForBase aWaitForBase;
- State_GotBase aGotBase;
- State_WaitForElement
- aWaitForElement;
- State_WaitForFinish aWaitForFinish;
-
- ParseEnvState * pCurStatus;
- };
-
- virtual void InitData();
- virtual void TransferData();
- virtual void ReceiveData();
-
- public:
-
- void store_Exception();
-
- private:
-
- S_Stati & Stati() { return *pStati; }
- S_Work & Work() { return aWork; }
-
- // DATA
- S_Work aWork;
- Dyn<S_Stati> pStati;
-};
-
-
-inline void
-PE_Exception::PE_StructState::MoveState(
- ParseEnvState & i_rState ) const
- { rStruct.Stati().SetState(i_rState); }
-
-} // namespace uidl
-} // namespace csi
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/inc/s2_luidl/pe_file2.hxx b/autodoc/source/parser_i/inc/s2_luidl/pe_file2.hxx
deleted file mode 100644
index 0ffd912a533c..000000000000
--- a/autodoc/source/parser_i/inc/s2_luidl/pe_file2.hxx
+++ /dev/null
@@ -1,133 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef LUIDL_PE_FILE2_HXX
-#define LUIDL_PE_FILE2_HXX
-
-
-
-// USED SERVICES
- // BASE CLASSES
-#include <s2_luidl/parsenv2.hxx>
-#include <s2_luidl/pestate.hxx>
- // COMPONENTS
- // PARAMETERS
-
-
-namespace ary
-{
-namespace idl
-{
-class Module;
-} // namespace idl
-} // namespace ary
-
-
-namespace csi
-{
-namespace uidl
-{
-
-class TokenDistributor;
-class PE_Service;
-class PE_Singleton;
-class PE_Interface;
-class PE_Struct;
-class PE_Exception;
-class PE_Constant;
-class PE_Enum;
-class PE_Typedef;
-
-
-class PE_File : public UnoIDL_PE,
- public ParseEnvState
-{
- public:
- PE_File(
- TokenDistributor & i_rTokenAdmin,
- const ParserInfo & i_parseInfo );
- virtual void EstablishContacts(
- UnoIDL_PE * io_pParentPE,
- ary::Repository & io_rRepository,
- TokenProcessing_Result &
- o_rResult );
- ~PE_File();
-
- virtual void ProcessToken(
- const Token & i_rToken );
-
- virtual void Process_Identifier(
- const TokIdentifier &
- i_rToken );
- virtual void Process_Punctuation(
- const TokPunctuation &
- i_rToken );
- virtual void Process_MetaType(
- const TokMetaType & i_rToken );
- virtual void Process_Stereotype(
- const TokStereotype &
- i_rToken );
- virtual void Process_Default();
-
- private:
- enum E_State
- {
- e_none,
- e_std,
- wait_for_module,
- wait_for_module_bracket,
- wait_for_module_semicolon,
- in_sub_pe,
- on_default
- };
-
- virtual void InitData();
- virtual void TransferData();
- virtual void ReceiveData();
- virtual UnoIDL_PE & MyPE();
- virtual const ary::idl::Module &
- CurNamespace() const;
- virtual const ParserInfo &
- ParseInfo() const;
- // DATA
- TokenDistributor * pTokenAdmin;
- Dyn<PE_Service> pPE_Service;
- Dyn<PE_Singleton> pPE_Singleton;
- Dyn<PE_Interface> pPE_Interface;
- Dyn<PE_Struct> pPE_Struct;
- Dyn<PE_Exception> pPE_Exception;
- Dyn<PE_Constant> pPE_Constant;
- Dyn<PE_Enum> pPE_Enum;
- Dyn<PE_Typedef> pPE_Typedef;
-
- const ary::idl::Module *
- pCurNamespace;
- const ParserInfo * pParseInfo;
-
- E_State eState;
- uintt nBracketCount_inDefMode;
-};
-
-
-} // namespace uidl
-} // namespace csi
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/inc/s2_luidl/pe_func2.hxx b/autodoc/source/parser_i/inc/s2_luidl/pe_func2.hxx
deleted file mode 100644
index 6bea91dd4b02..000000000000
--- a/autodoc/source/parser_i/inc/s2_luidl/pe_func2.hxx
+++ /dev/null
@@ -1,160 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_UIDL_PE_FUNC2_HXX
-#define ADC_UIDL_PE_FUNC2_HXX
-
-#include "sal/config.h"
-
-#include "sal/types.h"
-
-// USED SERVICES
- // BASE CLASSES
-#include <s2_luidl/parsenv2.hxx>
-#include <s2_luidl/pestate.hxx>
- // COMPONENTS
-#include <ary/idl/i_param.hxx>
- // PARAMETERS
-
-namespace ary
-{
- namespace idl
- {
- class Function;
- }
-}
-
-
-namespace csi
-{
-namespace uidl
-{
-
-class PE_Type;
-class PE_Variable;
-
-class PE_Function : public UnoIDL_PE,
- public ParseEnvState
-{
- public:
- typedef ary::idl::Ce_id RParent;
- typedef ary::idl::Ce_id RFunction;
-
- enum E_Constructor { constructor };
-
- /// Constructor for interfaces.
- PE_Function(
- const RParent & i_rCurInterface );
-
- /// Constructor for single interface based services.
- PE_Function(
- const RParent & i_rCurService,
- E_Constructor i_eCtorMarker );
-
- virtual void EstablishContacts(
- UnoIDL_PE * io_pParentPE,
- ary::Repository & io_rRepository,
- TokenProcessing_Result &
- o_rResult );
- virtual ~PE_Function();
-
- virtual void ProcessToken(
- const Token & i_rToken );
-
- virtual void Process_Stereotype(
- const TokStereotype &
- i_rToken );
- virtual void Process_Identifier(
- const TokIdentifier &
- i_rToken );
- virtual void Process_Punctuation(
- const TokPunctuation &
- i_rToken );
- virtual void Process_BuiltInType(
- const TokBuiltInType &
- i_rToken );
- virtual void Process_ParameterHandling(
- const TokParameterHandling &
- i_rToken );
- virtual void Process_Raises();
- virtual void Process_Default();
-
- private:
- enum E_State
- {
- e_none,
- e_start,
- in_return_type,
- expect_name,
- expect_params_list,
- expect_parameter,
- expect_parameter_variable,
- in_parameter_variable,
- expect_parameter_separator,
- params_finished,
- expect_exceptions_list,
- expect_exception,
- in_exception,
- expect_exception_separator,
- exceptions_finished
- };
-
- void GoIntoReturnType();
- void GoIntoParameterVariable();
- void GoIntoException();
- void OnDefault();
-
- virtual void InitData();
- virtual void ReceiveData();
- virtual void TransferData();
- virtual UnoIDL_PE & MyPE();
-
- // DATA
- E_State eState;
-
- String sData_Name;
- ary::idl::Type_id nData_ReturnType;
- bool bData_Oneway;
- ary::idl::Function *
- pCurFunction;
-
- const RParent * pCurParent;
-
- Dyn<PE_Type> pPE_Type;
- ary::idl::Type_id nCurParsedType; // ReturnType or Exception
-
- String sName;
-
- Dyn<PE_Variable> pPE_Variable;
- ary::idl::E_ParameterDirection
- eCurParsedParam_Direction;
- ary::idl::Type_id nCurParsedParam_Type;
- String sCurParsedParam_Name;
- bool bIsForConstructors;
-};
-
-
-
-} // namespace uidl
-} // namespace csi
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/inc/s2_luidl/pe_iface.hxx b/autodoc/source/parser_i/inc/s2_luidl/pe_iface.hxx
deleted file mode 100644
index 7bdab15c90d1..000000000000
--- a/autodoc/source/parser_i/inc/s2_luidl/pe_iface.hxx
+++ /dev/null
@@ -1,177 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_UIDL_PE_IFACE_HXX
-#define ADC_UIDL_PE_IFACE_HXX
-
-
-
-// USED SERVICES
- // BASE CLASSES
-#include <s2_luidl/parsenv2.hxx>
-#include <s2_luidl/pestate.hxx>
- // COMPONENTS
- // PARAMETERS
-
-namespace ary
-{
-namespace idl
-{
- class Interface;
-}
-}
-
-namespace csi
-{
-namespace uidl
-{
-
-
-
-class PE_Function;
-class PE_Attribute;
-class PE_Type;
-
-class PE_Interface : public UnoIDL_PE,
- public ParseEnvState
-{
- public:
- PE_Interface();
- virtual ~PE_Interface();
-
- virtual void EstablishContacts(
- UnoIDL_PE * io_pParentPE,
- ary::Repository & io_rRepository,
- TokenProcessing_Result &
- o_rResult );
- virtual void ProcessToken(
- const Token & i_rToken );
-
- virtual void Process_MetaType(
- const TokMetaType & i_rToken );
- virtual void Process_Identifier(
- const TokIdentifier &
- i_rToken );
- virtual void Process_Punctuation(
- const TokPunctuation &
- i_rToken );
- virtual void Process_NameSeparator();
- virtual void Process_BuiltInType(
- const TokBuiltInType &
- i_rToken );
- virtual void Process_TypeModifier(
- const TokTypeModifier &
- i_rToken );
- virtual void Process_Stereotype(
- const TokStereotype &
- i_rToken );
- virtual void Process_Default();
-
- private:
- enum E_State /// @ATTENTION Do not change existing values (except of e_STATES_MAX) !!! Else array-indices will break.
- {
- e_none = 0,
- need_uik,
- uik,
- need_ident,
- ident,
- need_interface,
- need_name,
- wait_for_base,
- in_base, // in header, after ":"
- need_curlbr_open,
- e_std,
- in_function,
- in_attribute,
- need_finish,
- in_base_interface, // in body, after "interface"
- e_STATES_MAX
- };
- enum E_TokenType /// @ATTENTION Do not change existing values (except of tt_MAX) !!! Else array-indices will break.
- {
- tt_metatype = 0,
- tt_identifier = 1,
- tt_punctuation = 2,
- tt_startoftype = 3,
- tt_stereotype = 4,
- tt_MAX
- };
- typedef void (PE_Interface::*F_TOK)(const char *);
-
-
- void On_need_uik_MetaType(const char * i_sText);
- void On_uik_Identifier(const char * i_sText);
- void On_uik_Punctuation(const char * i_sText);
- void On_need_ident_MetaType(const char * i_sText);
- void On_ident_Identifier(const char * i_sText);
- void On_ident_Punctuation(const char * i_sText);
- void On_need_interface_MetaType(const char * i_sText);
- void On_need_name_Identifer(const char * i_sText);
- void On_wait_for_base_Punctuation(const char * i_sText);
- void On_need_curlbr_open_Punctuation(const char * i_sText);
- void On_std_Metatype(const char * i_sText);
- void On_std_Punctuation(const char * i_sText);
- void On_std_Stereotype(const char * i_sText);
- void On_std_GotoFunction(const char * i_sText);
- void On_std_GotoAttribute(const char * i_sText);
- void On_std_GotoBaseInterface(const char * i_sText);
- void On_need_finish_Punctuation(const char * i_sText);
- void On_Default(const char * i_sText);
-
- void CallHandler(
- const char * i_sTokenText,
- E_TokenType i_eTokenType );
-
- virtual void InitData();
- virtual void TransferData();
- virtual void ReceiveData();
- virtual UnoIDL_PE & MyPE();
-
- void store_Interface();
-
- // DATA
- static F_TOK aDispatcher[e_STATES_MAX][tt_MAX];
-
- E_State eState;
- String sData_Name;
- bool bIsPreDeclaration;
- ary::idl::Interface *
- pCurInterface;
- ary::idl::Ce_id nCurInterface;
-
- Dyn<PE_Function> pPE_Function;
- Dyn<PE_Attribute> pPE_Attribute;
-
- Dyn<PE_Type> pPE_Type;
- ary::idl::Type_id nCurParsed_Base;
- bool bOptionalMember;
-};
-
-
-
-// IMPLEMENTATION
-
-
-} // namespace uidl
-} // namespace csi
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/inc/s2_luidl/pe_property.hxx b/autodoc/source/parser_i/inc/s2_luidl/pe_property.hxx
deleted file mode 100644
index c81c70b04663..000000000000
--- a/autodoc/source/parser_i/inc/s2_luidl/pe_property.hxx
+++ /dev/null
@@ -1,116 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_UIDL_PE_PROPERTY_HXX
-#define ADC_UIDL_PE_PROPERTY_HXX
-
-
-
-// USED SERVICES
- // BASE CLASSES
-
-#include <s2_luidl/parsenv2.hxx>
-#include <s2_luidl/pestate.hxx>
- // COMPONENTS
-#include <ary/idl/i_property.hxx>
- // PARAMETERS
-#include <ary/idl/i_gate.hxx>
-
-
-namespace csi
-{
-namespace uidl
-{
-
-
-class PE_Variable;
-
-class PE_Property : public UnoIDL_PE,
- public ParseEnvState
-{
- public:
- typedef ary::idl::Ce_id Ce_id;
- typedef ary::idl::Type_id Type_id;
- typedef ary::idl::Property::Stereotypes Stereotypes;
-
-
- PE_Property(
- const Ce_id & i_rCurOwner );
-
- virtual void EstablishContacts(
- UnoIDL_PE * io_pParentPE,
- ary::Repository &
- io_rRepository,
- TokenProcessing_Result &
- o_rResult );
- virtual ~PE_Property();
-
- virtual void ProcessToken(
- const Token & i_rToken );
-
- virtual void Process_Stereotype(
- const TokStereotype &
- i_rToken );
- virtual void Process_MetaType(
- const TokMetaType & i_rToken );
- virtual void Process_Punctuation(
- const TokPunctuation &
- i_rToken );
- virtual void Process_Default();
-
- void PresetOptional() { bIsOptional = true; }
- void PresetStereotypes(
- Stereotypes::E_Flags
- i_eFlag )
- { aStereotypes.Set_Flag(i_eFlag); }
- private:
- enum E_State
- {
- e_none,
- e_start,
- expect_variable,
- in_variable
- };
-
- virtual void InitData();
- virtual void ReceiveData();
- virtual void TransferData();
- virtual UnoIDL_PE & MyPE();
-
- // DATA
- E_State eState;
- const Ce_id * pCurOwner;
-
- Dyn<PE_Variable> pPE_Variable;
-
- // object-data
- Type_id nCurParsedType;
- String sCurParsedName;
- bool bIsOptional;
- Stereotypes aStereotypes;
-};
-
-
-} // namespace uidl
-} // namespace csi
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/inc/s2_luidl/pe_selem.hxx b/autodoc/source/parser_i/inc/s2_luidl/pe_selem.hxx
deleted file mode 100644
index e2dca06ac7ab..000000000000
--- a/autodoc/source/parser_i/inc/s2_luidl/pe_selem.hxx
+++ /dev/null
@@ -1,109 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef LUIDL_PE_SELEM_HXX
-#define LUIDL_PE_SELEM_HXX
-
-
-
-// USED SERVICES
- // BASE CLASSES
-#include <s2_luidl/parsenv2.hxx>
-#include <s2_luidl/pestate.hxx>
- // COMPONENTS
- // PARAMETERS
-#include <ary/idl/i_gate.hxx>
-
-
-namespace csi
-{
-namespace uidl
-{
-
-class PE_Type;
-class Struct;
-
-class PE_StructElement : public UnoIDL_PE,
- public ParseEnvState
-{
- public:
- typedef ary::idl::Ce_id RStructElement;
- typedef ary::idl::Ce_id RStruct;
-
- PE_StructElement( /// Use for Struct-elements
- RStructElement & o_rResult,
- const RStruct & i_rCurStruct,
- const String & i_rCurStructTemplateParam );
- PE_StructElement( /// Use for Exception-elements
- RStructElement & o_rResult,
- const RStruct & i_rCurExc );
- virtual void EstablishContacts(
- UnoIDL_PE * io_pParentPE,
- ary::Repository & io_rRepository,
- TokenProcessing_Result &
- o_rResult );
- ~PE_StructElement();
-
- virtual void ProcessToken(
- const Token & i_rToken );
-
- virtual void Process_Default();
- virtual void Process_Identifier(
- const TokIdentifier &
- i_rToken );
- virtual void Process_Punctuation(
- const TokPunctuation &
- i_rToken );
-
- private:
- enum E_State
- {
- e_none,
- expect_type,
- expect_name,
- expect_finish
- };
-
- virtual void InitData();
- virtual void TransferData();
- virtual UnoIDL_PE & MyPE();
-
- ary::idl::Type_id lhf_FindTemplateParamType() const;
-
- // DATA
- E_State eState;
- RStructElement * pResult;
- const RStruct * pCurStruct;
- bool bIsExceptionElement;
-
- Dyn<PE_Type> pPE_Type;
- ary::idl::Type_id nType;
- String sName;
- const String * pCurStructTemplateParam;
-};
-
-
-
-} // namespace uidl
-} // namespace csi
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/inc/s2_luidl/pe_servi.hxx b/autodoc/source/parser_i/inc/s2_luidl/pe_servi.hxx
deleted file mode 100644
index 780591140f26..000000000000
--- a/autodoc/source/parser_i/inc/s2_luidl/pe_servi.hxx
+++ /dev/null
@@ -1,142 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_UIDL_PE_SERVI_HXX
-#define ADC_UIDL_PE_SERVI_HXX
-
-
-
-// USED SERVICES
- // BASE CLASSES
-#include <s2_luidl/parsenv2.hxx>
-#include <s2_luidl/pestate.hxx>
- // COMPONENTS
- // PARAMETERS
-
-namespace ary
-{
- namespace idl
- {
- class Service;
- class SglIfcService;
- }
-}
-
-namespace csi
-{
-namespace uidl
-{
-
-class PE_Property;
-class PE_Type;
-class PE_Function;
-
-
-class PE_Service : public UnoIDL_PE,
- public ParseEnvState
-{
- public:
- PE_Service();
- virtual ~PE_Service();
-
- virtual void EstablishContacts(
- UnoIDL_PE * io_pParentPE,
- ary::Repository & io_rRepository,
- TokenProcessing_Result &
- o_rResult );
- virtual void ProcessToken(
- const Token & i_rToken );
-
- virtual void Process_MetaType(
- const TokMetaType & i_rToken );
- virtual void Process_Identifier(
- const TokIdentifier &
- i_rToken );
- virtual void Process_Punctuation(
- const TokPunctuation &
- i_rToken );
- virtual void Process_Stereotype(
- const TokStereotype &
- i_rToken );
- virtual void Process_Needs();
- virtual void Process_Observes();
- virtual void Process_Default();
-
- private:
- void On_Default();
-
- enum E_State
- {
- e_none = 0,
- need_name,
- need_curlbr_open,
- e_std,
- in_property,
- in_ifc_type,
- in_service_type,
- expect_ifc_separator,
- expect_service_separator,
- at_ignore,
- need_finish,
- need_base_interface, /// After ":".
- need_curlbr_open_sib, /// After base interface in single interface based service.
- e_std_sib, /// Standard in single interface based service.
- e_STATES_MAX
- };
-
- virtual void InitData();
- virtual void TransferData();
- virtual void ReceiveData();
- virtual UnoIDL_PE & MyPE();
-
- void StartProperty();
-
-
- // DATA
- E_State eState;
- String sData_Name;
- bool bIsPreDeclaration;
- ary::idl::Service * pCurService;
- ary::idl::SglIfcService *
- pCurSiService;
- ary::idl::Ce_id nCurService; // Needed for PE_Attribute.
-
- Dyn<PE_Property> pPE_Property;
- ary::idl::Ce_id nCurParsed_Property;
-
- Dyn<PE_Type> pPE_Type;
- ary::idl::Type_id nCurParsed_Type;
-
- Dyn<PE_Function> pPE_Constructor;
-
- bool bOptionalMember;
-};
-
-
-
-// IMPLEMENTATION
-
-
-} // namespace uidl
-} // namespace csi
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/inc/s2_luidl/pe_singl.hxx b/autodoc/source/parser_i/inc/s2_luidl/pe_singl.hxx
deleted file mode 100644
index 6818ec8b8c15..000000000000
--- a/autodoc/source/parser_i/inc/s2_luidl/pe_singl.hxx
+++ /dev/null
@@ -1,118 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef LUIDL_PE_SINGL_HXX
-#define LUIDL_PE_SINGL_HXX
-
-
-
-// USED SERVICES
- // BASE CLASSES
-#include <s2_luidl/parsenv2.hxx>
-#include <s2_luidl/pestate.hxx>
- // COMPONENTS
- // PARAMETERS
-
-namespace ary
-{
- namespace idl
- {
- class Singleton;
- class SglIfcSingleton;
- }
-}
-
-
-namespace csi
-{
-namespace uidl
-{
-
-class PE_Type;
-
-
-class PE_Singleton : public UnoIDL_PE,
- public ParseEnvState
-{
- public:
- PE_Singleton();
- virtual ~PE_Singleton();
-
- virtual void EstablishContacts(
- UnoIDL_PE * io_pParentPE,
- ary::Repository & io_rRepository,
- TokenProcessing_Result &
- o_rResult );
- virtual void ProcessToken(
- const Token & i_rToken );
-
- virtual void Process_MetaType(
- const TokMetaType & i_rToken );
- virtual void Process_Identifier(
- const TokIdentifier &
- i_rToken );
- virtual void Process_Punctuation(
- const TokPunctuation &
- i_rToken );
- virtual void Process_Default();
-
- private:
- enum E_State
- {
- e_none = 0,
- need_name,
- need_curlbr_open,
- e_std,
- in_service,
- need_finish,
- in_base_interface,
- e_STATES_MAX
- };
-
- void On_Default();
-
- virtual void InitData();
- virtual void TransferData();
- virtual void ReceiveData();
- virtual UnoIDL_PE & MyPE();
-
- // DATA
-// static F_TOK aDispatcher[e_STATES_MAX][tt_MAX];
-
- E_State eState;
- String sData_Name;
- bool bIsPreDeclaration;
- ary::idl::Singleton *
- pCurSingleton;
- ary::idl::SglIfcSingleton *
- pCurSiSingleton;
-
- Dyn<PE_Type> pPE_Type;
- ary::idl::Type_id nCurParsed_Type;
-};
-
-
-} // namespace uidl
-} // namespace csi
-
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/inc/s2_luidl/pe_struc.hxx b/autodoc/source/parser_i/inc/s2_luidl/pe_struc.hxx
deleted file mode 100644
index 9ea84b8308ee..000000000000
--- a/autodoc/source/parser_i/inc/s2_luidl/pe_struc.hxx
+++ /dev/null
@@ -1,266 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef LUIDL_PE_STRUC_HXX
-#define LUIDL_PE_STRUC_HXX
-
-
-
-// USED SERVICES
- // BASE CLASSES
-#include <s2_luidl/parsenv2.hxx>
-#include <s2_luidl/pestate.hxx>
- // COMPONENTS
-#include <s2_luidl/semnode.hxx>
-#include <ary/qualiname.hxx>
- // PARAMETERS
-
-
-
-namespace csi
-{
-namespace uidl
-{
-
-
-class PE_StructElement;
-class PE_Type;
-
-
-class PE_Struct : public UnoIDL_PE
-{
- public:
- PE_Struct();
- virtual void EstablishContacts(
- UnoIDL_PE * io_pParentPE,
- ary::Repository & io_rRepository,
- TokenProcessing_Result &
- o_rResult );
- ~PE_Struct();
- virtual void ProcessToken(
- const Token & i_rToken );
-
- private:
- struct S_Work
- {
- S_Work();
-
- void InitData();
- void Prepare_PE_QualifiedName();
- void Prepare_PE_Element();
- void Data_Set_Name(
- const char * i_sName );
- void Data_Set_TemplateParam(
- const char * i_sTemplateParam );
-
- String sData_Name;
- String sData_TemplateParam;
- bool bIsPreDeclaration;
- ary::idl::Ce_id nCurStruct;
-
- Dyn<PE_StructElement>
- pPE_Element;
- ary::idl::Ce_id nCurParsed_ElementRef;
- Dyn<PE_Type> pPE_Type;
- ary::idl::Type_id nCurParsed_Base;
- };
-
- struct S_Stati;
- class PE_StructState;
- friend struct S_Stati;
- friend class PE_StructState;
-
-
- class PE_StructState : public ParseEnvState
- {
- public:
-
- protected:
- PE_StructState(
- PE_Struct & i_rStruct )
- : rStruct(i_rStruct) {}
- void MoveState(
- ParseEnvState & i_rState ) const;
- void SetResult(
- E_TokenDone i_eDone,
- E_EnvStackAction i_eWhat2DoWithEnvStack,
- UnoIDL_PE * i_pParseEnv2Push = 0 ) const
- { rStruct.SetResult(i_eDone, i_eWhat2DoWithEnvStack, i_pParseEnv2Push); }
-
- S_Stati & Stati() const { return *rStruct.pStati; }
- S_Work & Work() const { return rStruct.aWork; }
- PE_Struct & PE() const { return rStruct; }
-
- private:
- virtual UnoIDL_PE & MyPE();
- // DATA
- PE_Struct & rStruct;
- };
-
- class State_None : public PE_StructState
- {
- public:
- State_None(
- PE_Struct & i_rStruct )
- : PE_StructState(i_rStruct) {}
- };
- class State_WaitForName : public PE_StructState
- { // -> Name
- public:
- State_WaitForName(
- PE_Struct & i_rStruct )
- : PE_StructState(i_rStruct) {}
- virtual void Process_Identifier(
- const TokIdentifier &
- i_rToken );
- };
- class State_GotName : public PE_StructState
- { // -> : { ; <
- public:
- State_GotName(
- PE_Struct & i_rStruct )
- : PE_StructState(i_rStruct) {}
- virtual void Process_Punctuation(
- const TokPunctuation &
- i_rToken );
- };
- class State_WaitForTemplateParam : public PE_StructState
- { // -> Template parameter identifier
- public:
- State_WaitForTemplateParam(
- PE_Struct & i_rStruct )
- : PE_StructState(i_rStruct) {}
- virtual void Process_Identifier(
- const TokIdentifier &
- i_rToken );
- };
- class State_WaitForTemplateEnd : public PE_StructState
- { // -> >
- public:
- State_WaitForTemplateEnd(
- PE_Struct & i_rStruct )
- : PE_StructState(i_rStruct) {}
- virtual void Process_Punctuation(
- const TokPunctuation &
- i_rToken );
- };
- class State_WaitForBase : public PE_StructState
- { // -> Base
- public:
- State_WaitForBase(
- PE_Struct & i_rStruct )
- : PE_StructState(i_rStruct) {}
- virtual void On_SubPE_Left();
- };
- class State_GotBase : public PE_StructState
- { // -> {
- public:
- State_GotBase(
- PE_Struct & i_rStruct )
- : PE_StructState(i_rStruct) {}
- virtual void Process_Punctuation(
- const TokPunctuation &
- i_rToken );
- };
- class State_WaitForElement : public PE_StructState
- { // -> Typ }
- public:
- State_WaitForElement(
- PE_Struct & i_rStruct )
- : PE_StructState(i_rStruct) {}
- virtual void Process_Identifier(
- const TokIdentifier &
- i_rToken );
- virtual void Process_NameSeparator();
- virtual void Process_BuiltInType(
- const TokBuiltInType &
- i_rToken );
- virtual void Process_TypeModifier(
- const TokTypeModifier &
- i_rToken );
- virtual void Process_Punctuation(
- const TokPunctuation &
- i_rToken );
- };
- class State_WaitForFinish : public PE_StructState
- { // -> ;
- public:
- State_WaitForFinish(
- PE_Struct & i_rStruct )
- : PE_StructState(i_rStruct) {}
- virtual void Process_Punctuation(
- const TokPunctuation &
- i_rToken );
- };
-
- struct S_Stati
- {
- S_Stati(
- PE_Struct & io_rStruct );
- void SetState(
- ParseEnvState & i_rNextState )
- { pCurStatus = &i_rNextState; }
-
- State_None aNone;
- State_WaitForName aWaitForName;
- State_GotName aGotName;
- State_WaitForTemplateParam
- aWaitForTemplateParam;
- State_WaitForTemplateEnd
- aWaitForTemplateEnd;
- State_WaitForBase aWaitForBase;
- State_GotBase aGotBase;
- State_WaitForElement
- aWaitForElement;
- State_WaitForFinish aWaitForFinish;
-
- ParseEnvState * pCurStatus;
- };
-
- virtual void InitData();
- virtual void TransferData();
- virtual void ReceiveData();
-
- public:
-
- void store_Struct();
-
- private:
-
- S_Stati & Stati() { return *pStati; }
- S_Work & Work() { return aWork; }
-
- // DATA
- S_Work aWork;
- Dyn<S_Stati> pStati;
-};
-
-
-inline void
-PE_Struct::PE_StructState::MoveState(
- ParseEnvState & i_rState ) const
- { rStruct.Stati().SetState(i_rState); }
-
-} // namespace uidl
-} // namespace csi
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/inc/s2_luidl/pe_tydf2.hxx b/autodoc/source/parser_i/inc/s2_luidl/pe_tydf2.hxx
deleted file mode 100644
index b79578606a1c..000000000000
--- a/autodoc/source/parser_i/inc/s2_luidl/pe_tydf2.hxx
+++ /dev/null
@@ -1,117 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef LUIDL_PE_TYDF2_HXX
-#define LUIDL_PE_TYDF2_HXX
-
-
-
-// USED SERVICES
- // BASE CLASSES
-#include <s2_luidl/parsenv2.hxx>
-#include <s2_luidl/pestate.hxx>
- // COMPONENTS
- // PARAMETERS
-
-
-
-
-namespace csi
-{
-namespace uidl
-{
-
-class PE_Type;
-
-
-class PE_Typedef : public UnoIDL_PE,
- public ParseEnvState
-{
- public:
- PE_Typedef();
- virtual void EstablishContacts(
- UnoIDL_PE * io_pParentPE,
- ary::Repository & io_rRepository,
- TokenProcessing_Result &
- o_rResult );
- ~PE_Typedef();
-
- virtual void ProcessToken(
- const Token & i_rToken );
-
- virtual void Process_Identifier(
- const TokIdentifier &
- i_rToken );
- virtual void Process_Punctuation(
- const TokPunctuation &
- i_rToken );
- virtual void Process_Default();
-
- private:
- enum E_State
- {
- e_none = 0,
- expect_description,
- expect_name,
- got_name,
- e_STATES_MAX
- };
- enum E_TokenType /// @ATTENTION Do not change existing values (except of tt_MAX) !!! Else array-indices will break.
- {
- tt_any = 0,
- tt_identifier,
- tt_punctuation,
- tt_MAX
- };
- typedef void (PE_Typedef::*F_TOK)(const char *);
-
-
- void CallHandler(
- const char * i_sTokenText,
- E_TokenType i_eTokenType );
-
- void On_expect_description_Any(const char * i_sText);
- void On_expect_name_Identifier(const char * i_sText);
- void On_got_name_Punctuation(const char * i_sText);
- void On_Default(const char * );
-
- virtual void InitData();
- virtual void ReceiveData();
- virtual void TransferData();
- virtual UnoIDL_PE & MyPE();
-
- // DATA
- static F_TOK aDispatcher[e_STATES_MAX][tt_MAX];
-
- E_State eState;
- Dyn<PE_Type> pPE_Type;
- ary::idl::Type_id nType;
- String sName;
-};
-
-
-
-} // namespace uidl
-} // namespace csi
-
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/inc/s2_luidl/pe_type2.hxx b/autodoc/source/parser_i/inc/s2_luidl/pe_type2.hxx
deleted file mode 100644
index 63b98dbc0d6b..000000000000
--- a/autodoc/source/parser_i/inc/s2_luidl/pe_type2.hxx
+++ /dev/null
@@ -1,110 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_PE_TYPE2_HXX
-#define ADC_PE_TYPE2_HXX
-
-
-
-// USED SERVICES
- // BASE CLASSES
-#include<s2_luidl/parsenv2.hxx>
-#include<s2_luidl/pestate.hxx>
- // COMPONENTS
-#include<ary/qualiname.hxx>
- // PARAMETERS
-
-
-namespace csi
-{
-namespace uidl
-{
-
-
-class PE_Type : public UnoIDL_PE,
- public ParseEnvState
-{
- public:
- PE_Type(
- ary::idl::Type_id & o_rResult );
- virtual ~PE_Type();
-
- virtual void ProcessToken(
- const Token & i_rToken );
-
- virtual void Process_Identifier(
- const TokIdentifier &
- i_rToken );
- virtual void Process_NameSeparator();
- virtual void Process_Punctuation(
- const TokPunctuation &
- i_rToken );
- virtual void Process_BuiltInType(
- const TokBuiltInType &
- i_rToken );
- virtual void Process_TypeModifier(
- const TokTypeModifier &
- i_rToken );
- virtual void Process_Default();
-
- private:
- enum E_State
- {
- e_none = 0,
- expect_type,
- expect_quname_part,
- expect_quname_separator,
- in_template_type
- };
-
- void Finish();
- PE_Type & MyTemplateType();
-
- virtual void InitData();
- virtual void TransferData();
- virtual UnoIDL_PE & MyPE();
-
- // DATA
- ary::idl::Type_id * pResult;
-
- uintt nIsSequenceCounter;
- uintt nSequenceDownCounter;
- bool bIsUnsigned;
- ary::QualifiedName sFullType;
-
- E_State eState;
- String sLastPart;
-
- Dyn<PE_Type> pPE_TemplateType; /// @attention Recursion, only initiate, if needed!
- ary::idl::Type_id nTemplateType;
- std::vector<ary::idl::Type_id>
- aTemplateParameters;
-};
-
-
-
-// IMPLEMENTATION
-
-
-} // namespace uidl
-} // namespace csi
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/inc/s2_luidl/pe_vari2.hxx b/autodoc/source/parser_i/inc/s2_luidl/pe_vari2.hxx
deleted file mode 100644
index 3eca7567e3c7..000000000000
--- a/autodoc/source/parser_i/inc/s2_luidl/pe_vari2.hxx
+++ /dev/null
@@ -1,100 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_UIDL_PE_VARI2_HXX
-#define ADC_UIDL_PE_VARI2_HXX
-
-
-
-// USED SERVICES
- // BASE CLASSES
-#include <s2_luidl/parsenv2.hxx>
-#include <s2_luidl/pestate.hxx>
- // COMPONENTS
- // PARAMETERS
-
-
-namespace csi
-{
-namespace uidl
-{
-
-
-class PE_Type;
-
-
-class PE_Variable : public UnoIDL_PE,
- public ParseEnvState
-{
- public:
- PE_Variable(
- ary::idl::Type_id & i_rResult_Type,
- String & i_rResult_Name );
- virtual void EstablishContacts(
- UnoIDL_PE * io_pParentPE,
- ary::Repository &
- io_rRepository,
- TokenProcessing_Result &
- o_rResult );
- virtual ~PE_Variable();
-
- virtual void ProcessToken(
- const Token & i_rToken );
-
- virtual void Process_Default();
- virtual void Process_Identifier(
- const TokIdentifier &
- i_rToken );
- virtual void Process_Punctuation(
- const TokPunctuation &
- i_rToken );
- virtual void Process_BuiltInType(
- const TokBuiltInType &
- i_rToken );
- private:
- enum E_State
- {
- e_none,
- expect_type,
- expect_name,
- expect_finish
- };
-
- virtual void InitData();
- virtual void ReceiveData();
- virtual void TransferData();
- virtual UnoIDL_PE & MyPE();
-
- // DATA
- E_State eState;
- ary::idl::Type_id * pResult_Type;
- String * pResult_Name;
-
- Dyn<PE_Type> pPE_Type;
-};
-
-
-
-} // namespace uidl
-} // namespace csi
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/inc/s2_luidl/pestate.hxx b/autodoc/source/parser_i/inc/s2_luidl/pestate.hxx
deleted file mode 100644
index e6bd3c4b10ac..000000000000
--- a/autodoc/source/parser_i/inc/s2_luidl/pestate.hxx
+++ /dev/null
@@ -1,98 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_PESTATE_HXX
-#define ADC_PESTATE_HXX
-
-
-
-// USED SERVICES
- // BASE CLASSES
-#include<s2_luidl/tokintpr.hxx>
-#include<s2_luidl/tokproct.hxx>
- // COMPONENTS
- // PARAMETERS
-
-namespace csi
-{
-namespace uidl
-{
-
-
-class TokIdentifier;
-class TokBuiltInType;
-class TokPunctuation;
-
-class ParseEnvState : public TokenInterpreter,
- virtual protected TokenProcessing_Types
-{
- public:
- virtual void Process_Identifier(
- const TokIdentifier &
- i_rToken );
- virtual void Process_NameSeparator();
- virtual void Process_Punctuation(
- const TokPunctuation &
- i_rToken );
- virtual void Process_BuiltInType(
- const TokBuiltInType &
- i_rToken );
- virtual void Process_TypeModifier(
- const TokTypeModifier &
- i_rToken );
- virtual void Process_MetaType(
- const TokMetaType & i_rToken );
- virtual void Process_Stereotype(
- const TokStereotype &
- i_rToken );
- virtual void Process_ParameterHandling(
- const TokParameterHandling &
- i_rToken );
- virtual void Process_Raises();
- virtual void Process_Needs();
- virtual void Process_Observes();
- virtual void Process_Assignment(
- const TokAssignment &
- i_rToken );
- virtual void Process_EOL();
-
- virtual void On_SubPE_Left();
-
- virtual void Process_Default();
-
- protected:
- ParseEnvState() : bDefaultIsError(true) {}
- void SetDefault2Ignore() { bDefaultIsError = false; }
-
- private:
- virtual UnoIDL_PE & MyPE() = 0;
- bool bDefaultIsError;
-};
-
-
-
-// IMPLEMENTATION
-
-
-} // namespace uidl
-} // namespace csi
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/inc/s2_luidl/semnode.hxx b/autodoc/source/parser_i/inc/s2_luidl/semnode.hxx
deleted file mode 100644
index 598b63667841..000000000000
--- a/autodoc/source/parser_i/inc/s2_luidl/semnode.hxx
+++ /dev/null
@@ -1,82 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_SEMNODE_HXX
-#define ADC_SEMNODE_HXX
-
-// USED SERVICES
- // BASE CLASSES
-#include <s2_luidl/tokproct.hxx>
- // COMPONENTS
- // PARAMETERS
-#include <ary/qualiname.hxx>
-
-
-namespace ary
-{
-namespace idl
-{
- class Gate;
-} // namespace idl
-} // namespace ary
-
-
-namespace csi
-{
-namespace uidl
-{
-
-
-/** is an implementation class for UnoIDL_PE s
-*/
-class SemanticNode : private TokenProcessing_Types
-{
- public:
- SemanticNode();
- void EstablishContacts(
- UnoIDL_PE * io_pParentPE,
- ary::idl::Gate & io_rRepository,
- TokenProcessing_Result &
- o_rResult );
- ~SemanticNode();
-
- void SetTokenResult(
- E_TokenDone i_eDone,
- E_EnvStackAction i_eWhat2DoWithEnvStack,
- UnoIDL_PE * i_pParseEnv2Push = 0 );
- UnoIDL_PE * Parent() const { return pParentPE; }
- ary::idl::Gate & AryGate() const { return *pAryGate; }
- TokenProcessing_Result &
- TokenResult() const { return *pTokenResult; }
-
- private:
- // DATA
- UnoIDL_PE * pParentPE;
- ary::idl::Gate * pAryGate;
- TokenProcessing_Result *
- pTokenResult;
-};
-
-
-} // namespace uidl
-} // namespace csi
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/inc/s2_luidl/tk_const.hxx b/autodoc/source/parser_i/inc/s2_luidl/tk_const.hxx
deleted file mode 100644
index 993d076a0ac6..000000000000
--- a/autodoc/source/parser_i/inc/s2_luidl/tk_const.hxx
+++ /dev/null
@@ -1,57 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_UIDL_TK_CONST_HXX
-#define ADC_UIDL_TK_CONST_HXX
-
-// USED SERVICES
- // BASE CLASSES
-#include <s2_luidl/uidl_tok.hxx>
- // COMPONENTS
- // PARAMETERS
-
-namespace csi
-{
-namespace uidl
-{
-
-
-class TokAssignment : public Token
-{
- public:
- TokAssignment(
- const char * i_sText )
- : sText(i_sText) {}
-
- virtual void Trigger(
- TokenInterpreter & io_rInterpreter ) const;
- virtual const char *
- Text() const;
- private:
- // DATA
- String sText;
-};
-
-
-} // namespace uidl
-} // namespace csi
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/inc/s2_luidl/tk_ident.hxx b/autodoc/source/parser_i/inc/s2_luidl/tk_ident.hxx
deleted file mode 100644
index f6c6bdcd64fd..000000000000
--- a/autodoc/source/parser_i/inc/s2_luidl/tk_ident.hxx
+++ /dev/null
@@ -1,68 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_UIDL_TK_IDENT_HXX
-#define ADC_UIDL_TK_IDENT_HXX
-
-// USED SERVICES
- // BASE CLASSES
-#include <s2_luidl/uidl_tok.hxx>
- // COMPONENTS
- // PARAMETERS
-
-
-namespace csi
-{
-namespace uidl
-{
-
-
-class TokIdentifier : public Token
-{
- public:
- TokIdentifier(
- const char * i_sText )
- : sText(i_sText) {}
-
- virtual void Trigger(
- TokenInterpreter & io_rInterpreter ) const;
- virtual const char *
- Text() const;
- private:
- // DATA
- String sText;
-};
-
-class TokNameSeparator : public Token
-{
- public:
- virtual void Trigger(
- TokenInterpreter & io_rInterpreter ) const;
- virtual const char *
- Text() const;
-};
-
-
-} // namespace uidl
-} // namespace csi
-
-#endif
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/inc/s2_luidl/tk_keyw.hxx b/autodoc/source/parser_i/inc/s2_luidl/tk_keyw.hxx
deleted file mode 100644
index 4f757329ed7f..000000000000
--- a/autodoc/source/parser_i/inc/s2_luidl/tk_keyw.hxx
+++ /dev/null
@@ -1,244 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_UIDL_TK_KEYW_HXX
-#define ADC_UIDL_TK_KEYW_HXX
-
-// USED SERVICES
- // BASE CLASSES
-#include <s2_luidl/uidl_tok.hxx>
- // COMPONENTS
-#include <luxenum.hxx>
- // PARAMETERS
-
-
-namespace csi
-{
-namespace uidl
-{
-
-
-class TokKeyword : public Token
-{
-};
-
-
-class TokBuiltInType : public TokKeyword
-{
- public:
- enum E_TokenId
- {
- e_none = 0,
- bty_any = 1,
- bty_boolean = 2,
- bty_byte = 3,
- bty_char = 4,
- bty_double = 5,
- bty_hyper = 6,
- bty_long = 7,
- bty_short = 8,
- bty_string = 9,
- bty_void = 10,
- bty_ellipse = 11
- };
- typedef lux::Enum<E_TokenId> EV_TokenId;
-
- TokBuiltInType(
- EV_TokenId i_eTag )
- : eTag(i_eTag) {}
-
- virtual void Trigger(
- TokenInterpreter & io_rInterpreter ) const;
- virtual const char *
- Text() const;
- E_TokenId Id() const { return eTag; }
-
- private:
- // DATA
- EV_TokenId eTag;
-};
-
-
-class TokTypeModifier : public TokKeyword
-{
- public:
- enum E_TokenId
- {
- e_none = 0,
- tmod_unsigned = 1,
- tmod_sequence
- };
- typedef lux::Enum<E_TokenId> EV_TokenId;
-
- TokTypeModifier(
- EV_TokenId i_eTag )
- : eTag(i_eTag) {}
- virtual void Trigger(
- TokenInterpreter & io_rInterpreter ) const;
- virtual const char *
- Text() const;
- E_TokenId Id() const { return eTag; }
-
- private:
- // DATA
- EV_TokenId eTag;
-};
-
-class TokMetaType : public TokKeyword
-{
- public:
- enum E_TokenId
- {
- e_none = 0,
- mt_attribute = 1,
- mt_constants,
- mt_enum,
- mt_exception,
- mt_ident,
- mt_interface,
- mt_module,
- mt_property,
- mt_service,
- mt_singleton,
- mt_struct,
- mt_typedef,
- mt_uik
- };
- typedef lux::Enum<E_TokenId> EV_TokenId;
-
- TokMetaType(
- EV_TokenId i_eTag )
- : eTag(i_eTag) {}
-
- virtual void Trigger(
- TokenInterpreter & io_rInterpreter ) const;
- virtual const char *
- Text() const;
- E_TokenId Id() const { return eTag; }
-
-
- private:
- // DATA
- EV_TokenId eTag;
-};
-
-class TokStereotype : public TokKeyword
-{
- public:
- // TYPES
- enum E_TokenId
- {
- e_none = 0,
- ste_bound = 1,
- ste_const,
- ste_constrained,
- ste_maybeambiguous,
- ste_maybedefault,
- ste_maybevoid,
- ste_oneway,
- ste_optional,
- ste_readonly,
- ste_removable,
- ste_virtual,
- ste_transient,
- ste_published
- };
-
- typedef lux::Enum<E_TokenId> EV_TokenId;
-
- TokStereotype(
- EV_TokenId i_eTag )
- : eTag(i_eTag) {}
- // OPERATIONS
- virtual void Trigger(
- TokenInterpreter & io_rInterpreter ) const;
- // INQUIRY
- virtual const char *
- Text() const;
- E_TokenId Id() const { return eTag; }
-
- private:
- // DATA
- EV_TokenId eTag;
-};
-
-class TokParameterHandling : public TokKeyword
-{
- public:
- // TYPES
- enum E_TokenId
- {
- e_none = 0,
- ph_in,
- ph_out,
- ph_inout
- };
- typedef lux::Enum<E_TokenId> EV_TokenId;
-
- TokParameterHandling(
- EV_TokenId i_eTag )
- : eTag(i_eTag) {}
- // OPERATIONS
- virtual void Trigger(
- TokenInterpreter & io_rInterpreter ) const;
- // INQUIRY
- virtual const char *
- Text() const;
- E_TokenId Id() const { return eTag; }
-
- private:
- // DATA
- EV_TokenId eTag;
-};
-
-class TokRaises : public TokKeyword
-{
- public:
- virtual void Trigger(
- TokenInterpreter & io_rInterpreter ) const;
- virtual const char *
- Text() const;
-};
-
-class TokNeeds : public TokKeyword
-{
- public:
- virtual void Trigger(
- TokenInterpreter & io_rInterpreter ) const;
- virtual const char *
- Text() const;
-};
-
-class TokObserves : public TokKeyword
-{
- public:
- virtual void Trigger(
- TokenInterpreter & io_rInterpreter ) const;
- virtual const char *
- Text() const;
-};
-
-
-} // namespace uidl
-} // namespace csi
-
-#endif
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/inc/s2_luidl/tk_punct.hxx b/autodoc/source/parser_i/inc/s2_luidl/tk_punct.hxx
deleted file mode 100644
index b6c4d7edbed4..000000000000
--- a/autodoc/source/parser_i/inc/s2_luidl/tk_punct.hxx
+++ /dev/null
@@ -1,106 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_UIDL_TK_PUNCT_HXX
-#define ADC_UIDL_TK_PUNCT_HXX
-
-// USED SERVICES
- // BASE CLASSES
-#include <s2_luidl/uidl_tok.hxx>
- // COMPONENTS
-#include <luxenum.hxx>
- // PARAMETERS
-
-
-namespace csi
-{
-namespace uidl
-{
-
-
-class TokPunctuation : public Token
-{
- public:
- // TYPES
- enum E_TokenId
- {
- e_none = 0,
- BracketOpen = 1, // (
- BracketClose = 2, // )
- ArrayBracketOpen = 3, // [
- ArrayBracketClose = 4, // ]
- CurledBracketOpen = 5, // {
- CurledBracketClose = 6, // }
- Semicolon = 7, // ;
- Colon = 8, // :
- DoubleColon = 9, // ::
- Comma = 10, // ,
- Minus = 11, // -
- Fullstop = 12, // .
- Lesser = 13, // <
- Greater = 14 // >
- };
- typedef lux::Enum<E_TokenId> EV_TokenId;
-
-
- TokPunctuation(
- EV_TokenId i_eTag )
- : eTag(i_eTag) {}
- // OPERATIONS
- virtual void Trigger(
- TokenInterpreter & io_rInterpreter ) const;
- // INQUIRY
- virtual const char *
- Text() const;
- EV_TokenId Id() const { return eTag; }
-
-
- private:
- // DATA
- EV_TokenId eTag;
-};
-
-class Tok_EOL : public Token
-{
- // OPERATIONS
- virtual void Trigger(
- TokenInterpreter & io_rInterpreter ) const;
- // INQUIRY
- virtual const char *
- Text() const;
-};
-
-class Tok_EOF : public Token
-{
- // OPERATIONS
- virtual void Trigger(
- TokenInterpreter & io_rInterpreter ) const;
- // INQUIRY
- virtual const char *
- Text() const;
-};
-
-
-} // namespace uidl
-} // namespace csi
-
-#endif
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/inc/s2_luidl/tkp_uidl.hxx b/autodoc/source/parser_i/inc/s2_luidl/tkp_uidl.hxx
deleted file mode 100644
index f15368ea0677..000000000000
--- a/autodoc/source/parser_i/inc/s2_luidl/tkp_uidl.hxx
+++ /dev/null
@@ -1,77 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_TKP_UIDL_HXX
-#define ADC_TKP_UIDL_HXX
-
-// USED SERVICES
- // BASE CLASSES
-#include <tokens/tkp2.hxx>
- // COMPONENTS
- // PARAMETRS
-
-class TkpDocuContext;
-
-
-namespace csi
-{
-namespace uidl
-{
-
-
-
-class Token_Receiver;
-class Context_UidlCode;
-
-
-/** This is a TokenParser which is able to parse tokens from
- C++ source code.
-*/
-class TokenParser_Uidl : public TokenParse2
-{
- public:
- // LIFECYCLE
- TokenParser_Uidl(
- Token_Receiver & o_rUidlReceiver,
- DYN TkpDocuContext &
- let_drDocuContext );
- virtual ~TokenParser_Uidl();
-
- // OPERATIONS
- private:
- virtual ::TkpContext &
- CurrentContext();
-
- virtual void SetStartContext();
- virtual void SetCurrentContext(
- TkpContext & io_rContext );
- // DATA
- Dyn<Context_UidlCode>
- pBaseContext;
- ::TkpContext * pCurContext;
-};
-
-
-} // namespace uidl
-} // namespace csi
-
-#endif
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/inc/s2_luidl/tokintpr.hxx b/autodoc/source/parser_i/inc/s2_luidl/tokintpr.hxx
deleted file mode 100644
index a14cbc05c1a0..000000000000
--- a/autodoc/source/parser_i/inc/s2_luidl/tokintpr.hxx
+++ /dev/null
@@ -1,91 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_LUIDL_TOKINTPR_HXX
-#define ADC_LUIDL_TOKINTPR_HXX
-
-
-
-// USED SERVICES
- // BASE CLASSES
- // COMPONENTS
- // PARAMETERS
-
-namespace csi
-{
-namespace uidl
-{
-
-
-class TokIdentifier;
-class TokPunctuation;
-class TokBuiltInType;
-class TokTypeModifier;
-class TokMetaType;
-class TokStereotype;
-class TokParameterHandling;
-class TokAssignment;
-
-
-class TokenInterpreter
-{
- public:
- virtual ~TokenInterpreter() {}
-
- virtual void Process_Identifier(
- const TokIdentifier &
- i_rToken ) = 0;
- virtual void Process_NameSeparator() = 0; // ::
- virtual void Process_Punctuation(
- const TokPunctuation &
- i_rToken ) = 0;
- virtual void Process_BuiltInType(
- const TokBuiltInType &
- i_rToken ) = 0;
- virtual void Process_TypeModifier(
- const TokTypeModifier &
- i_rToken ) = 0;
- virtual void Process_MetaType(
- const TokMetaType & i_rToken ) = 0;
- virtual void Process_Stereotype(
- const TokStereotype &
- i_rToken ) = 0;
- virtual void Process_ParameterHandling(
- const TokParameterHandling &
- i_rToken ) = 0;
- virtual void Process_Raises() = 0;
- virtual void Process_Needs() = 0;
- virtual void Process_Observes() = 0;
- virtual void Process_Assignment(
- const TokAssignment &
- i_rToken ) = 0;
- virtual void Process_EOL() = 0;
-};
-
-
-
-// IMPLEMENTATION
-
-
-} // namespace uidl
-} // namespace csi
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/inc/s2_luidl/tokproct.hxx b/autodoc/source/parser_i/inc/s2_luidl/tokproct.hxx
deleted file mode 100644
index e412aa2fa01a..000000000000
--- a/autodoc/source/parser_i/inc/s2_luidl/tokproct.hxx
+++ /dev/null
@@ -1,86 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_TOKPROCT_HXX
-#define ADC_TOKPROCT_HXX
-
-
-
-// USED SERVICES
- // BASE CLASSES
- // COMPONENTS
- // PARAMETERS
-
-
-namespace csi
-{
-namespace uidl
-{
-
-
-class UnoIDL_PE;
-
-
-/** is a parent class for classes, which take part in parsing tokens semantically.
- It provides some types for them.
-*/
-class TokenProcessing_Types
-{
- public:
- enum E_TokenDone
- {
- not_done = 0,
- done = 1
- };
-
- enum E_EnvStackAction
- {
- stay, // same parse environment
- push_sure, // push sub environment, which must be the correct one
- push_try, // push sub environment, which is tried, if it may be the right one
- pop_success, // return to parent environment, parsing was successful
- pop_failure // return to parent environment, but an error occurred.
- };
-
- struct TokenProcessing_Result
- {
- E_TokenDone eDone;
- E_EnvStackAction eStackAction;
- UnoIDL_PE * pEnv2Push;
-
- TokenProcessing_Result()
- : eDone(not_done), eStackAction(stay), pEnv2Push(0) {}
- void reset() { eDone = not_done; eStackAction = stay; pEnv2Push = 0; }
- };
-
- enum E_ParseResult
- {
- res_error,
- res_complete,
- res_predeclaration
- };
-};
-
-
-} // namespace uidl
-} // namespace csi
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/inc/s2_luidl/tokrecv.hxx b/autodoc/source/parser_i/inc/s2_luidl/tokrecv.hxx
deleted file mode 100644
index 5e15f511fb07..000000000000
--- a/autodoc/source/parser_i/inc/s2_luidl/tokrecv.hxx
+++ /dev/null
@@ -1,53 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef LUIDL_TOKRECV_HXX
-#define LUIDL_TOKRECV_HXX
-
-// USED SERVICES
- // BASE CLASSES
- // COMPONENTS
- // PARAMETERS
-
-namespace csi
-{
-namespace uidl
-{
-
-
-class Token;
-
-/**
-@descr
-*/
-class Token_Receiver
-{
- public:
- virtual ~Token_Receiver() {}
- virtual void Receive(
- DYN Token & let_drToken ) = 0;
- virtual void Increment_CurLine() = 0;
-};
-
-} // namespace uidl
-} // namespace csi
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/inc/s2_luidl/uidl_tok.hxx b/autodoc/source/parser_i/inc/s2_luidl/uidl_tok.hxx
deleted file mode 100644
index 9d05b1015fe7..000000000000
--- a/autodoc/source/parser_i/inc/s2_luidl/uidl_tok.hxx
+++ /dev/null
@@ -1,55 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_UIDL_TOK_HXX
-#define ADC_UIDL_TOK_HXX
-
-// USED SERVICES
- // BASE CLASSES
-#include <tokens/token2.hxx>
- // COMPONENTS
- // PARAMETERS
-
-
-namespace csi
-{
-namespace uidl
-{
-
-
-class TokenInterpreter;
-
-class Token : public TextToken
-{
- public:
- // LIFECYCLE
- virtual ~Token() {}
-
- // OPERATIONS
- virtual void Trigger(
- TokenInterpreter & io_rInterpreter ) const = 0;
-};
-
-} // namespace uidl
-} // namespace csi
-
-#endif
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/inc/semantic/parsenv2.hxx b/autodoc/source/parser_i/inc/semantic/parsenv2.hxx
deleted file mode 100644
index 772242f8f57a..000000000000
--- a/autodoc/source/parser_i/inc/semantic/parsenv2.hxx
+++ /dev/null
@@ -1,44 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_PARSEENV2_HXX
-#define ADC_PARSEENV2_HXX
-
-
-
-// USED SERVICES
- // BASE CLASSES
- // COMPONENTS
- // PARAMETERS
-#include <queue>
-
-
-
-class ParseEnvironment
-{
- public:
- virtual ~ParseEnvironment();
-
- virtual void Enter() = 0;
-};
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/inc/tokens/stmstar2.hxx b/autodoc/source/parser_i/inc/tokens/stmstar2.hxx
deleted file mode 100644
index 68da8606c27a..000000000000
--- a/autodoc/source/parser_i/inc/tokens/stmstar2.hxx
+++ /dev/null
@@ -1,76 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_STMSTAR2_HXX
-#define ADC_STMSTAR2_HXX
-
-// USED SERVICES
- // BASE CLASSES
-#include <tokens/stmstat2.hxx>
- // COMPONENTS
- // PARAMETERS
- // SERVICES
-
-
-class StmArrayStatu2 : public StmStatu2
-{
- public:
- // LIFECYCLE
- StmArrayStatu2(
- intt i_nStatusSize,
- const INT16 * in_aArrayModel,
- uintt i_nTokenId,
- bool in_bIsDefault );
- ~StmArrayStatu2();
-
- // INQUIRY
- StmStatu2::Branch NextBy(
- intt in_nFollowersIndex) const;
- UINT16 TokenId() const { return nTokenId; }
- virtual bool IsADefault() const;
-
- // ACCESS
- virtual StmArrayStatu2 *
- AsArray();
- bool SetBranch(
- intt in_nBranchIx,
- StmStatu2::Branch
- in_nBranch );
- void SetTokenId(
- UINT16 in_nTokenId );
- private:
- StmStatu2::Branch * dpBranches;
- intt nNrOfBranches;
- UINT16 nTokenId;
- bool bIsADefault;
-};
-
-
-// IMPLEMENTATION
-
-inline void
-StmArrayStatu2::SetTokenId( UINT16 in_nTokenId )
- { nTokenId = in_nTokenId; }
-
-
-
-#endif
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/inc/tokens/stmstat2.hxx b/autodoc/source/parser_i/inc/tokens/stmstat2.hxx
deleted file mode 100644
index e8e9a449ce92..000000000000
--- a/autodoc/source/parser_i/inc/tokens/stmstat2.hxx
+++ /dev/null
@@ -1,61 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_STMSTAT2_HXX
-#define ADC_STMSTAT2_HXX
-
-// USED SERVICES
- // BASE CLASSES
- // COMPONENTS
- // PARAMETERS
-class StmArrayStatu2;
-class StmBoundsStatu2;
-
-/** A StmStatu2 is a state within a StateMachin2.
- There are two kinds of it. Either its an array of pointers to
- other states within the state machine - an ArrayStatus.
-
- Or it is a BoundsStatus, which shows, the token cannot be
- followed further within the StateMachin2.
-**/
-class StmStatu2 // := "State machine status"
-{
- public:
- typedef intt Branch; /// Values >= 0 give a next #Status' ID.
- /// Values <= 0 tell, that a token is finished.
- /// a value < 0 returns the status back to an upper level state machine.
- // LIFECYCLE
- virtual ~StmStatu2() {}
-
- // OPERATIONS
- virtual StmArrayStatu2 *
- AsArray();
- virtual StmBoundsStatu2 *
- AsBounds();
-
- // INQUIRY
- virtual bool IsADefault() const = 0;
-};
-
-
-
-#endif
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/inc/tokens/stmstfi2.hxx b/autodoc/source/parser_i/inc/tokens/stmstfi2.hxx
deleted file mode 100644
index f74eb47acd62..000000000000
--- a/autodoc/source/parser_i/inc/tokens/stmstfi2.hxx
+++ /dev/null
@@ -1,68 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_STMSTFI2_HXX
-#define ADC_STMSTFI2_HXX
-
-// USED SERVICES
- // BASE CLASSES
-#include <tokens/stmstat2.hxx>
- // COMPONENTS
- // PARAMETERS
-
-
-class TkpContext;
-
-/**
-**/
-class StmBoundsStatu2 : public StmStatu2
-{
- public:
- // LIFECYCLE
- StmBoundsStatu2(
- TkpContext & i_rFollowUpContext,
- uintt i_nStatusFunctionNr,
- bool i_bIsDefault );
- // INQUIRY
- TkpContext * FollowUpContext();
- uintt StatusFunctionNr() const;
- virtual bool IsADefault() const;
-
- // ACCESS
- virtual StmBoundsStatu2 *
- AsBounds();
-
- private:
- TkpContext * pFollowUpContext;
- uintt nStatusFunctionNr;
- bool bIsDefault;
-};
-
-inline TkpContext *
-StmBoundsStatu2::FollowUpContext()
- { return pFollowUpContext; }
-inline uintt
-StmBoundsStatu2::StatusFunctionNr() const
- { return nStatusFunctionNr; }
-
-
-#endif
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/inc/tokens/tkp2.hxx b/autodoc/source/parser_i/inc/tokens/tkp2.hxx
deleted file mode 100644
index 75c88e6bab3c..000000000000
--- a/autodoc/source/parser_i/inc/tokens/tkp2.hxx
+++ /dev/null
@@ -1,77 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_TKP2_HXX
-#define ADC_TKP2_HXX
-
-// USED SERVICES
- // BASE CLASSES
- // COMPONENTS
-class CharacterSource;
-class TkpContext;
- // PARAMETRS
-
-
-
-/** This is the interface for parser classes, which get a sequence of Token s from
- a text.
-
- Start() starts to parse the text from the given i_rSource.
- GetNextToken() returns a Token on the heap as long as there are
- still characters in the text left. The last time GetNextToken()
- returns NULL.
-
- The algorithms for parsing tokens from the text are an issue of
- the derived classes.
-*/
-class TokenParse2
-{
- public:
- // LIFECYCLE
- TokenParse2();
- virtual ~TokenParse2() {}
-
- // OPERATIONS
- virtual void Start(
- CharacterSource &
- i_rSource );
-
- /** @short Gets the next identifiable token out of the
- source code.
- @return true, if there was passed a valid token.
- false, if the parsed stream is finished or
- an error occurred.
- */
- bool GetNextToken();
-
- private:
- virtual void SetStartContext() = 0;
- virtual void SetCurrentContext(
- TkpContext & io_rContext ) = 0;
- virtual TkpContext &
- CurrentContext() = 0;
- // DATA
- CharacterSource * pChars;
-};
-
-
-#endif
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/inc/tokens/tkpcont2.hxx b/autodoc/source/parser_i/inc/tokens/tkpcont2.hxx
deleted file mode 100644
index 636c6d772110..000000000000
--- a/autodoc/source/parser_i/inc/tokens/tkpcont2.hxx
+++ /dev/null
@@ -1,116 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_TKPCONT2_HXX
-#define ADC_TKPCONT2_HXX
-
-// USED SERVICES
- // BASE CLASSES
- // COMPONENTS
- // PARAMETERS
-class CharacterSource;
-class TkpNullContext;
-class TkpNullContex2;
-
-/** @task
- Specifies a context within which tokens are interpreted in a special
- way. For example in parsing C++ there could be a context for code,
- one for comments and a third one for preprocessor statements, because
- each of these would give the same token different meanings.
-**/
-class TkpContext
-{
- public:
- // LIFECYCLE
- virtual ~TkpContext() {}
-
- // OPERATIONS
- /** @descr
- The functions starts to parse with the CurToken() of io_rText.
- It leaves io_rText at the first char of the following Token or
- the following Context.
-
- This function returns, when a context has parsed some characterss
- and completed a token OR left the context.
- If the token is to be ignored, PassNewToken() returns false
- and cuts the token from io_rText.
- If the token is to be parsed further in a different context,
- PassNewToken() returns false, but the token is
- NOT cut from io_rText.
-
- If the function has found a valid and complete token, PassNewToken()
- passes the parsed token to the internally known receiver and
- returns true. The token is cut from io_rText.
- **/
- virtual void ReadCharChain(
- CharacterSource & io_rText ) = 0;
- /** Has to pass the parsed token to a known receiver.
- @return true, if a token was passed.
- false, if no token was parsed complete by this context.
- */
- virtual bool PassNewToken() = 0;
- virtual TkpContext &
- FollowUpContext() = 0;
-
- static TkpNullContext &
- Null_();
-};
-
-TkpNullContex2 & TkpContext_Null2_();
-
-class StateMachineContext
-{
- public:
- virtual ~StateMachineContext() {}
-
- /// Is used by StmBoundsStatu2 only.
- virtual void PerformStatusFunction(
- uintt i_nStatusSignal,
- UINT16 i_nTokenId,
- CharacterSource & io_rText ) = 0;
-};
-
-class TkpNullContex2 : public TkpContext
-{
- public:
- ~TkpNullContex2();
-
- virtual void ReadCharChain(
- CharacterSource & io_rText );
- virtual bool PassNewToken();
- virtual TkpContext &
- FollowUpContext();
-};
-
-class TkpDocuContext : public TkpContext
-{
- public:
- virtual void SetParentContext(
- TkpContext & io_rParentContext,
- const char * i_sMultiLineEndToken ) = 0;
- virtual void SetMode_IsMultiLine(
- bool i_bTrue ) = 0;
-};
-
-
-
-#endif
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/inc/tokens/tkpstam2.hxx b/autodoc/source/parser_i/inc/tokens/tkpstam2.hxx
deleted file mode 100644
index a0759f499971..000000000000
--- a/autodoc/source/parser_i/inc/tokens/tkpstam2.hxx
+++ /dev/null
@@ -1,114 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_TKPSTAM2_HXX
-#define ADC_TKPSTAM2_HXX
-
-// USED SERVICES
- // BASE CLASSES
-#include <tokens/tkpcont2.hxx>
- // COMPONENTS
-#include <tokens/stmstar2.hxx>
-#include <tokens/stmstfi2.hxx>
-
-/** @descr
- This state-machine models state transitions from one state to another
- per indices of branches. If the indices represent ascii-char-values,
- the state-machine can be used for recognising tokens of text.
-
- The state-machine can be a status itself.
-
- StateMachin2 needs the array-size of all stati as a guess, how many stati
- the state machine will contain, when at work.
-
-
-**/
-class StateMachin2
-{
- public:
- // Types
- typedef StmStatu2::Branch Branch;
- typedef StmStatu2 * * StatusList;
-
- //# Interface self
- // LIFECYCLE
- StateMachin2(
- intt in_nStatusSize,
- intt in_nInitial_StatusListSize ); /// The user of the constructor should guess
- /// the approximate number of stati here to
- /// avoid multiple reallocations.
- /// @#AddStatus
- intt AddStatus( /// @return the new #Status' ID
- DYN StmStatu2 * let_dpStatus);
- /// @#AddToken
- void AddToken(
- const char * in_sToken,
- UINT16 in_nTokenId,
- const INT16 * in_aBranches,
- INT16 in_nBoundsStatus );
- ~StateMachin2();
-
- // OPERATIONS
- StmBoundsStatu2 &
- GetCharChain(
- UINT16 & o_nTokenId,
- CharacterSource & io_rText );
- private:
- // SERVICE FUNCTIONS
- StmStatu2 & Status(
- intt in_nStatusNr) const;
- StmArrayStatu2 &
- CurrentStatus() const;
- StmBoundsStatu2 *
- BoundsStatus() const;
-
- /// Sets the PeekedStatus.
- void Peek(
- intt in_nBranch);
-
- void ResizeStati(); // Adds space for 32 stati.
-
- // DATA
- StatusList pStati; /// List of Status, implemented as simple C-array of length #nStatiSpace
- /// with nStatiLength valid members (beginning from zero).
- intt nCurrentStatus;
- intt nPeekedStatus;
-
- intt nStatusSize; /// Size of the branch array of a single status.
-
- intt nNrofStati; /// Nr of Stati so far.
- intt nStatiSpace; /// Size of allocated array for #pStati (size in items).
-};
-
-
-
-/** @#AddToken
- @descr
- Adds a token, which will be recogniszeds by the
- statemachine.
-
-
-**/
-
-
-
-#endif
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/inc/tokens/token2.hxx b/autodoc/source/parser_i/inc/tokens/token2.hxx
deleted file mode 100644
index 9905c94b4418..000000000000
--- a/autodoc/source/parser_i/inc/tokens/token2.hxx
+++ /dev/null
@@ -1,56 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_TOKEN2_HXX
-#define ADC_TOKEN2_HXX
-
-// USED SERVICES
- // BASE CLASSES
- // COMPONENTS
- // PARAMETRS
-
-
-
-/** This is the interface for parser classes, which get a sequence of Token s from
- a text.
-
- Start() starts to parse the text from the given i_rSource.
- GetNextToken() returns a Token on the heap as long as there are
- still characters in the text left. The last time GetNextToken()
- returns NULL.
-
- The algorithms for parsing tokens from the text are an issue of
- the derived classes.
-*/
-class TextToken
-{
- public:
- // LIFECYCLE
- virtual ~TextToken() {}
-
-
- // INQUIRY
- virtual const char* Text() const = 0;
-};
-
-
-#endif
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/inc/x_parse2.hxx b/autodoc/source/parser_i/inc/x_parse2.hxx
deleted file mode 100644
index 9cc273781a50..000000000000
--- a/autodoc/source/parser_i/inc/x_parse2.hxx
+++ /dev/null
@@ -1,61 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef ADC_X_PARSE2_HXX
-#define ADC_X_PARSE2_HXX
-
-// USED SERVICES
- // BASE CLASSES
-#include <cosv/x.hxx>
- // COMPONENTS
- // PARAMETERS
-
-
-class X_AutodocParser : public csv::Exception
-{
- public:
- // TYPES
- enum E_Type
- {
- x_Any = 0,
- x_InvalidChar,
- x_UnexpectedToken,
- x_UnexpectedEOF
- };
- // LIFECYCLE
- X_AutodocParser(
- E_Type i_eType,
- const char * i_sName = "" )
- : eType(i_eType), sName(i_sName) {}
- // INQUIRY
- virtual void GetInfo(
- std::ostream & o_rOutputMedium ) const;
-
- private:
- E_Type eType;
- String sName;
-
-};
-
-
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/tokens/stmstar2.cxx b/autodoc/source/parser_i/tokens/stmstar2.cxx
deleted file mode 100644
index a40224e648bd..000000000000
--- a/autodoc/source/parser_i/tokens/stmstar2.cxx
+++ /dev/null
@@ -1,95 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <tokens/stmstar2.hxx>
-
-
-// NOT FULLY DECLARED SERVICES
-#include <x_parse2.hxx>
-
-
-
-StmArrayStatu2::StmArrayStatu2( intt i_nStatusSize,
- const INT16 * in_aArrayModel,
- uintt i_nTokenId,
- bool in_bIsDefault )
- : dpBranches(new StmStatu2::Branch[i_nStatusSize]),
- nNrOfBranches(i_nStatusSize),
- nTokenId(UINT16(i_nTokenId)),
- bIsADefault(in_bIsDefault)
-{
- // KORR_FUTURE: Interface of StmArrayStatu2() has to be changed.
- csv_assert(i_nTokenId < 64536);
-
- if (in_aArrayModel != 0)
- {
- intt count = 0;
- for (const INT16 * get = in_aArrayModel; count < nNrOfBranches; count++, get++)
- dpBranches[count] = *get;
- }
- else
- {
- memset(dpBranches, 0, nNrOfBranches);
- }
-}
-
-StmArrayStatu2::~StmArrayStatu2()
-{
- delete [] dpBranches;
-}
-
-bool
-StmArrayStatu2::SetBranch( intt in_nBranchIx,
- StmStatu2::Branch in_nBranch )
-{
- if ( csv::in_range(intt(0), in_nBranchIx, intt(nNrOfBranches) ) )
- {
- dpBranches[in_nBranchIx] = in_nBranch;
- return true;
- }
- return false;
-}
-
-
-StmStatu2::Branch
-StmArrayStatu2::NextBy(intt in_nIndex) const
-{
- if (in_nIndex < 0)
- throw X_AutodocParser(X_AutodocParser::x_InvalidChar);
-
- return in_nIndex < nNrOfBranches
- ? dpBranches[in_nIndex]
- : dpBranches[nNrOfBranches - 1];
-}
-
-
-bool
-StmArrayStatu2::IsADefault() const
-{
- return bIsADefault;
-}
-
-StmArrayStatu2 *
-StmArrayStatu2::AsArray()
-{
- return this;
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/tokens/stmstat2.cxx b/autodoc/source/parser_i/tokens/stmstat2.cxx
deleted file mode 100644
index 35b59849a997..000000000000
--- a/autodoc/source/parser_i/tokens/stmstat2.cxx
+++ /dev/null
@@ -1,39 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <tokens/stmstat2.hxx>
-
-
-// NOT FULLY DECLARED SERVICES
-
-StmArrayStatu2 *
-StmStatu2::AsArray()
-{
- return 0;
-}
-
-StmBoundsStatu2 *
-StmStatu2::AsBounds()
-{
- return 0;
-}
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/tokens/stmstfi2.cxx b/autodoc/source/parser_i/tokens/stmstfi2.cxx
deleted file mode 100644
index 5ebaef98e10a..000000000000
--- a/autodoc/source/parser_i/tokens/stmstfi2.cxx
+++ /dev/null
@@ -1,51 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <tokens/stmstfi2.hxx>
-
-
-// NOT FULLY DECLARED SERVICES
-#include <tokens/tkpcont2.hxx>
-
-
-StmBoundsStatu2::StmBoundsStatu2( TkpContext & i_rFollowUpContext,
- uintt i_nStatusFunctionNr,
- bool i_bIsDefault )
- : pFollowUpContext(&i_rFollowUpContext),
- nStatusFunctionNr(i_nStatusFunctionNr),
- bIsDefault(i_bIsDefault)
-{
-}
-
-bool
-StmBoundsStatu2::IsADefault() const
-{
- return bIsDefault;
-}
-
-StmBoundsStatu2 *
-StmBoundsStatu2::AsBounds()
-{
- return this;
-}
-
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/tokens/tkp2.cxx b/autodoc/source/parser_i/tokens/tkp2.cxx
deleted file mode 100644
index f0fef990080e..000000000000
--- a/autodoc/source/parser_i/tokens/tkp2.cxx
+++ /dev/null
@@ -1,55 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <tokens/tkp2.hxx>
-
-// NOT FULLY DECLARED SERVICES
-#include <tools/tkpchars.hxx>
-#include <tokens/tkpcont2.hxx>
-
-TokenParse2::TokenParse2()
- : pChars(0)
-{
-}
-
-void
-TokenParse2::Start( CharacterSource & i_rSource )
-{
- pChars = &i_rSource;
- SetStartContext();
-}
-
-bool
-TokenParse2::GetNextToken()
-{
- csv_assert(pChars != 0);
-
- bool bDone = false;
- while ( NOT bDone AND NOT pChars->IsFinished() )
- {
- CurrentContext().ReadCharChain(*pChars);
- bDone = CurrentContext().PassNewToken();
- SetCurrentContext(CurrentContext().FollowUpContext());
- }
- return bDone;
-}
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/tokens/tkpcont2.cxx b/autodoc/source/parser_i/tokens/tkpcont2.cxx
deleted file mode 100644
index 1b912a3ea022..000000000000
--- a/autodoc/source/parser_i/tokens/tkpcont2.cxx
+++ /dev/null
@@ -1,58 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <tokens/tkpcont2.hxx>
-
-// NOT FULLY DECLARED SERVICES
-
-
-
-TkpNullContex2 G_aNullContex2;
-
-TkpNullContex2 &
-TkpContext_Null2_()
-{
- return G_aNullContex2;
-}
-
-TkpNullContex2::~TkpNullContex2()
-{
-}
-
-void
-TkpNullContex2::ReadCharChain( CharacterSource & )
-{
-}
-
-bool
-TkpNullContex2::PassNewToken()
-{
- return false;
-}
-
-TkpContext &
-TkpNullContex2::FollowUpContext()
-{
- return *this;
-}
-
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/tokens/tkpstam2.cxx b/autodoc/source/parser_i/tokens/tkpstam2.cxx
deleted file mode 100644
index b9594b398737..000000000000
--- a/autodoc/source/parser_i/tokens/tkpstam2.cxx
+++ /dev/null
@@ -1,161 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <tokens/tkpstam2.hxx>
-
-// NOT FULLY DECLARED SERVICES
-#include <tokens/stmstar2.hxx>
-#include <tools/tkpchars.hxx>
-
-
-const intt C_nStatuslistResizeValue = 32;
-const intt C_nTopStatus = 0;
-
-StateMachin2::StateMachin2( intt in_nStatusSize,
- intt in_nInitial_StatusListSize )
- : pStati(new StmStatu2*[in_nInitial_StatusListSize]),
- nCurrentStatus(C_nTopStatus),
- nPeekedStatus(C_nTopStatus),
- nStatusSize(in_nStatusSize),
- nNrofStati(0),
- nStatiSpace(in_nInitial_StatusListSize)
-{
- csv_assert(in_nStatusSize > 0);
- csv_assert(in_nInitial_StatusListSize > 0);
-
- memset(pStati, 0, sizeof(StmStatu2*) * nStatiSpace);
-}
-
-intt
-StateMachin2::AddStatus(StmStatu2 * let_dpStatus)
-{
- if (nNrofStati == nStatiSpace)
- {
- ResizeStati();
- }
- pStati[nNrofStati] = let_dpStatus;
- return nNrofStati++;
-}
-
-void
-StateMachin2::AddToken( const char * in_sToken,
- UINT16 in_nTokenId,
- const INT16 * in_aBranches,
- INT16 in_nBoundsStatus )
-{
- if (csv::no_str(in_sToken))
- return;
-
- nCurrentStatus = 0;
- nPeekedStatus = 0;
-
- for ( const char * pChar = in_sToken;
- *pChar != NULCH;
- ++pChar )
- {
- Peek(*pChar);
- StmStatu2 & rPst = Status(nPeekedStatus);
- if ( rPst.IsADefault() OR rPst.AsBounds() != 0 )
- {
- nPeekedStatus = AddStatus( new StmArrayStatu2(nStatusSize, in_aBranches, 0, false ) );
- CurrentStatus().SetBranch( *pChar, nPeekedStatus );
- }
- nCurrentStatus = nPeekedStatus;
- } // end for
- StmArrayStatu2 & rLastStatus = CurrentStatus();
- rLastStatus.SetTokenId(in_nTokenId);
- for (intt i = 0; i < nStatusSize; i++)
- {
- if (Status(rLastStatus.NextBy(i)).AsBounds() != 0)
- rLastStatus.SetBranch(i,in_nBoundsStatus);
- } // end for
-}
-
-StateMachin2::~StateMachin2()
-{
- for (intt i = 0; i < nNrofStati; i++)
- {
- delete pStati[i];
- }
- delete [] pStati;
-}
-
-StmBoundsStatu2 &
-StateMachin2::GetCharChain( UINT16 & o_nTokenId,
- CharacterSource & io_rText )
-{
- nCurrentStatus = C_nTopStatus;
- Peek(io_rText.CurChar());
- while (BoundsStatus() == 0)
- {
- nCurrentStatus = nPeekedStatus;
- Peek(io_rText.MoveOn());
- }
- o_nTokenId = CurrentStatus().TokenId();
-
- return *BoundsStatus();
-}
-
-void
-StateMachin2::ResizeStati()
-{
- intt nNewSize = nStatiSpace + C_nStatuslistResizeValue;
- StatusList pNewStati = new StmStatu2*[nNewSize];
-
- memcpy( pNewStati, pStati, nNrofStati * sizeof(StmStatu2*) );
- memset( pNewStati+nNrofStati, 0, (nNewSize-nNrofStati) * sizeof(StmStatu2*) );
-
- delete [] pStati;
- pStati = pNewStati;
- nStatiSpace = nNewSize;
-}
-
-StmStatu2 &
-StateMachin2::Status(intt in_nStatusNr) const
-{
- csv_assert( csv::in_range(intt(0), in_nStatusNr, intt(nNrofStati)) );
- return *pStati[in_nStatusNr];
-}
-
-StmArrayStatu2 &
-StateMachin2::CurrentStatus() const
-{
- StmArrayStatu2 * pCurSt = Status(nCurrentStatus).AsArray();
- if (pCurSt == 0)
- {
- csv_assert(false);
- }
- return *pCurSt;
-}
-
-StmBoundsStatu2 *
-StateMachin2::BoundsStatus() const
-{
- return Status(nPeekedStatus).AsBounds();
-}
-
-void
-StateMachin2::Peek(intt in_nBranch)
-{
- StmArrayStatu2 & rSt = CurrentStatus();
- nPeekedStatus = rSt.NextBy(in_nBranch);
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/parser_i/tokens/x_parse2.cxx b/autodoc/source/parser_i/tokens/x_parse2.cxx
deleted file mode 100644
index d2f05d5b6f11..000000000000
--- a/autodoc/source/parser_i/tokens/x_parse2.cxx
+++ /dev/null
@@ -1,54 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <x_parse2.hxx>
-
-// NOT FULLY DECLARED SERVICES
-
- enum E_Type
- {
- x_Any = 0,
- x_InvalidChar,
- x_UnexpectedEOF
- };
-void
-X_AutodocParser::GetInfo( std::ostream & o_rOutputMedium ) const
-{
- switch (eType)
- {
- case x_Any:
- o_rOutputMedium << "Unspecified parsing exception ." << Endl();
- break;
- case x_InvalidChar:
- o_rOutputMedium << "Unknown character during parsing." << Endl();
- break;
- case x_UnexpectedToken:
- o_rOutputMedium << "Unexpected token " << sName << " found." << Endl();
- break;
- case x_UnexpectedEOF:
- o_rOutputMedium << "Unexpected end of file found." << Endl();
- break;
- default:
- o_rOutputMedium << "Unknown exception during parsing." << Endl();
- }
-}
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/tools/filecoll.cxx b/autodoc/source/tools/filecoll.cxx
deleted file mode 100644
index e232a246d8a8..000000000000
--- a/autodoc/source/tools/filecoll.cxx
+++ /dev/null
@@ -1,125 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <tools/filecoll.hxx>
-
-
-// NOT FULLY DEFINED SERVICES
-#include <cosv/ploc_dir.hxx>
-
-#include <stdio.h>
-
-
-FileCollector::FileCollector( uintt i_nRoughNrOfFiles )
- // : aFoundFiles
-{
- if (i_nRoughNrOfFiles > 0)
- aFoundFiles.reserve(i_nRoughNrOfFiles);
-}
-
-uintt
-FileCollector::AddFilesFrom( const char * i_sRootDir,
- const char * i_sFilter,
- E_SearchMode i_eSearchMode )
-{
- uintt nSizeAtStart = aFoundFiles.size();
-
- if (csv::no_str(i_sFilter) OR csv::no_str(i_sRootDir))
- {
- Cout() << "Warning: The filter contains no files." << Endl();
- return 0;
- }
-
- csv::ploc::Directory aDir(i_sRootDir);
- if (NOT aDir.Exists())
- {
- Cerr() << "Warning: The path for the files to be parsed could not be found:\n"
- << i_sRootDir
- << Endl();
- return 0;
- }
-
- Cout() << "." << Flush();
- aDir.GetContainedFiles(aFoundFiles, i_sFilter);
-
- if (i_eSearchMode == recursive)
- {
- StreamStr aPath(1020);
- aPath << i_sRootDir << csv::ploc::Delimiter();
- uintt nSubDirStart = aPath.tellp();
-
- StringVector aSubDirs;
- aDir.GetContainedDirectories(aSubDirs);
-
- for ( const_iterator iter = aSubDirs.begin();
- iter != aSubDirs.end();
- ++iter )
- {
- aPath.seekp(nSubDirStart);
- aPath << (*iter);
- AddFilesFrom( aPath.c_str(), i_sFilter, i_eSearchMode );
- }
- }
-
- return aFoundFiles.size() - nSizeAtStart;
-}
-
-uintt
-FileCollector::AddFile( const char * i_sFilePath )
-{
- FILE * pFile = fopen( i_sFilePath, "r" );
- if ( pFile == 0 )
- {
- Cerr() << "Warning: The path for the file to be parsed could not be found:\n"
- << i_sFilePath
- << Endl();
- return 0;
- }
-
- fclose(pFile);
- aFoundFiles.push_back(i_sFilePath);
- return 1;
-}
-
-void
-FileCollector::EraseAll()
-{
- csv::erase_container(aFoundFiles);
-}
-
-FileCollector::const_iterator
-FileCollector::Begin() const
-{
- return aFoundFiles.begin();
-}
-
-FileCollector::const_iterator
-FileCollector::End() const
-{
- return aFoundFiles.end();
-}
-
-uintt
-FileCollector::Size() const
-{
- return aFoundFiles.size();
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/autodoc/source/tools/tkpchars.cxx b/autodoc/source/tools/tkpchars.cxx
deleted file mode 100644
index 1a3f36b6ded3..000000000000
--- a/autodoc/source/tools/tkpchars.cxx
+++ /dev/null
@@ -1,89 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <tools/tkpchars.hxx>
-
-// NOT FULLY DECLARED SERVICES
-#include <cosv/bstream.hxx>
-#include <cosv/x.hxx>
-
-
-
-CharacterSource::CharacterSource()
- : dpSource(new char[2]),
- nSourceSize(0),
- nCurPos(0),
- nLastCut(0),
- nLastTokenStart(0),
- cCharAtLastCut(0)
-{
- dpSource[nSourceSize] = NULCH;
- dpSource[nSourceSize+1] = NULCH;
-}
-
-CharacterSource::~CharacterSource()
-{
- delete [] dpSource;
-}
-
-void
-CharacterSource::LoadText(csv::bstream & io_rSource)
-{
- if (dpSource != 0)
- delete [] dpSource;
-
- io_rSource.seek(0, csv::end);
- nSourceSize = intt(io_rSource.position());
- io_rSource.seek(0);
-
- dpSource = new char[nSourceSize+1];
-
- intt nCount = (intt) io_rSource.read(dpSource,nSourceSize);
- if (nCount != nSourceSize)
- throw csv::X_Default("IO-Error: Could not load file completely.");
-
- dpSource[nSourceSize] = NULCH;
-
- BeginSource();
-}
-
-const char *
-CharacterSource::CutToken()
-{
- dpSource[nLastCut] = cCharAtLastCut;
- nLastTokenStart = nLastCut;
- nLastCut = CurPos();
- cCharAtLastCut = dpSource[nLastCut];
- dpSource[nLastCut] = NULCH;
-
- return &dpSource[nLastTokenStart];
-}
-
-void
-CharacterSource::BeginSource()
-{
- nCurPos = 0;
- nLastCut = 0;
- nLastTokenStart = 0;
- cCharAtLastCut = dpSource[nLastCut];
- dpSource[nLastCut] = NULCH;
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cosv/Makefile b/cosv/Makefile
deleted file mode 100644
index ccb1c85a04da..000000000000
--- a/cosv/Makefile
+++ /dev/null
@@ -1,7 +0,0 @@
-# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
-
-module_directory:=$(dir $(realpath $(firstword $(MAKEFILE_LIST))))
-
-include $(module_directory)/../solenv/gbuild/partial_build.mk
-
-# vim: set noet sw=4 ts=4:
diff --git a/cosv/Module_cosv.mk b/cosv/Module_cosv.mk
deleted file mode 100644
index 31351a6aa484..000000000000
--- a/cosv/Module_cosv.mk
+++ /dev/null
@@ -1,19 +0,0 @@
-# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
-#
-# This file is part of the LibreOffice project.
-#
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-#
-$(eval $(call gb_Module_Module,cosv))
-
-ifneq (,$(filter ODK,$(BUILD_TYPE)))
-
-$(eval $(call gb_Module_add_targets,cosv,\
- StaticLibrary_cosv \
-))
-
-endif
-
-# vim:set noet sw=4 ts=4:
diff --git a/cosv/README b/cosv/README
deleted file mode 100644
index 6f0df4c23787..000000000000
--- a/cosv/README
+++ /dev/null
@@ -1,3 +0,0 @@
-"Common Services" part of autodoc.
-
-Part of the SDK; to build you need to add --enable-odk.
diff --git a/cosv/StaticLibrary_cosv.mk b/cosv/StaticLibrary_cosv.mk
deleted file mode 100644
index 9c2ad6b4bcf7..000000000000
--- a/cosv/StaticLibrary_cosv.mk
+++ /dev/null
@@ -1,29 +0,0 @@
-# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
-#
-# This file is part of the LibreOffice project.
-#
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-#
-
-$(eval $(call gb_StaticLibrary_StaticLibrary,cosv))
-
-$(eval $(call gb_StaticLibrary_add_exception_objects,cosv,\
- cosv/source/comphelp/badcast \
- cosv/source/service/comdline \
- cosv/source/service/comfunc \
- cosv/source/service/csv_ostream \
- cosv/source/service/std_outp \
- cosv/source/storage/dirchain \
- cosv/source/storage/file \
- cosv/source/storage/persist \
- cosv/source/storage/ploc \
- cosv/source/storage/ploc_dir \
- cosv/source/storage/plocroot \
- cosv/source/strings/streamstr \
- cosv/source/strings/string \
- cosv/source/strings/str_types \
-))
-
-# vim: set noet sw=4 ts=4:
diff --git a/cosv/source/comphelp/badcast.cxx b/cosv/source/comphelp/badcast.cxx
deleted file mode 100644
index 09afc27ddfc0..000000000000
--- a/cosv/source/comphelp/badcast.cxx
+++ /dev/null
@@ -1,43 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-
-
-/* Include this for instantiating bad-cast,
- due to problems with WNT-STL-headers.
-*/
-
-// If anybody who happens to read this has any idea what dark magic
-// this is supposed to achieve, and whether it is needed or in any way
-// relevant with MSVC2008 (or eventually newer), please add a
-// comment...
-
-#if defined(WNT) && !defined(__MINGW32__)
-
-#define _NTSDK
-#include<typeinfo>
-
-_STD_BEGIN
-bad_cast G_Dummy_Inst_bad_cast;
-_STD_END
-#endif // WNT
-
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cosv/source/service/comdline.cxx b/cosv/source/service/comdline.cxx
deleted file mode 100644
index 7f3188eb3a4f..000000000000
--- a/cosv/source/service/comdline.cxx
+++ /dev/null
@@ -1,57 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#define CSV_USE_CSV_ASSERTIONS
-#include <cosv/csv_env.hxx>
-
-#include <cosv/comfunc.hxx>
-#include <cosv/string.hxx>
-#include <cosv/streamstr.hxx>
-#include <cosv/std_outp.hxx>
-#include <cosv/tpl/dyn.hxx>
-#include <cosv/comdline.hxx>
-
-// NOT FULLY DECLARED SERVICES
-
-
-namespace csv
-{
-
-
-bool
-CommandLine_Ifc::CheckParameters() const
-{
- if ( NOT inq_CheckParameters() )
- {
- PrintUse();
- return false;
- }
-
- return true;
-}
-
-
-
-
-} // namespace csv
-
-
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cosv/source/service/comfunc.cxx b/cosv/source/service/comfunc.cxx
deleted file mode 100644
index a8ec5f8e4549..000000000000
--- a/cosv/source/service/comfunc.cxx
+++ /dev/null
@@ -1,48 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#define CSV_USE_CSV_ASSERTIONS
-#include <cosv/csv_env.hxx>
-
-#include <cosv/comfunc.hxx>
-#include <cosv/string.hxx>
-#include <cosv/streamstr.hxx>
-#include <cosv/std_outp.hxx>
-#include <cosv/tpl/dyn.hxx>
-
-#include <ctype.h>
-#include <cosv/x.hxx>
-
-
-
-namespace csv
-{
-
-
-void
-X_Default::GetInfo( ostream & o_rOutputMedium ) const
-{
- o_rOutputMedium << "Error (general exception): ";
- o_rOutputMedium << sMessage
- << Endl;
-}
-
-} // namespace csv
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cosv/source/service/csv_ostream.cxx b/cosv/source/service/csv_ostream.cxx
deleted file mode 100644
index 698616ac0555..000000000000
--- a/cosv/source/service/csv_ostream.cxx
+++ /dev/null
@@ -1,90 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#define CSV_USE_CSV_ASSERTIONS
-#include <cosv/csv_env.hxx>
-
-#include <cosv/comfunc.hxx>
-#include <cosv/string.hxx>
-#include <cosv/streamstr.hxx>
-#include <cosv/std_outp.hxx>
-#include <cosv/tpl/dyn.hxx>
-#include <cosv/csv_ostream.hxx>
-
-// NOT FULLY DECLARED SERVICES
-
-
-#ifndef CSV_NO_IOSTREAMS
-#else
-
-namespace csv
-{
-
-ostream::~ostream() { }
-
-ostream & ostream::operator<<(
- const char * i_s ) { *pData << i_s; return *this; }
-ostream & ostream::operator<<(
- char i_c ) { *pData << i_c; return *this; }
-ostream & ostream::operator<<(
- unsigned char i_c ) { *pData << i_c; return *this; }
-ostream & ostream::operator<<(
- signed char i_c ) { *pData << i_c; return *this; }
-
-ostream & ostream::operator<<(
- short i_n ) { *pData << i_n; return *this; }
-ostream & ostream::operator<<(
- unsigned short i_n ) { *pData << i_n; return *this; }
-ostream & ostream::operator<<(
- int i_n ) { *pData << i_n; return *this; }
-ostream & ostream::operator<<(
- unsigned int i_n ) { *pData << i_n; return *this; }
-ostream & ostream::operator<<(
- long i_n ) { *pData << i_n; return *this; }
-ostream & ostream::operator<<(
- unsigned long i_n ) { *pData << i_n; return *this; }
-
-ostream & ostream::operator<<(
- float i_n ) { *pData << i_n; return *this; }
-ostream & ostream::operator<<(
- double i_n ) { *pData << i_n; return *this; }
-
-ostream &
-ostream::seekp( intt i_nOffset,
- seek_dir i_eStart )
-{
- pData->seekp(i_nOffset, csv::seek_dir(int(i_eStart)) );
- return *this;
-}
-
-ostream::ostream( uintt i_nStartSize )
- : pData( new StreamStr(i_nStartSize) )
-{
-}
-
-
-
-} // namespace csv
-
-#endif
-
-
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cosv/source/service/std_outp.cxx b/cosv/source/service/std_outp.cxx
deleted file mode 100644
index 69a9e789e5b5..000000000000
--- a/cosv/source/service/std_outp.cxx
+++ /dev/null
@@ -1,78 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#define CSV_USE_CSV_ASSERTIONS
-#include <cosv/csv_env.hxx>
-
-#include <cosv/comfunc.hxx>
-#include <cosv/string.hxx>
-#include <cosv/streamstr.hxx>
-#include <cosv/std_outp.hxx>
-#include <cosv/tpl/dyn.hxx>
-
-// NOT FULLY DECLARED SERVICES
-#include <stdlib.h>
-
-
-namespace csv
-{
-
-#ifdef CSV_NO_IOSTREAMS
-redirect_out * redirect_out::pStdOut_ = 0;
-redirect_out * redirect_out::pStdErr_ = 0;
-#endif // defined(CSV_NO_IOSTREAMS)
-
-
-void
-Endl( ostream & io_rStream )
-{
-#ifndef CSV_NO_IOSTREAMS
-// if (NOT bUseRedirect)
- io_rStream << std::endl;
-// else
-#endif
-}
-
-void
-Flush( ostream & io_rStream )
-{
-#ifndef CSV_NO_IOSTREAMS
-// if (NOT bUseRedirect)
- io_rStream << std::flush;
-// else
-#endif
-}
-
-void
-PerformAssertion(const char * condition, const char * file, unsigned line)
-{
- Cout() << "assertion failed: "
- << condition
- << " in file: "
- << file
- << " at line: "
- << line
- << Endl;
-
- exit(3);
-}
-
-} // namespace csv
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cosv/source/storage/dirchain.cxx b/cosv/source/storage/dirchain.cxx
deleted file mode 100644
index 06e4b09d2b96..000000000000
--- a/cosv/source/storage/dirchain.cxx
+++ /dev/null
@@ -1,116 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#define CSV_USE_CSV_ASSERTIONS
-#include <cosv/csv_env.hxx>
-
-#include <cosv/comfunc.hxx>
-#include <cosv/string.hxx>
-#include <cosv/streamstr.hxx>
-#include <cosv/std_outp.hxx>
-#include <cosv/tpl/dyn.hxx>
-#include <cosv/dirchain.hxx>
-
-// NOT FULLY DECLARED SERVICES
-#include <cosv/bstream.hxx>
-
-
-
-
-namespace csv
-{
-namespace ploc
-{
-
-
-DirectoryChain::DirectoryChain()
-{
-}
-
-DirectoryChain::~DirectoryChain()
-{
-}
-
-void
-DirectoryChain::Set( const char * i_sSubPath,
- bool i_bPathIsAlwaysDir,
- const char * i_sDelimiter )
-{
- csv_assert(i_sDelimiter != 0);
- if (i_sSubPath == 0)
- return;
-
- const char * pRestPath = i_sSubPath;
- if (*pRestPath == *i_sDelimiter)
- ++pRestPath;
-
- for ( const char * pDirEnd = strchr(pRestPath,*i_sDelimiter);
- pDirEnd != 0;
- pDirEnd = strchr(pRestPath,*i_sDelimiter) )
- {
- aPath.push_back( String(pRestPath, pDirEnd) );
- pRestPath = pDirEnd + 1;
- }
- if (*pRestPath != 0 AND i_bPathIsAlwaysDir)
- aPath.push_back( String(pRestPath) );
-}
-
-void
-DirectoryChain::PushBack( const String & i_sName )
-{
- aPath.push_back(i_sName);
-}
-
-void
-DirectoryChain::PushBack( const DirectoryChain & i_sPath )
-{
- aPath.insert( aPath.end(), i_sPath.Begin(), i_sPath.End() );
-}
-
-void
-DirectoryChain::PopBack( uintt i_nCount )
-{
- if (i_nCount <= aPath.size())
- aPath.erase( aPath.end() - i_nCount, aPath.end() );
- else
- aPath.erase( aPath.begin(), aPath.end() );
-}
-
-void
-DirectoryChain::Get( bostream & o_rPath,
- const char * i_sDelimiter ) const
-{
- uintt deliLen = strlen(i_sDelimiter);
-
- for ( std::vector<String>::const_iterator it = aPath.begin();
- it != aPath.end();
- ++it )
- {
- o_rPath.write( (*it).c_str() );
- o_rPath.write( i_sDelimiter, deliLen);
- }
-}
-
-
-
-
-} // namespace ploc
-} // namespace csv
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cosv/source/storage/file.cxx b/cosv/source/storage/file.cxx
deleted file mode 100644
index c9eed642d545..000000000000
--- a/cosv/source/storage/file.cxx
+++ /dev/null
@@ -1,191 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#define CSV_USE_CSV_ASSERTIONS
-#include <cosv/csv_env.hxx>
-
-#include <cosv/comfunc.hxx>
-#include <cosv/string.hxx>
-#include <cosv/streamstr.hxx>
-#include <cosv/std_outp.hxx>
-#include <cosv/tpl/dyn.hxx>
-#include <cosv/file.hxx>
-
-// NOT FULLY DECLARED SERVICES
-
-
-namespace csv
-{
-
-
-File::File( const char * i_sLocation,
- uintt i_nMode )
- : aPath(i_sLocation),
- pStream(0),
- nMode(i_nMode),
- eLastIO(io_none)
-{
-}
-
-File::File( const String & i_sLocation,
- uintt i_nMode )
- : aPath(i_sLocation),
- pStream(0),
- nMode(i_nMode),
- eLastIO(io_none)
-{
-}
-
-File::~File()
-{
- if ( inq_is_open() )
- close();
-}
-
-uintt
-File::do_read( void * out_pDest,
- uintt i_nNrofBytes )
-{
- if ( NOT inq_is_open() )
- return 0;
-
- if ( eLastIO == io_write )
- ::fseek( pStream, 0, SEEK_CUR );
- uintt ret = position();
- int iRet= ::fread( out_pDest, 1, i_nNrofBytes, pStream );
- if ( iRet < 0 ) {
- fprintf(stderr, "warning: read failed in %s line %d \n", __FILE__, __LINE__);
- }
- ret = position() - ret;
-
- eLastIO = io_read;
- return ret;
-}
-
-bool
-File::inq_eod() const
-{
- if ( NOT inq_is_open() )
- return true;
- return feof(pStream) != 0;
-}
-
-uintt
-File::do_write( const void * i_pSrc,
- uintt i_nNrofBytes )
-{
- if ( NOT inq_is_open() )
- return 0;
-
- if ( eLastIO == io_write )
- ::fseek( pStream, 0, SEEK_CUR );
-
- uintt ret = ::fwrite( i_pSrc, 1, i_nNrofBytes, pStream );
-
- eLastIO = io_write;
- return ret;
-}
-
-uintt
-File::do_seek( intt i_nDistance,
- seek_dir i_eStartPoint )
-{
- if ( NOT inq_is_open() )
- return uintt(-1);
-
- static int eSearchDir[3] = { SEEK_SET, SEEK_CUR, SEEK_END };
-
- ::fseek( pStream,
- intt(i_nDistance),
- eSearchDir[i_eStartPoint] );
- return position();
-}
-
-uintt
-File::inq_position() const
-{
- if ( inq_is_open() )
- return uintt( ::ftell(pStream) );
- else
- return uintt(-1);
-}
-
-bool
-File::do_open( uintt i_nOpenMode )
-{
- if ( inq_is_open() )
- {
- if ( i_nOpenMode == 0 OR i_nOpenMode == nMode )
- return true;
- close();
- }
-
- if ( i_nOpenMode != 0 )
- nMode = i_nOpenMode;
-
- const char * sFacadeMode = "";
- switch ( nMode )
- {
- case CFM_RW: sFacadeMode = "r+b";
- break;
- case CFM_CREATE: sFacadeMode = "w+b";
- break;
- case CFM_READ: sFacadeMode = "rb";
- break;
- default:
- sFacadeMode = "rb";
- }
-
- pStream = ::fopen( StrPath(), sFacadeMode );
- if ( pStream == 0 AND nMode == CFM_RW )
- {
- sFacadeMode = "w+b";
- pStream = ::fopen( StrPath(), sFacadeMode );
- }
-
- return pStream != 0;
-}
-
-void
-File::do_close()
-{
- if ( inq_is_open() )
- {
- ::fclose(pStream);
- pStream = 0;
- }
- eLastIO = io_none;
-}
-
-bool
-File::inq_is_open() const
-{
- return pStream != 0;
-}
-
-const ploc::Path &
-File::inq_MyPath() const
-{
- return aPath;
-}
-
-
-} // namespace csv
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cosv/source/storage/persist.cxx b/cosv/source/storage/persist.cxx
deleted file mode 100644
index 486eaea5fa44..000000000000
--- a/cosv/source/storage/persist.cxx
+++ /dev/null
@@ -1,103 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#define CSV_USE_CSV_ASSERTIONS
-#include <cosv/csv_env.hxx>
-
-#include <cosv/comfunc.hxx>
-#include <cosv/string.hxx>
-#include <cosv/streamstr.hxx>
-#include <cosv/std_outp.hxx>
-#include <cosv/tpl/dyn.hxx>
-#include <cosv/persist.hxx>
-
-// NOT FULLY DECLARED SERVICES
-#include <cosv/ploc.hxx>
-
-
-#ifdef WNT
-#include <io.h>
-
-namespace csv
-{
-namespace ploc
-{
-
-bool
-Persistent::Exists() const
-{
- return access( StrPath(), 00) == 0;
-}
-
-} // namespace ploc
-} // namespace csv
-
-
-#elif defined(UNX)
-#include <unistd.h>
-
-namespace csv
-{
-namespace ploc
-{
-
-bool
-Persistent::Exists() const
-{
- return access( StrPath(), F_OK ) == 0;
-}
-
-
-} // namespace ploc
-} // namespace csv
-
-#else
-#error For using csv::ploc there has to be defined: WNT or UNX.
-#endif
-
-namespace csv
-{
-namespace ploc
-{
-
-const char *
-Persistent::StrPath() const
-{
- if (sPath.empty() )
- {
-#ifndef CSV_NO_MUTABLE
- StreamStr & rsPath = sPath;
-#else
- StreamStr & rsPath = const_cast< StreamStr& >(sPath);
-#endif
- rsPath.seekp(0);
- rsPath << MyPath();
- if (MyPath().IsDirectory())
- rsPath.pop_back(1); // Remove closing delimiter.
- }
- return sPath.c_str();
-}
-
-} // namespace ploc
-} // namespace csv
-
-
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cosv/source/storage/ploc.cxx b/cosv/source/storage/ploc.cxx
deleted file mode 100644
index 7dd6d0e997dd..000000000000
--- a/cosv/source/storage/ploc.cxx
+++ /dev/null
@@ -1,129 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#define CSV_USE_CSV_ASSERTIONS
-#include <cosv/csv_env.hxx>
-
-#include <cosv/comfunc.hxx>
-#include <cosv/string.hxx>
-#include <cosv/streamstr.hxx>
-#include <cosv/std_outp.hxx>
-#include <cosv/tpl/dyn.hxx>
-#include <cosv/ploc.hxx>
-
-// NOT FULLY DECLARED SERVICES
-#include <cosv/bstream.hxx>
-
-
-
-
-namespace csv
-{
-namespace ploc
-{
-
-
-Path::Path( const char * i_sPath,
- bool i_bPathIsAlwaysDir,
- const char * i_sDelimiter )
- : pRoot(0)
- // aPath,
- // sFile
-{
- Set(i_sPath, i_bPathIsAlwaysDir, i_sDelimiter );
-}
-
-Path::Path( const Path & i_rPath )
- : pRoot(i_rPath.pRoot->CreateCopy()),
- aPath(i_rPath.aPath),
- sFile(i_rPath.sFile)
-{
-}
-
-Path::~Path()
-{
-}
-
-Path &
-Path::operator=( const Path & i_rPath )
-{
- pRoot = i_rPath.pRoot->CreateCopy();
- aPath = i_rPath.aPath;
- sFile = i_rPath.sFile;
- return *this;
-}
-
-
-void
-Path::Set( const char * i_sPath,
- bool i_bPathIsAlwaysDir,
- const char * i_sDelimiter )
-{
- if ( *i_sDelimiter != '\\' AND *i_sDelimiter != '/' )
- return;
-
- const char *
- restPath = 0;
- pRoot = Root::Create_( restPath, i_sPath, i_sDelimiter );
- if (restPath == 0)
- return;
-
- aPath.Set(restPath, i_bPathIsAlwaysDir, i_sDelimiter);
-
- if (NOT i_bPathIsAlwaysDir)
- {
- const char *
- file = strrchr( restPath, *i_sDelimiter );
- if (file == 0)
- file = restPath;
- else
- file++;
- sFile = file;
- }
-}
-
-void
-Path::SetFile( const String & i_sName )
-{
- sFile = i_sName;
-}
-
-bool
-Path::IsValid() const
-{
- return RootDir().OwnDelimiter() != 0;
-}
-
-void
-Path::Get( bostream & o_rPath ) const
-{
- if (NOT IsValid())
- return;
-
- pRoot->Get( o_rPath );
- aPath.Get( o_rPath, pRoot->OwnDelimiter() );
-
- if ( sFile.length() > 0 )
- o_rPath.write( sFile );
-}
-
-} // namespace ploc
-} // namespace csv
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cosv/source/storage/ploc_dir.cxx b/cosv/source/storage/ploc_dir.cxx
deleted file mode 100644
index 234a2d3fbf79..000000000000
--- a/cosv/source/storage/ploc_dir.cxx
+++ /dev/null
@@ -1,359 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#define CSV_USE_CSV_ASSERTIONS
-#include <cosv/csv_env.hxx>
-
-#include <cosv/comfunc.hxx>
-#include <cosv/string.hxx>
-#include <cosv/streamstr.hxx>
-#include <cosv/std_outp.hxx>
-#include <cosv/tpl/dyn.hxx>
-#include <cosv/ploc_dir.hxx>
-
-// NOT FULLY DECLARED SERVICES
-#include <cosv/ploc.hxx>
-
-
-namespace csv
-{
-namespace ploc
-{
-
-Directory::Directory()
-{
-}
-
-Directory::Directory( const Path & i_rPath )
- : aPath(i_rPath)
- // sPath
-{
-}
-
-Directory::Directory( const Directory & i_rDir )
- : Persistent(), aPath(i_rDir.aPath)
- // sPath
-{
-}
-
-Directory::Directory( const char * i_rLocation )
- : aPath(i_rLocation, true)
-{
-}
-
-Directory::~Directory()
-{
-}
-
-Directory &
-Directory::operator+=( const String & i_sName )
-{
- InvalidatePath();
- aPath.DirChain() += i_sName;
- return *this;
-}
-
-Directory &
-Directory::operator+=( const DirectoryChain & i_sDirChain )
-{
- InvalidatePath();
- aPath.DirChain() += i_sDirChain;
- return *this;
-}
-
-Directory &
-Directory::operator-=( uintt i_nLevels )
-{
- InvalidatePath();
- aPath.DirChain().PopBack(i_nLevels);
- return *this;
-}
-
-bool
-Directory::PhysicalCreate( bool i_bCreateParentsIfNecessary ) const
-{
- bool ret = PhysicalCreate_Dir( StrPath() );
- if ( ret OR NOT i_bCreateParentsIfNecessary )
- return ret;
-
- ret = Check_Parent();
- if (ret)
- ret = PhysicalCreate_Dir( StrPath() );
- return ret;
-}
-
-bool
-Directory::Check_Parent() const
-{
- // There is no parent of root directories:
- if ( aPath.DirChain().Size() == 0 )
- return false;
-
- // Become my own parent:
- String sLastToken = aPath.DirChain().Back();
- const_cast< Directory* >(this)->operator-=(1);
-
- // Begin behaving as parent:
- bool ret = Exists();
- if (NOT ret)
- {
- ret = Check_Parent();
- if (ret)
- ret = PhysicalCreate_Dir( StrPath() );
- }
- // End behaving as parent.
-
- // Become myself again:
- const_cast< Directory* >(this)->operator+=(sLastToken);
- return ret;
-}
-
-} // namespace ploc
-} // namespace csv
-
-
-#ifdef WNT
-#include <direct.h>
-#include <io.h>
-
-namespace csv
-{
-namespace ploc
-{
-
-bool
-Directory::PhysicalCreate_Dir( const char * i_sStr ) const
-{
- return mkdir( i_sStr ) == 0;
-}
-
-void
-Directory::GetContainedDirectories( StringVector & o_rResult ) const
-{
- const char * c_sANYDIR = "\\*.*";
- String sNew;
-
- StreamStr sFilter(200);
- sFilter << StrPath()
- << c_sANYDIR;
-
- struct _finddata_t
- aEntry;
- long hFile = _findfirst( sFilter.c_str(), &aEntry );
-
- for ( int bFindMore = (hFile == -1 ? 1 : 0);
- bFindMore == 0;
- bFindMore = _findnext( hFile, &aEntry ) )
- {
- if ( (aEntry.attrib & _A_SUBDIR) AND *aEntry.name != '.' )
- {
- sNew = aEntry.name;
- o_rResult.push_back( sNew );
- }
- } // end for
- _findclose(hFile);
-}
-
-void
-Directory::GetContainedFiles( StringVector & o_rResult,
- const char * i_sFilter,
- E_Recursivity i_eRecursivity ) const
-{
- StreamStr sNew(240);
- sNew << aPath;
- StreamStr::size_type
- nStartFilename = sNew.tellp();
-
- StreamStr sFilter(200);
- sFilter << StrPath()
- << "\\"
- << i_sFilter;
-
- struct _finddata_t
- aEntry;
- long hFile = _findfirst( sFilter.c_str(), &aEntry );
- for ( int bFindMore = (hFile == -1 ? 1 : 0);
- bFindMore == 0;
- bFindMore = _findnext( hFile, &aEntry ) )
- {
- sNew.seekp(nStartFilename);
- sNew << aEntry.name;
- String sNewAsString( sNew.c_str() );
- o_rResult.push_back(sNewAsString);
- } // end for
-
- _findclose(hFile);
- if ( i_eRecursivity == flat )
- return;
-
- // gathering from subdirectories:
- StringVector aSubDirectories;
- GetContainedDirectories( aSubDirectories );
-
- StringVector::const_iterator dEnd = aSubDirectories.end();
- for ( StringVector::const_iterator d = aSubDirectories.begin();
- d != dEnd;
- ++d )
- {
- Directory aSub(*this);
- aSub += *d;
- aSub.GetContainedFiles( o_rResult,
- i_sFilter,
- i_eRecursivity );
- }
-}
-
-} // namespace ploc
-} // namespace csv
-
-
-#elif defined(UNX)
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <dirent.h>
-
-namespace csv
-{
-namespace ploc
-{
-
-bool
-Directory::PhysicalCreate_Dir( const char * i_sStr ) const
-{
- return mkdir( i_sStr, 00777 ) == 0;
-}
-
-void
-Directory::GetContainedDirectories( StringVector & o_rResult ) const
-{
- StreamStr sNew(240);
- sNew << aPath;
- StreamStr::size_type
- nStartFilename = sNew.tellp();
-
- DIR * pDir = opendir( StrPath() );
- dirent * pEntry = 0;
- struct stat aEntryStatus;
-
- while ( (pEntry = readdir(pDir)) != 0 )
- {
- sNew.seekp(nStartFilename);
- sNew << pEntry->d_name;
-
- stat(sNew.c_str(), &aEntryStatus);
- if ( (aEntryStatus.st_mode & S_IFDIR) == S_IFDIR
- AND *pEntry->d_name != '.' )
- {
- String sNew2(pEntry->d_name);
- o_rResult.push_back(sNew2);
- } // endif (aEntry.attrib == _A_SUBDIR)
- } // end while
- closedir( pDir );
-}
-
-void
-Directory::GetContainedFiles( StringVector & o_rResult,
- const char * i_sFilter,
- E_Recursivity i_eRecursivity ) const
-{
- StreamStr sNew(240);
- sNew << aPath;
- StreamStr::size_type
- nStartFilename = sNew.tellp();
-
- bool bUseFilter = strcmp( i_sFilter, "*.*" ) != 0
- AND strncmp( i_sFilter, "*.", 2) == 0;
-
- DIR * pDir = opendir( StrPath() );
- dirent * pEntry = 0;
- struct stat aEntryStatus;
-
- while ( (pEntry = readdir(pDir)) != 0 )
- {
- sNew.seekp(nStartFilename);
- sNew << pEntry->d_name;
-
- stat(sNew.c_str(), &aEntryStatus);
- if ( (aEntryStatus.st_mode & S_IFDIR) == S_IFDIR )
- continue; // Don't gather directories.
-
- if ( bUseFilter )
- {
- const char * pEnding = strrchr(pEntry->d_name,'.');
- if (pEnding == 0)
- continue;
- if ( strcasecmp( pEnding + 1, i_sFilter + 2 ) != 0 )
- continue;
- }
-
- sNew.seekp(nStartFilename);
- sNew << pEntry->d_name;
- String sNewAsString( sNew.c_str() );
- o_rResult.push_back(sNewAsString);
- } // end while
-
- closedir( pDir );
- if ( i_eRecursivity == flat )
- return;
-
- // gathering from subdirectories:
- StringVector aSubDirectories;
- GetContainedDirectories( aSubDirectories );
-
- StringVector::const_iterator dEnd = aSubDirectories.end();
- for ( StringVector::const_iterator d = aSubDirectories.begin();
- d != dEnd;
- ++d )
- {
- Directory aSub(*this);
- aSub += *d;
- aSub.GetContainedFiles( o_rResult,
- i_sFilter,
- i_eRecursivity );
- }
-}
-
-} // namespace ploc
-} // namespace csv
-
-
-#else
-#error For using csv::ploc there has to be defined: WNT or UNX.
-#endif
-
-
-namespace csv
-{
-namespace ploc
-{
-
-const Path &
-Directory::inq_MyPath() const
-{
- return aPath;
-}
-
-
-
-} // namespace ploc
-} // namespace csv
-
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cosv/source/storage/plocroot.cxx b/cosv/source/storage/plocroot.cxx
deleted file mode 100644
index faf48133ad6d..000000000000
--- a/cosv/source/storage/plocroot.cxx
+++ /dev/null
@@ -1,525 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#define CSV_USE_CSV_ASSERTIONS
-#include <cosv/csv_env.hxx>
-
-#include <cosv/comfunc.hxx>
-#include <cosv/string.hxx>
-#include <cosv/streamstr.hxx>
-#include <cosv/std_outp.hxx>
-#include <cosv/tpl/dyn.hxx>
-#include <cosv/ploc.hxx>
-
-// NOT FULLY DECLARED SERVICES
-#include <ctype.h>
-#include <cosv/bstream.hxx>
-#include <cosv/csv_ostream.hxx>
-
-
-namespace csv
-{
-namespace ploc
-{
-
-
-class UnixRootDir : public Root
-{
- public:
- UnixRootDir();
-
- virtual void Get(
- ostream & o_rPath ) const;
- virtual void Get(
- bostream & o_rPath ) const;
- virtual DYN Root * CreateCopy() const;
- virtual const char *
- OwnDelimiter() const;
-};
-
-class WorkingDir : public Root
-{
- public:
- WorkingDir(
- const char * i_sDelimiter = Delimiter() );
-
- virtual void Get(
- ostream & o_rPath ) const;
- virtual void Get(
- bostream & o_rPath ) const;
- virtual DYN Root * CreateCopy() const;
- virtual const char *
- OwnDelimiter() const;
- private:
- String sOwnDelimiter;
-};
-
-class WinRootDir : public Root
-{
- public:
- WinRootDir();
-
- virtual void Get(
- ostream & o_rPath ) const;
- virtual void Get(
- bostream & o_rPath ) const;
- virtual DYN Root * CreateCopy() const;
- virtual const char *
- OwnDelimiter() const;
-};
-
-class WinDrive : public Root
-{
- public:
- WinDrive(
- char i_cDrive );
- virtual void Get(
- ostream & o_rPath ) const;
- virtual void Get(
- bostream & o_rPath ) const;
- virtual DYN Root * CreateCopy() const;
- virtual const char *
- OwnDelimiter() const;
- private:
- char cDrive;
-};
-
-class WinDriveRootDir : public Root
-{
- public:
- WinDriveRootDir(
- const char * i_sPath );
- WinDriveRootDir(
- char i_cDrive );
-
- virtual void Get(
- ostream & o_rPath ) const;
- virtual void Get(
- bostream & o_rPath ) const;
- virtual DYN Root * CreateCopy() const;
- virtual const char *
- OwnDelimiter() const;
- private:
- char cDrive;
-};
-
-class UNCRoot : public Root
-{
- public:
- UNCRoot(
- const char * i_sPath );
- UNCRoot(
- const String & i_sComputer,
- const String & i_sEntryPt );
-
- virtual void Get(
- ostream & o_rPath ) const;
- virtual void Get(
- bostream & o_rPath ) const;
- virtual DYN Root * CreateCopy() const;
- virtual const char *
- OwnDelimiter() const;
- private:
- String sComputer;
- String sEntryPt;
-};
-
-class InvalidRoot : public Root
-{
- public:
- virtual void Get(
- ostream & o_rPath ) const;
- virtual void Get(
- bostream & o_rPath ) const;
- virtual DYN Root * CreateCopy() const;
- virtual const char *
- OwnDelimiter() const;
-};
-
-
-DYN Root *
-Create_WindowsRoot( const char * & o_sPathAfterRoot,
- const char * i_sPath )
-{
- if (i_sPath[0] == '\\')
- {
- if (i_sPath[1] == '\\')
- { // UNC path name
- o_sPathAfterRoot = strchr(i_sPath+2,'\\');
- if (o_sPathAfterRoot != 0)
- {
- o_sPathAfterRoot = strchr(o_sPathAfterRoot+1,'\\');
- if (o_sPathAfterRoot != 0)
- ++o_sPathAfterRoot;
- return new UNCRoot(i_sPath);
- }
- return new InvalidRoot; // Incomplete UNC root.
- }
- else
- {
- o_sPathAfterRoot = i_sPath+1;
- return new WinRootDir;
- }
- }
- else if (i_sPath[1] == ':')
- {
- if ( i_sPath[2] == '\\')
- {
- o_sPathAfterRoot = i_sPath + 3;
- return new WinDriveRootDir(i_sPath);
- }
- else
- {
- o_sPathAfterRoot = i_sPath + 2;
- return new WinDrive(*i_sPath);
- }
- }
- else
- {
- o_sPathAfterRoot = i_sPath;
- return new WorkingDir("\\");
- }
-}
-
-DYN Root *
-Create_UnixRoot( const char * & o_sPathAfterRoot,
- const char * i_sPath )
-{
- if (*i_sPath == '/')
- {
- o_sPathAfterRoot = i_sPath + 1;
- return new UnixRootDir;
- }
- else //
- {
- o_sPathAfterRoot = i_sPath;
- return new WorkingDir("/");
- } // endif
-}
-
-
-//********************** Root ****************************//
-
-Root::~Root()
-{
-
-}
-
-DYN Root *
-Root::Create_( const char * & o_sPathAfterRoot,
- const char * i_sPath,
- const char * i_sDelimiter )
-{
- if (i_sPath[0] == '.')
- {
- switch ( i_sPath[1] )
- {
- case '\0': o_sPathAfterRoot = i_sPath + 1;
- break;
- case '\\': o_sPathAfterRoot = i_sPath + 2;
- break;
- case '/': o_sPathAfterRoot = i_sPath + 2;
- break;
- case '.': o_sPathAfterRoot = i_sPath;
- break;
- default:
- o_sPathAfterRoot = 0;
- return new InvalidRoot;
- } // end switch (i_sPath[1])
-
- return new WorkingDir;
- } // end if (i_sPath[0] == '.')
-
- switch (*i_sDelimiter)
- {
- case '\\': return Create_WindowsRoot(o_sPathAfterRoot, i_sPath);
- case '/': return Create_UnixRoot(o_sPathAfterRoot, i_sPath);
- }
-
- o_sPathAfterRoot = 0;
- return new InvalidRoot;
-}
-
-
-
-//********************** UnixRootDir ****************************//
-
-
-UnixRootDir::UnixRootDir()
-{
-}
-
-void
-UnixRootDir::Get( ostream & o_rPath ) const
-{
- o_rPath << '/';
-}
-
-void
-UnixRootDir::Get( bostream & o_rPath ) const
-{
- o_rPath.write( "/", 1 );
-}
-
-DYN Root *
-UnixRootDir::CreateCopy() const
-{
- return new UnixRootDir;
-}
-
-const char *
-UnixRootDir::OwnDelimiter() const
-{
- return "/";
-}
-
-
-//********************** WorkingDir ****************************//
-
-WorkingDir::WorkingDir( const char * i_sDelimiter )
- : sOwnDelimiter(i_sDelimiter)
-{
-}
-
-void
-WorkingDir::Get( ostream & o_rPath ) const
-{
- o_rPath << '.' << sOwnDelimiter;
-}
-
-void
-WorkingDir::Get( bostream & o_rPath ) const
-{
- o_rPath.write( ".", 1 );
- o_rPath.write( sOwnDelimiter );
-}
-
-DYN Root *
-WorkingDir::CreateCopy() const
-{
- return new WorkingDir(sOwnDelimiter);
-}
-
-const char *
-WorkingDir::OwnDelimiter() const
-{
- return sOwnDelimiter;
-}
-
-
-//********************** WinRootDir ****************************//
-
-WinRootDir::WinRootDir()
-{
-}
-
-void
-WinRootDir::Get( ostream & o_rPath ) const
-{
- o_rPath << '\\';
-}
-
-void
-WinRootDir::Get( bostream & o_rPath ) const
-{
- o_rPath.write( "\\", 1 );
-}
-
-DYN Root *
-WinRootDir::CreateCopy() const
-{
- return new WinRootDir;
-}
-
-const char *
-WinRootDir::OwnDelimiter() const
-{
- return "\\";
-}
-
-
-//********************** WinDrive ****************************//
-
-WinDrive::WinDrive( char i_cDrive )
- : cDrive(static_cast< char >(toupper(i_cDrive)))
-{
-}
-
-void
-WinDrive::Get( ostream & o_rPath ) const
-{
- o_rPath << cDrive << ':';
-}
-
-void
-WinDrive::Get( bostream & o_rPath ) const
-{
- static char buf_[3] = " :";
- buf_[0] = cDrive;
- o_rPath.write( &buf_[0], 2 );
-}
-
-DYN Root *
-WinDrive::CreateCopy() const
-{
- return new WinDrive(cDrive);
-}
-
-const char *
-WinDrive::OwnDelimiter() const
-{
- return "\\";
-}
-
-
-//********************** WinDriveRootDir ****************************//
-
-WinDriveRootDir::WinDriveRootDir( const char * i_sPath )
- : cDrive(static_cast< char >(toupper(*i_sPath)))
-{
- if ( 'A' > cDrive OR 'Z' < cDrive )
- cDrive = 0;
-}
-
-WinDriveRootDir::WinDriveRootDir( char i_cDrive )
- : cDrive(i_cDrive)
-{
-}
-
-void
-WinDriveRootDir::Get( ostream & o_rPath ) const
-{
- o_rPath << cDrive << ":\\";
-}
-
-void
-WinDriveRootDir::Get( bostream & o_rPath ) const
-{
- static char buf_[4] = " :\\";
- buf_[0] = cDrive;
- o_rPath.write( &buf_[0], 3 );
-}
-
-DYN Root *
-WinDriveRootDir::CreateCopy() const
-{
- return new WinDriveRootDir(cDrive);
-}
-
-const char *
-WinDriveRootDir::OwnDelimiter() const
-{
- return "\\";
-}
-
-
-//********************** UNCRoot ****************************//
-
-UNCRoot::UNCRoot( const char * i_sPath )
-// : // sComputer,
- // sEntryPt
-{
- const char * pRestPath = i_sPath + 2;
- const char * pDirEnd = strchr(pRestPath, '\\');
- csv_assert(pDirEnd != 0);
-
- sComputer = String(pRestPath, pDirEnd - pRestPath);
- pRestPath = pDirEnd+1;
- pDirEnd = strchr(pRestPath, '\\');
-
- if ( pDirEnd != 0 )
- {
- sEntryPt = String(pRestPath, pDirEnd - pRestPath);
- }
- else
- {
- sEntryPt = pRestPath;
- }
-}
-
-UNCRoot::UNCRoot( const String & i_sComputer,
- const String & i_sEntryPt )
- : sComputer(i_sComputer),
- sEntryPt(i_sEntryPt)
-{
-}
-
-void
-UNCRoot::Get( ostream & o_rPath ) const
-{
- o_rPath << "\\\\" << sComputer << '\\' << sEntryPt << "\\";
-}
-
-void
-UNCRoot::Get( bostream & o_rPath ) const
-{
- o_rPath.write( "\\\\", 2 );
- o_rPath.write( sComputer );
- o_rPath.write( "\\", 1 );
- o_rPath.write( sEntryPt );
- o_rPath.write( "\\", 1 );
-}
-
-DYN Root *
-UNCRoot::CreateCopy() const
-{
- return new UNCRoot(sComputer,sEntryPt);
-}
-
-const char *
-UNCRoot::OwnDelimiter() const
-{
- return "\\";
-}
-
-
-
-//********************** InvalidRoot ****************************//
-
-void
-InvalidRoot::Get( ostream & ) const
-{
-}
-
-void
-InvalidRoot::Get( bostream & ) const
-{
-}
-
-DYN Root *
-InvalidRoot::CreateCopy() const
-{
- return new InvalidRoot;
-}
-
-const char *
-InvalidRoot::OwnDelimiter() const
-{
- return 0;
-}
-
-
-
-
-} // namespace ploc
-} // namespace csv
-
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cosv/source/strings/str_types.cxx b/cosv/source/strings/str_types.cxx
deleted file mode 100644
index 8ea037663eb4..000000000000
--- a/cosv/source/strings/str_types.cxx
+++ /dev/null
@@ -1,44 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#define CSV_USE_CSV_ASSERTIONS
-#include <cosv/csv_env.hxx>
-
-#include <cosv/comfunc.hxx>
-#include <cosv/string.hxx>
-#include <cosv/streamstr.hxx>
-#include <cosv/std_outp.hxx>
-#include <cosv/tpl/dyn.hxx>
-#include <cosv/str_types.hxx>
-
-
-
-namespace csv
-{
-
-CharOrder_Table::CharOrder_Table( const int * i_pCharWeightsArray )
-{
- memcpy( cWeights, i_pCharWeightsArray, 256 * sizeof(int) );
-}
-
-
-} // namespace csv
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cosv/source/strings/streamstr.cxx b/cosv/source/strings/streamstr.cxx
deleted file mode 100644
index 809379be0eff..000000000000
--- a/cosv/source/strings/streamstr.cxx
+++ /dev/null
@@ -1,606 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#define CSV_USE_CSV_ASSERTIONS
-#include <cosv/csv_env.hxx>
-
-#include <cosv/comfunc.hxx>
-#include <cosv/string.hxx>
-#include <cosv/streamstr.hxx>
-#include <cosv/std_outp.hxx>
-#include <cosv/tpl/dyn.hxx>
-
-// NOT FULLY DECLARED SERVICES
-#include <string.h>
-#include <stdio.h>
-#include <stdarg.h> // both are needed to satisfy all compilers
-#include <cstdarg> // std::va_list and friends
-
-#include <cosv/tpl/swelist.hxx>
-
-
-
-namespace csv
-{
-
-
-// Maximal sizes of resulting integers in text form:
-const uintt C_short_max_size = sizeof(short) * 3;
-const uintt C_int_max_size = sizeof(int) * 3;
-const uintt C_long_max_size = sizeof(long) * 3;
-
-
-inline void
-StreamStr::Advance(size_type i_nAddedSize)
-{ pCur += i_nAddedSize; }
-
-
-
-StreamStr::StreamStr( size_type i_nCapacity )
- : bostream(),
- nCapacity1( i_nCapacity + 1 ),
- dpData( new char [i_nCapacity + 1] ),
- pEnd(dpData),
- pCur(dpData),
- eMode(str::overwrite)
-{
- *pEnd = '\0';
-}
-
-StreamStr::StreamStr( const self & i_rOther )
- : bostream(),
- nCapacity1( i_rOther.nCapacity1 ),
- dpData( new char [i_rOther.nCapacity1] ),
- pEnd( dpData + strlen(i_rOther.dpData) ),
- pCur( dpData + i_rOther.tellp() ),
- eMode(i_rOther.eMode)
-{
- strcpy( dpData, i_rOther.dpData ); // SAFE STRCPY (#100211# - checked)
-}
-
-StreamStr::~StreamStr()
-{
- delete [] dpData;
-}
-
-
-StreamStr &
-StreamStr::operator=( const self & i_rOther )
-{
- delete [] dpData;
-
- nCapacity1 = i_rOther.nCapacity1;
- dpData = new char [i_rOther.nCapacity1];
- pEnd = dpData + strlen(i_rOther.dpData);
- strcpy( dpData, i_rOther.dpData ); // SAFE STRCPY (#100211# - checked)
- pCur = dpData + i_rOther.tellp();
- eMode = i_rOther.eMode;
-
- return *this;
-}
-
-StreamStr &
-StreamStr::operator<<( const char * i_s )
-{
- size_type nLength = strlen(i_s);
-
- ProvideAddingSize( nLength );
- memcpy( pCur, i_s, nLength );
- Advance(nLength);
-
- return *this;
-}
-
-StreamStr &
-StreamStr::operator<<( const String & i_s )
-{
- size_type nLength = i_s.length();
-
- ProvideAddingSize( nLength );
- memcpy( pCur, i_s.c_str(), nLength );
- Advance(nLength);
-
- return *this;
-}
-
-StreamStr &
-StreamStr::operator<<( char i_c )
-{
- ProvideAddingSize( 1 );
- *pCur = i_c;
- Advance(1);
-
- return *this;
-}
-
-StreamStr &
-StreamStr::operator<<( unsigned char i_c )
-{
- return operator<<( char(i_c) );
-}
-
-StreamStr &
-StreamStr::operator<<( signed char i_c )
-{
- return operator<<( char(i_c) );
-}
-
-StreamStr &
-StreamStr::operator<<( short i_n )
-{
- char buf[C_short_max_size] = "";
- sprintf( buf, "%hi", i_n ); // SAFE SPRINTF (#100211# - checked)
-
- size_type nLength = strlen(buf);
- ProvideAddingSize( nLength );
- memcpy( pCur, buf, nLength );
- Advance( nLength );
-
- return *this;
-}
-
-StreamStr &
-StreamStr::operator<<( unsigned short i_n )
-{
- char buf[C_short_max_size] = "";
- sprintf( buf, "%hu", i_n ); // SAFE SPRINTF (#100211# - checked)
-
- size_type nLength = strlen(buf);
- ProvideAddingSize( nLength );
- memcpy( pCur, buf, nLength );
- Advance( nLength );
-
- return *this;
-}
-
-StreamStr &
-StreamStr::operator<<( int i_n )
-{
- char buf[C_int_max_size] = "";
- sprintf( buf, "%i", i_n ); // SAFE SPRINTF (#100211# - checked)
-
- size_type nLength = strlen(buf);
- ProvideAddingSize( nLength );
- memcpy( pCur, buf, nLength );
- Advance( nLength );
-
- return *this;
-}
-
-StreamStr &
-StreamStr::operator<<( unsigned int i_n )
-{
- char buf[C_int_max_size] = "";
- sprintf( buf, "%u", i_n ); // SAFE SPRINTF (#100211# - checked)
-
- size_type nLength = strlen(buf);
- ProvideAddingSize( nLength );
- memcpy( pCur, buf, nLength );
- Advance( nLength );
-
- return *this;
-}
-
-StreamStr &
-StreamStr::operator<<( long i_n )
-{
- char buf[C_long_max_size] = "";
- sprintf( buf, "%li", i_n ); // SAFE SPRINTF (#100211# - checked)
-
- size_type nLength = strlen(buf);
- ProvideAddingSize( nLength );
- memcpy( pCur, buf, nLength );
- Advance( nLength );
-
- return *this;
-}
-
-StreamStr &
-StreamStr::operator<<( unsigned long i_n )
-{
- char buf[C_long_max_size] = "";
- sprintf( buf, "%lu", i_n ); // SAFE SPRINTF (#100211# - checked)
-
- size_type nLength = strlen(buf);
- ProvideAddingSize( nLength );
- memcpy( pCur, buf, nLength );
- Advance( nLength );
-
- return *this;
-}
-
-StreamStr &
-StreamStr::operator<<( float i_n )
-{
- const int C_float_max_size = 20;
- char buf[C_float_max_size] = "";
- sprintf( buf, "%.*g", C_float_max_size-8, i_n ); // SAFE SPRINTF (#100211# - checked)
-
- size_type nLength = strlen(buf);
- ProvideAddingSize( nLength );
- memcpy( pCur, buf, nLength );
- Advance( nLength );
-
- return *this;
-}
-
-StreamStr &
-StreamStr::operator<<( double i_n )
-{
- const int C_double_max_size = 30;
- char buf[C_double_max_size] = "";
- sprintf( buf, "%.*lg", C_double_max_size-8, i_n ); // SAFE SPRINTF (#100211# - checked)
-
- size_type nLength = strlen(buf);
- ProvideAddingSize( nLength );
- memcpy( pCur, buf, nLength );
- Advance( nLength );
-
- return *this;
-}
-
-const char &
-StreamStr::operator[]( position_type i_nPosition ) const
-{
- static const char aNull_ = '\0';
-
- if ( position_type(pEnd - dpData) > i_nPosition )
- return dpData[i_nPosition];
- return aNull_;
-}
-
-char &
-StreamStr::operator[]( position_type i_nPosition )
-{
- static char aDummy_ = '\0';
-
- if ( position_type(pEnd - dpData) > i_nPosition )
- return dpData[i_nPosition];
- return aDummy_;
-}
-
-void
-StreamStr::resize( size_type i_nMinimumCapacity )
-{
- if ( i_nMinimumCapacity <= capacity() )
- return;
-
- Resize(i_nMinimumCapacity);
-}
-
-StreamStr &
-StreamStr::seekp( seek_type i_nCount,
- seek_dir i_eDirection )
-{
- seek_type nLength = seek_type( length() );
- seek_type nNewPos = tellp();
-
- switch ( i_eDirection )
- {
- case ::csv::beg: nNewPos = i_nCount;
- break;
- case ::csv::cur: nNewPos += i_nCount;
- break;
- case ::csv::end: nNewPos = nLength + i_nCount;
- break;
- }
-
- if ( in_range<seek_type>(0, nNewPos, nLength + 1) )
- {
- pCur = dpData + nNewPos;
- if (eMode == str::overwrite)
- {
- pEnd = pCur;
- *pEnd = '\0';
- }
- }
-
- return *this;
-}
-
-StreamStr &
-StreamStr::set_insert_mode( insert_mode i_eMode )
-{
- eMode = i_eMode;
- return *this;
-}
-
-void
-StreamStr::pop_front( size_type i_nCount )
-{
- size_type nCount = min(i_nCount, length());
-
- MoveData( dpData + nCount, pEnd, -(seek_type(nCount)) );
-
- pCur -= nCount;
- pEnd -= nCount;
- *pEnd = '\0';
-}
-
-void
-StreamStr::pop_back( size_type i_nCount )
-{
- size_type nCount = min(i_nCount, length());
- pEnd -= nCount;
- if (pCur > pEnd)
- pCur = pEnd;
- *pEnd = '\0';
-}
-
-StreamStr &
-StreamStr::operator_join( std::vector<String>::const_iterator i_rBegin,
- std::vector<String>::const_iterator i_rEnd,
- const char * i_sLink )
-{
- std::vector<String>::const_iterator it = i_rBegin;
- if ( it != i_rEnd )
- {
- operator<<(*it);
- for ( ++it; it != i_rEnd; ++it )
- {
- operator<<(i_sLink);
- operator<<(*it);
- }
- }
- return *this;
-}
-
-StreamStr &
-StreamStr::operator_add_substr( const char * i_sText,
- size_type i_nLength )
-{
- size_type nLength = csv::min<size_type>(i_nLength, strlen(i_sText));
-
- ProvideAddingSize( nLength );
- memcpy( pCur, i_sText, nLength );
- Advance(nLength);
-
- return *this;
-}
-
-StreamStr &
-StreamStr::operator_add_token( const char * i_sText,
- char i_cDelimiter )
-{
- const char * pTokenEnd = strchr(i_sText, i_cDelimiter);
- if (pTokenEnd == 0)
- operator<<(i_sText);
- else
- operator_add_substr(i_sText, pTokenEnd-i_sText);
- return *this;
-}
-
-StreamStr &
-StreamStr::operator_read_line( bstream & i_src )
-{
- char c = 0;
- intt nCount = 0;
- for ( nCount = i_src.read(&c, 1);
- nCount == 1 AND c != 13 AND c != 10;
- nCount = i_src.read(&c, 1) )
- {
- operator<<(c);
- }
-
- // Check for line-end:
- if ( NOT (nCount == 0) AND c != 0 )
- {
- char oldc = c;
- if (i_src.read(&c, 1) == 1)
- {
- if ( (c != 13 AND c != 10) OR c == oldc)
- i_src.seek(-1,::csv::cur);
- }
- }
- return *this;
-}
-
-void
-StreamStr::strip_front_whitespace()
-{
- const_iterator it = begin();
- for ( ;
- it != end() ? *it < 33 : false;
- ++it ) ;
- pop_front(it - begin());
-}
-
-void
-StreamStr::strip_back_whitespace()
-{
- const_iterator it = end();
- for ( ;
- it != begin() ? *(it-1) < 33 : false;
- --it ) ;
- pop_back(end() - it);
-}
-
-void
-StreamStr::strip_frontback_whitespace()
-{
- strip_front_whitespace();
- strip_back_whitespace();
-}
-
-void
-StreamStr::replace_all( char i_cCarToSearch,
- char i_cReplacement )
-{
- for ( char * p = dpData; p != pEnd; ++p )
- {
- if (*p == i_cCarToSearch)
- *p = i_cReplacement;
- }
-}
-
-class StreamStrPool
-{
- public:
- StreamStrPool();
- ~StreamStrPool();
- private:
- // Non-copyable
- StreamStrPool(StreamStrPool &); // not defined
- void operator =(StreamStrPool &); // not defined
-
- // Interface to:
- friend class StreamStrLock;
- static StreamStr & AcquireFromPool_(
- uintt i_nMinimalSize );
- static void ReleaseToPool_(
- DYN StreamStr * let_dpUsedStr );
-
- // DATA
- SweList< DYN StreamStr* >
- aPool;
-};
-
-StreamStrPool::StreamStrPool()
-{
-}
-
-StreamStrPool::~StreamStrPool()
-{
- for ( SweList< DYN StreamStr* >::iterator it = aPool.begin();
- it != aPool.end();
- ++it )
- {
- delete (*it);
- }
-}
-
-namespace
-{
- static StreamStrPool aPool_;
-}
-
-
-StreamStr &
-StreamStrPool::AcquireFromPool_( uintt i_nMinimalSize )
-{
- if ( aPool_.aPool.empty() )
- {
- return *new StreamStr(i_nMinimalSize);
- }
-
- StreamStr & ret = *aPool_.aPool.front();
- aPool_.aPool.pop_front();
- ret.resize(i_nMinimalSize);
- ret.seekp(0);
- ret.set_insert_mode(str::overwrite);
- return ret;
-}
-
-void
-StreamStrPool::ReleaseToPool_( DYN StreamStr * let_dpUsedStr )
-{
- aPool_.aPool.push_back( let_dpUsedStr );
-}
-
-StreamStrLock::StreamStrLock( uintt i_nMinimalSize )
- : pStr( &StreamStrPool::AcquireFromPool_(i_nMinimalSize) )
-{
-}
-
-StreamStrLock::~StreamStrLock()
-{
- StreamStrPool::ReleaseToPool_(pStr);
-}
-
-
-UINT32
-StreamStr::do_write( const void * i_pSrc,
- UINT32 i_nNrofBytes )
-{
- ProvideAddingSize( i_nNrofBytes );
- memcpy( pCur, i_pSrc, i_nNrofBytes );
- Advance(i_nNrofBytes);
-
- return i_nNrofBytes;
-}
-
-void
-StreamStr::ProvideAddingSize( size_type i_nSize2Add )
-{
- size_type nLength = length();
- if ( capacity() - nLength < i_nSize2Add )
- Resize( nLength + i_nSize2Add );
-
- pEnd += i_nSize2Add;
- *pEnd = '\0';
-
- if (eMode == str::insert AND pCur != pEnd)
- {
- MoveData( pCur, pCur + i_nSize2Add, seek_type(i_nSize2Add) );
- }
-}
-
-void
-StreamStr::Resize( size_type i_nMinimumCapacity )
-{
- size_type nNewSize = nCapacity1 < 128
- ? nCapacity1 << 1
- : (nCapacity1 << 1) - (nCapacity1 >> 1);
- nCapacity1 = csv::max( nNewSize, size_type(i_nMinimumCapacity + 1) );
-
- char * pNew = new char[nCapacity1];
- strcpy ( pNew, dpData ); // SAFE STRCPY (#100211# - checked)
- pEnd = pNew + (pEnd - dpData);
- pCur = pNew + (pCur - dpData);
-
- delete [] dpData;
- dpData = pNew;
-}
-
-void
-StreamStr::MoveData( char * i_pStart,
- char * i_pEnd,
- seek_type i_nDiff )
-{
- if (i_nDiff > 0)
- {
- register const char * pSrc = i_pEnd;
- register char * pDest = i_pEnd + i_nDiff;
- for ( ; pSrc != i_pStart; --pSrc, --pDest )
- {
- *pDest = *pSrc;
- }
- *pDest = *pSrc;
- }
- else if (i_nDiff < 0)
- {
- const char * pSrc = i_pStart;
- char * pDest = i_pStart + i_nDiff;
- for ( ; pSrc != i_pEnd; ++pSrc, ++pDest )
- {
- *pDest = *pSrc;
- }
- }
-}
-
-// Does nothing, only the name of this function is needed.
-void
-c_str()
-{
- // Does nothing.
-}
-
-} // namespace csv
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cosv/source/strings/string.cxx b/cosv/source/strings/string.cxx
deleted file mode 100644
index 57f98a50e077..000000000000
--- a/cosv/source/strings/string.cxx
+++ /dev/null
@@ -1,235 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#define CSV_USE_CSV_ASSERTIONS
-#include <cosv/csv_env.hxx>
-
-#include <cosv/comfunc.hxx>
-#include <cosv/string.hxx>
-#include <cosv/streamstr.hxx>
-#include <cosv/std_outp.hxx>
-#include <cosv/tpl/dyn.hxx>
-
-// NOT FULLY DECLARED SERVICES
-#include <string.h>
-
-
-
-
-namespace csv
-{
-
-
-inline const char *
-str_from_StringOffset( const String & i_rStr,
- str::size i_nOffset )
-{
- return i_nOffset < i_rStr.size()
- ? i_rStr.c_str() + i_nOffset
- : "";
-}
-
-inline const char *
-str_from_ptr( const char * i_str )
-{
-
- return valid_str(i_str);
-}
-
-
-//********************* String::S_Data **********************//
-
-inline String::
-S_Data::S_Data()
- : nCount(1)
-{
-}
-
-String::
-S_Data::S_Data( const char * i_sData,
- size_type i_nValidLength )
- : aStr( str_from_ptr(i_sData),
- (i_nValidLength != str::maxsize
- ? i_nValidLength
- : strlen(i_sData)) ),
- nCount(1)
-{
-}
-
-String::
-S_Data::~S_Data()
-{
- csv_assert( nCount == 0 );
-}
-
-const String::S_Data *
-String::
-S_Data::Acquire() const
-{
-#ifdef CSV_NO_MUTABLE
- ++ (const_cast< uintt& >(nCount));
-#else
- ++nCount;
-#endif
- return this;
-}
-
-void
-String::
-S_Data::Release() const
-{
-#ifdef CSV_NO_MUTABLE
- -- (const_cast< uintt& >(nCount));
-#else
- --nCount;
-#endif
- if (nCount == 0)
- delete (const_cast< S_Data* >(this));
-}
-
-
-//************************** String **************************//
-
-
-String::String()
- : pd( String::Null_().pd->Acquire() )
-{
-}
-
-String::String( const char * i_str )
- : pd( new S_Data(i_str) )
-{
-}
-
-String::String( const char * i_str,
- size_type i_nLength )
- : pd( new S_Data(i_str, i_nLength) )
-{
-}
-
-String::String( const_iterator i_itBegin,
- const_iterator i_itEnd )
- : pd( new S_Data(i_itBegin, size_type(i_itEnd - i_itBegin)) )
-{
-}
-
-String::String( const self & i_rStr )
- : pd( i_rStr.pd->Acquire() )
-{
-}
-
-String::~String()
-{
- pd->Release();
-}
-
-
-String &
-String::operator=( const self & i_rStr )
-{
- i_rStr.pd->Acquire();
- pd->Release();
- pd = i_rStr.pd;
-
- return *this;
-}
-
-String &
-String::operator=( const char * i_str )
-{
- const S_Data *
- pTemp = new S_Data(i_str);
- pd->Release();
- pd = pTemp;
-
- return *this;
-}
-
-void
-String::assign( const char * i_str,
- size_type i_nLength )
-{
- const S_Data *
- pTemp = new S_Data( i_str, i_nLength );
- pd->Release();
- pd = pTemp;
-}
-
-int
-String::compare( const self & i_rStr ) const
-{
- return strcmp( c_str(), i_rStr.c_str() );
-}
-
-int
-String::compare( const CharOrder_Table & i_rOrder,
- const self & i_rStr ) const
-{
- return csv::compare( i_rOrder, c_str(), i_rStr.c_str() );
-}
-
-const String &
-String::Null_()
-{
- // Must not use the default constructor! Because that one calls
- // this function, which would create a circular dependency.
- static const String aNull_("");
- return aNull_;
-}
-
-const char &
-String::Nulch_()
-{
- static const char cNull_ = '\0';
- return cNull_;
-}
-
-
-int
-compare( const String & i_s1,
- csv::str::position i_nStartPosition1,
- const char * i_s2,
- csv::str::size i_nLength )
-{
- const char * pS1 = str_from_StringOffset( i_s1, i_nStartPosition1 );
-
- if ( i_nLength != csv::str::maxsize )
- return strncmp( pS1,
- i_s2,
- i_nLength );
- else
- return strcmp( pS1,
- i_s2 );
-}
-
-int
-compare( const CharOrder_Table & i_rOrder,
- const char * i_s1,
- const char * i_s2 )
-{
- const char * it1 = i_s1;
- const char * it2 = i_s2;
- for ( ; i_rOrder(*it1) == i_rOrder(*it2) AND *it1 != '\0'; ++it1, ++it2 )
- {}
- return int( i_rOrder(*it1) - i_rOrder(*it2) );
-}
-
-} // namespace csv
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cosv/source/unittest/file_ut.cxx b/cosv/source/unittest/file_ut.cxx
deleted file mode 100644
index 08c8f83a5107..000000000000
--- a/cosv/source/unittest/file_ut.cxx
+++ /dev/null
@@ -1,121 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#define CSV_USE_CSV_ASSERTIONS
-#include <cosv/csv_env.hxx>
-
-#include <cosv/comfunc.hxx>
-#include <cosv/string.hxx>
-#include <cosv/streamstr.hxx>
-#include <cosv/std_outp.hxx>
-#include <cosv/tpl/dyn.hxx>
-#include <cosv/file.hxx>
-
-// NOT FULLY DECLARED SERVICES
-#include <ut.hxx>
-
-using csv::File;
-
-
-/** @file
- UnitTests for class File.
-*/
-
-FUT_DECL( File, Read );
-FUT_DECL( File, Write );
-FUT_DECL( File, Seek );
-FUT_DECL( File, SeekBack );
-FUT_DECL( File, SeekRelative );
-
-
-bool
-classtest_File()
-{
- csv::File aFile( "bigfile.txt", csv::CFM_RW, 0 );
- csv::File & rFile = aFile;
-
- rFile.Open();
-
- bool ret = ftest_Read( rFile );
- ret = ftest_Write( rFile ) AND ret;
- ret = ftest_SeekBack( rFile ) AND ret;
- ret = ftest_SeekRelative( rFile ) AND ret;
-
- rFile.Close();
-
- return ret;
-}
-
-
-
-FUT_DECL( File, Read )
-{
- bool ret = true;
-
- rFile.SeekBack(0);
- uintt nSourceSize = rFile.Position();
- rFile.Seek(0);
-
- char * pBuf = new char[nSourceSize+1];
- uintt nCount = rFile.Read(pBuf,nSourceSize);
-
- UT_CHECK( Read, nCount == nSourceSize );
-
- return ret;
-}
-
-FUT_DECL( File, Write )
-{
- bool ret = true;
-
-
-
- return ret;
-}
-
-FUT_DECL( File, Seek )
-{
- bool ret = true;
-
-
-
- return ret;
-}
-
-FUT_DECL( File, SeekBack )
-{
- bool ret = true;
-
-
-
- return ret;
-}
-
-FUT_DECL( File, SeekRelative )
-{
- bool ret = true;
-
-
-
- return ret;
-}
-
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cosv/source/unittest/string_ut.cxx b/cosv/source/unittest/string_ut.cxx
deleted file mode 100644
index f2d8d514dc79..000000000000
--- a/cosv/source/unittest/string_ut.cxx
+++ /dev/null
@@ -1,71 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#define CSV_USE_CSV_ASSERTIONS
-#include <cosv/csv_env.hxx>
-
-#include <cosv/comfunc.hxx>
-#include <cosv/string.hxx>
-#include <cosv/streamstr.hxx>
-#include <cosv/std_outp.hxx>
-#include <cosv/tpl/dyn.hxx>
-
-// NOT FULLY DECLARED SERVICES
-#include <ut.hxx>
-
-using csv::SimpleString;
-
-
-/** @file
- UnitTests for class String.
-*/
-
-inline bool
-check_value( const String & a, const char * b )
-{
- return strcmp( a.c_str(), b ) == 0;
-}
-
-
-bool
-classtest_String( csv::SimpleString & rSimpleString )
-{
- String x1;
- UT_CHECK( String(), check_value(x1,"") )
-
- const char * s2a = "";
- String x2a(s2a);
- UT_CHECK( String(const char*), check_value(x2a,s2a) )
-
- const char * s2b = "_zluoadninger prrg chiäßi(/%$##@\\\"'''fh kl";
- String x2b(s2b);
- UT_CHECK( String(const char*), check_value(x2b,s2b) )
-
-
- bool ret = ftest_Read( rSimpleString );
- ret &= ftest_Write( rSimpleString ) AND ret;
- ret &= ftest_SeekBack( rSimpleString ) AND ret;
- ret &= ftest_SeekRelative( rSimpleString ) AND ret;
-
- rSimpleString.Close();
-
- return ret;
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cosv/source/unittest/ut.hxx b/cosv/source/unittest/ut.hxx
deleted file mode 100644
index fcd324a71ad5..000000000000
--- a/cosv/source/unittest/ut.hxx
+++ /dev/null
@@ -1,46 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef COSV_UNITTEST_UT_HXX
-#define COSV_UNITTEST_UT_HXX
-
-
-#define UT_CHECK( fname, cond ) \
- if ( NOT (cond) ) { std::cerr << "ftest_" << #fname << " " << #cond << endl; \
- ret = false; }
-
-#define CUT_DECL( nsp, cname ) \
- bool classtest_##cname()
-#define FUT_DECL( cname, fname ) \
- bool ftest_##fname( cname & r##cname )
-
-#define UT_RESULT( result ) \
- if (result ) std::cout << "All unit tests passed successfully." << std::endl; \
- else std::cout << "Errors in unit tests.\n" << std::endl
-
-
-
-CUT_DECL( csv, File );
-CUT_DECL( csv, String );
-
-#endif
-
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cosv/source/unittest/ut_main.cxx b/cosv/source/unittest/ut_main.cxx
deleted file mode 100644
index 016025e08509..000000000000
--- a/cosv/source/unittest/ut_main.cxx
+++ /dev/null
@@ -1,47 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#define CSV_USE_CSV_ASSERTIONS
-#include <cosv/csv_env.hxx>
-
-#include <cosv/comfunc.hxx>
-#include <cosv/string.hxx>
-#include <cosv/streamstr.hxx>
-#include <cosv/std_outp.hxx>
-#include <cosv/tpl/dyn.hxx>
-
-#include <cosv/file.hxx>
-#include <cosv/simplestring.hxx>
-#include "ut.hxx"
-
-
-
-int _cdecl
-main(int argc, char * argv[])
-{
- bool ret = classtest_File();
- ret = classtest_SimpleString AND ret;
-
- UT_RESULT( ret );
-
- return 0;
-}
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/cosv/bstream.hxx b/include/cosv/bstream.hxx
deleted file mode 100644
index 2d943bc02ce6..000000000000
--- a/include/cosv/bstream.hxx
+++ /dev/null
@@ -1,143 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef CSV_BSTREAM_HXX
-#define CSV_BSTREAM_HXX
-
-#include <string.h>
-#include <cosv/string.hxx>
-
-
-namespace csv
-{
-
-
-enum seek_dir
-{
- beg = 0,
- cur = 1,
- end = 2
-};
-
-
-class bistream
-{
- public:
- // LIFECYCLE
- virtual ~bistream() {}
-
- // OPERATIONS
- /// @return Number of actually read bytes.
- uintt read(
- void * out_pDest,
- uintt i_nNrofBytes);
- // INQUIRY
- /** @return True, if already one try to read had failed.
- There is no guarantee, that it returns true, if end of data
- is just reached.
- Though it will return false, if there is still somemething
- to read.
- */
- bool eod() const;
-
- private:
- virtual uintt do_read(
- void * out_pDest,
- uintt i_nNrofBytes) = 0;
- virtual bool inq_eod() const = 0;
-};
-
-
-class bostream
-{
- public:
- // LIFECYCLE
- virtual ~bostream() {}
-
- // OPERATIONS
- /// @return Number of actually written bytes.
- uintt write(
- const void * i_pSrc,
- uintt i_nNrofBytes);
- /// @return Number of actually written bytes.
- uintt write(
- const char * i_pSrc );
- /// @return Number of actually written bytes.
- uintt write(
- const String & i_pSrc );
- private:
- virtual uintt do_write(
- const void * i_pSrc,
- uintt i_nNrofBytes) = 0;
-};
-
-
-class bstream : public bistream,
- public bostream
-{
- public:
- uintt seek(
- intt i_nDistanceFromBegin,
- seek_dir i_eStartPoint = ::csv::beg );
- uintt position() const;
-
- private:
- virtual uintt do_seek(
- intt i_nDistance,
- seek_dir i_eStartPoint = ::csv::beg ) = 0;
- virtual uintt inq_position() const = 0;
-};
-
-
-// IMPLEMENTATION
-inline uintt
-bistream::read( void * o_pDest,
- uintt i_nNrofBytes)
- { return do_read(o_pDest, i_nNrofBytes); }
-inline bool
-bistream::eod() const
- { return inq_eod(); }
-
-inline uintt
-bostream::write( const void * i_pSrc,
- uintt i_nNrofBytes)
- { return do_write( i_pSrc, i_nNrofBytes ); }
-inline uintt
-bostream::write( const char * i_sSrc )
- { return write( i_sSrc, strlen(i_sSrc) ); }
-inline uintt
-bostream::write( const String & i_sSrc )
- { return write( i_sSrc.c_str(), i_sSrc.length() ); }
-
-inline uintt
-bstream::seek( intt i_nDistance,
- seek_dir i_eStartPoint )
- { return do_seek( i_nDistance, i_eStartPoint ); }
-inline uintt
-bstream::position() const
- { return inq_position(); }
-
-
-
-} // namespace csv
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/cosv/comdline.hxx b/include/cosv/comdline.hxx
deleted file mode 100644
index 80ebc763b9d9..000000000000
--- a/include/cosv/comdline.hxx
+++ /dev/null
@@ -1,63 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef CSV_COMDLINE_HXX
-#define CSV_COMDLINE_HXX
-// KORR_DEPRECATED_3.0
-// Replace by cosv/commandline.hxx.
-
-
-namespace csv
-{
-
-class CommandLine_Ifc
-{
- public:
- virtual ~CommandLine_Ifc() {}
-
- void Init(
- int argc,
- char * argv[] );
- void PrintUse() const;
- bool CheckParameters() const;
-
- private:
- virtual void do_Init(
- int argc,
- char * argv[] ) = 0;
-
- virtual void do_PrintUse() const = 0;
- virtual bool inq_CheckParameters() const = 0;
-};
-
-inline void
-CommandLine_Ifc::Init( int argc,
- char * argv[] )
- { do_Init( argc, argv ); }
-inline void
-CommandLine_Ifc::PrintUse() const
- { do_PrintUse(); }
-
-} // namespace csv
-
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/cosv/comfunc.hxx b/include/cosv/comfunc.hxx
deleted file mode 100644
index a294d81f2aae..000000000000
--- a/include/cosv/comfunc.hxx
+++ /dev/null
@@ -1,67 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef CSV_COMFUNC_HXX
-#define CSV_COMFUNC_HXX
-
-#include <stdlib.h>
-
-
-
-
-namespace csv
-{
- class String;
-
-
-// min, max and range functions
-template <class E>
-inline E max(E in1, E in2);
-template <class E>
-inline E min(E in1, E in2);
-template <class E>
-inline bool in_range(E low, E val, E high); // return low <= val < high;
-
-
-// string functions
-inline const char * valid_str(const char * str);
-inline bool no_str(const char * str); // return !str || !strlen(str)
-
-
-// IMPLEMENTATION
-template <class E>
-inline E
-max(E in1, E in2) { return in1 < in2 ? in2 : in1; }
-template <class E>
-inline E
-min(E in1, E in2) { return in1 < in2 ? in1 : in2; }
-template <class E>
-inline bool
-in_range(E low, E val, E high) { return low <= val AND val < high; }
-
-inline const char *
-valid_str(const char * str) { return str != 0 ? str : ""; }
-inline bool
-no_str(const char * str) { return str != 0 ? *str == '\0' : true; }
-
-} // namespace csv
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/cosv/csv_env.hxx b/include/cosv/csv_env.hxx
deleted file mode 100644
index f49ed54ea464..000000000000
--- a/include/cosv/csv_env.hxx
+++ /dev/null
@@ -1,148 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef CSV_CSV_ENV_HXX
-#define CSV_CSV_ENV_HXX
-
-
-
-//******* Include c-language-types ************//
-// size_t, wchar_t
-#include <stdlib.h>
-
-
-
-//******* Builtin types of exact length ************//
-
-// Exact length builtin types
-typedef signed char INT8;
-typedef unsigned char UINT8;
-typedef short INT16;
-typedef unsigned short UINT16;
-typedef long INT32;
-typedef unsigned long UINT32;
-typedef float REAL32;
-typedef double REAL64;
-
-
-// Additional builtin types
-typedef INT32 intt; // standard sized integer.
-typedef UINT32 uintt; // standard sized unsigned integer.
-typedef REAL64 real; // standard sized real.
-
-// Constants
-// ---------
-// Zero-pointer for use in ellipsed (...) parameter lists which expect a
-// pointer which may have another size than an int.
-// Must be a define to be used in precompiled headers:
-#define NIL ((void*)0)
-// char '\0'
-#define NULCH '\0'
-
-
-
-// Boolesche Operatoren
-#define AND &&
-#define OR ||
-#define NOT !
-
-// Macro for distinguishing dynamic allocated pointers from
-// referencing pointers
-#define DYN // Exact specification: DYN has to be used if and only if:
- // 1. DYN specifies a class member pointer or reference variable and
- // the class must free the referenced memory.
- // 2. DYN specifies a pointer or reference (return-) parameter of a function
- // and for in-parameters the function or its class
- // must free the referenced memory, the parameter is then called
- // a let-parameter.
- // For out- and inout-parameters
- // or return values the caller of the function hast to
- // free the referenced memory.
- //
- // It is irrelevant who allocated the memory!
- //
- // DYN - variables use the prefixes "dp" or "dr" instead of "p" or "r".
-
-
-//****** Assertions ******//
-
-namespace csv
-{
-void PerformAssertion(
- const char * condition,
- const char * file,
- unsigned line );
-}
-
-// Programming by contract
-#ifndef CSV_NO_ASSERTIONS
-
-#ifdef CSV_USE_CSV_ASSERTIONS
-#define csv_assert(x) ( (x) ? (void)(0) : ::csv::PerformAssertion( #x, __FILE__, __LINE__) )
-#else
-
-// Save NDEBUG state
-#ifdef NDEBUG
-#define CSV_CSV_ENV_HXX_HAD_NDEBUG
-#undef NDEBUG
-#endif
-
-#if OSL_DEBUG_LEVEL == 0
-#define NDEBUG
-#endif
-#include <assert.h>
-
-#define csv_assert(x) assert(x);
-
-// Restore NDEBUG state
-#ifdef CSV_CSV_ENV_HXX_HAD_NDEBUG
-#define NDEBUG
-#else
-#undef NDEBUG
-#endif
-
-#endif
-
-#else // #ifndef CSV_NO_ASSERTIONS else
-
-#define csv_assert(x)
-
-#endif // end ifndef CSV_NO_ASSERTIONS else
-
-
-
-/* Additional Programming Conventions
-
-1. see above at "#define DYN"
-2. function parameters get one of these prefixes:
- - i_ := Function uses only the value, but must not change a referenced variable.
- - o_ := Parameter is undefined until function has set it.
- Parametere must be set by the function.
- - io_ := Function may use and change the referenced variable.
- - pass_ := Funktion may use and change the referenced variable and HAS TO free the
- associated memory.
-3. Global constants get the prefix 'C_', global variables the prefix 'G_'.
-4. Static members end with an underscore '_'.
-
-*/
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/cosv/csv_ostream.hxx b/include/cosv/csv_ostream.hxx
deleted file mode 100644
index 911fcb8c799e..000000000000
--- a/include/cosv/csv_ostream.hxx
+++ /dev/null
@@ -1,127 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef CSV_CSV_OSTREAM_HXX
-#define CSV_CSV_OSTREAM_HXX
-
-// USED SERVICES
- // BASE CLASSES
- // COMPONENTS
- // PARAMETERS
-
-
-
-#ifndef CSV_NO_IOSTREAMS
-
-#include <iostream>
-
-
-namespace csv
-{
-
-typedef std::ios ios;
-typedef std::ostream ostream;
-
-} // namespace csv
-
-
-#else
-
-#include <cosv/tpl/dyn.hxx>
-
-namespace csv
-{
-
-class StreamStr;
-
-class ios
-{
- public:
- enum seek_dir
- {
- beg=0,
- cur=1,
- end=2
- };
-};
-
-class ostream : public ios
-{
- public:
- typedef ostream self;
-
- virtual ~ostream();
-
- self & operator<<(
- const char * i_s );
- self & operator<<(
- char i_c );
- self & operator<<(
- unsigned char i_c );
- self & operator<<(
- signed char i_c );
-
- self & operator<<(
- short i_n );
- self & operator<<(
- unsigned short i_n );
- self & operator<<(
- int i_n );
- self & operator<<(
- unsigned int i_n );
- self & operator<<(
- long i_n );
- self & operator<<(
- unsigned long i_n );
-
- self & operator<<(
- float i_n );
- self & operator<<(
- double i_n );
-
- self & seekp(
- intt i_nOffset,
- seek_dir i_eStart = ios::beg );
- protected:
- ostream(
- uintt i_nStartSize );
- const StreamStr & Data() const;
-
- private:
- Dyn<StreamStr> pData;
-};
-
-
-
-inline const StreamStr &
-ostream::Data() const
- { return *pData; }
-
-
-} // namespace csv
-
-
-#endif
-
-
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/cosv/csv_precomp.h b/include/cosv/csv_precomp.h
deleted file mode 100644
index 78f1378cda61..000000000000
--- a/include/cosv/csv_precomp.h
+++ /dev/null
@@ -1,40 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef __CSV_PRECOMP_H_06071998__
-#define __CSV_PRECOMP_H_06071998__
-
-
-
-
-#define CSV_USE_CSV_ASSERTIONS
-#include <cosv/csv_env.hxx>
-
-#include <cosv/comfunc.hxx>
-#include <cosv/string.hxx>
-#include <cosv/streamstr.hxx>
-#include <cosv/std_outp.hxx>
-#include <cosv/tpl/dyn.hxx>
-
-
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/cosv/dirchain.hxx b/include/cosv/dirchain.hxx
deleted file mode 100644
index 980937212690..000000000000
--- a/include/cosv/dirchain.hxx
+++ /dev/null
@@ -1,146 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef CSV_DIRCHAIN_HXX
-#define CSV_DIRCHAIN_HXX
-
-
-// USED SERVICES
- // BASE CLASSES
- // COMPONENTS
-#include <cosv/string.hxx>
- // PARAMETERS
-#include <cosv/csv_ostream.hxx>
-
-#include <cosv/persist.hxx>
-#include <cosv/tpl/tpltools.hxx>
-
-
-
-namespace csv
-{
- class bostream;
-
-namespace ploc
-{
-
-
-class DirectoryChain
-{
- public:
- DirectoryChain();
- DirectoryChain(
- const DirectoryChain &
- i_rDC );
- ~DirectoryChain();
-
- // OPERATORS
- DirectoryChain & operator=(
- const DirectoryChain &
- i_rDC );
- DirectoryChain & operator+=(
- const String & i_sName );
- DirectoryChain & operator+=(
- const DirectoryChain &
- i_rDC );
- DirectoryChain & operator-=(
- uintt i_nLevelsUp );
-
- // OPERATIONS
- void Set(
- const char * i_sPath,
- bool i_bPathIsAlwaysDir = false,
- const char * i_sDelimiter = Delimiter() );
- void PushBack(
- const String & i_sName );
- void PushBack(
- const DirectoryChain &
- i_sPath );
- void PopBack(
- uintt i_nCount = 1 );
-
- // INQUIRY
- uintt Size() const;
-
- StringVector::const_iterator
- Begin() const;
- StringVector::const_iterator
- End() const;
-
- const String & Front() const;
- const String & Back() const;
-
- void Get(
- bostream & o_rPath,
- const char * i_sDelimiter ) const;
- private:
- StringVector aPath;
-};
-
-
-// IMPLEMENTATION
-inline
-DirectoryChain::DirectoryChain( const DirectoryChain & i_rDC )
- { PushBack(i_rDC); }
-
- // OPERATORS
-inline DirectoryChain &
-DirectoryChain::operator=( const DirectoryChain & i_rDC )
- { csv::erase_container(aPath); PushBack(i_rDC); return *this; }
-inline DirectoryChain &
-DirectoryChain::operator+=( const String & i_sName )
- { PushBack(i_sName); return *this; }
-inline DirectoryChain &
-DirectoryChain::operator+=( const DirectoryChain & i_rDC )
- { PushBack(i_rDC); return *this; }
-inline DirectoryChain &
-DirectoryChain::operator-=( uintt i_nLevelsUp )
- { PopBack(i_nLevelsUp); return *this; }
-inline uintt
-DirectoryChain::Size() const
- { return aPath.size(); }
-
-inline StringVector::const_iterator
-DirectoryChain::Begin() const
- { return aPath.begin(); }
-inline StringVector::const_iterator
-DirectoryChain::End() const
- { return aPath.end(); }
-inline const String &
-DirectoryChain::Front() const
- { return aPath.empty() ? String::Null_() : aPath.front(); }
-inline const String &
-DirectoryChain::Back() const
- { return aPath.empty() ? String::Null_() : aPath.back(); }
-
-
-} // namespace ploc
-} // namespace csv
-
-inline csv::bostream &
-operator<<( csv::bostream & o_rOut,
- const csv::ploc::DirectoryChain & i_rSubPath )
-{
- i_rSubPath.Get(o_rOut, csv::ploc::Delimiter());
- return o_rOut;
-}
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/cosv/file.hxx b/include/cosv/file.hxx
deleted file mode 100644
index 86c880e73184..000000000000
--- a/include/cosv/file.hxx
+++ /dev/null
@@ -1,114 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef CSV_FILE_HXX
-#define CSV_FILE_HXX
-
-// USED SERVICES
- // BASE CLASSES
-#include <cosv/bstream.hxx>
-#include <cosv/openclose.hxx>
- // COMPONENTS
-#include <stdio.h>
-#include <cosv/string.hxx>
- // PARAMETERS
-#include <cosv/persist.hxx>
-#include <cosv/ploc.hxx>
-
-
-namespace csv
-{
-
-
-/** @task
- File is a class representing a file.
-*/
-class File : public bstream,
- public OpenClose,
- public ploc::Persistent
-{
- public:
- // LIFECYCLE
- File(
- const char * i_sLocation,
- uintt in_nMode = CFM_RW );
- File(
- const String & i_sLocation,
- uintt in_nMode = CFM_RW );
- virtual ~File();
-
- // INQUIRY
- uintt Mode() const;
-
- private:
- enum E_LastIO
- {
- io_none = 0,
- io_read,
- io_write
- };
-
- // Interface bistream:
- virtual uintt do_read(
- void * out_pDest,
- uintt i_nNrofBytes);
- virtual bool inq_eod() const;
- // Interface bostream:
- virtual uintt do_write(
- const void * i_pSrc,
- uintt i_nNrofBytes);
- // Interface bstream:
- virtual uintt do_seek(
- intt i_nDistance,
- seek_dir i_eStartPoint = ::csv::beg );
- virtual uintt inq_position() const;
- // Interface OpenClose:
- virtual bool do_open(
- uintt in_nOpenModeInfo );
- virtual void do_close();
- virtual bool inq_is_open() const;
- // Interface Persistent:
- virtual const ploc::Path &
- inq_MyPath() const;
- // DATA
- ploc::Path aPath;
- FILE * pStream;
-
- uintt nMode; /// RWMode, OpenMode and ShareMode.
- E_LastIO eLastIO;
-};
-
-
-
-// IMPLEMENTATION
-
-inline uintt
-File::Mode() const
- { return nMode; }
-
-
-} // namespace csv
-
-
-
-
-#endif
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/cosv/openclose.hxx b/include/cosv/openclose.hxx
deleted file mode 100644
index c65ce5b753e2..000000000000
--- a/include/cosv/openclose.hxx
+++ /dev/null
@@ -1,137 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef CSV_OPENCLOSE_HXX
-#define CSV_OPENCLOSE_HXX
-
-
-namespace csv
-{
-
-// Open modes for storages:
-enum E_RWMode
-{
- rwDefault = 0x0000, // Keep old settings. If there are none, set default.
- rwRead = 0x0001, // Reads only
- rwWrite = 0x0002, // Writes only
- rwReadWrite = 0x0003 // Reads and writes.
-};
-
-enum E_OpenMode
-{
- omCreateIfNecessary = 0x0000, // Creates a new file only, if file does not exist.
- omCreateNot = 0x0010, // Open fails, if file does not exist.
- omCreate = 0x0020 // Existing file will be deleted.
-};
-enum E_ShareMode
-{
- shmShareNot = 0x0000, // Allow others nothing
- shmShareRead = 0x0004, // Allow others to read
- shmShareAll = 0x000C // Allow others to read and write
-};
-
-/** Constants for filemode combinations
- These combinations are the only ones, guaranteed to be supported.
-*/
-const UINT32 CFM_RW = rwReadWrite;
-const UINT32 CFM_CREATE =
- static_cast< UINT32 >(rwReadWrite) | static_cast< UINT32 >(omCreate);
-const UINT32 CFM_READ =
- static_cast< UINT32 >(rwRead) | static_cast< UINT32 >(omCreateNot) |
- static_cast< UINT32 >(shmShareRead);
-
-
-
-class OpenClose
-{
- public:
- virtual ~OpenClose() {}
-
- bool open(
- UINT32 in_nOpenModeInfo = 0 ); /// Combination of values of E_RWMode and E_ShareMode und E_OpenMode. 0 := Keep existing mode.
- void close();
-
- bool is_open() const;
-
- private:
- virtual bool do_open(
- UINT32 in_nOpenModeInfo ) = 0;
- virtual void do_close() = 0;
- virtual bool inq_is_open() const = 0;
-};
-
-
-
-class OpenCloseGuard
-{
- public:
- OpenCloseGuard(
- OpenClose & i_rOpenClose,
- UINT32 i_nOpenModeInfo = 0 );
- ~OpenCloseGuard();
- operator bool() const;
-
- private:
- // Forbidden:
- OpenCloseGuard(OpenCloseGuard&);
- OpenCloseGuard & operator=(OpenCloseGuard&);
-
- // DATA
- OpenClose & rOpenClose;
-};
-
-
-// IMPLEMENTATION
-
-inline bool
-OpenClose::open( UINT32 i_nOpenModeInfo )
- { return do_open(i_nOpenModeInfo); }
-inline void
-OpenClose::close()
- { do_close(); }
-inline bool
-OpenClose::is_open() const
- { return inq_is_open(); }
-
-inline
-OpenCloseGuard::OpenCloseGuard( OpenClose & i_rOpenClose,
- UINT32 i_nOpenModeInfo )
- : rOpenClose(i_rOpenClose)
- { rOpenClose.open(i_nOpenModeInfo); }
-inline
-OpenCloseGuard::~OpenCloseGuard()
- { if (rOpenClose.is_open()) rOpenClose.close(); }
-inline
-OpenCloseGuard::operator bool() const
- { return rOpenClose.is_open(); }
-
-
-
-
-} // namespace csv
-
-
-
-
-
-
-#endif
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/cosv/persist.hxx b/include/cosv/persist.hxx
deleted file mode 100644
index 13ac4b5dab68..000000000000
--- a/include/cosv/persist.hxx
+++ /dev/null
@@ -1,98 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef CSV_PERSIST_HXX
-#define CSV_PERSIST_HXX
-
-
-// USED SERVICES
- // BASE CLASSES
- // COMPONENTS
-#include <cosv/string.hxx>
- // PARAMETERS
-
-
-namespace csv
-{
-namespace ploc
-{
-
-class Path;
-
-
-inline const char *
-Delimiter()
-{
-#ifdef WNT
- return "\\";
-#elif defined(UNX)
- return "/";
-#else
-#error For using csv::ploc there has to be defined: WNT or UNX.
-#endif
-}
-
-
-
-class Persistent
-{
- public:
- virtual ~Persistent() {}
-
- const Path & MyPath() const;
- /// @return all paths without completing delimiter, even directories.
- const char * StrPath() const;
- bool Exists() const;
-
- protected:
- Persistent();
- void InvalidatePath();
-
- private:
- virtual const Path &
- inq_MyPath() const = 0;
- // DATA
- mutable StreamStr sPath;
-};
-
-
-
-// IMPLEMENTATION
-
-inline
-Persistent::Persistent()
- : sPath(30) { }
-inline const Path &
-Persistent::MyPath() const
- { return inq_MyPath(); }
-inline void
-Persistent::InvalidatePath()
- { sPath.clear(); }
-
-
-
-} // namespace csv
-} // namespace ploc
-
-
-#endif
-
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/cosv/ploc.hxx b/include/cosv/ploc.hxx
deleted file mode 100644
index 81f952de5223..000000000000
--- a/include/cosv/ploc.hxx
+++ /dev/null
@@ -1,106 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef CSV_PLOC_HXX
-#define CSV_PLOC_HXX
-
-// USED SERVICES
-#include <cosv/string.hxx>
-#include <cosv/plocroot.hxx>
-#include <cosv/dirchain.hxx>
-#include <cosv/tpl/dyn.hxx>
-#include <cosv/csv_ostream.hxx>
-
-
-
-
-namespace csv
-{
- class bostream;
-
-namespace ploc
-{
- class Root;
-
-
-/** Represents a path in the file system.
-
- The path can be relative or absolute and in Unix- or Windows-syntax.
-*/
-class Path
-{
- public:
-
- // LIFECYCLE
- explicit Path(
- const char * i_sPath = ".", /// Dirs have to be ended with a '\\ or '/'.
- bool i_bPathIsAlwaysDir = false, /// This overrides a missing Delimiter at the end of the i_sPath, if true.
- const char * i_sDelimiter = Delimiter() );
- Path(
- const Path & i_rPath );
- ~Path();
- // OPERATORS
- Path & operator=(
- const Path & i_rPath );
- // OPERATIONS
- void Set(
- const char * i_sPath,
- bool i_bPathIsAlwaysDir = false,
- const char * i_sDelimiter = Delimiter() );
- void SetFile( // If there is already a file, that is exchanged.
- const String & i_sName );
- // INQUIRY
- const Root & RootDir() const { return *pRoot; }
- const DirectoryChain &
- DirChain() const { return aPath; }
- const String & File() const { return sFile; }
- bool IsValid() const;
- bool IsDirectory() const { return sFile.length() == 0; }
- bool IsFile() const { return sFile.length() > 0; }
-
- /// Directories have a delimiter at the end, files not.
- void Get(
- bostream & o_rPath ) const;
- // ACCESS
- DirectoryChain & DirChain() { return aPath; }
-
- private:
- Dyn<Root> pRoot;
- DirectoryChain aPath;
- String sFile;
-};
-
-
-
-
-} // namespace ploc
-} // namespace csv
-
-/// Directories produce a delimiter at the end, files not.
-inline csv::bostream &
-operator<<( csv::bostream & o_rOut,
- const csv::ploc::Path & i_rPath )
-{
- i_rPath.Get(o_rOut);
- return o_rOut;
-}
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/cosv/ploc_dir.hxx b/include/cosv/ploc_dir.hxx
deleted file mode 100644
index e6c8f04538f2..000000000000
--- a/include/cosv/ploc_dir.hxx
+++ /dev/null
@@ -1,109 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef CSV_PLOCDIR_HXX
-#define CSV_PLOCDIR_HXX
-
-
-// USED SERVICES
- // BASE CLASSES
-#include <cosv/persist.hxx>
- // COMPONENTS
-#include <cosv/ploc.hxx>
- // PARAMETERS
-
-namespace csv
-{
-namespace ploc
-{
-
-class DirectoryChain;
-
-enum E_Recursivity
-{
- flat,
- recursive
-};
-
-class Directory : public Persistent
-{
- public:
- // LIFECYCLE
- Directory();
- Directory(
- const Path & i_rLocation );
- Directory(
- const char * i_rLocation );
- Directory(
- const Directory & i_rDir );
- virtual ~Directory();
-
- // OPERATORS
- Directory & operator+=(
- const String & i_sName );
- Directory & operator+=(
- const DirectoryChain &
- i_sDirChain );
- Directory & operator-=(
- uintt i_nLevels );
-
- // OPERATIONS
- bool PhysicalCreate(
- bool i_bCreateParentsIfNecessary = true ) const;
-
- // INQUIRY
- void GetContainedDirectories(
- StringVector & o_rResult ) const;
- /** @param i_sFilter
- Currently only filters of the form "*.ending" or "*.*"
- (the default) are processed correctly under UNIX. Under WNT this
- restriction does not apply.
- */
- void GetContainedFiles(
- StringVector & o_rResult,
- const char * i_sFilter = "*.*",
- E_Recursivity i_eRecursivity = flat ) const;
- private:
- // Interface Peristent:
- virtual const Path &
- inq_MyPath() const;
-
- // Locals:
- /** @return
- true, if parent(!) directory exists or could be created.
- false, if this is a root directory.
- */
- bool Check_Parent() const;
- bool PhysicalCreate_Dir(
- const char * i_sStr ) const;
- // DATA
- Path aPath;
-};
-
-
-
-} // namespace ploc
-} // namespace csv
-
-
-
-#endif
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/cosv/plocroot.hxx b/include/cosv/plocroot.hxx
deleted file mode 100644
index b079f04b1b9f..000000000000
--- a/include/cosv/plocroot.hxx
+++ /dev/null
@@ -1,73 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef CSV_PLOCROOT_HXX
-#define CSV_PLOCROOT_HXX
-
-
-// USED SERVICES
- // BASE CLASSES
- // COMPONENTS
-#include <cosv/string.hxx>
- // PARAMETERS
-#include <cosv/csv_ostream.hxx>
-#include <cosv/persist.hxx>
-
-
-namespace csv
-{
-
-class bostream;
-
-
-namespace ploc
-{
-
-
-class Root
-{
- public:
- virtual ~Root();
-
- static DYN Root * Create_(
- const char * & o_sPathAfterRoot,
- const char * i_sPath,
- const char * i_sDelimiter = Delimiter() );
-
- virtual void Get( /// Does not add a '\0' at the end,
- ostream & o_rPath ) const = 0;
- virtual void Get( /// Does not add a '\0' at the end.
- bostream & so_rPath ) const = 0;
- virtual DYN Root * CreateCopy() const = 0;
- virtual const char *
- OwnDelimiter() const = 0;
-};
-
-
-
-} // namespace ploc
-} // namespace csv
-
-
-
-#endif
-
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/cosv/std_outp.hxx b/include/cosv/std_outp.hxx
deleted file mode 100644
index 08fe179e16ab..000000000000
--- a/include/cosv/std_outp.hxx
+++ /dev/null
@@ -1,123 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef CSV_STD_OUTP_HXX
-#define CSV_STD_OUTP_HXX
-
-// USED SERVICES
- // BASE CLASSES
- // COMPONENTS
-#include <cosv/csv_ostream.hxx>
- // PARAMETERS
-
-
-
-
-namespace csv
-{
-
-#ifdef CSV_NO_IOSTREAMS
-class redirect_out : public ostream
-{
- public:
- virtual ~redirect_out() {}
-
- static void set_(
- redirect_out & o_rStdOut,
- redirect_out & o_rStdErr )
- { pStdOut_ = &o_rStdOut;
- pStdErr_ = &o_rStdErr; }
-
- static redirect_out &
- std_() { return *pStdOut_; }
- static redirect_out &
- err_() { return *pStdErr_; }
- static bool useme_() { return pStdOut_ != 0; }
-
- private:
- // DATA
- static redirect_out *
- pStdOut_;
- static redirect_out *
- pStdErr_;
-};
-#endif // defined(CSV_NO_IOSTREAMS)
-
-
-inline ostream &
-Cout()
-{
-
-#ifndef CSV_NO_IOSTREAMS
-// return redirect_out::useme_()
-// ? (ostream&)( redirect_out::std_() )
-// : (ostream&)( std::cout );
- return (ostream&)( std::cout );
-#else
- csv_assert( redirect_out::useme_() );
- return redirect_out::std_();
-#endif
-}
-
-inline ostream &
-Cerr()
-{
-#ifndef CSV_NO_IOSTREAMS
-// return redirect_out::useme_()
-// ? (ostream&)( redirect_out::err_() )
-// : (ostream&)( std::cerr );
- return (ostream&)( std::cerr );
-#else
- csv_assert( redirect_out::useme_() );
- return redirect_out::err_();
-#endif
-}
-
-
-
-typedef void (*F_FLUSHING_FUNC)(ostream&);
-
-void Endl( ostream& );
-
-void Flush( ostream& );
-
-
-} // namespace csv
-
-
-
-inline csv::ostream &
-operator<<( csv::ostream & io_rStream,
- csv::F_FLUSHING_FUNC i_fFlushingFunc )
-{
-#ifndef CSV_NO_IOSTREAMS
-// (*i_fFlushingFunc)( io_rStream, csv::redirect_out::useme_(), 0 );
- (*i_fFlushingFunc)( io_rStream );
-#else
- csv_assert( csv::redirect_out::useme_() );
- (*i_fFlushingFunc)( io_rStream, true, 0 );
-#endif
- return io_rStream;
-}
-
-
-#endif
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/cosv/str_types.hxx b/include/cosv/str_types.hxx
deleted file mode 100644
index ecf9c997c271..000000000000
--- a/include/cosv/str_types.hxx
+++ /dev/null
@@ -1,85 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef COSV_STR_TYPES_HXX
-#define COSV_STR_TYPES_HXX
-
-
-namespace csv
-{
-
-/** Provides some generally used constants.
-*/
-struct str
-{
- public:
- typedef ::size_t position;
- typedef ::size_t size;
-
- static const position npos = -1;
- static const size maxsize = -1;
-
- enum insert_mode
- {
- overwrite = 0,
- insert = 1
- };
-};
-
-
-/** Is used for string comparisons.
-
- @collab String
- @collab various csv::compare(...) functions
-*/
-class CharOrder_Table
-{
- public:
- /** @precond
- Parameter i_pCharWeightsArray
- must have size of 256.
- */
- CharOrder_Table(
- const int * i_pCharWeightsArray );
-
- /** @return the weight of the char i_c.
- @precond
- Even with unusual implementations, where char has more than 8 bit,
- there must be true: 0 <= i_c < 256.
- */
- int operator()(
- char i_c ) const;
- private:
- int cWeights[256];
-};
-
-
-// IMPLEMENTATION
-
-inline int
-CharOrder_Table::operator()( char i_c ) const
- { return cWeights[ UINT8(i_c) ]; }
-
-
-
-} // namespace csv
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/cosv/streamstr.hxx b/include/cosv/streamstr.hxx
deleted file mode 100644
index ec13f8ec63c6..000000000000
--- a/include/cosv/streamstr.hxx
+++ /dev/null
@@ -1,310 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef CSV_STREAMSTR_HXX
-#define CSV_STREAMSTR_HXX
-
-#include "sal/config.h"
-
-#include "sal/types.h"
-
-// BASE CLASSES
-#include <cosv/bstream.hxx>
-// USED SERVICES
-#include <cosv/str_types.hxx>
-#include <string.h>
-
-
-
-
-namespace csv
-{
- class String;
-
-
-void c_str(); // Dummy needed for StreamStr::operator<<(StreamStr::F_CSTR);
-
-
-/** A string buffer class for all kinds of string manipulation.
-*/
-class StreamStr : public bostream
-{
- public:
- typedef StreamStr self;
-
- typedef str::size size_type;
- typedef str::position position_type;
- typedef intt seek_type;
- typedef str::insert_mode insert_mode;
-
- typedef const char * const_iterator;
- typedef char * iterator;
-
- typedef void (*F_CSTR)();
-
-
- /** Represents an area within a string.
- */
- struct Area
- {
- typedef str::size size_type;
-
- Area(
- const char * i_str = "",
- size_type i_nLength = str::maxsize )
- : sStr(i_str),
- nLength( i_nLength == str::maxsize
- ? strlen(i_str)
- : i_nLength ) {}
- const char * sStr;
- size_type nLength;
- };
-
- // LIFECYCLE
- StreamStr(
- size_type i_nCapacity );
- /// Copies also insert_mode and current position.
- StreamStr(
- const self & i_rOther );
- ~StreamStr();
-
- // OPERATORS
- /// Copies also insert_mode and current position.
- self & operator=(
- const self & i_rOther );
-
- self & operator<<(
- const char * i_s );
- self & operator<<(
- const String & i_s );
- self & operator<<(
- char i_c );
- self & operator<<(
- unsigned char i_c );
- self & operator<<(
- signed char i_c );
-
- self & operator<<(
- short i_n );
- self & operator<<(
- unsigned short i_n );
- self & operator<<(
- int i_n );
- self & operator<<(
- unsigned int i_n );
- self & operator<<(
- long i_n );
- self & operator<<(
- unsigned long i_n );
-
- self & operator<<(
- float i_n );
- self & operator<<(
- double i_n );
-
- /** This operator is used to finish a sequence of streaming
- oeprators by returning the c-string of the complete string.
-
- @return The same as ->c_str().
-
- @example
- csv::StreamStr s(100);
- const char *
- fullname = s << qualifier() << "::" << name() << csv::c_str;
- */
- const char * operator<<(
- F_CSTR i_f );
-
- const char & operator[](
- position_type i_nPosition ) const;
- char & operator[](
- position_type i_nPosition );
-
- // OPERATIONS
- void resize(
- size_type i_nMinimumCapacity );
-
- void clear();
-
- /** Sets start point for the next operator<<() call.
- if the intended position is not reachable, nothing happens.
- */
- self & seekp(
- seek_type i_nCount,
- seek_dir i_eDirection = ::csv::beg );
- self & reset() { return seekp(0); }
- /** Sets the insertion mode of all and only the operator<<() calls.
-
- Default is str::overwrite:
- str::overwrite: seekp() always sets the cur end of the string.
- operator<<() calls push the end of the string forward.
- str::insert: seekp() only sets the insertion point.
- operator<<() calls insert their text at the tellp()
- position and keep the rest of the string. tellp() is
- then after the inserted text, on the beginning of the
- rest of the string.
- */
- self & set_insert_mode(
- insert_mode i_eMode );
-
- void pop_front(
- size_type i_nCount );
- void pop_back(
- size_type i_nCount );
-
- /// Works like operator<<(). Does the same as Perl's join().
- self & operator_join(
- std::vector<String>::const_iterator
- i_rBegin,
- std::vector<String>::const_iterator
- i_rEnd,
- const char * i_sLink );
- /// Works like operator<<()
- self & operator_add_substr(
- const char * i_sText,
- size_type i_nLength );
- /// Works like operator<<()
- self & operator_add_token(
- const char * i_sText,
- char i_cDelimiter );
- /// Works like operator<<()
- self & operator_read_line(
- bstream & i_src );
-
- void strip_front_whitespace(); /// removes space, tab and crlf.
- void strip_back_whitespace();
- void strip_frontback_whitespace();
-
- void replace_all(
- char i_cCarToSearch,
- char i_cReplacement );
-
- // INQUIRY
- const char * c_str() const;
- const char * data() const;
-
- bool empty() const;
- size_type size() const;
- size_type length() const;
-
- size_type capacity() const;
-
- position_type tellp() const;
-
- const_iterator begin() const;
- const_iterator cur() const;
- const_iterator end() const;
-
- // ACCESS
- iterator begin();
- iterator cur();
- iterator end();
-
- private:
- // Interface bostream
- virtual UINT32 do_write(
- const void * i_pSrc,
- UINT32 i_nNrofBytes);
- // Locals
- void ProvideAddingSize(
- size_type i_nSize2Add );
- /// Resizes with the factor 2.0 (under 128), 1.5 or until i_nMinimumCapacity, whatever is bigger.
- void Resize(
- size_type i_nMinimumCapacity = 0 );
- void Advance(
- size_type i_nAddedSize );
- void MoveData(
- char * i_pStart,
- char * i_pEnd,
- seek_type i_nDiff );
- // DATA
- size_type nCapacity1; /// Capacity of characters to contain + 1 for terminating 0.
- DYN char * dpData;
- char * pEnd;
- char * pCur;
- insert_mode eMode;
-};
-
-
-
-class StreamStrLock
-{
- public:
- StreamStrLock(
- uintt i_nMinimalSize );
- ~StreamStrLock();
-
- StreamStr & operator()() { return *pStr; }
-
- private:
- StreamStr * pStr;
-};
-
-// IMPLEMENTATION
-
-inline const char *
-StreamStr::operator<<( SAL_UNUSED_PARAMETER F_CSTR )
- { return dpData; }
-inline void
-StreamStr::clear()
- { pEnd = pCur = dpData; *pEnd = '\0'; }
-inline const char *
-StreamStr::c_str() const
- { return dpData; }
-inline const char *
-StreamStr::data() const
- { return dpData; }
-inline bool
-StreamStr::empty() const
- { return dpData == pEnd; }
-inline StreamStr::size_type
-StreamStr::size() const
- { return pEnd - dpData; }
-inline StreamStr::size_type
-StreamStr::length() const
- { return size(); }
-inline StreamStr::size_type
-StreamStr::capacity() const
- { return nCapacity1-1; }
-inline StreamStr::position_type
-StreamStr::tellp() const
- { return size_type(pCur-dpData); }
-inline StreamStr::const_iterator
-StreamStr::begin() const
- { return dpData; }
-inline StreamStr::const_iterator
-StreamStr::cur() const
- { return pCur; }
-inline StreamStr::const_iterator
-StreamStr::end() const
- { return pEnd; }
-inline StreamStr::iterator
-StreamStr::begin()
- { return dpData; }
-inline StreamStr::iterator
-StreamStr::cur()
- { return pCur; }
-inline StreamStr::iterator
-StreamStr::end()
- { return pEnd; }
-
-} // namespace csv
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/cosv/string.hxx b/include/cosv/string.hxx
deleted file mode 100644
index 756aa9a1492c..000000000000
--- a/include/cosv/string.hxx
+++ /dev/null
@@ -1,501 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef COSV_STRING_HXX
-#define COSV_STRING_HXX
-
-// USED SERVICES
-#include <string.h>
-#include <cosv/stringdata.hxx>
-#include <cosv/str_types.hxx>
-#include <cosv/csv_ostream.hxx>
-#include <vector>
-
-
-
-
-namespace csv
-{
-
-
-/** The Simple String:
- It is used to just hold short to middle long texts as
- data, which are constant at most times. They are reference
- counted, so they are space efficient and have constant time
- copy semantics.
-
- For all compare() functions the return value is like in strcmp().
-
- @attention
- The present version of this class is NOT thread safe.
-*/
-
-
-class String
-{
- public:
- typedef String self;
-
- typedef str::size size_type;
- typedef str::position position_type;
-
- typedef const char * const_iterator;
-
- // LIFECYCLE
- String();
-
- /// Intentionally not explicit, smooth casting is intended.
- String(
- const char * i_str );
- /// @precond i_nLength <= strlen(i_str) or i_nLength == str::maxsize.
- String(
- const char * i_str,
- size_type i_nLength );
-
- /** @precond i_itBegin and i_itEnd are in the same valid
- memory-area, such that zero to finite times repetition of
- ++i_itBegin leads to i_itBegin == i_itEnd.
- */
- String(
- const_iterator i_itBegin,
- const_iterator i_itEnd );
-
- String(
- const self & i_rStr );
-
- ~String();
- // OPERATORS
- self & operator=(
- const self & i_rStr );
- self & operator=(
- const char * i_str );
-
- operator const char * () const;
-
- bool operator==(
- const self & i_rStr ) const;
- bool operator!=(
- const self & i_rStr ) const;
- bool operator<(
- const self & i_rStr ) const;
- bool operator>(
- const self & i_rStr ) const;
- bool operator<=(
- const self & i_rStr ) const;
- bool operator>=(
- const self & i_rStr ) const;
-
- // OPERATIONS
- void clear();
-
- /// @precond i_nLength == str::maxsize OR i_nLength < strlen(i_str) .
- void assign(
- const char * i_str,
- size_type i_nLength );
- /// Create a string consisting of a sequence of i_nCount times the same char.
- void assign(
- size_type i_nCount,
- char i_c );
-
- // INQUIRY
- const char * c_str() const;
- const char * data() const;
-
- bool empty() const;
- size_type size() const;
- size_type length() const;
-
- const char & char_at(
- position_type i_nPosition ) const;
-
- const_iterator begin() const;
-
- /// This is inefficient, so shouldn't be used within loops.
- const_iterator end() const;
-
- int compare(
- const self & i_rStr ) const;
- int compare(
- const CharOrder_Table &
- i_rOrder,
- const self & i_rStr ) const;
-
-//*********** Not yet implemented *********************//
- position_type rfind(
- const char * i_strToSearch,
- position_type i_nSearchStartPosition = str::npos ) const;
- position_type rfind(
- char i_charToSearch,
- position_type i_nSearchStartPosition = str::npos ) const;
-
- position_type find_first_not_of(
- const char * i_strToSearch,
- position_type i_nSearchStartPosition = 0 ) const;
- position_type find_first_not_of(
- char i_charToSearch,
- position_type i_nSearchStartPosition = 0 ) const;
-
- position_type find_last_not_of(
- const char * i_strToSearch,
- position_type i_nSearchStartPosition = str::npos ) const;
- position_type find_last_not_of(
- char i_charToSearch,
- position_type i_nSearchStartPosition = str::npos ) const;
-//*********** end - not yet implemented *****************//
-
- static const self & Null_();
- static const char & Nulch_();
-
- private:
- struct S_Data
- {
- S_Data();
- /// @precond i_nValidLength <= strlen(i_sData) or i_nValidLength == str::maxsize.
- explicit S_Data(
- const char * i_sData,
- size_type i_nValidLength = str::maxsize );
- ~S_Data();
-
- const S_Data * Acquire() const;
-
- /// Deletes this, if nCount becomes 0.
- void Release() const;
-
- StringData<char> aStr;
- mutable UINT32 nCount;
-
- private:
- // Forbidden functions, because this is a refcounted structure.
- S_Data(const S_Data&);
- S_Data & operator=(const S_Data&);
- };
-
- // Locals
- const StringData<char> &
- Str() const;
-
- // DATA
- const S_Data * pd;
-};
-
-
-//********** Global compare functions ***************//
-
- //*** Natural order, no substrings
-
-inline int compare(
- const String & i_s1,
- const String & i_s2 );
-inline int compare(
- const String & i_s1,
- const char * i_s2 );
-inline int compare(
- const char * i_s1,
- const String & i_s2 );
-inline int compare(
- const char * i_s1,
- const char * i_s2 );
-
- //*** Natural order, substrings
-
-int compare(
- const String & i_s1,
- csv::str::position i_nStartPosition1,
- const char * i_s2,
- csv::str::size i_nLength );
-inline int compare(
- const char * i_s1,
- const char * i_s2,
- csv::str::size i_nLength );
-
- //*** Defined order, no substrings
-
-inline int compare(
- const CharOrder_Table & i_rOrder,
- const String & i_s1,
- const char * i_s2 );
-inline int compare(
- const CharOrder_Table & i_rOrder,
- const char * i_s1,
- const String & i_s2 );
-int compare(
- const CharOrder_Table & i_rOrder,
- const char * i_s1,
- const char * i_s2 );
-} // namespace csv
-
-
-
-
-//****************** global comparation operators *********************//
-
-inline bool operator==(
- const csv::String & i_s1,
- const char * i_s2 );
-inline bool operator!=(
- const csv::String & i_s1,
- const char * i_s2 );
-inline bool operator<(
- const csv::String & i_s1,
- const char * i_s2 );
-inline bool operator>(
- const csv::String & i_s1,
- const char * i_s2 );
-inline bool operator<=(
- const csv::String & i_s1,
- const char * i_s2 );
-inline bool operator>=(
- const csv::String & i_s1,
- const char * i_s2 );
-
-inline bool operator==(
- const char * i_s1,
- const csv::String & i_s2 );
-inline bool operator!=(
- const char * i_s1,
- const csv::String & i_s2 );
-inline bool operator<(
- const char * i_s1,
- const csv::String & i_s2 );
-inline bool operator>(
- const char * i_s1,
- const csv::String & i_s2 );
-inline bool operator<=(
- const char * i_s1,
- const csv::String & i_s2 );
-inline bool operator>=(
- const char * i_s1,
- const csv::String & i_s2 );
-
-
-//****************** global stream operators *********************//
-
-
-inline csv::ostream &
-operator<<( csv::ostream & o_rOut,
- const csv::String & i_rSrc );
-
-
-
-
-// IMPLEMENTATION
-namespace csv
-{
-
-
-inline const StringData<char> &
-String::Str() const
-{ return pd->aStr; }
-
-
-inline const char &
-String::char_at( position_type i_nPosition ) const
-{ if ( i_nPosition < Str().Size() )
- return Str().Data()[i_nPosition];
- return Nulch_();
-}
-
-inline bool
-String::operator==( const self & i_rStr ) const
-{ return compare(i_rStr) == 0; }
-
-inline bool
-String::operator!=( const self & i_rStr ) const
-{ return compare(i_rStr) != 0; }
-
-inline bool
-String::operator<( const self & i_rStr ) const
-{ return compare(i_rStr) < 0; }
-
-inline bool
-String::operator>( const self & i_rStr ) const
-{ return compare(i_rStr) > 0; }
-
-inline bool
-String::operator<=( const self & i_rStr ) const
-{ return compare(i_rStr) <= 0; }
-
-inline bool
-String::operator>=( const self & i_rStr ) const
-{ return compare(i_rStr) >= 0; }
-
-inline void
-String::clear()
-{ operator=( String::Null_() ); }
-
-inline const char *
-String::c_str() const
-{ return Str().Data(); }
-
-inline
-String::operator const char * () const
-{ return c_str(); }
-
-inline const char *
-String::data() const
-{ return c_str(); }
-
-inline String::size_type
-String::size() const
-{ return Str().Size(); }
-
-inline bool
-String::empty() const
-{ return size() == 0; }
-
-inline String::size_type
-String::length() const
-{ return size(); }
-
-inline String::const_iterator
-String::begin() const
-{ return data(); }
-
-inline String::const_iterator
-String::end() const
-{ return data() + size(); }
-
-
-
-//****************** global compare-functions ********************//
-inline int
-compare( const String & i_s1,
- const String & i_s2 )
-{ return i_s1.compare(i_s2); }
-
-inline int
-compare( const String & i_s1,
- const char * i_s2 )
-{ return strcmp(i_s1.c_str(), i_s2); }
-
-inline int
-compare( const char * i_s1,
- const String & i_s2 )
-{ return strcmp(i_s1, i_s2.c_str()); }
-
-inline int
-compare( const char * i_s1,
- const char * i_s2 )
-{ return strcmp(i_s1, i_s2); }
-
-inline int
-compare( const char * i_s1,
- const char * i_s2,
- str::size i_nLength )
-{ return strncmp( i_s1, i_s2, i_nLength ); }
-
-inline int
-compare( const CharOrder_Table & i_rOrder,
- const String & i_s1,
- const char * i_s2 )
-{ return compare( i_rOrder, i_s1.c_str(), i_s2 ); }
-
-inline int
-compare( const CharOrder_Table & i_rOrder,
- const char * i_s1,
- const String & i_s2 )
-{ return compare( i_rOrder, i_s1, i_s2.c_str() ); }
-
-
-} // namespace csv
-
-
-inline bool
-operator==( const csv::String & i_s1,
- const char * i_s2 )
-{ return csv::compare( i_s1, i_s2 ) == 0; }
-
-inline bool
-operator!=( const csv::String & i_s1,
- const char * i_s2 )
-{ return csv::compare( i_s1, i_s2 ) != 0; }
-
-inline bool
-operator<( const csv::String & i_s1,
- const char * i_s2 )
-{ return csv::compare( i_s1, i_s2 ) < 0; }
-
-inline bool
-operator>( const csv::String & i_s1,
- const char * i_s2 )
-{ return csv::compare( i_s1, i_s2 ) > 0; }
-
-inline bool
-operator<=( const csv::String & i_s1,
- const char * i_s2 )
-{ return csv::compare( i_s1, i_s2 ) <= 0; }
-
-inline bool
-operator>=( const csv::String & i_s1,
- const char * i_s2 )
-{ return csv::compare( i_s1, i_s2 ) >= 0; }
-
-
-inline bool
-operator==( const char * i_s1,
- const csv::String & i_s2 )
-{ return csv::compare( i_s1, i_s2 ) == 0; }
-
-inline bool
-operator!=( const char * i_s1,
- const csv::String & i_s2 )
-{ return csv::compare( i_s1, i_s2 ) != 0; }
-
-inline bool
-operator<( const char * i_s1,
- const csv::String & i_s2 )
-{ return csv::compare( i_s1, i_s2 ) < 0; }
-
-inline bool
-operator>( const char * i_s1,
- const csv::String & i_s2 )
-{ return csv::compare( i_s1, i_s2 ) > 0; }
-
-inline bool
-operator<=( const char * i_s1,
- const csv::String & i_s2 )
-{ return csv::compare( i_s1, i_s2 ) <= 0; }
-
-inline bool
-operator>=( const char * i_s1,
- const csv::String & i_s2 )
-{ return csv::compare( i_s1, i_s2 ) >= 0; }
-
-
- //************ global stream operators **************//
-
-
-inline csv::ostream &
-operator<<( csv::ostream & o_rOut,
- const csv::String & i_rSrc )
- { o_rOut << i_rSrc.c_str(); return o_rOut; }
-
-
-//****************** typedefs *********************//
-
-namespace csv
-{
-
-typedef std::vector<String> StringVector;
-
-}
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/cosv/stringdata.hxx b/include/cosv/stringdata.hxx
deleted file mode 100644
index 0187cb4265a9..000000000000
--- a/include/cosv/stringdata.hxx
+++ /dev/null
@@ -1,128 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef COSV_STRINGDATA_HXX
-#define COSV_STRINGDATA_HXX
-
-
-#include <cosv/str_types.hxx>
-
-
-
-namespace csv
-{
-
-/** @tpl CHAR
- The expression CHAR(0) has to be valid.
-*/
-template <class CHAR>
-class StringData
-{
- public:
- typedef StringData self;
-
- typedef str::size size_type;
- typedef str::position position_type;
-
- // LIFECYCLE
- StringData();
- /** @precond i_pData != 0
- @precond i_nValidLength <= strlen(i_pData)
- */
- StringData(
- const CHAR * i_pData,
- size_type i_nValidLength );
- ~StringData();
- // OPERATORS
-
- // OPERATIONS
-
- // INQUIRY
- const CHAR * Data() const;
-
- /** @returns the allocated number of CHAR.
- This may be different from the number of bytes.
- There is actually allocated one more CHAR,
- which is guaranteed to be CHAR(0) in all circumstances.
- */
- size_type Size() const;
-
- private:
- /* Because this is used only within a refcounted structure,
- these functions are forbidden - at least yet.
- */
- StringData(const self&);
- self & operator=(const self&);
-
- // DATA
- DYN CHAR * dpData;
- size_type nSize; /// The allocated size - 1 (for the finishing 0).
-};
-
-
-
-// IMPLEMENTATION
-
-template <class CHAR>
-StringData<CHAR>::StringData()
- : dpData( new CHAR[1] ),
- nSize(0)
-{
- *dpData = CHAR(0);
-}
-
-template <class CHAR>
-StringData<CHAR>::StringData( const CHAR * i_pData,
- size_type i_nValidLength )
- : dpData( new CHAR[i_nValidLength + 1] ),
- nSize(i_nValidLength)
-{
- memcpy( dpData, i_pData, i_nValidLength * sizeof(CHAR) );
- dpData[nSize] = CHAR(0);
-}
-
-template <class CHAR>
-StringData<CHAR>::~StringData()
-{
- delete [] dpData;
-}
-
-template <class CHAR>
-const CHAR *
-StringData<CHAR>::Data() const
-{
- return dpData;
-}
-
-template <class CHAR>
-typename StringData<CHAR>::size_type
-StringData<CHAR>::Size() const
-{
- return nSize;
-}
-
-
-
-} // namespace csv
-
-
-#endif
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/cosv/tpl/dyn.hxx b/include/cosv/tpl/dyn.hxx
deleted file mode 100644
index 46095c6c3b7c..000000000000
--- a/include/cosv/tpl/dyn.hxx
+++ /dev/null
@@ -1,232 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef CSV_DYN_HXX
-#define CSV_DYN_HXX
-
-
-
-
-namespace csv
-{
-
-
-/** Dyn owns an object on the heap, which will be automatically
- deleted in its D'tor.
-
- Dyn's main purpose is for class members on the heap:
- You can't forget to delete them in the D'tor. Constness will be transfered
- to the hold object.
-
- Dyn forbids the CopyC'tor and operator=(). So you can't incidentally
- run into problems with compiler defined CopyC'tor or operator=() of the
- owning class. If you need those, you have to define them explicitly - as
- you should do anyway with all classes, that own members on the heap.
-
- Dyn also works with incomplete types.
- You only need to write
- class DX;
- but needn't include #include <DX>.hxx.
- This is a difference to std::auto_ptr, where it is not absolutely clear
- if it is allowed to use it with incomplete types.
-
- You can also use Dyn within function bodies, to make them exception safe.
-
- @attention
- If you use Dyn with an incomplete type, the owning class needs to
- define a non-inline D'tor. Else the compiler will complain.
-*/
-template <class DX>
-class Dyn
-{
- public:
- // LIFECYCLE
- /// From now on, let_dpObject is owned by this Dyn-object.
- explicit Dyn(
- DX * let_dpObject = 0);
- ~Dyn();
- // OPERATORS
- /** This deletes a prevoiusly existing dpObject!
- From now on, let_dpObject is owned by this Dyn-object.
- */
- Dyn<DX> & operator=(
- DX * let_dpObject);
- /// @return true, if any valid object is hold, false else.
- operator bool() const;
-
- const DX * operator->() const;
- DX * operator->();
-
- const DX & operator*() const;
- DX & operator*();
-
- // OPERATIONS
- /** @return The hold object on the heap.
-
- @ATTENTION
- The caller of the function is responsible to delete
- the returned object
-
- @postcond
- this->dpObject == 0.
- */
- DX * Release();
-
- // INQUIRY
- /// Shorthand for operator->(), if implicit overloading of -> can not be used.
- const DX * Ptr() const;
-
- // ACCESS
- /// Shorthand for operator->(), if implicit overloading of -> can not be used.
- DX * Ptr();
- /// So const objects can return mutable pointers to the owned object.
- DX * MutablePtr() const;
-
- private:
- /* Does NOT set dpObject to zero! Because it is only used
- internally in situations where dpObject is set immediately
- after.
- */
- void Delete();
-
- /** Forbidden function!
- -------------------
- Help ensure, that classes with
- dynamic pointers use a selfdefined copy constructor
- and operator=(). If the default versions of these
- functions are used, the compiler will throw an error.
- **/
- Dyn( const Dyn<DX> & );
- /** Forbidden function!
- -------------------
- Help ensure, that classes with
- dynamic pointers use a selfdefined copy constructor
- and operator=(). If the default versions of these
- functions are used, the compiler will throw an error.
- **/
- Dyn<DX> & operator=( const Dyn<DX> & );
-
- // DATA
- /// An owned heap object. Needs to be deleted by this class.
- DX * dpObject;
-};
-
-
-
-
-// IMPLEMENTATION
-template <class DX>
-void
-Dyn<DX>::Delete()
-{
- if (dpObject != 0)
- delete dpObject;
-}
-
-template <class DX>
-inline
-Dyn<DX>::Dyn( DX * let_dpObject )
- : dpObject(let_dpObject) {}
-
-template <class DX>
-inline
-Dyn<DX>::~Dyn()
-{ Delete(); }
-
-
-template <class DX>
-inline Dyn<DX> &
-Dyn<DX>::operator=( DX * let_dpObject )
-{
- if ( dpObject == let_dpObject )
- return *this;
-
- Delete();
- dpObject = let_dpObject;
- return *this;
-}
-
-template <class DX>
-inline
-Dyn<DX>::operator bool() const
-{ return dpObject != 0; }
-
-template <class DX>
-inline
-const DX *
-Dyn<DX>::operator->() const
-{ return dpObject; }
-
-template <class DX>
-inline DX *
-Dyn<DX>::operator->()
-{ return dpObject; }
-
-template <class DX>
-inline const DX &
-Dyn<DX>::operator*() const
-{ csv_assert(dpObject != 0);
- return *dpObject;
-}
-
-template <class DX>
-inline DX &
-Dyn<DX>::operator*()
-{ csv_assert(dpObject != 0);
- return *dpObject;
-}
-
-template <class DX>
-inline DX *
-Dyn<DX>::Release()
-{ DX * ret = dpObject;
- dpObject = 0;
- return ret;
-}
-
-template <class DX>
-inline const DX *
-Dyn<DX>::Ptr() const
-{ return dpObject; }
-
-template <class DX>
-inline DX *
-Dyn<DX>::Ptr()
-{ return dpObject; }
-
-template <class DX>
-inline DX *
-Dyn<DX>::MutablePtr() const
-{ return dpObject; }
-
-} // namespace csv
-
-
-
-
-#ifndef CSV_HIDE_DYN
-#define Dyn ::csv::Dyn
-#endif
-
-
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/cosv/tpl/processor.hxx b/include/cosv/tpl/processor.hxx
deleted file mode 100644
index a685acd5bed6..000000000000
--- a/include/cosv/tpl/processor.hxx
+++ /dev/null
@@ -1,129 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef CSV_TPL_PROCESSOR_HXX
-#define CSV_TPL_PROCESSOR_HXX
-
-// USED SERVICES
-
-
-
-
-namespace csv
-{
-
-
-/** Implements an acyclic visitor pattern. This is the abstract
- base for the classes doing the work (the "visitors").
-*/
-class ProcessorIfc
-{
- public:
- virtual ~ProcessorIfc() {}
-};
-
-
-
-/** Implements an acyclic visitor pattern. This is the abstract
- base for the classes to be processed (the "visitables").
-*/
-class ConstProcessorClient
-{
- public:
- virtual ~ConstProcessorClient() {}
-
- void Accept(
- ProcessorIfc & io_processor ) const
- { do_Accept(io_processor); }
- private:
- virtual void do_Accept(
- ProcessorIfc & io_processor ) const = 0;
-};
-
-
-/** Typed base for "visitor" classes, leaving the visited
- object const.
-
- @see ProcessorIfc
- @see Processor<>
-*/
-template <typename X, typename R = void>
-class ConstProcessor
-{
- public:
- virtual ~ConstProcessor() {}
-
- R Process(
- const X & i_object )
- { return do_Process(i_object ); }
- private:
- virtual R do_Process(
- const X & i_object ) = 0;
-};
-
-
-/** Typed base for "visitor" classes which may change the visited
- object.
-
- @see ProcessorIfc
- @see ConstProcessor<>
-*/
-template <typename X, typename R = void>
-class Processor
-{
- public:
- virtual ~Processor() {}
-
- R Process(
- X & i_object )
- { return do_Process(i_object ); }
- private:
- virtual R do_Process(
- X & i_object ) = 0;
-};
-
-
-template <class C>
-inline void
-CheckedCall( ProcessorIfc & io_processor,
- const C & i_client )
-{
- ConstProcessor<C> *
- pProcessor = dynamic_cast< csv::ConstProcessor<C> * >
- (&io_processor);
- if (pProcessor != 0)
- pProcessor->Process(i_client);
-}
-
-template <class C>
-inline void
-CheckedCall( ProcessorIfc & io_processor,
- C & io_client )
-{
- Processor<C> *
- pProcessor = dynamic_cast< csv::Processor<C> * >
- (&io_processor);
- if (pProcessor != 0)
- pProcessor->Process(io_client);
-}
-
-} // namespace csv
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/cosv/tpl/swelist.hxx b/include/cosv/tpl/swelist.hxx
deleted file mode 100644
index 5c64efc29cc2..000000000000
--- a/include/cosv/tpl/swelist.hxx
+++ /dev/null
@@ -1,362 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef CSV_SWELIST_HXX
-#define CSV_SWELIST_HXX
-
-// USED SERVICES
- // BASE CLASSES
- // COMPONENTS
- // PARAMETERS
-#include <cosv/tpl/dyn.hxx>
-
-
-namespace csv
-{
-
-
-template <class XX>
-class SweListElement
-{
- public:
- typedef SweListElement<XX> self;
-
- SweListElement(
- const XX & in_aObj )
- : aObj(in_aObj), pNext(0) {}
-
- const XX & Obj() const { return aObj; }
- XX & Obj() { return aObj; }
- self * Next() const { return pNext; }
-
- void SetNext(
- self * i_pNext )
- { pNext = i_pNext; }
- private:
- XX aObj;
- self * pNext;
-};
-
-
-
-template <class XX> class SweListIterator;
-template <class XX> class SweListCIterator;
-
-
-template <class XX>
-class SweList
-{
- public:
- // TYPES
- typedef SweList<XX> self;
- typedef XX value_type;
- typedef SweListIterator<XX> iterator;
- typedef SweListCIterator<XX> const_iterator;
- private:
- typedef SweListElement<XX> elem;
-
- public:
- // LIFECYCLE
- SweList() : pTop(0), pTail(0) {}
- ~SweList() { erase_all(); }
- // OPERATIONS
- void push_front(
- const XX & i_aObj );
- void pop_front();
- void push_back(
- const XX & i_aObj );
- void erase_all();
-
- // INQUIRY
- const_iterator begin() const { return pTop; }
- iterator begin() { return pTop; }
- const_iterator end() const { return (elem*)0; }
- iterator end() { return (elem*)0; }
- const XX & front() const { return pTop->Obj(); }
- XX & front() { return pTop->Obj(); }
- const XX & back() const { return pTail->Obj(); }
- XX & back() { return pTail->Obj(); }
-
- bool empty() const { return pTop == 0; }
- uintt size() const;
-
-
- private:
- // Forbiddden methods.
- SweList(
- const self & i_rList );
- self & operator=(
- const self & i_rList );
-
- // DATA
- DYN elem * pTop;
- elem * pTail;
-};
-
-template <class XX>
-class SweList_dyn
-{
- public:
- // TYPES
- typedef SweList_dyn<XX> self;
- typedef SweListElement< XX* > elem;
- typedef SweListIterator< XX* > iterator;
-
- // LIFECYCLE
- SweList_dyn() : pTop(0), pTail(0) {}
- ~SweList_dyn() { erase_all(); }
- // OPERATIONS
- void push_front(
- XX * i_pObj );
- void push_back(
- XX * i_pObj );
- void pop_front();
- void erase_all();
-
- // INQUIRY
- iterator begin() const { return pTop; }
- iterator end() const { return (elem*)0; }
- XX * front() const { return pTop->Obj(); }
- XX * back() const { return pTail->Obj(); }
-
- bool empty() const { return pTop == 0; }
- uintt size() const;
-
- private:
- // Forbiddden methods.
- SweList_dyn(
- const self & i_rList );
- self & operator=(
- const self & i_rList );
-
- DYN elem * pTop;
- elem * pTail;
-};
-
-
-
-
-template<class XX>
-class SweListIterator
-{
- public:
- typedef SweListIterator<XX> self;
- typedef SweListElement<XX> elem;
-
- SweListIterator(
- elem * i_pElem = 0)
- : pElem(i_pElem) { }
-
- // OPERATORS
- XX & operator*() const { return pElem->Obj(); }
- self & operator++() { if (pElem != 0) pElem = pElem->Next();
- return *this; }
- bool operator==(
- const self & i_rIter ) const
- { return pElem == i_rIter.pElem; }
- bool operator!=(
- const self & i_rIter ) const
- { return pElem != i_rIter.pElem; }
- private:
- friend class SweListCIterator<XX>;
-
- elem * pElem;
-};
-
-template<class XX>
-class SweListCIterator
-{
- public:
- typedef SweListCIterator<XX> self;
- typedef SweListElement<XX> elem;
-
- SweListCIterator(
- const elem * i_pElem = 0)
- : pElem(i_pElem) { }
-
- // OPERATORS
- self & operator=(
- const SweListIterator<XX> &
- i_rIter )
- { pElem = i_rIter.pElem; return *this; }
-
- const XX & operator*() const { return pElem->Obj(); }
- self & operator++() { if (pElem != 0) pElem = pElem->Next();
- return *this; }
- bool operator==(
- const self & i_rIter ) const
- { return pElem == i_rIter.pElem; }
- bool operator!=(
- const self & i_rIter ) const
- { return pElem != i_rIter.pElem; }
- private:
- const elem * pElem;
-};
-
-// IMPLEMENTATION
-
-template <class XX>
-void
-SweList<XX>::push_front( const XX & i_aObj )
-{
- DYN elem * dpNew = new elem(i_aObj);
- dpNew->SetNext(pTop);
- pTop = dpNew;
- if (pTail == 0)
- pTail = pTop;
-}
-
-template <class XX>
-void
-SweList<XX>::push_back( const XX & i_aObj)
-{
- if (pTail != 0)
- {
- pTail->SetNext(new elem(i_aObj));
- pTail = pTail->Next();
- }
- else
- {
- pTop = pTail = new elem(i_aObj);
- }
-}
-
-template <class XX>
-void
-SweList<XX>::pop_front()
-{
- if (pTop != 0)
- {
- elem * pDel = pTop;
- pTop = pTop->Next();
- delete pDel;
- if (pTop == 0)
- pTail = 0;
- }
-}
-
-template <class XX>
-uintt
-SweList<XX>::size() const
-{
- uintt ret = 0;
- for ( const_iterator iter = begin();
- iter != end();
- ++iter )
- {
- ++ret;
- }
- return ret;
-}
-
-
-template <class XX>
-void
-SweList<XX>::erase_all()
-{
- for (pTail = pTop ; pTop != 0; pTail = pTop)
- {
- pTop = pTop->Next();
- delete pTail;
- }
- pTop = pTail = 0;
-}
-
-
-template <class XX>
-void
-SweList_dyn<XX>::push_front( XX * i_pObj )
-{
- DYN elem * dpNew = new elem(i_pObj);
- dpNew->SetNext(pTop);
- pTop = dpNew;
- if (pTail == 0)
- pTail = pTop;
-}
-
-template <class XX>
-void
-SweList_dyn<XX>::push_back( XX * i_pObj )
-{
- if (pTail != 0)
- {
- pTail->SetNext(new elem(i_pObj));
- pTail = pTail->Next();
- }
- else
- {
- pTop = pTail = new elem(i_pObj);
- }
-}
-
-template <class XX>
-void
-SweList_dyn<XX>::pop_front()
-{
- if (pTop != 0)
- {
- elem * pDel = pTop;
- pTop = pTop->Next();
- if (pDel->Obj() != 0)
- Delete_dyn(pDel->Obj());
- delete pDel;
- if (pTop == 0)
- pTail = 0;
- }
-}
-
-
-template <class XX>
-void
-SweList_dyn<XX>::erase_all()
-{
- for (pTail = pTop ; pTop != 0; pTail = pTop)
- {
- pTop = pTop->Next();
- if (pTail->Obj() != 0)
- {
- delete pTail->Obj();
- }
- delete pTail;
- }
- pTop = pTail = 0;
-}
-
-template <class XX>
-uintt
-SweList_dyn<XX>::size() const
-{
- uintt ret = 0;
- for ( iterator iter = begin();
- iter != end();
- ++iter )
- {
- ++ret;
- }
- return ret;
-}
-
-
-} // namespace csv
-
-
-#endif
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/cosv/tpl/tpltools.hxx b/include/cosv/tpl/tpltools.hxx
deleted file mode 100644
index 487a74cf8237..000000000000
--- a/include/cosv/tpl/tpltools.hxx
+++ /dev/null
@@ -1,154 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef CSV_TPLTOOLS_HXX
-#define CSV_TPLTOOLS_HXX
-
-#include <vector>
-#include <map>
-
-
-
-
-namespace csv
-{
-
-
-template <class COLLECTION>
-inline void erase_container(
- COLLECTION & o_rCollection );
-
-/// Version for other containers than std::map, with non-pair value_type.
-template <class COLLECTION>
-void erase_container_of_heap_ptrs(
- COLLECTION & o_rCollection );
-
-
-template <class KEY, class VAL>
-const VAL * find_in_map( /// Usable for all kinds of values
- const std::map< KEY, VAL > &
- i_rMap,
- const KEY & i_rKey );
-
-
-/** @return the value in the map, if it is in there, else 0.
- @precond VAL has to be convertible to "0".
-*/
-template <class KEY, class VAL>
-VAL value_from_map(
- const std::map< KEY, VAL > &
- i_rMap,
- const KEY & i_rKey );
-
-/** @return the value in the map, if it is in there, else i_notFound.
-*/
-template <class KEY, class VAL>
-VAL value_from_map(
- const std::map< KEY, VAL > &
- i_rMap,
- const KEY & i_rKey,
- VAL i_notFound );
-
-template <class COLLECTION, class VALUE>
-bool contains(
- const COLLECTION & i_collection,
- const VALUE & i_value );
-
-
-
-
-// IMPLEMENTATION
-template <class COLLECTION>
-inline void
-erase_container( COLLECTION & o_rCollection )
-{
- o_rCollection.erase( o_rCollection.begin(),
- o_rCollection.end() );
-}
-
-template <class COLLECTION>
-void
-erase_container_of_heap_ptrs( COLLECTION & o_rCollection )
-{
- typename COLLECTION::iterator itEnd = o_rCollection.end();
- for ( typename COLLECTION::iterator it = o_rCollection.begin();
- it != itEnd;
- ++it )
- {
- delete *it;
- }
-
- o_rCollection.erase( o_rCollection.begin(),
- o_rCollection.end() );
-}
-
-template <class KEY, class VAL>
-const VAL *
-find_in_map( const std::map< KEY, VAL > & i_rMap,
- const KEY & i_rKey )
-{
- typename std::map< KEY, VAL >::const_iterator
- ret = i_rMap.find(i_rKey);
- return ret != i_rMap.end()
- ? & (*ret).second
- : (const VAL*)0;
-}
-
-template <class KEY, class VAL>
-VAL
-value_from_map( const std::map< KEY, VAL > & i_rMap,
- const KEY & i_rKey )
-{
- typename std::map< KEY, VAL >::const_iterator
- ret = i_rMap.find(i_rKey);
- return ret != i_rMap.end()
- ? (*ret).second
- : VAL(0);
-}
-
-template <class KEY, class VAL>
-VAL
-value_from_map( const std::map< KEY, VAL > & i_rMap,
- const KEY & i_rKey,
- VAL i_notFound )
-{
- typename std::map< KEY, VAL >::const_iterator
- ret = i_rMap.find(i_rKey);
- return ret != i_rMap.end()
- ? (*ret).second
- : i_notFound;
-}
-
-template <class COLLECTION, class VALUE>
-bool
-contains( const COLLECTION & i_collection,
- const VALUE & i_value )
-{
- return std::find(i_collection.begin(), i_collection.end(), i_value)
- !=
- i_collection.end();
-}
-
-
-
-
-} // namespace csv
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/cosv/tpl/vvector.hxx b/include/cosv/tpl/vvector.hxx
deleted file mode 100644
index dec58642bf23..000000000000
--- a/include/cosv/tpl/vvector.hxx
+++ /dev/null
@@ -1,535 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef CSV_VVECTOR_HXX
-#define CSV_VVECTOR_HXX
-
-#include <cstddef> // for ptrdiff_t
-
-// USED SERVICES
-#include <vector>
-#include <cosv/tpl/tpltools.hxx>
-
-
-
-
-namespace csv
-{
-namespace vvector
-{
-
-
-template <class TYPE>
-struct delete_ptrs
-{
- static void Destruct(
- std::vector< TYPE* > &
- v)
- { csv::erase_container_of_heap_ptrs(v); }
-
- /// @precond ->it is a valid iterator within v
- static void Erase(
- std::vector< TYPE* > &
- v,
- typename std::vector< TYPE* >::iterator
- it2erase )
- { delete *it2erase; v.erase(it2erase); }
-
- /// @precond ->v.size() > 0
- static void PopBack(
- std::vector< TYPE* > &
- v )
- { delete v.back(); v.pop_back(); }
-
- /// @precond ->it is a valid iterator
- static void ReplacePtr(
- typename std::vector< TYPE* >::iterator
- it,
- DYN TYPE * pass_new )
- { delete *it; *it = pass_new; }
-};
-
-
-/** One helper class for the ->csv::VirtualVector.
- Implements a
-*/
-template <class TYPE>
-struct keep_ptrs
-{
- static void Destruct(std::vector< TYPE* > &)
- {}
-
- static void Erase(
- std::vector< TYPE* > &
- v,
- typename std::vector< TYPE* >::iterator
- it2erase )
- { v.erase(it2erase); }
-
- static void PopBack(
- std::vector< TYPE* > &
- v )
- { v.pop_back(); }
-
- /// @precond ->it is a valid iterator
- static void ReplacePtr(
- typename std::vector< TYPE* >::iterator
- it,
- TYPE * io_new )
- { *it = io_new; }
-};
-
-
-} // namespace vvector
-
-
-
-
-/** Implements a vector of different implementations of a base
- class.
-
- Implementation has to be by pointers to get the polymorphic
- behaviour, however access is by references to the base class.
-
- @tpl XX
- The common base class of vector elements.
-
- @tpl PTRDEL
- Has two possible values:
- vvector::delete_ptrs<XX> Elements have to be on the heap and
- are deleted when removed (default).
- vvector::keep_ptrs<XX> Elements are only referenced and not
- deleted when removed.
-
-*/
-template <class XX, class PTRDEL = vvector::delete_ptrs<XX> >
-class VirtualVector
-{
- public:
- typedef VirtualVector<XX,PTRDEL> self;
- typedef std::vector< DYN XX* > impl_type;
- typedef typename impl_type::size_type size_type;
- typedef std::ptrdiff_t difference_type;
-
- class const_iterator;
- class iterator;
-
- // LIFECYCLE
- VirtualVector();
- explicit VirtualVector(
- int i_size );
- ~VirtualVector();
-
- // OPERATORS
- const XX & operator[](
- size_type i_pos ) const;
- XX & operator[](
- size_type i_pos );
-
- // OPERATIONS
- void push_back(
- DYN XX & i_drElement );
- void pop_back();
-
- iterator insert(
- iterator i_pos,
- DYN XX & i_drElement );
- void erase(
- iterator i_pos );
- void replace(
- iterator i_pos,
- DYN XX & i_drElement );
- void reserve(
- size_type i_size );
-
- // INQUIRY
- bool empty() const;
- size_t size() const;
- const_iterator begin() const;
- const_iterator end() const;
- const XX & front() const;
- const XX & back() const;
-
- // ACCESS
- iterator begin();
- iterator end();
- XX & front();
- XX & back();
-
- private:
- // Forbidden:
- VirtualVector(const VirtualVector&);
- VirtualVector & operator=(const VirtualVector&);
-
- // DATA
- std::vector< DYN XX* >
- aData;
-};
-
-
-
-
-/** Should be usable for all STL algorithms.
- Implements the Random Access Iterator concept.
-*/
-template <class XX, class PTRDEL>
-class VirtualVector<XX,PTRDEL>::
- const_iterator
-
- // This derivation provides type information for the STL
- // It introduces the types "value_type" and "difference_type".
- : public std::iterator<std::random_access_iterator_tag,
- const XX>
-{
- public:
- typedef VirtualVector<XX,PTRDEL> my_container;
- typedef typename my_container::impl_type::const_iterator impl_iterator;
-
- // LIFECYCLE
- const_iterator(
- impl_iterator i_implIter )
- : itImpl(i_implIter) {}
-
-
- /////////// STL ITERATOR CONCEPT IMPLEMENTATION //////////////
-
- // Default Constructible functions:
- const_iterator()
- : itImpl() {}
-
- // Assignable functions:
- // Assignment and copy constructor use the compiler generated versions.
-
- // Equality Comparable functions:
- bool operator==(
- const_iterator i_other ) const
- { return itImpl == i_other.itImpl; }
- bool operator!=(
- const_iterator i_other ) const
- { return itImpl != i_other.itImpl; }
-
- // Trivial Iterator functions:
- const XX & operator*() const
- { return *(*itImpl); }
-
- // Input Iterator functions:
- const_iterator & operator++()
- { ++itImpl; return *this; }
- const_iterator operator++(int)
- { return const_iterator(itImpl++); }
-
- // Bidirectional Iterator functions:
- const_iterator & operator--()
- { --itImpl; return *this; }
- const_iterator operator--(int)
- { return const_iterator(itImpl--); }
-
- // Less Than Comparable functions:
- bool operator<(
- const_iterator i_other ) const
- { return itImpl < i_other.itImpl; }
-
- // Random Access Iterator functions:
- const_iterator & operator+=(
- difference_type i_diff )
- { itImpl += i_diff; return *this; }
- const_iterator operator+(
- difference_type i_diff ) const
- { const_iterator ret(itImpl);
- return ret += i_diff; }
- const_iterator & operator-=(
- difference_type i_diff )
- { itImpl -= i_diff; return *this; }
- const_iterator operator-(
- difference_type i_diff ) const
- { const_iterator ret(itImpl);
- return ret -= i_diff; }
- difference_type operator-(
- const_iterator i_it ) const
- { return itImpl - i_it.itImpl; }
- const XX & operator[](
- difference_type i_index )
- { return *(*itImpl[i_index]); }
-
- //////////////////////////////////////////////////////////////////////////
-
- private:
- friend class VirtualVector<XX,PTRDEL>;
- impl_iterator ImplValue() const { return itImpl; }
-
- // DATA
- impl_iterator itImpl;
-};
-
-
-
-
-/** Should be usable for all STL algorithms.
- Implements the Random Access Iterator concept.
-*/
-template <class XX, class PTRDEL>
-class VirtualVector<XX,PTRDEL>::
- iterator
-
- // This derivation provides type information for the STL
- // It introduces the types "value_type" and "difference_type".
- : public std::iterator<std::random_access_iterator_tag,
- XX>
-{
- public:
- typedef VirtualVector<XX,PTRDEL> my_container;
- typedef typename my_container::impl_type::iterator impl_iterator;
-
- // LIFECYCLE
- iterator(
- impl_iterator i_implIter )
- : itImpl(i_implIter) {}
-
-
- /////////// STL ITERATOR CONCEPT IMPLEMENTATION //////////////
-
- // Default Constructible functions:
- iterator()
- : itImpl() {}
-
- // Assignable functions:
- // Assignment and copy constructor use the compiler generated versions.
-
- // Equality Comparable functions:
- bool operator==(
- iterator i_other ) const
- { return itImpl == i_other.itImpl; }
- bool operator!=(
- iterator i_other ) const
- { return itImpl != i_other.itImpl; }
-
- // Trivial Iterator functions:
- XX & operator*() const
- { return *(*itImpl); }
-
- // Input Iterator functions:
- iterator & operator++()
- { ++itImpl; return *this; }
- iterator operator++(int)
- { return iterator(itImpl++); }
-
- // Bidirectional Iterator functions:
- iterator & operator--()
- { --itImpl; return *this; }
- iterator operator--(int)
- { return iterator(itImpl--); }
-
- // Less Than Comparable functions:
- bool operator<(
- iterator i_other ) const
- { return itImpl < i_other.itImpl; }
-
- // Random Access Iterator functions:
- iterator & operator+=(
- difference_type i_diff )
- { itImpl += i_diff; return *this; }
- iterator operator+(
- difference_type i_diff ) const
- { iterator ret(itImpl);
- return ret += i_diff; }
- iterator & operator-=(
- difference_type i_diff )
- { itImpl -= i_diff; return *this; }
- iterator operator-(
- difference_type i_diff ) const
- { iterator ret(itImpl);
- return ret -= i_diff; }
- difference_type operator-(
- iterator i_it ) const
- { return itImpl - i_it.itImpl; }
- XX & operator[](
- difference_type i_index )
- { return *(*itImpl[i_index]); }
-
- //////////////////////////////////////////////////////////////////////////
-
- private:
- friend class VirtualVector<XX,PTRDEL>;
- impl_iterator ImplValue() const { return itImpl; }
-
- // DATA
- impl_iterator itImpl;
-};
-
-
-
-
-// IMPLEMENTATION
-template <class XX, class PTRDEL>
-inline
-VirtualVector<XX,PTRDEL>::VirtualVector()
- : aData()
-{
-}
-
-template <class XX, class PTRDEL>
-inline
-VirtualVector<XX,PTRDEL>::VirtualVector(int i_size)
- : aData(i_size, 0)
-{
-}
-
-template <class XX, class PTRDEL>
-inline
-VirtualVector<XX,PTRDEL>::~VirtualVector()
-{
- PTRDEL::Destruct(aData);
-}
-
-template <class XX, class PTRDEL>
-inline const XX &
-VirtualVector<XX,PTRDEL>::operator[]( size_type i_pos ) const
-{
- return *aData[i_pos];
-}
-
-template <class XX, class PTRDEL>
-inline XX &
-VirtualVector<XX,PTRDEL>::operator[]( size_type i_pos )
-{
- return *aData[i_pos];
-}
-
-template <class XX, class PTRDEL>
-inline void
-VirtualVector<XX,PTRDEL>::push_back( DYN XX & i_drElement )
-{
- aData.push_back(&i_drElement);
-}
-
-template <class XX, class PTRDEL>
-inline void
-VirtualVector<XX,PTRDEL>::pop_back()
-{
- if (NOT aData.empty())
- PTRDEL::PopBack(aData);
-}
-
-template <class XX, class PTRDEL>
-inline typename VirtualVector<XX,PTRDEL>::iterator
-VirtualVector<XX,PTRDEL>::insert( iterator i_pos,
- DYN XX & i_drElement )
-{
- return iterator(aData.insert(i_pos.ImplValue(), &i_drElement));
-}
-
-template <class XX, class PTRDEL>
-inline void
-VirtualVector<XX,PTRDEL>::erase( iterator i_pos )
-{
- PTRDEL::Erase(aData, i_pos.ImplValue());
-}
-
-template <class XX, class PTRDEL>
-inline void
-VirtualVector<XX,PTRDEL>::replace( iterator i_pos,
- DYN XX & i_drElement )
-{
- PTRDEL::ReplacePtr(*i_pos, &i_drElement);
-}
-
-template <class XX, class PTRDEL>
-inline void
-VirtualVector<XX,PTRDEL>::reserve( size_type i_size )
-{
- aData.reserve(i_size);
-}
-
-template <class XX, class PTRDEL>
-inline bool
-VirtualVector<XX,PTRDEL>::empty() const
-{
- return aData.empty();
-}
-
-template <class XX, class PTRDEL>
-inline size_t
-VirtualVector<XX,PTRDEL>::size() const
-{
- return aData.size();
-}
-
-template <class XX, class PTRDEL>
-inline typename VirtualVector<XX,PTRDEL>::const_iterator
-VirtualVector<XX,PTRDEL>::begin() const
-{
- return const_iterator(aData.begin());
-}
-
-template <class XX, class PTRDEL>
-inline typename VirtualVector<XX,PTRDEL>::const_iterator
-VirtualVector<XX,PTRDEL>::end() const
-{
- return const_iterator(aData.end());
-}
-
-template <class XX, class PTRDEL>
-inline const XX &
-VirtualVector<XX,PTRDEL>::front() const
-{
- return *aData.front();
-}
-
-template <class XX, class PTRDEL>
-inline const XX &
-VirtualVector<XX,PTRDEL>::back() const
-{
- return *aData.back();
-}
-
-template <class XX, class PTRDEL>
-inline typename VirtualVector<XX,PTRDEL>::iterator
-VirtualVector<XX,PTRDEL>::begin()
-{
- return iterator(aData.begin());
-}
-
-template <class XX, class PTRDEL>
-inline typename VirtualVector<XX,PTRDEL>::iterator
-VirtualVector<XX,PTRDEL>::end()
-{
- return iterator(aData.end());
-}
-
-template <class XX, class PTRDEL>
-inline XX &
-VirtualVector<XX,PTRDEL>::front()
-{
- return *aData.front();
-}
-
-template <class XX, class PTRDEL>
-inline XX &
-VirtualVector<XX,PTRDEL>::back()
-{
- return *aData.back();
-}
-
-
-
-
-} // namespace csv
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/cosv/x.hxx b/include/cosv/x.hxx
deleted file mode 100644
index 755436317a39..000000000000
--- a/include/cosv/x.hxx
+++ /dev/null
@@ -1,64 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef CSV_X_HXX
-#define CSV_X_HXX
-
-// USED SERVICES
- // BASE CLASSES
- // COMPONENTS
-#include <cosv/string.hxx>
- // PARAMETERS
-#include <cosv/csv_ostream.hxx>
-
-
-namespace csv
-{
-
-class Exception
-{
- public:
- virtual ~Exception() {}
- virtual void GetInfo(
- ostream & o_rOutputMedium ) const = 0;
-};
-
-
-class X_Default : public Exception
-{
- public:
- X_Default(
- const char * i_sMessage )
- : sMessage(i_sMessage) {}
- virtual void GetInfo( // Implemented in comfunc.cxx
- ostream & o_rOutputMedium ) const;
- private:
- String sMessage;
-};
-
-
-} // namespace csv
-
-
-
-#endif
-
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/udm/html/htmlitem.hxx b/include/udm/html/htmlitem.hxx
deleted file mode 100644
index 1750f5f0cb6a..000000000000
--- a/include/udm/html/htmlitem.hxx
+++ /dev/null
@@ -1,342 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef CSI_HTML_HTMLITEM_HXX
-#define CSI_HTML_HTMLITEM_HXX
-
-// USED SERVICES
- // BASE CLASSES
-#include <udm/xml/xmlitem.hxx>
- // COMPONENTS
- // PARAMETERS
-
-
-namespace csi
-{
-namespace html
-{
-
-/** <BODY>
-*/
-class Body : public csi::xml::AnElement
-{
- public:
- Body()
- : csi::xml::AnElement( "body" ) {}
- private:
- virtual bool LineBreakAfterBeginTag() const;
-};
-
-/** <BR>
-*/
-class HorizontalLine : public xml::XmlCode
-{
- public:
- HorizontalLine()
- : xml::XmlCode("<hr>\n") {}
-};
-
-/** <A name="">
-*/
-class Label : public csi::xml::AnElement
-{
- public:
- Label(
- const ::csv::String & i_sLabel )
- : csi::xml::AnElement("a")
- { *this << new csi::xml::AnAttribute(String("name"), i_sLabel); }
-};
-
-/** <p>
-*/
-class Paragraph : public csi::xml::AnElement
-{
- public:
- Paragraph()
- : csi::xml::AnElement("p") {}
- private:
- virtual bool LineBreakAfterEndTag() const;
-};
-
-/** <H1-6>
-*/
-class Headline : public csi::xml::APureElement
-{
- public:
- Headline(
- int i_nNr )
- : csi::xml::APureElement(sTags[i_nNr-1]) { csv_assert(1 <= i_nNr AND i_nNr < 7); }
- private:
- static const char * sTags[6];
- virtual bool LineBreakAfterEndTag() const;
-};
-
-/** <BR>
-*/
-class LineBreak : public xml::XmlCode
-{
- public:
- LineBreak()
- : xml::XmlCode("<br>\n") {}
-};
-
-/** <b>
-*/
-class Bold : public csi::xml::APureElement
-{
- public:
- Bold()
- : csi::xml::APureElement("b") {}
-};
-
-/** <i>
-*/
-class Italic : public csi::xml::APureElement
-{
- public:
- Italic()
- : csi::xml::APureElement("i") {}
-};
-
-/** <strong>
-*/
-class Strong : public csi::xml::APureElement
-{
- public:
- Strong()
- : csi::xml::APureElement("strong") {}
-};
-
-/** <em>
-*/
-class Emphasized : public csi::xml::APureElement
-{
- public:
- Emphasized()
- : csi::xml::APureElement("em") {}
-};
-
-/** <font>
-*/
-class Font : public csi::xml::AnElement
-{
- public:
- Font()
- : csi::xml::AnElement("font") {}
-};
-
-
-/** <A href="">
-*/
-class Link : public csi::xml::AnElement
-{
- public:
- Link(
- const ::csv::String &i_sDestinaton )
- : csi::xml::AnElement("a")
- { *this << new csi::xml::AnAttribute(String("href"), i_sDestinaton); }
-};
-
-class TableCell : public csi::xml::AnElement
-{
- public:
- TableCell()
- : csi::xml::AnElement("td") {}
- private:
- virtual bool LineBreakAfterEndTag() const;
-};
-
-class TableRow : public csi::xml::AnElement
-{
- public:
- TableRow()
- : csi::xml::AnElement("tr") {}
-
- private:
- virtual bool LineBreakAfterBeginTag() const;
-};
-
-/** <table ....>
-*/
-class Table : public csi::xml::AnElement
-{
- public:
- Table()
- : csi::xml::AnElement("table") {}
- Table(
- const ::csv::String & i_sBorder,
- const ::csv::String & i_sWidth,
- const ::csv::String & i_sCellPadding,
- const ::csv::String & i_sCellSpacing );
- TableRow & AddRow();
- private:
- virtual bool FinishEmptyTag_XmlStyle() const;
- virtual bool LineBreakAfterBeginTag() const;
-};
-
-
-
-class DefListTerm : public csi::xml::AnElement
-{
- public:
- DefListTerm()
- : csi::xml::AnElement("dt") {}
- private:
- virtual bool LineBreakAfterEndTag() const;
-};
-
-class DefListDefinition : public csi::xml::AnElement
-{
- public:
- DefListDefinition()
- : csi::xml::AnElement("dd") {}
- private:
- virtual bool LineBreakAfterEndTag() const;
-};
-
-/** <DL>
-*/
-class DefList : public csi::xml::AnElement
-{
- public:
- DefList()
- : csi::xml::AnElement("dl") {}
-
- private:
- virtual bool LineBreakAfterBeginTag() const;
- virtual bool FinishEmptyTag_XmlStyle() const;
-};
-
-
-class ListItem : public csi::xml::AnElement
-{
- public:
- ListItem()
- : csi::xml::AnElement("li") {}
- private:
- virtual bool LineBreakAfterEndTag() const;
-};
-
-/** <OL>
-*/
-class NumeratedList : public csi::xml::AnElement
-{
- public:
- NumeratedList()
- : csi::xml::AnElement("ol") {}
- private:
- virtual bool LineBreakAfterBeginTag() const;
-};
-
-/** <UL>
-*/
-class SimpleList : public csi::xml::AnElement
-{
- public:
- SimpleList()
- : csi::xml::AnElement("ul") {}
-
- private:
- virtual bool LineBreakAfterBeginTag() const;
-};
-
-
-class ClassAttr : public csi::xml::AnAttribute
-{
- public:
- ClassAttr(
- const ::csv::String & i_sValue )
- : csi::xml::AnAttribute( String("class"), i_sValue ) {}
-};
-
-class StyleAttr : public csi::xml::AnAttribute
-{
- public:
- StyleAttr(
- const ::csv::String & i_sValue )
- : csi::xml::AnAttribute( String("style"), i_sValue ) {}
-};
-
-class SizeAttr : public csi::xml::AnAttribute
-{
- public:
- SizeAttr(
- const ::csv::String & i_sValue )
- : csi::xml::AnAttribute( String("size"), i_sValue ) {}
-};
-
-class ColorAttr : public csi::xml::AnAttribute
-{
- public:
- ColorAttr(
- const ::csv::String & i_sValue )
- : csi::xml::AnAttribute( String("color"), i_sValue ) {}
-};
-
-class BgColorAttr : public csi::xml::AnAttribute
-{
- public:
- BgColorAttr(
- const ::csv::String & i_sValue )
- : csi::xml::AnAttribute( String("bgcolor"), i_sValue ) {}
-};
-
-class AlignAttr : public csi::xml::AnAttribute
-{
- public:
- AlignAttr(
- const ::csv::String & i_sValue )
- : csi::xml::AnAttribute( String("align"), i_sValue ) {}
-};
-
-class VAlignAttr : public csi::xml::AnAttribute
-{
- public:
- VAlignAttr(
- const ::csv::String & i_sValue )
- : csi::xml::AnAttribute( String("valign"), i_sValue ) {}
-};
-
-class WidthAttr : public csi::xml::AnAttribute
-{
- public:
- WidthAttr(
- const ::csv::String & i_sValue )
- : csi::xml::AnAttribute( String("width"), i_sValue ) {}
-};
-
-
-
-class Sbr : public csi::xml::XmlCode // Sourcefile lineBreak
-{
- public:
- Sbr()
- : csi::xml::XmlCode("\n") {}
-};
-
-
-} // namespace html
-} // namespace csi
-
-namespace Html = csi::html;
-
-#endif
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/udm/xml/xmlitem.hxx b/include/udm/xml/xmlitem.hxx
deleted file mode 100644
index eab5798feca0..000000000000
--- a/include/udm/xml/xmlitem.hxx
+++ /dev/null
@@ -1,339 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef CSI_XML_XMLITEM_HXX
-#define CSI_XML_XMLITEM_HXX
-
-// USED SERVICES
- // BASE CLASSES
- // COMPONENTS
-#include <cosv/tpl/swelist.hxx>
-#include <cosv/tpl/dyn.hxx>
- // PARAMETERS
-
-namespace csv
-{
- class bostream;
-}
-
-
-namespace csi
-{
-namespace xml
-{
-
-
-/* Basics:
- Item, Attribute, Element, TextContext
-*/
-
-class Item
-{
- public:
- virtual ~Item() {}
- void WriteOut(
- csv::bostream & io_aFile ) const;
- private:
- virtual void do_WriteOut(
- csv::bostream & io_aFile ) const = 0;
-};
-
-typedef csv::SweList_dyn< Item > ItemList;
-
-class Attribute
-{
- public:
- virtual ~Attribute() {}
-
- void WriteOut(
- csv::bostream & io_aFile ) const;
-
- const ::csv::String& Name() const;
- const ::csv::String& Value() const;
-
- private:
- virtual const ::csv::String &
- inq_Name() const = 0;
- virtual const ::csv::String &
- inq_Value() const = 0;
-};
-
-typedef csv::SweList_dyn< Attribute > AttrList;
-
-
-class Element : public Item
-{
- public:
- Element & operator<<( /// For multiple content items.
- DYN Item * let_dpItem );
- Element & operator<<( /// For multiple content items.
- const ::csv::String& let_drText );
- Element & operator<<( /// For multiple content items.
- const char * let_dpText );
- Element & operator<<(
- DYN Attribute * let_dpAttr );
-
- Element & operator>>( /// For multiple content items. @return the child Element.
- DYN Element & let_drElement );
-
-
- Item * SetContent( /// For only one content item.
- DYN Item * let_dpItem ); /// Replaces previous content. May be 0, then all content is deleted.
- private:
- // Interface Item:
- virtual void do_WriteOut(
- csv::bostream & io_aFile ) const;
- // Local
- virtual void op_streamout(
- DYN Item * let_dpItem ) = 0;
- virtual void op_streamout(
- DYN Attribute * let_dpAttr ) = 0;
-
- virtual void do_SetContent(
- DYN Item * let_dpItem ) = 0;
- // Helpers
- virtual const ::csv::String &
- inq_TagName() const = 0;
- virtual const Item *
- inq_Content() const = 0;
- virtual const AttrList *
- inq_Attrs() const = 0;
-
- virtual bool FinishEmptyTag_XmlStyle() const; /// Defaulted to: true
-
- virtual bool LineBreakAfterBeginTag() const; /// Defaulted to: false
- virtual bool LineBreakAfterEndTag() const; /// Defaulted to: true, if LineBreakAfterBeginTag()
-};
-
-class TextContent : public Item
-{
-};
-
-
-/* Implementation simplifiers:
- EmptyElement, PureElement, SglTag
-*/
-
-class EmptyElement : public Element
-{
- private:
- // Interface Element:
- virtual void op_streamout( /// does nothing
- DYN Item * let_dpItem );
- virtual void op_streamout(
- DYN Attribute * let_dpAttr );
- virtual void do_SetContent( /// does nothing
- DYN Item * let_dpItem );
- virtual const Item *
- inq_Content() const; /// @return 0
- virtual const AttrList *
- inq_Attrs() const;
-
- // Local
- virtual AttrList & inq_RefAttrs() = 0;
-};
-
-class PureElement : public Element
-{
- private:
- // Interface Element:
- virtual void op_streamout(
- DYN Item * let_dpItem );
- virtual void op_streamout( /// does nothing
- DYN Attribute * let_dpAttr );
- virtual void do_SetContent(
- DYN Item * let_dpItem );
- virtual const Item *
- inq_Content() const;
- virtual const AttrList *
- inq_Attrs() const; /// @return 0
- // Local
- virtual Dyn< Item > &
- inq_RefContent() = 0;
-};
-
-class SglTag : public Element
-{
- private:
- // Interface Element:
- virtual void op_streamout( /// does nothing
- DYN Item * let_dpItem );
- virtual void op_streamout( /// does nothing
- DYN Attribute * let_dpAttr );
- virtual void do_SetContent( /// does nothing
- DYN Item * let_dpItem );
- virtual const Item *
- inq_Content() const; /// @return 0
- virtual const AttrList *
- inq_Attrs() const; /// @return 0
-};
-
-
-
-/* Standard Element implementations, if there are not any
- specialized ones.
-*/
-
-class AnElement : public Element
-{
- public:
- AnElement(
- const char * i_sTagName );
- ~AnElement();
- private:
- // Interface Element
- virtual void op_streamout(
- DYN Item * let_dpItem );
- virtual void op_streamout(
- DYN Attribute * let_dpAttr );
- virtual void do_SetContent(
- DYN Item * let_dpItem );
- virtual const ::csv::String &
- inq_TagName() const;
- virtual const Item *
- inq_Content() const;
- virtual const AttrList *
- inq_Attrs() const;
- // DATA
- ::csv::String sTagName;
- Dyn< Item > pContent;
- AttrList aAttrs;
-};
-
-class APureElement : public PureElement
-{
- public:
- APureElement(
- const char * i_sTagName );
- ~APureElement();
- private:
- // Interface Element:
- virtual const ::csv::String &
- inq_TagName() const;
- // Interface PureElement:
- virtual Dyn< Item > &
- inq_RefContent();
- // DATA
- ::csv::String sTagName;
- Dyn< Item > pContent;
-};
-
-/* Standard Attribute implementation
-*/
-class AnAttribute : public Attribute
-{
- public:
- AnAttribute(
- const ::csv::String & i_sName,
- const ::csv::String & i_sValue );
- AnAttribute(
- const char * i_sName,
- const char * i_sValue );
- ~AnAttribute();
- private:
- // Interface Attribute:
- virtual const ::csv::String &
- inq_Name() const;
- virtual const ::csv::String &
- inq_Value() const;
- // DATA
- ::csv::String sName;
- ::csv::String sValue;
-};
-
-
-
-/* Implementations of TextContent:
-
- Text ( reserved characters will be replaced and appear unchanged )
- XmlCode ( reserved characters stay and are interpreted
- by the XML-viewer )
-*/
-class Text : public TextContent
-{
- public:
- Text(
- const ::csv::String & i_sText );
- Text(
- const char * i_sText );
- ~Text();
- private:
- virtual void do_WriteOut(
- csv::bostream & io_aFile ) const;
- // DATA
- ::csv::String sText;
-};
-
-
-class XmlCode : public TextContent
-{
- public:
- XmlCode(
- const ::csv::String & i_sText );
- XmlCode(
- const char * i_sText );
- ~XmlCode();
- private:
- virtual void do_WriteOut(
- csv::bostream & io_aFile ) const;
- // DATA
- ::csv::String sText;
-};
-
-
-
-// IMPLEMENTATION
-
-inline void
-Item::WriteOut( csv::bostream & io_aFile ) const
- { do_WriteOut(io_aFile); }
-
-inline const ::csv::String &
-Attribute::Name() const
- { return inq_Name(); }
-inline const ::csv::String &
-Attribute::Value() const
- { return inq_Value(); }
-
-inline Element &
-Element::operator<<( DYN Item * let_dpItem )
- { op_streamout(let_dpItem); return *this; }
-inline Element &
-Element::operator<<( const ::csv::String & let_drText )
- { op_streamout( new Text(let_drText) ); return *this; }
-inline Element &
-Element::operator<<( const char * let_drText )
- { op_streamout( new Text(let_drText) ); return *this; }
-inline Element &
-Element::operator<<( DYN Attribute * let_dpAttr )
- { op_streamout(let_dpAttr); return *this; }
-inline Element &
-Element::operator>>( DYN Element & let_drElement )
- { op_streamout(&let_drElement); return let_drElement; }
-inline Item *
-Element::SetContent( DYN Item * let_dpItem )
- { do_SetContent(let_dpItem); return let_dpItem; }
-
-
-} // namespace xml
-} // namespace csi
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/solenv/gbuild/extensions/pre_BuildTools.mk b/solenv/gbuild/extensions/pre_BuildTools.mk
index b48f2c4c9960..0362c73a8477 100644
--- a/solenv/gbuild/extensions/pre_BuildTools.mk
+++ b/solenv/gbuild/extensions/pre_BuildTools.mk
@@ -17,7 +17,6 @@ endif
# Tools we need to build for cross-compiling
gb_BUILD_TOOLS = \
$(foreach executable, \
- autodoc \
bestreversemap \
cfgex \
cpp \
diff --git a/udm/Makefile b/udm/Makefile
deleted file mode 100644
index ccb1c85a04da..000000000000
--- a/udm/Makefile
+++ /dev/null
@@ -1,7 +0,0 @@
-# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
-
-module_directory:=$(dir $(realpath $(firstword $(MAKEFILE_LIST))))
-
-include $(module_directory)/../solenv/gbuild/partial_build.mk
-
-# vim: set noet sw=4 ts=4:
diff --git a/udm/Module_udm.mk b/udm/Module_udm.mk
deleted file mode 100644
index ad411d4ea59a..000000000000
--- a/udm/Module_udm.mk
+++ /dev/null
@@ -1,19 +0,0 @@
-# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
-#
-# This file is part of the LibreOffice project.
-#
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-#
-$(eval $(call gb_Module_Module,udm))
-
-ifneq (,$(filter ODK,$(BUILD_TYPE)))
-
-$(eval $(call gb_Module_add_targets,udm,\
- StaticLibrary_udm \
-))
-
-endif
-
-# vim:set noet sw=4 ts=4:
diff --git a/udm/README b/udm/README
deleted file mode 100644
index 71e4c8dd9fe8..000000000000
--- a/udm/README
+++ /dev/null
@@ -1,3 +0,0 @@
-Forms part of autodoc.
-
-Part of the SDK; to build you need to add --enable-odk.
diff --git a/udm/StaticLibrary_udm.mk b/udm/StaticLibrary_udm.mk
deleted file mode 100644
index aee8897d7a90..000000000000
--- a/udm/StaticLibrary_udm.mk
+++ /dev/null
@@ -1,22 +0,0 @@
-# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
-#
-# This file is part of the LibreOffice project.
-#
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-#
-
-$(eval $(call gb_StaticLibrary_StaticLibrary,udm))
-
-$(eval $(call gb_StaticLibrary_set_include,udm,\
- -I$(SRCDIR)/udm/source/inc \
- $$(INCLUDE) \
-))
-
-$(eval $(call gb_StaticLibrary_add_exception_objects,udm,\
- udm/source/html/htmlitem \
- udm/source/xml/xmlitem \
-))
-
-# vim: set noet sw=4 ts=4:
diff --git a/udm/source/html/htmlitem.cxx b/udm/source/html/htmlitem.cxx
deleted file mode 100644
index 3b392c3049fe..000000000000
--- a/udm/source/html/htmlitem.cxx
+++ /dev/null
@@ -1,165 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <udm/html/htmlitem.hxx>
-
-// NOT FULLY DECLARED SERVICES
-
-
-namespace csi
-{
-namespace html
-{
-
-using namespace csi::xml;
-
-template <class ELEM>
-inline ELEM &
-PushElem( Element & i_rMain,
- DYN ELEM * let_dpSub,
- DYN Item * let_dpItem )
-{
- i_rMain << let_dpSub;
- if ( let_dpItem != 0 )
- *let_dpSub << let_dpItem;
- return *let_dpSub;
-}
-
-
-bool
-Body::LineBreakAfterBeginTag() const
-{
- return true;
-}
-
-bool
-Paragraph::LineBreakAfterEndTag() const
-{
- return true;
-}
-
-const char *
-Headline::sTags[6] = { "h1", "h2", "h3", "h4", "h5", "h6" };
-
-bool
-Headline::LineBreakAfterEndTag() const
-{
- return true;
-}
-
-bool
-TableCell::LineBreakAfterEndTag() const
-{
- return true;
-}
-
-bool
-TableRow::LineBreakAfterBeginTag() const
-{
- return true;
-}
-
-
-Table::Table( const String & i_sBorder,
- const String & i_sWidth,
- const String & i_sCellPadding,
- const String & i_sCellSpacing )
- : csi::xml::AnElement("table")
-{
- if ( i_sBorder.length() > 0 )
- *this << new AnAttribute(String("border"),i_sBorder);
- if ( i_sBorder.length() > 0 )
- *this << new AnAttribute(String("width"),i_sWidth);
- if ( i_sBorder.length() > 0 )
- *this << new AnAttribute(String("cellpadding"),i_sCellPadding);
- if ( i_sBorder.length() > 0 )
- *this << new AnAttribute(String("cellspacing"),i_sCellSpacing);
-}
-
-TableRow &
-Table::AddRow()
-{
- TableRow * ret = new TableRow;
- *this << ret;
- return *ret;
-}
-
-bool
-Table::FinishEmptyTag_XmlStyle() const
-{
- return false;
-}
-
-bool
-Table::LineBreakAfterBeginTag() const
-{
- return true;
-}
-
-
-
-bool
-DefListTerm::LineBreakAfterEndTag() const
-{
- return true;
-}
-
-bool
-DefListDefinition::LineBreakAfterEndTag() const
-{
- return true;
-}
-
-bool
-DefList::LineBreakAfterBeginTag() const
-{
- return true;
-}
-
-bool
-DefList::FinishEmptyTag_XmlStyle() const
-{
- return false;
-}
-
-bool
-ListItem::LineBreakAfterEndTag() const
-{
- return true;
-}
-
-bool
-NumeratedList::LineBreakAfterBeginTag() const
-{
- return true;
-}
-
-bool
-SimpleList::LineBreakAfterBeginTag() const
-{
- return true;
-}
-
-
-
-} // namespace html
-} // namespace csi
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/udm/source/inc/precomp.h b/udm/source/inc/precomp.h
deleted file mode 100644
index 70298e20a3d5..000000000000
--- a/udm/source/inc/precomp.h
+++ /dev/null
@@ -1,60 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-#ifndef UDM_PRECOMP_H
-#define UDM_PRECOMP_H
-
-// For en/disabling csv_assertions:
-#ifndef DEBUG
-#define CSV_NO_ASSERTIONS
-#endif
-
-
-#include <cosv/csv_precomp.h>
-#include <vector>
-#include <map>
-
-
-
-// Shortcuts to access csv::-types:
-using csv::String;
-using csv::StringVector;
-using csv::StreamStr;
-using csv::c_str;
-typedef csv::StreamStrLock StreamLock;
-
-
-
-inline std::ostream &
-Cout() { return std::cout; }
-
-inline std::ostream &
-Cerr() { return std::cerr; }
-
-
-inline csv::F_FLUSHING_FUNC
-Endl() { return csv::Endl; }
-inline csv::F_FLUSHING_FUNC
-Flush() { return csv::Flush; }
-
-
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/udm/source/xml/xmlitem.cxx b/udm/source/xml/xmlitem.cxx
deleted file mode 100644
index 2725d3d178d6..000000000000
--- a/udm/source/xml/xmlitem.cxx
+++ /dev/null
@@ -1,537 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <precomp.h>
-#include <udm/xml/xmlitem.hxx>
-
-// NOT FULLY DECLARED SERVICES
-#include <cosv/file.hxx>
-
-
-namespace csi
-{
-namespace xml
-{
-
-char cReplacable[256] =
- {
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0 - 49
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, // ", &
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
-
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 50 - 99
- 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, // <, >
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
-
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 100 - 149
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
-
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
-
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
-
- 0, 0, 0, 0, 0, 1 // &nbsp;
- };
-
-
-class MultiItem : public Item
-{
- public:
- MultiItem();
- ~MultiItem();
-
- void Add(
- DYN Item * let_dpDatum )
- { csv_assert( let_dpDatum != 0 );
- aItems.push_back(let_dpDatum); }
- void Erase() { aItems.erase_all(); }
-
- private:
- virtual void do_WriteOut(
- csv::bostream & io_aFile ) const;
- // DATA
- ItemList aItems;
-};
-
-
-void StreamOut(
- Dyn< Item > & o_rContent,
- DYN Item * let_dpItem );
-inline void
-StreamOut( AttrList & o_rAttrs,
- DYN Attribute * let_dpAttr )
-{
- csv_assert( let_dpAttr != 0 );
- o_rAttrs.push_back( let_dpAttr );
-}
-
-
-inline void
-Impl_SetContent( Dyn< Item > & o_rContent,
- DYN Item * let_dpItem )
-{
- o_rContent = let_dpItem;
-}
-
-
-//********************* Attribute ****************************//
-
-const String attrValueBegin("=\"");
-const String attrValueEnd("\"");
-
-void
-Attribute::WriteOut( csv::bostream & io_aFile ) const
-{
- io_aFile.write( Name() );
- if ( Value().length() > 0 )
- {
- io_aFile.write( attrValueBegin );
- io_aFile.write( Value() );
- io_aFile.write( attrValueEnd );
- }
-}
-
-
-
-//************************ Element ****************************//
-
-const String newline("\n");
-const String space(" ");
-const String beginTagBegin("<");
-const String endTagBegin("</");
-const String tagEnd(">");
-const String emptyTagEnd("/>");
-
-void
-Element::do_WriteOut( csv::bostream & io_aFile ) const
-{
- io_aFile.write( beginTagBegin );
- io_aFile.write( inq_TagName() );
-
- const AttrList * pAttrs = inq_Attrs();
- if ( pAttrs != 0 )
- {
- for ( AttrList::iterator it = pAttrs->begin();
- it != pAttrs->end();
- ++it )
- {
-
- io_aFile.write( space );
- (*it)->WriteOut( io_aFile );
- }
- }
-
- const Item * pContent = inq_Content();
- if ( pContent != 0 )
- io_aFile.write( tagEnd );
- else
- {
- if (FinishEmptyTag_XmlStyle())
- io_aFile.write( emptyTagEnd );
- else
- {
- io_aFile.write( tagEnd );
- io_aFile.write( endTagBegin );
- io_aFile.write( inq_TagName() );
- io_aFile.write( tagEnd );
- }
- }
- if ( LineBreakAfterBeginTag() )
- io_aFile.write( newline );
- if ( pContent == 0 )
- return;
-
- pContent->WriteOut( io_aFile );
- io_aFile.write( endTagBegin );
- io_aFile.write( inq_TagName() );
- io_aFile.write( tagEnd );
- if ( LineBreakAfterEndTag() )
- io_aFile.write( newline );
-}
-
-bool
-Element::FinishEmptyTag_XmlStyle() const
-{
- return true;
-}
-
-bool
-Element::LineBreakAfterBeginTag() const
-{
- return false;
-}
-
-bool
-Element::LineBreakAfterEndTag() const
-{
- return LineBreakAfterBeginTag();
-}
-
-
-//************************ EmptyElement ****************************//
-
-void
-EmptyElement::op_streamout( DYN Item * )
-{
- // Does nothing.
-}
-
-void
-EmptyElement::op_streamout( DYN Attribute * let_dpAttr )
-{
- StreamOut( inq_RefAttrs(), let_dpAttr );
-}
-
-void
-EmptyElement::do_SetContent( DYN Item * )
-{
- // Does nothing.
-}
-
-const Item *
-EmptyElement::inq_Content() const
-{
- return 0;
-}
-
-const AttrList *
-EmptyElement::inq_Attrs() const
-{
- return & const_cast< EmptyElement* >(this)->inq_RefAttrs();
-}
-
-
-//************************ PureElement ****************************//
-
-void
-PureElement::op_streamout( DYN Item * let_dpItem )
-{
- StreamOut( inq_RefContent(), let_dpItem );
-}
-
-void
-PureElement::op_streamout( DYN Attribute * )
-{
- // Does nothing.
-}
-
-void
-PureElement::do_SetContent( DYN Item * let_dpItem )
-{
- Impl_SetContent( inq_RefContent(), let_dpItem );
-}
-
-const Item *
-PureElement::inq_Content() const
-{
- return const_cast< PureElement* >(this)->inq_RefContent().Ptr();
-}
-
-const AttrList *
-PureElement::inq_Attrs() const
-{
- return 0;
-}
-
-
-//*************************** SglTag **************************//
-
-void
-SglTag::op_streamout( DYN Item * )
-{
- // Does nothing.
-}
-
-void
-SglTag::op_streamout( DYN Attribute * )
-{
- // Does nothing.
-}
-
-void
-SglTag::do_SetContent( DYN Item *)
-{
- // Does nothing.
-}
-
-const Item *
-SglTag::inq_Content() const
-{
- return 0;
-}
-
-const AttrList *
-SglTag::inq_Attrs() const
-{
- return 0;
-}
-
-
-//*************************** AnElement **************************//
-
-AnElement::AnElement( const char * i_sTagName )
- : sTagName( i_sTagName )
- // pContent,
- // aAttrs
-{
-}
-
-AnElement::~AnElement()
-{
-}
-
-void
-AnElement::op_streamout( DYN Item * let_dpItem )
-{
- StreamOut( pContent, let_dpItem );
-}
-
-void
-AnElement::op_streamout( DYN Attribute * let_dpAttr )
-{
- StreamOut( aAttrs, let_dpAttr );
-}
-
-void
-AnElement::do_SetContent( DYN Item * let_dpItem )
-{
- Impl_SetContent( pContent, let_dpItem );
-}
-
-const String &
-AnElement::inq_TagName() const
-{
- return sTagName;
-}
-
-const Item *
-AnElement::inq_Content() const
-{
- return pContent.Ptr();
-}
-
-const AttrList *
-AnElement::inq_Attrs() const
-{
- return &aAttrs;
-}
-
-//*************************** APureElement **************************//
-
-APureElement::APureElement( const char * i_sTagName )
- : sTagName( i_sTagName )
- // pContent
-{
-}
-
-APureElement::~APureElement()
-{
-}
-
-const String &
-APureElement::inq_TagName() const
-{
- return sTagName;
-}
-
-Dyn< Item > &
-APureElement::inq_RefContent()
-{
- return pContent;
-}
-
-//*************************** AnAttribute **************************//
-AnAttribute::AnAttribute( const String & i_sName,
- const String & i_sValue )
- : sName(i_sName),
- sValue(i_sValue)
-{
-}
-
-AnAttribute::AnAttribute( const char * i_sName,
- const char * i_sValue )
- : sName(i_sName),
- sValue(i_sValue)
-{
-}
-
-AnAttribute::~AnAttribute()
-{
-}
-
-const String &
-AnAttribute::inq_Name() const
-{
- return sName;
-}
-
-const String &
-AnAttribute::inq_Value() const
-{
- return sValue;
-}
-
-
-
-//*************************** Text **************************//
-
-Text::Text( const String & i_sText )
- : sText(i_sText)
-{
-}
-
-Text::Text( const char * i_sText )
- : sText(i_sText)
-{
-}
-
-Text::~Text()
-{
-}
-
-void
-Text::do_WriteOut( csv::bostream & io_aFile ) const
-{
- const unsigned char *
- pStart = reinterpret_cast< const unsigned char* >(sText.c_str());
- const unsigned char *
- pOut = pStart;
-
- for ( ; *pOut != '\0'; ++pOut )
- {
- if ( cReplacable[*pOut] )
- {
- if ( pOut != pStart )
- {
- io_aFile.write( pStart, pOut-pStart );
- }
-
- switch (*pOut)
- {
- case '<': io_aFile.write("&lt;"); break;
- case '>': io_aFile.write("&gt;"); break;
- case '"': io_aFile.write("&quot;"); break;
- case '&': io_aFile.write("&amp;"); break;
- case 255: io_aFile.write("&nbsp;"); break;
- }
-
- pStart = pOut+1;
- } // endif (cReplacable[*pOut])
- } // end for
-
- if ( pOut != pStart )
- {
- io_aFile.write( pStart, pOut-pStart );
- }
-}
-
-
-//*************************** XmlCode **************************//
-
-XmlCode::XmlCode( const String & i_sText )
- : sText(i_sText)
-{
-}
-
-XmlCode::XmlCode( const char * i_sText )
- : sText(i_sText)
-{
-}
-
-XmlCode::~XmlCode()
-{
-}
-
-void
-XmlCode::do_WriteOut( csv::bostream & io_aFile ) const
-{
- io_aFile.write(sText);
-}
-
-
-//*************************** MultiItem **************************//
-
-MultiItem::MultiItem()
-{
-}
-
-MultiItem::~MultiItem()
-{
-}
-
-void
-MultiItem::do_WriteOut( csv::bostream & io_aFile ) const
-{
- ItemList::iterator itEnd = aItems.end();
-
- for ( ItemList::iterator it = aItems.begin();
- it != itEnd;
- ++it )
- {
- (*it)->WriteOut( io_aFile );
- }
-
-}
-
-
-
-//*************************** Helpers **************************//
-
-void
-StreamOut( Dyn< Item > & o_rContent,
- DYN Item * let_dpItem )
-{
- MultiItem * pContent = 0;
- if ( bool(o_rContent) )
- {
- pContent = static_cast< MultiItem* >( o_rContent.MutablePtr() );
- csv_assert( dynamic_cast< MultiItem* >( o_rContent.MutablePtr() ) != 0 );
- }
- else
- {
- pContent = new MultiItem;
- o_rContent = pContent;
- }
-
- csv_assert( let_dpItem != 0 );
- pContent->Add( let_dpItem );
-}
-
-
-
-
-} // namespace xml
-} // namespace csi
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */