| MsOffice::Word::Surgeon::Field(3pm) | User Contributed Perl Documentation | MsOffice::Word::Surgeon::Field(3pm) |
MsOffice::Word::Surgeon::Field - internal representation for a MsWord field
This is used internally by MsOffice::Word::Surgeon for storing a MsWord field.
my $field = MsOffice::Word::Surgeon::Field(
xml_before => $xml_string,
code => $code_instruction_string,
result => $xml_fragment,
status => 'begin',
);
Constructor for a new field object. Arguments are :
Status "begin" or "separate" are intermediate, used internally during the parsing process. Normally all fields are in "end" status.
While parsing fields, additional field instruction fragments are added through this method
While parsing fields, additional XML fragments belonging to the field result are added through this method
The first instruction in the "code" part, eg "REF", "QUOTE", "ASK", "DOCPROPERTY", etc. Note : in the Microsoft Word Object Model, the <https://learn.microsoft.com/en-us/office/vba/api/word.field.type|Field.Type> attribute is an integer value in an enumerated type. Here the attribute is just an uppercase string. Lists of valild field types can be found in the Word documentation.
Laurent Dami, <dami AT cpan DOT org<gt>
Copyright 2024 by Laurent Dami.
This program is free software, you can redistribute it and/or modify it under the terms of the Artistic License version 2.0.
| 2025-05-16 | perl v5.40.1 |