Apache OpenOffice (AOO) Bugzilla – Full Text Issue Listing |
Summary: | Replacement for Words "Document variables" needed | ||
---|---|---|---|
Product: | Writer | Reporter: | Mathias_Bauer |
Component: | code | Assignee: | AOO issues mailing list <issues> |
Status: | CONFIRMED --- | QA Contact: | |
Severity: | Trivial | ||
Priority: | P3 | CC: | cno, issues |
Version: | OOo 1.0.0 | ||
Target Milestone: | --- | ||
Hardware: | Unknown | ||
OS: | All | ||
Issue Type: | ENHANCEMENT | Latest Confirmation in: | --- |
Developer Difficulty: | --- |
Description
Mathias_Bauer
2009-03-11 12:31:21 UTC
i've just had a look at this. currently: word document variables are imported as user-defined document properties. word document variable get/set fields are imported as ??? don't know. ODF has fields for getting user-defined document properties: <text:user-defined>, but not for setting them. ODF also has variables: <text:variable-decl> <text:variable-get> <text:variable-input> <text:variable-set> corresponding OOo API: com.sun.star.text.FieldMaster.SetExpression com.sun.star.text.textfield.SetExpression com.sun.star.text.textfield.GetExpression the writer core objects seem to be in encfld.hxx: SwSetExpField SwGetExpField so maybe we could import word document variables as expression fields, which has the advantage that we can store them in ODF as well. May i suggest to gives us a tool in the API to make a property non-editable for cummon users ? see also (100150) This is one possible solution, but it wouldn't be less work than inventing something completely new as this also would require an ODF change. *If possible*, we should find something that works without changing ODF. Reset assigne to the default "issues@openoffice.apache.org". |