CN107102971A - Pattern clone method, device and equipment - Google Patents

Pattern clone method, device and equipment Download PDF

Info

Publication number
CN107102971A
CN107102971A CN201610811715.4A CN201610811715A CN107102971A CN 107102971 A CN107102971 A CN 107102971A CN 201610811715 A CN201610811715 A CN 201610811715A CN 107102971 A CN107102971 A CN 107102971A
Authority
CN
China
Prior art keywords
source object
pattern
style attributes
corresponding relation
attributes value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610811715.4A
Other languages
Chinese (zh)
Inventor
林晓晴
朱兴民
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201610811715.4A priority Critical patent/CN107102971A/en
Publication of CN107102971A publication Critical patent/CN107102971A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The application is that, on pattern clone method, device and equipment, methods described includes:Receive the acquisition instructions for gathering source object pattern;According to the acquisition instructions received, element and the corresponding relation of element Style Attributes value in source object are obtained;When receiving pattern duplicate instructions, according to the corresponding relation, the element Style Attributes value of element in destination object is set to it is consistent with the element Style Attributes value of respective element in source object, in the destination object at least in the presence of an element type it is identical with the type of the element of source object.The application can distinguish the corresponding element Style Attributes value of different elements by obtaining the corresponding relation of element and element Style Attributes value, therefore can realize the batch duplicating of pattern, improve pattern duplicating efficiency.

Description

