当前位置:网站首页>Taishan Office Technology Lecture: storage structure of domain in model

Taishan Office Technology Lecture: storage structure of domain in model

2022-06-21 15:38:00 Liukunpeng

   What is domain ? For example, insert page numbers ( The page changes automatically ) Is the domain . There are two forms of domains : Normal form , For example, display the current page number ; Content form , For example, display {PAGE \* MERGEFORMAT}( adopt ALT+F9 Switch ). This display is different from the content , Naturally you will ask : How to store ? There are two options :

  • Separate content from description

In storage , Save only one with a length of 1 Leaves of , The attribute indicates that this is a domain , Used to display what , What is the content .

The advantage is simple storage , The layout processing is simple ( It can be simply used as a picture , The specific content is handled by the leaf ).

The downside is that if a switch occurs , The layout is troublesome , If you encounter a broken line, it will be more troublesome .

  • Store content directly

Save a leaf , The content is PAGE That string ( differences ), Page number information is marked by attributes . The pros and cons are just the opposite of the previous scheme .

Storage management is troublesome , The layout is very troublesome . Inexplicable jump is easy to make mistakes .

If disconnection is convenient .

   I advocate adopting the first scheme . As for the display , There are several ways :

Switching functions are prohibited . Relevant information can be displayed by right clicking .

In the layout, the leaf breaking scheme is used to solve the line breaking problem . Even if the trouble , Nor is it better than the plan 2 trouble .

原网站

版权声明
本文为[Liukunpeng]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/172/202206211237461517.html