A kind of implementation method and device of smart tags
Technical field
The present invention relates to printing technology, more particularly to the implementation method and device of a kind of smart tags.
Background technology
In print field, layout is an important technology in printing process.In order to save material, reduce cost and raising
Efficiency, the page for the multiple publications that will usually print is spelled according to certain requirement forms a big version on the same space of a whole page
It goes to print again, the rear process such as is cut, bound after printing again, finally obtain publication finished product.For subsequent print
The needs of the process such as brush, addition label is a very common and very important ring during layout, this is directly affected
To the correctness and accuracy of printing process and final printed publication.With the universal of digital printing technologies and develop, when
Preceding user requires the application technology of printing mark also particularly urgent to layout technology, while rolling over the requirement raising of workmanship art.
In the prior art, printing mark is added in printing process, usually there are two types of modes:One is manual modes, i.e.,
On the space of a whole page for needing to add label, multiple independent labels are added one by one manually, one by one setting flag parameter, then
It carries out pulling positioning by hand or setting absolute coordinate positions;One is fixed forms, i.e., in fixed position, batch adds admittedly
Determine type, preset parameter independent marking.
But following deficiency or defect is all individually present in existing mode in practical application and work:
Printing mark is added by manual mode, although operation is flexible, addition efficiency is too low, and operating procedure is various, holds
It is error-prone, it carries out positioning especially by dragging by hand and is inaccurate, and carry out positioning inconvenience by the way that absolute coordinate is arranged;
Once the size positions of space of a whole page element change, all labels will re-start positioning modification, even identical
The label of type is also required to that addition is repeated several times;And due to being independent from each other between label, after label is added on the space of a whole page, one
Denier needs to modify one by one when modification, cumbersome and inefficiency.
Printing mark is added by fixed form, although efficient, lacks flexibility, type and parameter are more solid
Calmly, modification is got up more difficult, can only meet certain simple demands.
The label that both modes are added all is usually static tay, does not have dynamic characteristic.And both modes
The label of addition is required for resetting, repetitive operation, does not have reusability, cumbersome and inefficiency when using every time.
Invention content
The embodiment of the present invention provides a kind of implementation method and device of smart tags, to solve the prior art do not have it is dynamic
The problem of state property and reusability, cumbersome and inefficiency.
Specific technical solution provided in an embodiment of the present invention is as follows:
In a first aspect, a kind of implementation method of smart tags, including:
In pretreatment stage, smart tags information is defined, and will be in the smart tags information storage to memory;
In the addition printing mark stage, smart tags information is read from memory and is parsed, according to the intelligence parsed
Label information creates smart tags object and the relevant parameter of the smart tags object is arranged;
According to the relevant parameter of smart tags object, by smart tags object benchmark space of a whole page element corresponding on the space of a whole page into
Mobile state is bound, and the location information of smart tags object is arranged;
According to the relevant parameter and location information of smart tags object, by smart tags objects draw on the space of a whole page;
Preserve the space of a whole page where smart tags object.
Smart tags implementation method in this way, can flexibly define the parameter of printing mark as needed, realize with
Shi Xiugai, automatic positioning, certain definition can be reused repeatedly, while realize dynamic according to the relevant parameter of smart tags object
Binding and automatic positioning reduce manual operations complicated when addition printing mark, improve flexibility that printing mark uses,
Convenience and reusability.
With reference to first aspect, in the first possible implementation, smart tags information includes:
Title, type, relative position, size, rotation, color, the positive back side, other specific informations.
Above-mentioned ginseng can be flexibly defined as needed instead of traditional static tay by defining smart tags information
Number, facilitates modification, improves flexibility and convenience that printing mark uses.
With reference to first aspect, it in second of possible realization method, by smart tags information storage to memory, wraps
It includes:
Smart tags information is converted to serializability and the structured parameter of unserializing, and the structured parameter is deposited
It stores up in memory.
In this way, facilitate reading and use, while may be implemented once to define, be used for multiple times, enhance intelligence
The reusability of tagging scheme.
With reference to first aspect, in the third possible realization method, according to the relevant parameter of smart tags object, by intelligence
Energy tagged object benchmark space of a whole page element corresponding on the space of a whole page carries out dynamic binding, including:
According to the reference object recorded in the relevant parameter of smart tags object, it sets the smart tags object to the space of a whole page
The upper and reference object has the daughter element of the benchmark space of a whole page element of same alike result.
In this way, realizing dynamic binding according to the relevant parameter of smart tags object, reduce multiple when addition printing mark
Miscellaneous manual operations, it is more convenient.
With reference to first aspect, in the 4th kind of possible realization method, the location information of smart tags object, packet are set
It includes:
Based on binding result, on the basis of benchmark space of a whole page element, according to the base in the relevant parameter of the smart tags object
Eka-element anchor point and object element anchor point determine the horizontal coordinate and vertical coordinate of the smart tags object;
According to the horizontal-shift coordinate and vertical shift coordinate in the relevant parameter of smart tags object, to the smart tags
Object is into line displacement;
Record and be arranged the relative coordinate of the smart tags object.
In this way, realizing automatic positioning according to the relevant parameter of smart tags object, reduce when adding printing mark
Complex operations provide accuracy and the flexibility of printing mark positioning.
With reference to first aspect, in the 5th kind of possible realization method, further comprise:
When the content changing of smart tags information, the relevant parameter of smart tags object is updated, and updates the intelligence
The location information of tagged object and the binding relationship and the smart tags object of its benchmark space of a whole page element;
When the content changing of benchmark space of a whole page element, update smart tags object and the binding of the benchmark space of a whole page element are closed
System, and update the location information of the smart tags object.
In this way, printing mark just has dynamic characteristic, when the content or benchmark space of a whole page element of smart tags information
When content change, no longer needs to carry out manual setting, automatically updating for smart tags may be implemented.
With reference to first aspect, in the 6th kind of possible realization method, further comprise:
When adding a space of a whole page element on the space of a whole page, if having realized the related ginseng of the smart tags object of dynamic binding on the space of a whole page
The space of a whole page element of the reference object and addition that are recorded in number has same alike result, then this has been realized to the smart tags of dynamic binding
Object is set as the daughter element of the space of a whole page element of the addition;
When deleting a space of a whole page element on the space of a whole page, the space of a whole page element deleted and deleted realizes the smart tags pair of dynamic binding
As.
In this way, can bind or delete automatically corresponding smart tags when addition either deletes a space of a whole page element
Object reduces manual operations without being bound or deleted one by one, improves flexibility that printing mark uses and conveniently
Property.
Second aspect, a kind of realization device of smart tags, including:
Definition module, in pretreatment stage, defining smart tags information, and by the smart tags information storage to depositing
In reservoir;
Parsing module, in the addition printing mark stage, reading smart tags information from memory and parsing, according to
The smart tags information creating smart tags object that parses and the relevant parameter that the smart tags object is set;
Locating module, it is for the relevant parameter according to smart tags object, smart tags object is corresponding on the space of a whole page
Benchmark space of a whole page element carries out dynamic binding, and the location information of smart tags object is arranged;
Drafting module, for the relevant parameter and location information according to smart tags object, by smart tags objects draw
On the space of a whole page;
Preserving module, for preserving the space of a whole page where smart tags object.
By cooperating for above-mentioned five modules, the parameter for flexibly defining printing mark as needed may be implemented, it is real
It now changes, be automatically positioned at any time, certain definition can be reused repeatedly, while be realized according to the relevant parameter of smart tags object
Dynamic binding and automatic positioning reduce manual operations complicated when addition printing mark, improve the spirit that printing mark uses
Activity, convenience and reusability.
In conjunction with second aspect, in the first possible implementation, smart tags information includes:
Title, type, relative position, size, rotation, color, the positive back side, other specific informations.
The smart tags information defined by definition module can as needed flexibly instead of traditional static tay
Above-mentioned parameter is defined, facilitates modification, improves flexibility and convenience that printing mark uses.
In conjunction with second aspect, in second of possible realization method, definition module is specifically used for:
When by smart tags information storage to memory, which is converted to serializability and inverted sequence
The structured parameter of rowization, and will be in structured parameter storage to memory.
Smart tags information permanently store mutually by definition module, facilitates reading and use, may be implemented simultaneously
It once defines, be used for multiple times, enhance the reusability of smart tags scheme.
In conjunction with second aspect, in the third possible realization method, locating module is specifically used for:
In the relevant parameter according to smart tags object, by smart tags object benchmark space of a whole page element corresponding on the space of a whole page
When carrying out dynamic binding, according to the reference object recorded in the relevant parameter of smart tags object, smart tags object is arranged
To have the daughter element of the benchmark space of a whole page element of same alike result on the space of a whole page with the reference object.
In this way, locating module realizes the dynamic binding of smart tags according to the relevant parameter of smart tags object, reduce
Complicated manual operations, more convenient when addition printing mark.
In conjunction with second aspect, in the 4th kind of possible realization method, locating module is specifically used for:
When the location information of smart tags object is arranged, it is based on binding result, on the basis of benchmark space of a whole page element, according to
Base element anchor point in the relevant parameter of smart tags object and object element anchor point, determine the smart tags object
Horizontal coordinate and vertical coordinate;
According to the horizontal-shift coordinate and vertical shift coordinate in the relevant parameter of smart tags object, to the smart tags
Object is into line displacement;
Record and be arranged the relative coordinate of the smart tags object.
In this way, locating module realizes the automatic positioning of smart tags according to the relevant parameter of smart tags object, reduce
Complex operations when addition printing mark provide accuracy and the flexibility of printing mark positioning.
In conjunction with second aspect, in the 5th kind of possible realization method, locating module is further used for:
When the content changing of smart tags information, the relevant parameter of smart tags object is updated, and updates the intelligence
The location information of tagged object and the binding relationship and the smart tags object of its benchmark space of a whole page element;
When the content changing of benchmark space of a whole page element, update smart tags object and the binding of the benchmark space of a whole page element are closed
System, and update the location information of the smart tags object.
In this way, printing mark just has dynamic characteristic, when the content or benchmark space of a whole page element of smart tags information
When content change, no longer needs to carry out manual setting, automatically updating for smart tags may be implemented.
In conjunction with second aspect, in the 6th kind of possible realization method, locating module is further used for:
When adding a space of a whole page element on the space of a whole page, if having realized the related ginseng of the smart tags object of dynamic binding on the space of a whole page
The space of a whole page element of the reference object and addition that are recorded in number has same alike result, then this has been realized dynamic binding by locating module
Smart tags object is set as the daughter element of the space of a whole page element of the addition;
When deleting a space of a whole page element on the space of a whole page, locating module deletes the intelligence that dynamic binding is realized with the space of a whole page element deleted
It can tagged object.
In this way, when addition either delete the space of a whole page element when locating module can bind or delete automatically it is corresponding
Smart tags object reduces manual operations without being bound or deleted one by one, improve printing mark use it is flexible
Property and convenience.
Description of the drawings
Fig. 1 is the particular flow sheet that smart tags are realized in the embodiment of the present invention;
Fig. 2 is the interactive interface schematic diagram of smart tags information defined in the embodiment of the present invention;
Fig. 3 is the interface schematic diagram for defining smart tags relative position;
Fig. 4 is the schematic diagram that smart tags object is bound and positioned in the embodiment of the present invention;
Fig. 5 is the space of a whole page schematic diagram that smart tags are not added in the embodiment of the present invention;
Fig. 6 is the space of a whole page schematic diagram after addition smart tags in the embodiment of the present invention;
Fig. 7 is the space of a whole page schematic diagram after addition smart tags A in the embodiment of the present invention;
Fig. 8 is the space of a whole page schematic diagram after the change of smart tags A reference objects in the embodiment of the present invention;
Fig. 9 is the space of a whole page schematic diagram after page size change in the embodiment of the present invention;
Figure 10 is to add the space of a whole page schematic diagram after a page in the embodiment of the present invention;
Figure 11 is that the space of a whole page schematic diagram after the page is deleted in the embodiment of the present invention;
Figure 12 is the realization device schematic diagram of smart tags in the embodiment of the present invention.
Specific implementation mode
In order to which the realization method for solving to add printing mark in printing process at present does not have dynamic and reusability, behaviour
The problem of making cumbersome and inefficiency in the embodiment of the present invention, provides a kind of implementation method and device of smart tags.
The preferred embodiment of the present invention is described in detail below in conjunction with the accompanying drawings.
As shown in fig.1, in the embodiment of the present invention, realize that the detailed process of smart tags is as follows:
Step 100:In pretreatment stage, processing unit defines smart tags information, and by the smart tags information storage
Into memory.
In the embodiment of the present invention, smart tags information is used to describe the parameter of smart tags, including following parameter:Name
Claim, the name for identifying and showing smart tags;Type, the classification for sorting out and dividing smart tags;Relative position is used
In position of the regulation smart tags in the space of a whole page;Size, the size for providing smart tags;Rotation, for providing intelligent mark
The rotation angle of note;Color, the print color for providing smart tags;The positive back side, the display category for providing smart tags
Property, i.e., only show that front, only the display back side or the positive back side are all shown;Other specific informations, it is different types of for supplementing
Special nature needed for smart tags.Fig. 2 shows the interactive interface schematic diagrames for defining smart tags information.
Specifically, smart tags type includes intelligent folding label, intelligent slitter marks, intelligent linear mark, intelligence
The types such as rectangle marked, intelligent register mark, intelligent word marking, intelligent step-wedge label, the self-defined label of intelligence.Wherein, intelligence
Energy register mark is divided into as the anti-bottom label of cross, interior point of aim mark, oval point of aim mark, cross hairs mark, outer point of aim mark, reality
Six type of heart point of aim mark.
Smart tags relative position includes reference object, base element anchor point, object element anchor point, horizontal-shift
Five kinds of coordinate, vertical shift coordinate parameters.Fig. 3 shows the interface schematic diagram for defining smart tags relative position.Wherein, benchmark
References object when object refers to addition smart tags on the space of a whole page, the space of a whole page mentioned here refer generally to the big version during layout.Such as
Shown in table 1, reference object includes following 16 kinds of references object:Plate, paper, layout, layout bleeding, the page, page bleeding,
Horizontal page spacing, vertical page spacing, top margin, bottom margin, left side margin, the right margin, a left side
Top margin blank, upper right margin, lower-left margin, bottom right margin.Base element anchor point is used in benchmark pair
A positioning datum point is specified in nine positioning datum points of elephant.Object element anchor point is used in a selected reference object
A positioning datum point is specified in nine positioning datum points in reference point locations.Wherein, nine positioning datum points refer to one
It is nine reference point locations that object, which is positioned, according to the model split of nine grids, respectively:Upper left, in upper, upper right, it is left, placed in the middle,
In the right side, lower-left, under, bottom right.Horizontal-shift coordinate is for providing object element anchor point relative to base element anchor point
Horizontal-shift, positive value indicate that object element anchor point deviates to the right relative to base element positioning, and negative value indicates that object element is fixed
Site deviates to the left relative to base element positioning.Vertical shift coordinate is for providing object element anchor point relative to benchmark member
The vertical shift of plain anchor point, positive value indicate that object element anchor point is offset up relative to base element positioning, and negative value indicates
Object element anchor point is offset downward relative to base element positioning.
Table 1
Serial number |
Mark |
Title |
1 |
PLATE |
Plate |
2 |
PAPER |
Paper |
3 |
IMPOSITION |
Layout |
4 |
IMPOSITIONBLEED |
It is laid out bleeding |
5 |
PAGE |
The page |
6 |
PAGEBLEED |
Page bleeding |
7 |
GUTTERSHORIZONTAL |
Horizontal page spacing |
8 |
GUTTERSVERTICAL |
Vertical page spacing |
9 |
MARGINtop |
Top blank |
10 |
MARGINbottom |
Bottom blank |
11 |
MARGINleft |
Left margin |
12 |
MARGINright |
The right blank |
13 |
MARGINtopleft |
Upper left blank |
14 |
MARGINtopright |
Upper right blank |
15 |
MARGINbottomleft |
Lower-left blank |
16 |
MARGINbottomRIGH |
Bottom right blank |
Smart tags size refers to the width and height of smart tags, optionally, in the embodiment of the present invention, intelligence as needed
The width that can be marked can run through the entire width of reference object, i.e., smart tags be repeatedly paved with to entire reference object.
Smart tags rotate, and refer to the rotation angle of smart tags, rotation angle can select fixed 0 degree, 90 degree, 180
Degree or 270 degree, meanwhile, optionally self-defined rotation angle, ranging from 0-360 degree are provided in the embodiment of the present invention.
The other specific informations of smart tags refer to different types of smart tags other than the necessary information on basis, may be used also
Respectively different personalizing parameters information can be needed, for example, text mark also needs to the information such as record font, word content.
In the embodiment of the present invention, the smart tags information that definition is completed is converted to serializability and antitone sequence by processing unit
Then the structured parameter is stored and carries out lasting storage into memory, to facilitate to intelligence by the structured parameter of change
It the reading of label information, modification and the operations such as can use, may be implemented once to define and repeatedly reuse, enhance smart tags information
Reusability.Memory described herein is typically extensible markup language(Extensible Markup Language, XML)
File, but it is not limited only to this, can also be any storage device or storage medium that can store and read data, herein not
It repeats one by one again.
Step 110:In the addition printing mark stage, processing unit reads smart tags information and is parsed from memory,
According to the smart tags information creating smart tags object parsed and the relevant parameter that smart tags object is arranged.
Specifically, the relevant parameter of above-mentioned smart tags object, includes at least at least one of:It is title, type, opposite
Position, size, rotation, color, the positive back side, other specific informations.
Step 120:Processing unit is corresponding on the space of a whole page by smart tags object according to the relevant parameter of smart tags object
Benchmark space of a whole page element carry out dynamic binding, and the location information of smart tags object is set.
Specifically, in the embodiment of the present invention, base that processing unit records in the relevant parameter according to the smart tags object
Quasi- object sets the smart tags object to the son with the reference object on the space of a whole page with the benchmark space of a whole page element of same alike result
Element.Then, processing unit is based on above-mentioned binding result, on the basis of the benchmark space of a whole page element, according to smart tags object
Base element anchor point in relevant parameter and object element anchor point determine the horizontal coordinate of the smart tags object and vertical
Coordinate.Next, further according to horizontal-shift coordinate and vertical shift coordinate in the relevant parameter of smart tags object, to the intelligence
Can tagged object into line displacement.Finally, processing unit records and the relative coordinate of the smart tags object is arranged, i.e., this is intelligently marked
Remember coordinate of the object with respect to its reference object.
In practical applications, processing unit is usually disposably by multiple smart tags object bindings to the space of a whole page, this mistake
Journey can be on the smart tags object binding to the same space of a whole page by multiple same types, can be by multiple and different types
Can also be to tie up multiple same types or different types of smart tags on smart tags object binding to the same space of a whole page
Determine onto the different spaces of a whole page.
Fig. 4 shows that processing unit is bound and determined to smart tags object according to the relative position of smart tags object
The schematic diagram of position.In the following, by taking first figure in Fig. 4 as an example, describes processing unit and smart tags object is bound
With the detailed process of positioning.Big rectangle in figure indicates that reference object, small rectangle indicate tagged object, the benchmark of the tagged object
Object is set as the page, and base element anchor point and object element anchor point are disposed as upper right, and horizontal-shift coordinate is 100 millis
Rice, vertical shift coordinate are 50 millimeters.According to the reference object of the tagged object, which is added first for processing unit
For the daughter element of all pages on the space of a whole page.After the completion of binding, further according to the base element anchor point of the tagged object, the page is pressed
Nine grids model split is nine reference point locations, and upper-right position therein is selected in nine reference point locations, then
According to object element anchor point, selected page upper-right position is pressed to nine grids model split again is in nine reference point locations,
And choose upper-right position therein.Finally, according to the horizontal-shift coordinate of the tagged object and vertical shift coordinate, by the label
Object deviates to the right 100 millimeters, offsets up 50 millimeters, completes final positioning, and record at this time the tagged object in version
Relative coordinate values on face.
Step 130:Processing unit is according to the relevant parameter and location information of the smart tags object, by the smart tags pair
As being plotted on the space of a whole page.
According to the relevant parameter of smart tags object, such as title, type, relative position, size, rotation, color, the positive back of the body
The relative coordinate of face, other specific informations etc. and smart tags, by smart tags objects draw on the space of a whole page, convenient for intuitive
Display effect of the ground preview smart tags on the space of a whole page.For example, intelligence is drawn in shown in Fig. 5 being not added on the space of a whole page of smart tags
It can mark, wherein eight pages are shared on the space of a whole page.Assuming that having created intelligent step-wedge label 1, intelligent rectangle marked 2, intelligence are straight
Wire tag 3, intelligent slitter marks 4, intelligent folding label 5, intelligent word marking 6, and intelligent step-wedge label 1 is dynamically bound to
Intelligent rectangle marked 2, intelligent linear mark 3 and intelligent slitter marks 4 are dynamically bound to the page, by intelligent folding mark by paper
Note 5 and intelligent word marking 6 dynamically bind to layout, and the setting of remaining parameter repeats no more.After dynamic binding and positioning,
Finally above-mentioned multiple smart tags are plotted on the space of a whole page, Fig. 6 shows the display effect of the space of a whole page after addition smart tags.
Step 140:Processing unit preserves the space of a whole page where the smart tags object.
In the embodiment of the present invention, after completing, processing unit can will draw the entire space of a whole page for having smart tags object, even
With the relevant parameter of smart tags object on the space of a whole page, embedded be output in layout file is permanently stored together.Subsequent
The space of a whole page processing in, corresponding layout file can be transferred at any time as needed, modify to smart tags object therein or
Person adjusts, to obtain required smart tags scheme.
Further, in the embodiment of the present invention, when the content of the smart tags information is during any of the above-described step
When change, processing unit can update the relevant parameter of the smart tags object, and update the smart tags object and its benchmark
The location information of the binding relationship of space of a whole page element and the smart tags object.For example, the reference object of certain smart tags A is page
Face, if the display effect being plotted on the space of a whole page as shown in fig. 7, by the reference object in the label information of smart tags A by
When the page becomes paper, the reference object parameter of smart tags A can be correspondingly paper by renewal of the page by processing unit, together
When by the unbinding relationship of the page on smart tags A and the space of a whole page, and the paper on smart tags A and the space of a whole page established new
Binding relationship simultaneously re-starts positioning, and display effects of the smart tags A on the space of a whole page will be changed into Fig. 8 by Fig. 7 at this time.Another party
Face, when the content with the benchmark space of a whole page element on the space of a whole page of the smart tags object binding changes during any of the above-described step
When change, processing unit can update the binding relationship of the smart tags object and the benchmark space of a whole page element, and update intelligence mark
Remember the location information of object.For example, on the space of a whole page shown in Fig. 7, if dimensionally occurred with the page of smart tags A bindings
Variation, processing unit can establish the binding relationship of smart tags A and the page again, and re-start positioning, then update intelligence
The relative coordinate values of A can be marked, display effects of the smart tags A on the space of a whole page will be changed into Fig. 9 by Fig. 7 at this time.
Further, when adding a space of a whole page element on the space of a whole page when processing unit, if having realized dynamic binding on the space of a whole page
The space of a whole page element of the reference object and addition that are recorded in the relevant parameter of smart tags object has same alike result, then this is real
The smart tags object of existing dynamic binding is set as the daughter element of the space of a whole page element of the addition.For example, in the space of a whole page shown in Fig. 9
A page is added again, realizes that the smart tags A of binding also can automatically be realized with this newly added page with the page at this time
Binding, display effects of the smart tags A on the space of a whole page will be changed into Figure 10 by Fig. 9 at this time.On the other hand, when processing unit is in version
When deleting a space of a whole page element on face, the smart tags object that the space of a whole page element deleted with this realizes dynamic binding can be deleted.For example,
When deleting this space of a whole page element of the page in the space of a whole page shown in Fig. 10, the smart tags A with page binding can also be deleted automatically at this time
It removes, the display effect of the space of a whole page will be changed into Figure 11 by Figure 10 at this time.
Based on above-described embodiment, refering to fig. 1 shown in 2, in the embodiment of the present invention, the realization device 12 of smart tags includes:
Definition module 120, in pretreatment stage, defining smart tags information, and by the smart tags information storage
Into memory.
In the embodiment of the present invention, definition module 120 receives user-defined intelligence by the way of Visual Intelligent Interface Model
Label information, wherein smart tags information includes following parameter:Title, type, relative position, size, rotation, color are positive to carry on the back
Face, other specific informations.
Parsing module 121, in the addition printing mark stage, reading smart tags information from memory and parsing,
According to the smart tags information creating smart tags object parsed and the relevant parameter that the smart tags object is arranged.
Locating module 122, it is for the relevant parameter according to smart tags object, smart tags object is corresponding on the space of a whole page
Benchmark space of a whole page element carry out dynamic binding, and the location information of smart tags object is set.
Drafting module 123 paints smart tags object for the relevant parameter and location information according to smart tags object
System is on the space of a whole page.
Preserving module 124, for preserving the space of a whole page where smart tags object.
Specifically, definition module 120 first turns smart tags information when by smart tags information storage to memory
It is melted into the structured parameter of serializability and unserializing, then will be in structured parameter storage to memory.
Specifically, locating module 122, will be on smart tags object and the space of a whole page in the relevant parameter according to smart tags object
It is the benchmark pair recorded in the relevant parameter according to smart tags object when corresponding benchmark space of a whole page element carries out dynamic binding
As setting smart tags object to the daughter element with reference object on the space of a whole page with the benchmark space of a whole page element of same alike result.
Specifically, in the embodiment of the present invention, locating module 122 is based on when the location information of smart tags object is arranged
Binding result, on the basis of benchmark space of a whole page element, according in the relevant parameter of smart tags object base element anchor point and
Object element anchor point determines the horizontal coordinate and vertical coordinate of the smart tags object, then according to the smart tags object
Relevant parameter in horizontal-shift coordinate and vertical shift coordinate finally recorded simultaneously to the smart tags object into line displacement
The relative coordinate of the smart tags object is set.
Further, when the content changing of smart tags information, locating module 122 can update the phase of smart tags object
Parameter is answered, and updates the positioning of the smart tags object and the binding relationship and the smart tags object of its benchmark space of a whole page element
Information.And when the content changing of benchmark space of a whole page element, locating module 122 can update smart tags object and the benchmark space of a whole page member
The binding relationship of element, and update the location information of the smart tags object.
Further, in the embodiment of the present invention, when adding a space of a whole page element on the space of a whole page, if having been realized on the space of a whole page, dynamic is tied up
The reference object recorded in the relevant parameter of fixed smart tags object and the space of a whole page element of the addition have same alike result, then fixed
This can have been realized that the smart tags object of dynamic binding is set as the daughter element of the space of a whole page element of the addition by position module 122.And
When deleting a space of a whole page element on the space of a whole page, locating module 122 can delete the intelligence that the space of a whole page element deleted with this realizes dynamic binding
It can tagged object.
In conclusion technical solution recorded in the embodiment of the present invention is neatly defined as needed using smart tags
The parameter of printing mark can be changed, be automatically updated compared to traditional static tay at any time, improve printing mark use
Flexibility and convenience.In addition, the present invention is by the smart tags information of definition and draws the space of a whole page for having smart tags object
File is enduringly preserved in memory, to achieve the purpose that primary definition, repeatedly reuse, enhances smart tags
The reusability of scheme.In addition, the present invention realizes dynamic binding and automatic positioning according to the relevant parameter of smart tags object, subtract
Lack manual operations complicated when addition printing mark, improves accuracy and the flexibility of printing mark positioning.
Obviously, those skilled in the art can carry out the embodiment of the present invention various modification and variations without departing from this hair
The spirit and scope of bright embodiment.In this way, if these modifications and variations of the embodiment of the present invention belong to the claims in the present invention
And its within the scope of equivalent technologies, then the present invention is also intended to include these modifications and variations.