Pattern clone method, device and equipment
Technical field
The application is related to technical field of information processing, more particularly to pattern clone method, device and equipment.
Background technology
In software for editing, there is object to be edited.Object can be object or tool with single structure There is the object of combining structure.Object with combining structure is the object for including at least two elements, pair with single structure As if include the object of an element.Identical element has identical pattern, and the pattern of different elements may be different.For example, right During as button, button can include text element and graphic element.Pattern is attribute of an element set, for text element, Pattern can include the attributes such as font, font size and font color, and for graphic element, pattern can include border color, background Attributes such as color, fillet etc..When carrying out object editing, " pattern brush " button can be used to answer the pattern of element in source object Make on the element of destination object, so that the element of destination object has and element identical pattern in source object.Wherein, " sample Formula brush " is referred to as " Format Painter ".
In conventional art, when carrying out pattern duplication every time, it is only capable of the pattern of a certain element in source object copying to target In the respective element of object.It is illustrated so that source object includes text element and graphic element as an example, it is necessary to respectively by text The pattern of Character table and graphic element is copied on destination object, for example, first copy to the pattern of the text element in source object On the text element of destination object, then the pattern of the graphic element in source object copied on the graphic element of destination object.
It can be seen that, need respectively to be replicated the pattern of every kind of element in source object in correlation technique, it is impossible to disposably will The pattern of all elements is copied on destination object in source object, and pattern duplicating efficiency is low.
The content of the invention
The application provides pattern clone method, device and equipment, to solve the problem of prior art pattern duplicating efficiency is low.
According to the first aspect of the embodiment of the present application there is provided a kind of pattern clone method, methods described includes:
Receive the acquisition instructions for gathering source object pattern;
According to the acquisition instructions received, element and the corresponding relation of element Style Attributes value in source object are obtained;
When receiving pattern duplicate instructions, according to the corresponding relation, the element pattern of element in destination object is belonged to Property value be set to consistent with the element Style Attributes value of respective element in source object, at least there is member in the destination object The type of element is identical with the type of the element of source object.
According to the second aspect of the embodiment of the present application there is provided a kind of pattern reproducing unit, described device includes:
Command reception module, for receiving the acquisition instructions for being used for gathering source object pattern;
Data obtaining module, for according to the acquisition instructions received, obtaining element and element Style Attributes in source object The corresponding relation of value;
Pattern replication module, for when receiving pattern duplicate instructions, according to the corresponding relation, by destination object The element Style Attributes value of element is set to, the destination object consistent with the element Style Attributes value of respective element in source object In at least in the presence of an element type it is identical with the type of the element of source object.
According to the third aspect of the embodiment of the present application there is provided a kind of electronic equipment, including:
Processor;Memory for storing the processor-executable instruction;
Wherein, the processor is configured as:
Receive the acquisition instructions for gathering source object pattern;
According to the acquisition instructions received, element and the corresponding relation of element Style Attributes value in source object are obtained;
When receiving pattern duplicate instructions, according to the corresponding relation, the element pattern of element in destination object is belonged to Property value be set to consistent with the element Style Attributes value of respective element in source object, at least there is member in the destination object The type of element is identical with the type of the element of source object.
During using the embodiment of the present application pattern clone method, device and equipment, receiving for gathering source object pattern Acquisition instructions when, according to the acquisition instructions received, obtain element and the corresponding relation of element Style Attributes value in source object; When receiving pattern duplicate instructions, according to corresponding relation, by the element Style Attributes value of element in destination object be set to The element Style Attributes value of respective element is consistent in source object.By obtaining the corresponding relation of element and element Style Attributes value, The corresponding element Style Attributes value of different elements can be distinguished.Therefore, not only can be to the element Style Attributes value of individual element Being replicated, for there are multiple elements, can also be distinguished according to element and the corresponding relation of element Style Attributes value The corresponding element Style Attributes value of different elements, to realize the batch duplicating of pattern, improves pattern duplicating efficiency.
It should be appreciated that the general description of the above and detailed description hereinafter are only exemplary and explanatory, not The application can be limited.
Brief description of the drawings
Accompanying drawing herein is merged in specification and constitutes the part of this specification, shows the implementation for meeting the application Example, and be used to together with specification to explain the principle of the application.
Figure 1A is one embodiment flow chart of the application pattern clone method.
Figure 1B is a kind of application example schematic diagram of pattern clone method of the application according to an exemplary embodiment.
Fig. 1 C constitute structural representation for a kind of element of object of the application according to an exemplary embodiment.
Fig. 2 is a kind of hardware structure diagram of electronic equipment where the application pattern reproducing unit.
Fig. 3 is one embodiment block diagram of the application pattern reproducing unit.
Embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the application.On the contrary, they be only with it is such as appended The example of the consistent apparatus and method of some aspects be described in detail in claims, the application.
It is the purpose only merely for description specific embodiment in term used in this application, and is not intended to be limiting the application. " one kind ", " described " and "the" of singulative used in the application and appended claims are also intended to including majority Form, unless context clearly shows that other implications.It is also understood that term "and/or" used herein refers to and wrapped It may be combined containing one or more associated any or all of project listed.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the application A little information should not necessarily be limited by these terms.These terms are only used for same type of information being distinguished from each other out.For example, not departing from In the case of the application scope, the first information can also be referred to as the second information, similarly, and the second information can also be referred to as One information.Depending on linguistic context, word as used in this " if " can be construed to " ... when " or " when ... When " or " in response to determining ".
In correlation technique, it is only capable of copying to the pattern of a certain element in source object in the respective element of destination object.Its In, source object can include the object with single structure, can also include the object with combining structure.It is so-called by source object The pattern of middle element is copied on destination object, is the Style Attributes value according to the element of source object, by the element of destination object Style Attributes value be revised as consistent with the Style Attributes value of the element of source object, there is source pair with the element for realizing destination object The pattern of the element of elephant.
However, it is necessary to when replicating the pattern of multiple elements, it is impossible to disposably copy to the pattern of source object all elements On destination object, and need to carry out pattern duplication respectively for each element, it is seen that pattern duplicating efficiency is low.
In order to avoid the low defect of pattern duplicating efficiency, the application provides a kind of pattern clone method, as shown in Figure 1A, figure 1A is one embodiment flow chart of the application pattern clone method, comprises the following steps 101 to step 103:
In a step 101, the acquisition instructions for gathering source object pattern are received.
In a step 102, according to the acquisition instructions received, element and pair of element Style Attributes value in source object are obtained It should be related to.
In step 103, when receiving pattern duplicate instructions, according to the corresponding relation, by element in destination object Element Style Attributes value be set to it is consistent with the element Style Attributes value of respective element in source object, in the destination object extremely Type less in the presence of an element is identical with the type of the element of source object.
The application can apply in the electronic equipment with software for editing, electronic equipment can be hand-hold electronic equipments or Other electronic equipments.For example, it may be cell phone, handheld portable devices, tablet PC, notebook, desk-top Computer, the computer being integrated in computer display or other electronics.
Wherein, acquisition instructions are the instructions for gathering element and the corresponding relation of element Style Attributes value in source object. Acquisition instructions can be triggered by trigger button, for example, user can select source object, and click on default trigger button, from And trigger generation acquisition instructions.Default trigger button can be buttons such as " batch format brushes ".
Object is the object edited in software for editing, and object can be object with single structure or have The object of combining structure.Object with single structure is the object for including an element, and the object with combining structure is bag Object containing at least two elements.So that object is button as an example, the element of button, which includes text element and rectangular element, (can also claim For background).In the application, source object can include an object, can also include multiple objects.
After acquisition instructions are received, element and element pattern in source object can be obtained according to the acquisition instructions received The corresponding relation of property value.Source object includes element, and an element can include one or more element Style Attributes.For example by Text element in button can include the element Style Attributes such as font color, font, font size.Different element Style Attributes tools There is corresponding element Style Attributes value.By obtaining the corresponding relation of element and element Style Attributes value, different members can be distinguished The corresponding element Style Attributes value of element.Therefore, the element Style Attributes value of individual element can not only be replicated, for source Object is to have a case that the object of combining structure, source object include at least two objects, can be according to element and member The corresponding element Style Attributes value of the different elements of corresponding relation differentiation of plain Style Attributes value, to realize the batch duplicating of pattern. Wherein, at least two objects can be that at least two objects with single structure or at least two have combination knot The object of structure, the object with single structure and the object with combining structure can also be included simultaneously.
Pattern duplicate instructions are that the element Style Attributes value of element in destination object is set into member corresponding to source object The instruction of the element Style Attributes of element unanimously.Pattern duplicate instructions can be triggered by trigger button, for example, when destination object is During one object, user can be with selection target object, so as to trigger generation acquisition instructions.When destination object there may be it is multiple right As when, user can choose multiple destination objects, and click on default trigger button, so as to trigger generation pattern duplicate instructions.
Destination object can include the object with combining structure, can also include the object with single structure, described Object with combining structure is the object for including at least two elements, and the object with single structure is comprising a member The object of element.
, can be according to institute when type and the type of the element of source object that an element is only existed in destination object are identical The corresponding relation of acquisition, the element Style Attributes value of the element of this in destination object is set to the element with the element of this in source object Style Attributes value is consistent, so as to realize that pattern is replicated.
, can basis when the type that at least there are two elements in destination object is identical with the type of the element of source object The element Style Attributes value of element in destination object, is set to and respective element in source object by acquired corresponding relation respectively Element Style Attributes value it is consistent, realize the batch duplicating of pattern.
Wherein, there are multiple elements for destination object, it may be possible to cause because destination object includes combining structure object There are multiple elements in destination object, it is also possible to which destination object, which includes multiple objects, causes destination object to there are multiple elements etc..
When receiving pattern duplicate instructions, the element pattern of element in destination object can be belonged to according to corresponding relation Property value is set to consistent with the element Style Attributes value of respective element in source object.Due to there may be a variety of members in corresponding relation Element and the corresponding relation of element Style Attributes value, therefore be set to and source by the element Style Attributes value of element in destination object When the element Style Attributes value of respective element is consistent in object, it can be determined that the type of the element of destination object whether with source object In certain element type it is identical, if the type of element is identical, by destination object element element Style Attributes value set To be consistent with the element Style Attributes value of respective element in source object, so as to realize that the element on destination object has and source object Upper element identical pattern, that is, realize that pattern is replicated.Again due to there may be a variety of corresponding relations, then when in destination object at least When having the type of two elements identical with the type of element in source object, it can realize that the batch of pattern is answered according to corresponding relation System.
In an optional implementation, include object and the destination object with combining structure in source object In the case of the object with combining structure;It is described according to the acquisition instructions received, obtain element and member in source object The corresponding relation of plain Style Attributes value, including:
Structure is constituted according to the element that the acquisition instructions received obtain source object;
Structure is constituted according to the element of the source object, the pass corresponding with element Style Attributes value of element in source object is obtained System.
It is described when receiving pattern duplicate instructions, according to the corresponding relation, by the element sample of element in destination object Formula property value be set to it is consistent with the element Style Attributes value of respective element in source object, including:
When receiving pattern duplicate instructions, the element composition structure of destination object is obtained;
Structure and the corresponding relation are constituted according to the element of the destination object, by the element of element in destination object Style Attributes value is set to consistent with the element Style Attributes value of respective element in source object.
Because source object includes the object with combining structure, then when receiving acquisition instructions, source pair can be first obtained The element composition structure of elephant, structure is constituted according to the element of source object, and all elements and element pattern in source object are obtained successively The corresponding relation of property value, so as to obtain element and element Style Attributes in source object by the element of source object composition structure The corresponding relation of value.When receiving pattern duplicate instructions, the element composition structure of destination object is obtained, and by acquired structure Automatically pattern is copied on the corresponding element of destination object.
In one example, structure is constituted according to the element of source object and obtains corresponding relation, can be according to source object Order of elements in element composition structure, obtains all elements and the corresponding relation of element Style Attributes value in source object successively. When receiving pattern duplicate instructions, the element composition structure of destination object is obtained, and by the element composition knot of the destination object The element Style Attributes value of element in destination object, is set to the member with respective element in source object by order of elements in structure respectively Plain Style Attributes value is consistent.
As shown in Figure 1B, Figure 1B is a kind of application of pattern clone method of the application according to an exemplary embodiment Example schematic.In the schematic diagram, source object Button-1 includes two elements:Text element and rectangular element.Rectangle The element Style Attributes value of element includes rectangle frame line properties value, rectangle fillet, background color property value.The element sample of text element Formula property value includes font property values, font size attribute value, font-weight.Destination object Button-2 also includes two elements:Text Character table and rectangular element.The element Style Attributes value of rectangular element includes rectangle frame line properties value, background color property value.Text The element Style Attributes value of Character table includes font property values, font size attribute value, font not overstriking.Source object is received to be selected Order and default trigger button be triggered order when, according to the element of source object constitute structure, obtain source object in All elements and the corresponding relation of element Style Attributes value, if receiving the selected order of destination object, according to correspondence pass System and destination object element composition structure, by the element Style Attributes value of element in destination object be set to in source object The element Style Attributes value of respective element is consistent.
It can be seen that, obtain all elements and pair of element Style Attributes value in source object according to the element composition structure of source object It should be related to, and structure is constituted according to the element of destination object, the element Style Attributes value of element in destination object is set to It is consistent with the element Style Attributes value of respective element in source object, duplication judging efficiency can be improved.
In one example, the element composition structure and the element of the source object of the destination object constitute structure phase Together.
Wherein, element composition structure refers to the element structure for constituting destination object.As shown in Figure 1 C, Fig. 1 C are the application root Structural representation is constituted according to a kind of element of object shown in an exemplary embodiment.In the schematic diagram, source object Button- 1 includes two elements:Text element Button-1 and rectangular element Rectangle-2.Destination object Button-2 includes two Individual element:Text element Button-2 and rectangular element Rectangle-1.It can be seen that, the element of destination object composition structure with The element composition structure of source object is identical.
, can be according to source in the case of the element composition structure of destination object and the element composition structure identical of source object The element of object constitutes the Style Attributes value of structure replication all elements, obtains element pass corresponding with element Style Attributes value System, constitutes structure further according to the element of corresponding relation and destination object, Style Attributes value is pasted into destination object one by one On the Style Attributes value position of corresponding element, so as to realize quick batch duplicating.
In another example, the element composition structure and the element of the source object of the destination object constitute structure not Together, then when receiving pattern duplicate instructions, according to the corresponding relation, simulate and belong to the element pattern of element in destination object Property value is reset, and exports analog result, so that user judges that the current effect of destination object is according to analog result No is Expected Results, if it is, can confirm that control is confirmed by clicking on, is this time replicated if it is not, then can cancel.
It is described according to being connect in the case where source object includes at least two objects in an optional implementation The acquisition instructions of receipts, obtain element and the corresponding relation of element Style Attributes value in source object, including:According to the collection received The source object chosen in instruction, obtains element and the corresponding relation of element Style Attributes value in each source object.
Wherein, the object included by source object can be object with single structure or with combining structure Object, and due to source object include multiple objects, then can according to the source object chosen in the acquisition instructions received, obtain Element and the corresponding relation of element Style Attributes value in each source object, so as to when receiving pattern duplicate instructions, according to right It should be related to, the element Style Attributes value of element in destination object is set to the element Style Attributes with respective element in source object Value is consistent.
If, can be according to corresponding relation by source object for example, the element of source object is identical with the element of destination object The element Style Attributes of element are copied on the element of destination object one by one.If the element of source object and the element of destination object Differ, in one example, the element identical element in destination object with source object can be subjected to pattern duplication.Another In one example, the element that can export prompt message prompting user's source object is different from the element of destination object, exports simultaneously Corresponding relation, so that user carries out pattern duplication according to corresponding relation.
It can be seen that, the present embodiment can copy to the pattern of multiple objects on destination object, realize batch duplicating.
Embodiment with the application pattern clone method is corresponding, is set present invention also provides pattern reproducing unit and electronics Standby embodiment.
The embodiment of the application pattern reproducing unit, which can be applied, to be provided with the various electronic equipments of software for editing, example Such as, the electronic equipment can include mobile phone, tablet personal computer, PC etc..Wherein, device embodiment can be realized by software, also may be used To be realized by way of hardware or software and hardware combining.Exemplified by implemented in software, as the device on a logical meaning, it is Corresponding computer program instructions in nonvolatile memory are read in internal memory by the processor of electronic equipment where it What operation was formed.For hardware view, as shown in Fig. 2 being one kind of the place electronic equipment of the application pattern reproducing unit 231 Hardware structure diagram, except the processor 210 shown in Fig. 2, internal memory 230, network interface 240 and nonvolatile memory 220 it Outside, the electronic equipment in embodiment where device can also include other hardware, Fig. 2 generally according to the actual functional capability of the equipment In no longer show one by one.
It is one embodiment block diagram of the application pattern reproducing unit referring to Fig. 3:
The device includes:Command reception module 310, data obtaining module 320 and pattern replication module 330.
Wherein, command reception module 310, for receiving the acquisition instructions for being used for gathering source object pattern.
Data obtaining module 320, belongs to for according to the acquisition instructions received, obtaining element in source object with element pattern The corresponding relation of property value.
Pattern replication module 330, for when receiving pattern duplicate instructions, according to the corresponding relation, by target pair As the element Style Attributes value of middle element is set to, the target consistent with the element Style Attributes value of respective element in source object Type in object at least in the presence of an element is identical with the type of the element of source object.
In an optional implementation, the source object includes the object with combining structure and/or with single The object of structure, the destination object includes the object with combining structure and/or the object with single structure, described to have The object of combining structure is the object for including at least two elements, and the object with single structure includes an element Object.
In an optional implementation, include object and the destination object with combining structure in source object In the case of the object with combining structure, described information acquisition module 320 includes (Fig. 3 is not shown):
First structure acquisition submodule, the element for obtaining source object according to the acquisition instructions received constitutes structure.
Corresponding relation acquisition submodule, for constituting structure according to the element of the source object, obtains element in source object With the corresponding relation of element Style Attributes value.
The pattern replication module 330 includes (Fig. 3 is not shown):
Second structure acquisition submodule, the element composition for when receiving pattern duplicate instructions, obtaining destination object Structure.
Pattern replicates submodule, for constituting structure and the corresponding relation according to the element of the destination object, will The element Style Attributes value of element is set to consistent with the element Style Attributes value of respective element in source object in destination object.
In an optional implementation, in the case where source object includes at least two objects, described information is obtained Module 320 is used for:According to the source object chosen in the acquisition instructions received, element and element pattern in each source object are obtained The corresponding relation of property value.
In an optional implementation, the element composition structure and the element group of the source object of the destination object It is identical into structure.
Based on this, the application also provides a kind of electronic equipment, including:
Processor;Memory for storing the processor-executable instruction;
Wherein, the processor is configured as:
Receive the acquisition instructions for gathering source object pattern.
According to the acquisition instructions received, element and the corresponding relation of element Style Attributes value in source object are obtained.
When receiving pattern duplicate instructions, according to the corresponding relation, the element pattern of element in destination object is belonged to Property value be set to consistent with the element Style Attributes value of respective element in source object, at least there is member in the destination object The type of element is identical with the type of the element of source object.
The function of modules and the implementation process of effect specifically refer to correspondence step in the above method in said apparatus Implementation process, will not be repeated here.
For device embodiment, because it corresponds essentially to embodiment of the method, so related part is real referring to method Apply the part explanation of example.Device embodiment described above is only schematical, wherein described be used as separating component The module of explanation can be or may not be physically separate, and the part shown as module can be or can also It is not physical module, you can with positioned at a place, or can also be distributed on multiple mixed-media network modules mixed-medias.Can be according to reality Selection some or all of module therein is needed to realize the purpose of application scheme.Those of ordinary skill in the art are not paying In the case of going out creative work, you can to understand and implement.
Those skilled in the art will readily occur to its of the application after the invention that specification and practice are applied here is considered Its embodiment.The application is intended to any modification, purposes or the adaptations of the application, these modifications, purposes or Person's adaptations follow the general principle of the application and the common knowledge in the art do not applied including the application Or conventional techniques.Description and embodiments are considered only as exemplary, and the true scope of the application and spirit are by following Claim is pointed out.
It should be appreciated that the precision architecture that the application is not limited to be described above and is shown in the drawings, and And various modifications and changes can be being carried out without departing from the scope.Scope of the present application is only limited by appended claim.

Claims (10)

1. a kind of pattern clone method, it is characterised in that methods described includes:
Receive the acquisition instructions for gathering source object pattern;
According to the acquisition instructions received, element and the corresponding relation of element Style Attributes value in source object are obtained;
When receiving pattern duplicate instructions, according to the corresponding relation, by the element Style Attributes value of element in destination object It is set to consistent with the element Style Attributes value of respective element in source object, at least there is element in the destination object Type is identical with the type of the element of source object.
2. according to the method described in claim 1, it is characterised in that the source object include object with combining structure and/ Or the object with single structure, the destination object includes the object with combining structure and/or pair with single structure As the object with combining structure is the object for including at least two elements, and the object with single structure is bag Object containing an element.
3. method according to claim 2, it is characterised in that include the object with combining structure and institute in source object In the case of destination object is stated including the object with combining structure;
It is described to obtain element and the corresponding relation of element Style Attributes value in source object according to the acquisition instructions received, including:
Structure is constituted according to the element that the acquisition instructions received obtain source object;
Structure is constituted according to the element of the source object, element and the corresponding relation of element Style Attributes value in source object is obtained;
It is described when receiving pattern duplicate instructions, according to the corresponding relation, the element pattern of element in destination object is belonged to Property value be set to it is consistent with the element Style Attributes value of respective element in source object, including:
When receiving pattern duplicate instructions, the element composition structure of destination object is obtained;
Structure and the corresponding relation are constituted according to the element of the destination object, by the element pattern of element in destination object Property value is set to consistent with the element Style Attributes value of respective element in source object.
4. method according to claim 2, it is characterised in that in the case where source object includes at least two objects, institute State according to the acquisition instructions received, obtain element and the corresponding relation of element Style Attributes value in source object, including:
According to the source object chosen in the acquisition instructions received, element and element Style Attributes value in each source object are obtained Corresponding relation.
5. the method according to any one of Claims 1-4, it is characterised in that the element composition structure of the destination object It is identical with the element composition structure of the source object.
6. a kind of pattern reproducing unit, it is characterised in that described device includes:
Command reception module, for receiving the acquisition instructions for being used for gathering source object pattern;
Data obtaining module, for according to the acquisition instructions received, obtaining element and element Style Attributes value in source object Corresponding relation;
Pattern replication module, for when receiving pattern duplicate instructions, according to the corresponding relation, by element in destination object Element Style Attributes value be set to it is consistent with the element Style Attributes value of respective element in source object, in the destination object extremely Type less in the presence of an element is identical with the type of the element of source object.
7. device according to claim 6, it is characterised in that the source object include object with combining structure and/ Or the object with single structure, the destination object includes the object with combining structure and/or pair with single structure As the object with combining structure is the object for including at least two elements, and the object with single structure is bag Object containing an element.
8. device according to claim 7, it is characterised in that include the object with combining structure and institute in source object In the case of destination object is stated including the object with combining structure;
Described information acquisition module includes:
First structure acquisition submodule, the element for obtaining source object according to the acquisition instructions received constitutes structure;
Corresponding relation acquisition submodule, for constituting structure according to the element of the source object, obtains element and member in source object The corresponding relation of plain Style Attributes value;
The pattern replication module includes:
Second structure acquisition submodule, the element composition structure for when receiving pattern duplicate instructions, obtaining destination object;
Pattern replicates submodule, for constituting structure and the corresponding relation according to the element of the destination object, by target The element Style Attributes value of element is set to consistent with the element Style Attributes value of respective element in source object in object.
9. device according to claim 7, it is characterised in that in the case where source object includes at least two objects, institute Data obtaining module is stated, is used for:According to the source object chosen in the acquisition instructions received, obtain in each source object element with The corresponding relation of element Style Attributes value.
10. a kind of electronic equipment, it is characterised in that including:
Processor;Memory for storing the processor-executable instruction;
Wherein, the processor is configured as:
Receive the acquisition instructions for gathering source object pattern;
According to the acquisition instructions received, element and the corresponding relation of element Style Attributes value in source object are obtained;
When receiving pattern duplicate instructions, according to the corresponding relation, by the element Style Attributes value of element in destination object It is set to consistent with the element Style Attributes value of respective element in source object, at least there is element in the destination object Type is identical with the type of the element of source object.
CN201610811715.4A 2016-09-08 2016-09-08 Pattern clone method, device and equipment Pending CN107102971A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610811715.4A CN107102971A (en) 2016-09-08 2016-09-08 Pattern clone method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610811715.4A CN107102971A (en) 2016-09-08 2016-09-08 Pattern clone method, device and equipment

Publications (1)

Publication Number Publication Date
CN107102971A true CN107102971A (en) 2017-08-29

Family

ID=59658492

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610811715.4A Pending CN107102971A (en) 2016-09-08 2016-09-08 Pattern clone method, device and equipment

Country Status (1)

Country Link
CN (1) CN107102971A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111913814A (en) * 2020-07-09 2020-11-10 海南车智易通信息技术有限公司 Object copying method and computing equipment
CN115270737A (en) * 2022-09-22 2022-11-01 广州市保伦电子有限公司 Format modification method and device for target object
CN111913814B (en) * 2020-07-09 2024-05-31 海南车智易通信息技术有限公司 Object copying method and computing device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101258489A (en) * 2005-09-09 2008-09-03 微软公司 Quick styles for formatting of documents
CN101533415A (en) * 2009-04-17 2009-09-16 阿里巴巴集团控股有限公司 Method and system for realizing data reproduction among objects
CN103377174A (en) * 2012-04-28 2013-10-30 国际商业机器公司 Method and device for copying text formats
CN103440293A (en) * 2013-08-19 2013-12-11 曙光云计算技术有限公司 Data object copying method and copying device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101258489A (en) * 2005-09-09 2008-09-03 微软公司 Quick styles for formatting of documents
CN101533415A (en) * 2009-04-17 2009-09-16 阿里巴巴集团控股有限公司 Method and system for realizing data reproduction among objects
CN103377174A (en) * 2012-04-28 2013-10-30 国际商业机器公司 Method and device for copying text formats
CN103440293A (en) * 2013-08-19 2013-12-11 曙光云计算技术有限公司 Data object copying method and copying device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111913814A (en) * 2020-07-09 2020-11-10 海南车智易通信息技术有限公司 Object copying method and computing equipment
CN111913814B (en) * 2020-07-09 2024-05-31 海南车智易通信息技术有限公司 Object copying method and computing device
CN115270737A (en) * 2022-09-22 2022-11-01 广州市保伦电子有限公司 Format modification method and device for target object

Similar Documents

Publication Publication Date Title
US7761510B2 (en) Conference system for enabling concurrent displaying of data from conference presenter and conference participants
CN103235685B (en) A kind of method and apparatus that terminal operating system desktop contents is set
US20040201602A1 (en) Tablet computer system for industrial process design, supervisory control, and data management
CN108572823B (en) Front-end and back-end development management method and system based on interface engine
CN106662978A (en) User interfaces for improving single-handed operation of devices
US10810698B2 (en) Information processing method and client
AU2021358762A1 (en) Online collaboration platform
CN101127736A (en) An instant communication system and method for processing sub-panel
CN108628944A (en) Online assignment input method, client, server, computer equipment and medium
CN105653255B (en) A method of report template is set in OFFICE frames to automatically generate report file
CN109634570A (en) Front and back end integrated development method, device, equipment and computer readable storage medium
CN103207918B (en) Animation effect management method, system and the device of a kind of PowerPoint
CN108140174A (en) Dialogue and Version Control for object in communication
JP4922769B2 (en) Information processing apparatus, information processing method, and information processing program
US20080154573A1 (en) Simulating new input devices using old input devices
CN110286991A (en) A kind of information processing method and device
CN110286971A (en) Processing method and system, medium and calculating equipment
CN107102971A (en) Pattern clone method, device and equipment
CN109521914A (en) Restore the methods, devices and systems of data in file
JP6668868B2 (en) Information processing apparatus and information processing program
CN110020279A (en) Page data processing method, device and storage medium
CN106406666A (en) A processing method and device for application program icons
JPH11306121A (en) Computer and its system
CN115543176A (en) Information processing method and device and electronic equipment
CN108021317A (en) Method and device for screen editing

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170829