CN115480853A - Document operation method, device and storage medium - Google Patents

Document operation method, device and storage medium Download PDF

Info

Publication number
CN115480853A
CN115480853A CN202210808129.XA CN202210808129A CN115480853A CN 115480853 A CN115480853 A CN 115480853A CN 202210808129 A CN202210808129 A CN 202210808129A CN 115480853 A CN115480853 A CN 115480853A
Authority
CN
China
Prior art keywords
type
target
object type
document
determining
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
CN202210808129.XA
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.)
Beijing Kingsoft Office Software Inc
Zhuhai Kingsoft Office Software Co Ltd
Wuhan Kingsoft Office Software Co Ltd
Original Assignee
Beijing Kingsoft Office Software Inc
Zhuhai Kingsoft Office Software Co Ltd
Wuhan Kingsoft Office Software Co 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 Beijing Kingsoft Office Software Inc, Zhuhai Kingsoft Office Software Co Ltd, Wuhan Kingsoft Office Software Co Ltd filed Critical Beijing Kingsoft Office Software Inc
Priority to CN202210808129.XA priority Critical patent/CN115480853A/en
Publication of CN115480853A publication Critical patent/CN115480853A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0483Interaction with page-structured environments, e.g. book metaphor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The embodiment of the disclosure relates to a document operation method, a device and a storage medium, wherein the method comprises the following steps: acquiring a target document; determining an operation object set of a target object type from the target document; and executing a first operation on the operation objects in the operation object set. Therefore, batch operation of the same type of operation objects in the document can be realized, and the efficiency of document operation is improved.

Description

Document operation method, device and storage medium
Technical Field
The embodiment of the disclosure relates to the technical field of computers, in particular to a document operation method, a document operation device and a storage medium.
Background
A document typically includes one or more operands. For example, the operation object may include, but is not limited to, at least one of the following: text, pictures, tables, and the like.
In the prior art, when a plurality of operation objects in a document are to be operated, the operation on each operation object is generally required to be performed one by one.
However, the above-mentioned manner of operating the operation object in the document has low operation efficiency.
Disclosure of Invention
In view of this, in order to solve some or all of the above technical problems, embodiments of the present disclosure provide a document operation method, a document operation device, and a storage medium.
In a first aspect, an embodiment of the present disclosure provides a document operation method, where the method includes:
acquiring a target document;
determining an operation object set of a target object type from the target document;
and executing a first operation on the operation objects in the operation object set.
Optionally, in a method according to any embodiment of the present disclosure, the target object type is determined as follows:
detecting a second operation executed aiming at a first operation object in the target document;
detecting a third operation executed aiming at a second operation object in the target document;
and determining a target object type based on the first object type of the first operation object and the second object type of the second operation object.
Optionally, in the method according to any embodiment of the present disclosure, the determining a target object type based on the first object type of the first operation object and the second object type of the second operation object includes:
and under the condition that the first object type of the first operation object is the same as the second object type of the second operation object, determining the first object type or the second object type as a target object type.
Optionally, in the method according to any embodiment of the present disclosure, in a case that a first object type of the first operation object is the same as a second object type of the second operation object, determining the first object type or the second object type as a target object type includes:
and determining the first object type or the second object type as a target object type when the first object type of the first operation object is the same as the second object type of the second operation object and the first operation type of the second operation is the same as the second operation type of the third operation.
Optionally, in the method of any embodiment of the present disclosure, the operation type of the first operation is the first operation type or the second operation type.
Optionally, in the method according to any embodiment of the present disclosure, the determining a target object type based on the first object type of the first operation object and the second object type of the second operation object includes:
displaying an object type list in the case that a first object type of the first operation object and a second object type of the second operation object are different; wherein the list of object types comprises: the first object type and the second object type;
and under the condition that a first selection operation aiming at the object types in the object type list is detected, determining the object type selected by the first selection operation as a target object type.
Optionally, in the method of any embodiment of the present disclosure, the first operation is determined by:
displaying an operation identification list when a first object type of the first operation object is the same as a second object type of the second operation object and a first operation type of the second operation is different from a second operation type of the third operation; wherein the operation identification list comprises: the operation identifier of the first operation type and the operation identifier of the second operation type;
and under the condition that a second selection operation executed aiming at the operation identifier in the operation identifier list is detected, determining the operation indicated by the operation identifier selected by the second selection operation as the first operation.
Optionally, in the method according to any embodiment of the present disclosure, no operation is performed on the other operation objects except the first operation object and the second operation object in the target document within a target time period; wherein the target time period is: a time period between a time of execution of the second operation and a time of execution of the third operation.
Optionally, in the method of any embodiment of the present disclosure, the target object type is determined by:
detecting a fourth operation aiming at the target document;
determining a target operation object of the fourth operation when the fourth operation is detected;
and determining the object type of the target operation object as the target object type.
Optionally, in the method of any embodiment of the present disclosure, the operation type of the first operation is the same as the operation type of the fourth operation.
Optionally, in a method according to any embodiment of the present disclosure, the determining, from the target document, an operation object set of a target object type includes:
determining the container type of the target operation object from a target program used for presenting the target document;
searching a target container set of the container type from the target program;
and determining the set of the operation objects in the target container set as an operation object set of a target object type.
Optionally, in the method according to any embodiment of the present disclosure, the performing a first operation on an operation object in the operation object set includes:
and executing a first operation on the operation objects in the operation object set based on the target container.
Optionally, in the method according to any embodiment of the present disclosure, the performing a first operation on an operation object in the operation object set includes one of:
executing a first operation on each operation object in the operation object set; or
And executing a first operation on each operation object in the selected state in the operation object set.
In a second aspect, an embodiment of the present disclosure provides a document operating apparatus, where the apparatus includes:
an acquisition unit configured to acquire a target document;
the determining unit is used for determining an operation object set of a target object type from the target document;
and the execution unit is used for executing a first operation on the operation objects in the operation object set.
Optionally, in the apparatus according to any embodiment of the present disclosure, the target object type is determined by:
detecting a second operation executed aiming at a first operation object in the target document;
detecting a third operation executed for a second operation object in the target document;
and determining a target object type based on the first object type of the first operation object and the second object type of the second operation object.
Optionally, in the apparatus according to any embodiment of the present disclosure, the determining a target object type based on the first object type of the first operation object and the second object type of the second operation object includes:
and under the condition that the first object type of the first operation object is the same as the second object type of the second operation object, determining the first object type or the second object type as a target object type.
Optionally, in the apparatus according to any embodiment of the present disclosure, in a case that a first object type of the first operation object is the same as a second object type of the second operation object, determining the first object type or the second object type as a target object type includes:
and determining the first object type or the second object type as a target object type when the first object type of the first operation object is the same as the second object type of the second operation object and the first operation type of the second operation is the same as the second operation type of the third operation.
Optionally, in the apparatus according to any embodiment of the present disclosure, the operation type of the first operation is the first operation type or the second operation type.
Optionally, in the apparatus according to any embodiment of the present disclosure, the determining a target object type based on the first object type of the first operation object and the second object type of the second operation object includes:
displaying an object type list in the case that a first object type of the first operation object and a second object type of the second operation object are different; wherein the object type list comprises: the first object type and the second object type;
and under the condition that a first selection operation aiming at the object types in the object type list is detected, determining the object type selected by the first selection operation as a target object type.
Optionally, in the apparatus of any embodiment of the present disclosure, the first operation is determined by:
displaying an operation identification list when a first object type of the first operation object is the same as a second object type of the second operation object and a first operation type of the second operation is different from a second operation type of the third operation; wherein the operation identification list comprises: the operation identifier of the first operation type and the operation identifier of the second operation type;
and under the condition that a second selection operation executed aiming at the operation identifier in the operation identifier list is detected, determining the operation indicated by the operation identifier selected by the second selection operation as the first operation.
Optionally, in the apparatus according to any embodiment of the present disclosure, no operation is performed on the other operation objects except the first operation object and the second operation object in the target document within a target time period; wherein the target time period is: a time period between a time of execution of the second operation and a time of execution of the third operation.
Optionally, in the apparatus according to any embodiment of the present disclosure, the target object type is determined by:
detecting a fourth operation aiming at the target document;
determining a target operation object of the fourth operation when the fourth operation is detected;
and determining the object type of the target operation object as the target object type.
Optionally, in the apparatus of any embodiment of the present disclosure, the operation type of the first operation is the same as the operation type of the fourth operation.
Optionally, in an apparatus according to any embodiment of the present disclosure, the determining, from the target document, an operation object set of a target object type includes:
determining the container type of the target operation object from a target program used for presenting the target document;
searching a target container set of the container type from the target program;
and determining the set of the operation objects in the target container set as an operation object set of a target object type.
Optionally, in the apparatus according to any embodiment of the present disclosure, the performing, on an operation object in the operation object set, a first operation includes:
and executing a first operation on the operation objects in the operation object set based on the target container.
Optionally, in the apparatus according to any embodiment of the present disclosure, the performing, on an operation object in the operation object set, a first operation includes one of:
executing a first operation on each operation object in the operation object set; or
And executing a first operation on each operation object in the selected state in the operation object set.
In a third aspect, an embodiment of the present disclosure provides an electronic device, including:
a memory for storing a computer program;
and a processor for executing the computer program stored in the memory, and when the computer program is executed, implementing the method of any embodiment of the document operation method of the first aspect of the disclosure.
In a fourth aspect, the disclosed embodiments provide a computer-readable storage medium, and when being executed by a processor, the computer program implements the method of any embodiment of the document operation method of the first aspect.
In a fifth aspect, embodiments of the present disclosure provide a computer program, which comprises computer readable code, when run on a device, causes a processor in the device to execute instructions for implementing the steps in the method of any one of the embodiments of the document manipulation method of the first aspect described above.
According to the document operation method provided by the embodiment of the disclosure, a target document is obtained, then, an operation object set of a target object type is determined from the target document, and then, a first operation is executed on an operation object in the operation object set. According to the method, the first operation can be executed on the operation objects in the operation object set of the target object type in the target document. Therefore, batch operation of the same type of operation objects in the document can be realized, and the efficiency of document operation is improved.
Drawings
FIG. 1 is a schematic flow chart diagram illustrating a document operation method according to an embodiment of the present disclosure;
FIG. 2 is a flowchart illustrating a method for determining a target object type in a document operation method according to an embodiment of the present disclosure;
FIG. 3 is a schematic flow chart diagram illustrating another method for operating a document according to an embodiment of the present disclosure;
4A-4C are schematic diagrams of an application scenario for FIG. 3;
FIG. 5 is a flowchart illustrating another manner of determining a target object type in a document operation method according to an embodiment of the present disclosure;
FIG. 6 is a flowchart illustrating another method for operating a document according to an embodiment of the present disclosure;
7A-7B are schematic diagrams of the application scenario for FIG. 6;
FIG. 8 is a schematic structural diagram of a document manipulation device according to an embodiment of the present disclosure;
fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that: the relative arrangement of parts and steps, numerical expressions, and values set forth in these embodiments do not limit the scope of the present disclosure unless specifically stated otherwise.
It will be understood by those within the art that the terms "first," "second," and the like in the embodiments of the present disclosure are used merely to distinguish one object, step, device, or module from another object, and do not denote any particular technical meaning or logical order therebetween.
It is also understood that in the present embodiment, "a plurality" may mean two or more, and "at least one" may mean one, two or more.
It is also to be understood that any reference to any component, data, or structure in the embodiments of the disclosure, may be generally understood as one or more, unless explicitly defined otherwise or stated otherwise.
In addition, the term "and/or" in the present disclosure is only one kind of association relationship describing an associated object, and means that three kinds of relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" in the present disclosure generally indicates that the former and latter associated objects are in an "or" relationship.
It should also be understood that the description of the various embodiments of the present disclosure emphasizes the differences between the various embodiments, and the same or similar parts may be referred to each other, so that the descriptions thereof are omitted for brevity.
The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the disclosure, its application, or uses.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail, but are intended to be part of the specification where appropriate.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be discussed further in subsequent figures.
It should be noted that, in the present disclosure, the embodiments and features of the embodiments may be combined with each other without conflict. For the purpose of facilitating an understanding of the embodiments of the present disclosure, the present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with the embodiments. It is to be understood that the embodiments described are only a few embodiments of the present disclosure, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
Fig. 1 is a schematic flowchart of a document operation method provided in an embodiment of the present disclosure, and as shown in fig. 1, the method specifically includes:
101. and acquiring a target document.
In the present embodiment, an execution subject of the document operation method (e.g., a server, a terminal device, a document operation apparatus, an application program, etc.) may acquire a target document.
The target document may be any document. By way of example, the format of the target document may include, but is not limited to, one of: doc format, ppt format, xml format, html format, xls format.
The target document may be an online or offline document.
In this embodiment, the target document is a carrier of at least one document object, and may be used to typeset, edit, publish, and the like the document object.
As an example, the target document may be a document in a product (e.g., an application) of various identifiable object types. Target documents include, but are not limited to: documents in office software, documents in note products, documents in notes, documents in whiteboard products, and so forth.
One or more operation objects (i.e., document objects) may be included in the target document. As an example, the above-mentioned operation objects (including the first operation object, the second operation object, the target operation object, and the like described later) may include, but are not limited to, at least one of: text, pictures, tables, cloud documents, highlight tiles, content protection zones, dates, code tiles, references, emoticons, hyperlinks, cut lines, formulas, thought guide graphs, flow charts, countdown, task boards, to-do lists, scheduling plans, group business cards, third party services (e.g., videos, maps, etc.).
The object types (including the target object type, the first object type, and the second object type described below) may be types of objects in a document. By way of example, the object types described above may include, but are not limited to, at least one of: text type, picture type, table type, cloud document type, highlight block type, content protection area type, date type, code block type, reference type, emoticon type, hyperlink type, parting line type, formula type, thinking guide graph type, flow chart type, countdown type, task board type, to-do list type, schedule plan type, group business card type, third-party service (such as video, map and the like) type.
In some cases, the object type of the operation object may be determined by a tag in the target program used to present the target document. Here, tags of the same object type may be the same or different. For example, for tags < font > and < span >, the object types for both may be text types.
102. And determining an operation object set of a target object type from the target document.
In this embodiment, the execution subject may determine the operation object set of the target object type from the target document obtained in step 101.
As an example, the target object type, may be a predetermined object type.
In addition, the target object type may also be determined in some manner. As for these ways of determining the type of the target object, reference may be made to the following description, which is not repeated herein.
The operation object set may be a set of all or part of operation objects of the target object type in the target document.
In some cases, a set of operands of a target object type may be determined from a document region in the target document. The document area may be an area where the text of the document is located, and the area is also an area of the target document except the toolbar.
103. And executing a first operation on the operation objects in the operation object set.
In this embodiment, the executing entity may execute the first operation on the operation objects in the operation object set determined in step 102.
The first operation may be any operation. The first operation may be a single operation or may be an operation set including a plurality of operations. As an example, the first operation may comprise the following set of operations: left aligned, bolded, underlined.
In some cases, the first operation may be in terms of an object type of the operation object. As an example, when the object type of the operation object is a picture, the first operation may include, but is not limited to: copying, pasting, deleting, cutting, dragging and moving positions, setting whether a frame is displayed or not, setting an alignment mode, rotating and the like; when the object type of the operation object is a table, the first operation may include, but is not limited to: copy, paste, delete, cut, drag move position, set alignment, etc.
Here, the first operation may be an operation selected by the user. For example, the first operation may be an operation selected by the user and directed to an operation object in the operation object set, in other words, the first operation may be an optional operation corresponding to the target object type. As an example, for the target object type "literal type", the first operation may include: adjusting the font size, adjusting the font color, adjusting the alignment mode, and the like. For the target object type "picture type", the first operation may include: adding a frame, canceling the frame, adjusting an alignment mode and the like. It should be noted that, when there are a plurality of target object types, the first operation is an operation in an intersection of optional operations corresponding to all target object types.
In some optional implementations of this embodiment, the executing main body may execute the step 103 in the following manner:
and executing a first operation on each operation object in the operation object set.
According to the document operation method provided by the embodiment of the disclosure, a target document is obtained, then, an operation object set of a target object type is determined from the target document, and then, a first operation is executed on an operation object in the operation object set. According to the method, the first operation can be executed on the operation objects in the operation object set of the target object type in the target document. Therefore, batch operation of the same type of operation objects in the document can be realized, and the efficiency of document operation is improved.
Fig. 2 is a schematic flowchart illustrating a method for determining a type of a target object in a document operation method according to an embodiment of the present disclosure. Here, the target object type may be determined by the execution subject described above (the execution subject in the embodiment corresponding to fig. 1) or other electronic device. Concepts, steps and the like which are described by using the same terms as those of the embodiment in fig. 1 may be explained or executed by referring to the related description of the above embodiment, and are not described again here.
As shown in fig. 2, the determining method specifically includes:
201. and detecting a second operation executed aiming at the first operation object in the target document.
In this embodiment, a second operation performed on the first operation object in the target document acquired in step 101 may be detected.
The first operation object can be any operation object in the target document. As an example, the first operation object may include, but is not limited to, at least one of: text, pictures, tables, cloud documents, highlight tiles, content protection zones, dates, code tiles, references, emoticons, hyperlinks, cut lines, formulas, mind maps, flow charts, countdown, task boards, to-do lists, calendar plans, group cards, third party services (e.g., video, maps, etc.).
The second operation may be any operation.
In some cases, the second operation may be in terms of an object type of the operation object. As an example, when the object type of the operation object is a picture, the second operation may include, but is not limited to: copying, pasting, deleting, cutting, dragging and moving positions, setting whether a frame is displayed or not, setting an alignment mode, rotating and the like; when the object type of the operation object is a table, the second operation may include, but is not limited to: copy, paste, delete, cut, drag move position, set alignment, etc.
The second operation may be the same as or different from the first operation.
In the case where the first operation and the second operation are the same, the operation targets of the first operation and the second operation may be different from each other. For example, the first operation may be a "delete operation for a letter a", and the second operation may be a "delete operation for a letter b". In this scenario, although the operation object "character a" of the first operation and the operation object "character b" of the second operation are different, both the first operation and the second operation belong to the deletion operation, and therefore the first operation and the second operation can be considered to be the same.
Further, the second operation may also be different from the first operation. For example, the second operation may be a "delete operation" performed on the word a, and the first operation may be an operation selected by the user from a set of selectable operations for the word. For example, the optional operation set for the word may include an increase word size operation. Thus, in the case where the user selects the increase font size operation from the above-described operation set, the first operation may be an "increase font size operation".
202. And detecting a third operation executed aiming at the second operation object in the target document.
In this embodiment, a third operation performed on the second operation object in the target document acquired in step 101 may be detected.
The second operation object can be any operation object in the target document. As an example, the second operation object may include, but is not limited to, at least one of: text, pictures, tables, cloud documents, highlight tiles, content protection zones, dates, code tiles, references, emoticons, hyperlinks, cut lines, formulas, thought guide graphs, flow charts, countdown, task boards, to-do lists, scheduling plans, group business cards, third party services (e.g., videos, maps, etc.).
The third operation may be any operation.
In some cases, the third operation may be for an object type of the operation object. As an example, when the object type of the operation object is a picture, the third operation may include, but is not limited to: copying, pasting, deleting, cutting, dragging and moving positions, setting whether a frame is displayed or not, setting an alignment mode, rotating and the like; when the object type of the operation object is a table, the third operation may include, but is not limited to: copy, paste, delete, cut, drag move position, set alignment, etc.
The third operation may be the same as or different from the first operation.
In the case where the first operation and the third operation are the same, the operation targets of the first operation and the third operation may be different from each other. For example, the first operation may be a "delete operation for a letter a", and the third operation may be a "delete operation for a letter b". In this scenario, although the operation object "character a" of the first operation and the operation object "character b" of the third operation are different, since both the first operation and the third operation belong to the delete operation, the first operation and the third operation can be considered to be the same.
Further, the third operation may also be different from the first operation. For example, the third operation may be a "delete operation" performed on the word a, and the first operation may be an operation selected by the user from a set of selectable operations for the word. For example, the optional operation set for the word may include an increase word size operation. Thus, in the case where the user selects the operation of increasing the font size from the above-described operation set, the first operation may be an "operation of increasing the font size".
The third operation may be the same as or different from the second operation.
In the case where the second operation and the third operation are the same, the operation objects may be different from each other. For example, the third operation may be a "delete operation for a letter a", and the second operation may be a "delete operation for a letter b". In this scenario, although the operation object "character a" of the third operation and the operation object "character b" of the second operation are different, since both the third operation and the second operation belong to the delete operation, the third operation and the second operation can be considered to be the same.
Further, the second operation may also be different from the third operation. For example, the second operation may be a "delete operation" performed on the word a, and the third operation may be an operation selected by the user from a set of selectable operations for the word. For example, the optional operation set for the word may include an increase word size operation. Thus, in the case where the user selects the increase font size operation from the above-described operation set, the third operation may be an "increase font size operation".
In some optional implementations of this embodiment, the operation type of the first operation is the first operation type or the second operation type.
The above operation types may include at least one of: a copy type, a paste type, a delete type, a cut type, a drag and drop position type, a setting whether to display a frame type, a setting of an alignment type, a rotation type, and the like.
Here, the operation types of the operation objects of the two different object types, on which the operation is performed, may be the same. For example, a picture is subjected to a bolding operation, and a table is subjected to a bolding operation, and the two operations may be performed on different objects, but the operation types of the two operations may be the same. In addition, the operation types of the same operation are the same.
It can be understood that, in the above optional implementation manner, the same type of first operation may be performed on the operation objects in the operation object set according to the historical operation (for example, the second operation and the third operation), so that the operation intention of the user on the document may be predicted, and the efficiency of operating the target document is further improved.
Alternatively, whether the operation types of the two operations are the same may be determined according to various ways.
As a first example, if the operation objects of the two operations are the same, it may be determined that the operation types of the two operations are the same; if the operation objects of the two operations are different, the operation types of the two operations can be determined to be different.
As a second example, if the object types of the operation objects of the two operations are the same, it may be determined that the operation types of the two operations are the same; if the object types of the operation objects of the two operations are different, the operation types of the two operations can be determined to be different.
As a third example, whether the operation types of the two operations are the same may be determined according to a preset rule. For example, if the join operation is performed on the first schedule and the reject operation is performed on the second schedule, it may be determined that the operation types of the two operations are the same because the operation objects of the two operations are the same object type of the schedule; it may be determined that the operation types of the two operations are different because the join operation is different from the reject operation. For another example, if the operation "adjust the color of the text to black" is performed on the text 1 and the operation "adjust the color of the text to red" is performed on the text 2, it may be determined that the operation types of the two operations are the same because the operation objects of the two operations are both texts; or determining that the operation types of the two operations are the same because the two operations are used for adjusting the font color; the operation types of the two operations are determined to be different because the font colors adjusted by the two operations are different.
203. And determining a target object type based on the first object type of the first operation object and the second object type of the second operation object.
In this embodiment, the target object type may be determined based on a first object type of the first operation object and a second object type of the second operation object.
As an example, at least one of the first object type and the second object type may be used as the target object type.
In some optional implementations of this embodiment, the step 203 may be performed as follows:
and under the condition that the first object type of the first operation object is the same as the second object type of the second operation object, determining the first object type or the second object type as a target object type.
It can be understood that, in the above alternative implementation manner, in the case that at least two operations are performed on an operation object of the same object type, it generally means that a user may need to operate other operation objects of the object type, and thus, the operation object of the object type may be automatically determined for the user to operate, so that the efficiency of document processing is further improved.
In some optional implementations of this embodiment, the step 203 may also be performed in the following manner:
and under the condition that the first object type of the first operation object is the same as the second object type of the second operation object, and the first operation type of the second operation is the same as the second operation type of the third operation, determining the first object type or the second object type as a target object type.
It can be understood that, in the above alternative implementation manner, in the case that the same operation is performed at least twice with respect to the operation object of the same object type, it generally means that the user may need to operate other operation objects of the object type, and thus, the operation object of the object type may be automatically determined for the user to operate, so as to further improve the efficiency of document processing.
In some optional implementations of this embodiment, the step 203 may also be performed in the following manner:
first, in a case where a first object type of the first operation object and a second object type of the second operation object are different, an object type list is displayed. Wherein the object type list comprises: the first object type and the second object type.
In some cases, the list of object types may also include other object types in the target document.
And then, under the condition that a first selection operation aiming at the object types in the object type list is detected, determining the object type selected by the first selection operation as a target object type.
It can be understood that, in the above alternative implementation manner, when the first object type and the second object type are different, the target object type may be determined through the first selection operation, so that the determined target object type is more suitable for the expectation of the user, and further, the efficiency of operating the target document is improved.
In some optional implementations of this embodiment, the step 203 may also be performed in the following manner:
and under the condition that the first object type of the first operation object is the same as or different from the second object type of the second operation object, if the first operation type of the second operation is the same as the second operation type of the third operation, determining the object type capable of executing the first operation type or the second operation type as the target object type.
It can be understood that, in the above alternative implementation manner, in the case that the same operation is performed at least twice with respect to the operation object, it generally means that the user may need to perform an operation on other operation objects that can perform the same operation, and thus, the operation object of the object type that can perform the same operation may be automatically determined for the user to operate, thereby further improving the efficiency of document processing.
In some optional implementations of this embodiment, in a case that a plurality of executed history operations belong to a plurality of different operation types, the first operation may be an intersection of optional operations of the target type object among the operations of the plurality of different operation types.
In addition, in some cases, the first operation may also be an operation set composed of a plurality of historical operations.
In some optional implementations of this embodiment, the first operation is determined by:
first, in a case where the first object type of the first operation object and the second object type of the second operation object are the same, and the first operation type of the second operation and the second operation type of the third operation are different, an operation identification list is displayed.
Wherein the operation identification list comprises: the operation identifier of the first operation type and the operation identifier of the second operation type.
In some cases, the operation identification list may also include operation identifications for other operations that are available for execution for the target object type.
For example, the object type of the first operation object is the same as the object type of the second operation object, and the object type of the first operation object and the object type of the second operation object may prompt to expand all operation objects of the same object type in the document, and call out an operation identifier list corresponding to the object type for the user to select. Specifically, for the object type "picture type", an operation identification list for performing a picture editing operation may be called up; for the object type of 'group name card', an operation identification list for adding a group can be called; for the object type 'schedule', an operation identification list for adding or refusing to add the schedule can be called; for the object type "document link", an operation identification list for performing an open operation may be called. In addition, the operation identifier list may further include an operation identifier that the container itself has, and the operation identifier may indicate the following operation: delete, copy, align, etc.
And then, under the condition that a second selection operation executed aiming at the operation identifier in the operation identifier list is detected, determining the operation indicated by the operation identifier selected by the second selection operation as the first operation.
It can be understood that, in the foregoing alternative implementation manner, when the first object type and the second object type are the same, and the first operation type of the second operation is different from the second operation type of the third operation, it generally means that the user may need to operate other operation objects of the object type, and thus, the operation that the user needs to perform may be determined through the operation indicated by the operation identifier selected by the second selection operation, and the operation is performed on other operation objects of the object type, so that the determined operation is more in line with the expectation of the user, and further, the efficiency of operating the target document is improved.
In some optional implementations of this embodiment, no operation is performed on the other operation objects in the target document except for the first operation object and the second operation object within the target time period.
Wherein the target time period is: a time period between a time of execution of the second operation and a time of execution of the third operation.
It is understood that, in the above alternative implementation manner, the target object type may be determined based on two operations (including the second operation and the third operation) performed by the user successively, so that the accuracy of determining the target object type is improved, and the operation efficiency of the target document may be improved.
It should be noted that, in addition to the above-mentioned contents, the present embodiment may further include technical features described in the embodiment corresponding to fig. 1, so as to further achieve the technical effect of the document operation method shown in fig. 1, and for brevity, please refer to the description related to fig. 1, which is not repeated herein.
In the embodiment, the target object type can be determined based on the first object type of the first operation object and the second object type of the second operation object, so that the object type of the operation object required to execute the operation on the target document by the current or future user can be determined based on the operation object operated by the user in history, and thus, the accuracy of determining the target object type can be improved. Furthermore, the first operation is carried out by utilizing the target object type, so that the operation efficiency of the target document can be improved.
Fig. 3 is a schematic flowchart of another document operation method provided in an embodiment of the present disclosure, where the method may be applied to electronic devices such as a smart phone, a notebook computer, a desktop computer, a portable computer, and the like.
Specifically, as shown in fig. 3, the method specifically includes:
301. and acquiring a target document.
In the present embodiment, an execution subject (e.g., server, terminal device, document operation apparatus, etc.) of the document operation method may acquire the target document.
In this embodiment, step 301 is substantially the same as step 101 in the embodiment corresponding to fig. 1, and is not described herein again.
302. And detecting a second operation executed aiming at the first operation object in the target document.
In this embodiment, the execution subject may detect a second operation performed with respect to the first operation object in the target document.
In this embodiment, step 302 is substantially the same as step 201 in the corresponding embodiment of fig. 2, and is not described here again.
303. And detecting a third operation executed aiming at the second operation object in the target document.
In this embodiment, the execution subject may detect a third operation performed with respect to a second operation object in the target document.
In this embodiment, step 303 is substantially the same as step 202 in the corresponding embodiment of fig. 2, and is not described herein again.
304. And determining the first object type or the second object type as a target object type when the first object type of the first operation object is the same as the second object type of the second operation object and the first operation type of the second operation is the same as the second operation type of the third operation.
In this embodiment, in a case where the first object type of the first operation object is the same as the second object type of the second operation object, and the first operation type of the second operation is the same as the second operation type of the third operation, the execution subject may determine the first object type or the second object type as the target object type.
In this embodiment, the execution manner of step 304 may refer to the related description in the corresponding embodiment of fig. 2, and is not described herein again.
From the target document, an operation object set of a target object type is determined 305.
In this embodiment, step 305 is substantially the same as step 102 in the embodiment corresponding to fig. 1, and is not described herein again.
306. Executing a first operation on an operation object in the operation object set, wherein the operation type of the first operation is the first operation type or the second operation type.
In this embodiment, the execution subject may execute a first operation on an operation object in the operation object set, where an operation type of the first operation is the first operation type or the second operation type. .
Please refer to fig. 4A-4C as an example. Fig. 4A-4C are schematic diagrams of the application scenario for fig. 3. In fig. 4A, the user has performed a display frame operation on two pictures in the target document shown in fig. 4A. In the above scenario, the second operation is to display a frame, the third operation is to display a frame, the first operation object is a picture, and the second operation object is a picture. The operation object set is all pictures in the target document, and the target object type is a picture type. Thus, the figure presents "apply display bezel to all pictures". After the confirmation operation of the user motor is detected, information "all 23 pictures have been set as a display frame" as shown in fig. 4B and information "setting is successful" as shown in fig. 4C may be displayed.
It should be noted that, in addition to the above-mentioned contents, the present embodiment may further include the technical features described in the embodiment corresponding to fig. 1 and/or fig. 2, so as to achieve the technical effect of the document operation method shown in fig. 1 and/or fig. 2, please refer to the description related to fig. 1 and/or fig. 2 specifically, and for brevity, no further description is provided herein.
According to the document operation method provided by the embodiment of the disclosure, the same type of first operation can be performed on the operation objects in the operation object set according to the historical operation (for example, the second operation and the third operation), so that the efficiency of operating the target document can be further improved.
Fig. 5 is a flowchart illustrating another determination manner of a target object type in a document operation method according to an embodiment of the present disclosure. Here, the target object type may be determined by the execution subject described above (the execution subject in the embodiment corresponding to fig. 1) or other electronic device. Concepts, steps and the like which are described by using the same terms as in the embodiments in fig. 1 to 3 may be explained or executed in a manner similar to that described in the above embodiments, and are not described again here. As shown in fig. 5, the determining method specifically includes:
501. a fourth operation is detected for the target document.
In the present embodiment, the fourth operation for the target document may be detected.
The fourth operation may be any operation.
In some cases, the fourth operation may be in terms of an object type of an operation object in the target document. As an example, when the object type of the operation object is a picture, the fourth operation may include, but is not limited to: copying, pasting, deleting, cutting, dragging and moving positions, setting whether a frame is displayed or not, setting an alignment mode, rotating and the like; when the object type of the operation object is a table, the fourth operation may include, but is not limited to: copy, paste, delete, cut, drag move position, set alignment, etc.
502. And in the case that the fourth operation is detected, determining a target operation object of the fourth operation.
In this embodiment, in a case where the fourth operation is detected, a target operation object of the fourth operation may be determined.
The target operation object may be an operation object of the fourth operation.
503. And determining the object type of the target operation object as the target object type.
In this embodiment, the object type of the target operation object may be determined as the target object type.
Wherein the target object type may be the type of the object in the document. By way of example, the object types (including the target object type) may include, but are not limited to, at least one of: text type, picture type, table type, cloud document type, highlight block type, content protection zone type, date type, code block type, reference type, emoticon type, hyperlink type, parting line type, formula type, mind map type, flow chart type, countdown type, task board type, to-do list type, schedule plan type, group business card type, third-party service (such as video, map and the like) type.
In this embodiment, the operation object set of the target object type may be determined from the target document, and the first operation may be performed on the operation object in the operation object set.
The specific implementation manner of this step may refer to the related description of the embodiment in fig. 1, and is not described herein again.
In some optional implementations of this embodiment, the operation type of the first operation is the same as the operation type of the fourth operation.
It can be understood that, in the above alternative implementation manner, the same type of fourth operation may be performed on the operation objects in the operation object set, so as to improve the efficiency and accuracy of the target document operation.
Optionally, the operation type of the first operation and the operation type of the fourth operation may also be different.
In some optional implementations of this embodiment, the following manner may be adopted to determine the operation object set of the target object type from the target document:
first, from a target program for presenting the target document, a container type of the target operation object is determined.
And then searching a target container set of the container type from the target program.
Then, the set of operation objects in the target container set is determined as the operation object set of the target object type.
The target program may include program codes such as HTML (Hyper Text Markup Language), CSS (Cascading Style Sheets), and the like. The object program may further include a plurality of tags. E.g., < div >, < table >, < font >, < span >, etc.
The container type may be a type of a container of the target operation object.
The container is an object for recording the contents and attributes of documents (including a target document). A document may be divided into one or more containers, each of which records all or part of the content of the document. The containers may have a hierarchical relationship therebetween, and if the content of the first container record includes the content of the second container record, the first container is considered to be a parent container of the second container, and the second container is considered to be a child container of the first container. The entire document may be considered a container that stores the entire contents of the document and is the parent of all other containers in the document.
Here, in the process of searching the target container set of the container type, the search range thereof may include each layer of containers in the target program. Wherein, the child container is the next layer container of the father container. Alternatively, the search range may be set by the user (e.g., setting the hierarchy range). It is assumed that the container type of the target operation object is a text container type, and text containers are arranged in cells in a table container, that is, the text containers serve as child containers of the table container. Then, the user can search for the target container in different ranges by setting the search range. For example, setting the search range to each layer of container can realize that the text container in the table container is used as the target container; for another example, if the search range is set to the first layer, the text container in the table container is not used as the target container.
Further, a document may be stored using one file, or may be stored using a plurality of files. Correspondingly, the file of the document can store at least one container of the document, and the way of storing the container in a file at least comprises one of the following ways: all contents of the storage container, a reference manner of the storage container. The reference mode may be an address of a file where the referenced container is located, and the address may be a path in a file system or a network address.
In some cases, document data (e.g., the object program) about a container may be read from a file (which may include the object program) correspondingly stored in a document; rendering the document content if the document data is the document content; under the condition that the document data is a reference mode of a container, acquiring actual document content based on the reference mode, and rendering the document content; and after the rendering of the document content is completed, displaying the document content.
The elements (i.e., the operation objects) in the container may carry data in a preset display mode. The elements of the container (i.e., the content in the container) may include at least one of:
(1) Streaming text; (2) web pages or parts of content corresponding to web pages; (3) to-do items; (4) a billboard; (5) a graph; and (6) multimedia data.
The stream text is also called text stream, and is a text typeset by stream type. That is, when the elements of the container are stream texts, the texts in the container are typeset in a stream type typesetting manner. Compared with format typesetting, stream typesetting refers to specific format typesetting processing on characters contained in a document, stored contents are original editing elements, namely characters, a user can view the typesetting style after editing through terminal equipment, and the typesetting style can be displayed in a self-adaptive layout size mode among different zoom ratios. The best performance on the terminal equipment with a small screen is that the initial layout can be automatically rearranged after being enlarged, and the line feed of the paragraph can be adjusted according to the width of the screen so as to adapt to the visual field range of a single page.
The graph may include at least one of a mind map, a UML (Unified Model Language), and a flowchart. Of course, the elements of the container may also be containers, for example, the mind map includes at least one module, the mind map corresponds to a parent container, the module corresponds to a child container, and the child containers corresponding to the at least one module have an association relationship therebetween and are connected based on the association relationship.
The multimedia data, including text, sound, image, etc., streaming text, web page, to-do item, billboard, etc., may also be reorganized or typeset, and finally displayed in a container. For example, the streaming text may be regarded as the text that is formatted in a streaming manner.
The web page may be plain text describing multimedia data using HTML tags. The content, source and presentation mode of the multimedia data can be determined according to the HTML tag.
The pending items may be a collection of multimedia data, i.e. one or more multimedia data, which may be used to describe one or more of people, things, time, and things.
The billboard may include a column and a card, wherein the card may be disposed in the column and may be moved from one column to another, or may be moved from one location in the column to another location in the column. Additionally, the card may also be used to store one or more of the multimedia data.
Optionally, the elements of the container may further include a code block, that is, a text corresponding to a preset program language code, that is, the container may apply a preset theme to the text corresponding to the code according to the type of the program language, where the theme may set a font, a color, and the like for functions, parameters, and the like in the code.
The elements of the container (i.e., the content in the container) may also include tables, cloud documents, highlights, content protection zones, dates, references, emoticons, hyperlinks, splits, formulas, countdown, task boards, to-do lists, schedules, group cards, third party services (e.g., videos, maps, etc.), and the like.
It is understood that the type of the container, such as a streaming text container, a web page container, a proxy item container, a billboard container or a graphics container, may be determined according to the type of the elements in the container in the present embodiment.
In addition, each container may correspond to a unique container identifier. Through the container identification, an operation (e.g., a first operation) can be performed on an element (i.e., an operation object) in the container.
In the above alternative implementation manner, the operation object set of the target object type may be determined based on the target program, so that the accuracy of determining the operation object set is improved.
In some application scenarios in the foregoing optional implementation manners, the executing a first operation on an operation object in the operation object set includes:
and executing a first operation on the operation objects in the operation object set based on the target container.
Specifically, after the target container is determined, based on a programming language such as JavaScript, a first operation may be performed on an operation object in the operation object set.
It should be noted that, in addition to the above-mentioned contents, the present embodiment may further include technical features described in the embodiment corresponding to at least one of fig. 1 to fig. 4C, so as to further achieve the technical effect of the document operation method shown in at least one of fig. 1 to fig. 4C, specifically please refer to at least one of fig. 1 to fig. 4C for a brief description, which is not repeated herein.
According to the document operation method provided by the embodiment of the disclosure, the target object type of the operation object which needs to be operated currently or in the future is determined through the historical operation (for example, the fourth operation) aiming at the target document, so that the accuracy of determining the target object type can be improved. Furthermore, the first operation is carried out by utilizing the target object type, so that the operation efficiency of the target document can be improved.
Fig. 6 is a schematic flowchart of another document operation method provided in an embodiment of the present disclosure, where the method may be applied to an electronic device such as a smart phone, a notebook computer, a desktop computer, a portable computer, and the like.
Specifically, as shown in fig. 6, the method specifically includes:
601. and acquiring a target document.
In the present embodiment, an execution subject (e.g., server, terminal device, document operation apparatus, etc.) of the document operation method may acquire the target document.
In this embodiment, step 601 is substantially the same as step 101 in the embodiment corresponding to fig. 1, and is not described here again.
602. And determining an operation object set of a target object type from the target document.
In this embodiment, the execution subject may determine the operation object set of the target object type from the target document.
In this embodiment, step 601 is substantially the same as step 102 in the embodiment corresponding to fig. 1, and is not described herein again.
603. And executing a first operation on each operation object in the selected state in the operation object set.
In this embodiment, the execution main body may execute the first operation on each operation object in the selected state in the operation object set.
After the execution main body determines the operation object set, each operation object in the operation object set may be displayed in some manner (for example, changing a color, displaying a frame, and the like), and then, the user may select or deselect a part of the operation objects, thereby obtaining each operation object in the operation object set in the selected state.
For example, please refer to fig. 7A-7B. Fig. 7A-7B are schematic diagrams of an application scenario for fig. 6. In fig. 7A, a menu can be displayed by clicking a right mouse button on the operation object. Wherein, the menu can be added with the options of 'selecting the same kind of content in full'. Specifically, since the operation object in fig. 7A is a picture, the menu 701 includes a "select all pictures all" option. After the user clicks the 'all pictures selected' option, all containers in the current document with the same type as the container are all changed into a selected state. Further, the menu 701 may also be displayed by clicking on the paragraph handle 702. Then, as shown in fig. 7B, a prompt message 703 "all 23 pictures have been selected" is displayed. Then, the first operation can be executed on each operation object (namely 23 pictures) in the selected state
It should be noted that, in addition to the above-mentioned contents, the present embodiment may further include technical features described in the embodiment corresponding to at least one of fig. 1 to 5, so as to achieve the technical effect of the document operation method shown in at least one of fig. 1 to 5, please refer to the description related to at least one of fig. 1 to 5, which is not repeated herein for brevity.
According to the document operation method provided by the embodiment of the disclosure, the accuracy and the speed of batch processing of the target document are improved by executing the first operation on each operation object in the selected state in the operation object set.
The following description is made for the purpose of illustrating the embodiments of the present disclosure, but it should be noted that the embodiments of the present disclosure may have the features described below, but the following description should not be construed as limiting the scope of the embodiments of the present disclosure.
In some cases, the type of the container in which the operation object of the current operation (e.g., the fourth operation) is located may be determined, all containers of the same type in the same document (i.e., the target document) may be automatically searched (i.e., the target container set is obtained), and the operation (i.e., the first operation) may be performed.
Further, after the same operation is performed twice in succession (for example, the second operation and the third operation are the same), it is asked whether the same operation is performed on all the containers of the same kind in the document.
Specifically, a "select all like content" option may be added to the menu for each type of container. After clicking, all containers in the current document with the same type as the container become in a selected state. This option may be presented in different names in a menu of different types of containers. For example: the option name in the menu of the picture container is "all pictures selected at all", and the option name in the menu of the form container is "all forms selected at all".
After a plurality of containers are selected in the mode, the floating layer appears to prompt a user of the number of the selected containers at present. Disappearing after deselection. The user can execute the operation in the state that a plurality of containers are selected at the same time, and all the selected containers and the contents in the containers are effective after the operation.
When the user selects the picture containers in batches, all the picture type containers and pictures contained in the picture type containers in the document are selected. The user may now perform operations including, but not limited to, those shown in Table one below:
table one:
Figure BDA0003735020720000161
when a user performs a batch selection of form containers, the containers of all form types in the document and the content contained therein are selected. At this point the user may perform operations including, but not limited to, those shown in Table two below
Table two:
Figure BDA0003735020720000171
specifically, after the same operation is performed twice in succession, it is asked whether the same operation is performed on all the containers of the same class in the document.
If there are at least 3 containers of the same type as the currently selected container in the document, when the user performs the same operation on two containers of the same type in succession, it is indicated that the user may intentionally perform the same operation on more objects. And inquiring whether the user applies the latest operation to all containers of the same type or not by the aid of a floating layer, automatically searching all containers of the same type in the document after clicking confirmation, executing the same operation on the containers, and prompting the total number of objects of the executed operation to the user after the operation is finished.
In addition, the user can actively open the filter function, the filter displays the number of various containers in the current document, and after one or more container types are selected, all the containers of the type in the text of the document (for example, the part outside the toolbar of the document) are automatically searched and all the containers are selected. The user can execute all operations supported by the containers in a state that a plurality of containers are selected at the same time, and all the selected containers and the contents in the containers are validated after execution.
It can be understood that, in the above example, batch operations can be performed on a plurality of similar objects in the same document quickly, so that repeated operations are reduced, and the editing efficiency is improved.
Fig. 8 is a schematic structural diagram of a document operation device provided in an embodiment of the present disclosure, which specifically includes:
an acquisition unit 801 for acquiring a target document;
a determining unit 802, configured to determine, from the target document, an operation object set of a target object type;
an executing unit 803, configured to execute a first operation on an operation object in the operation object set.
Optionally, in the apparatus according to any embodiment of the present disclosure, the target object type is determined by:
detecting a second operation executed aiming at a first operation object in the target document;
detecting a third operation executed for a second operation object in the target document;
and determining the target object type based on the first object type of the first operation object and the second object type of the second operation object.
Optionally, in the apparatus according to any embodiment of the present disclosure, the determining a target object type based on the first object type of the first operation object and the second object type of the second operation object includes:
and under the condition that the first object type of the first operation object is the same as the second object type of the second operation object, determining the first object type or the second object type as a target object type.
Optionally, in the apparatus according to any embodiment of the present disclosure, in a case that a first object type of the first operation object is the same as a second object type of the second operation object, determining the first object type or the second object type as a target object type includes:
and under the condition that the first object type of the first operation object is the same as the second object type of the second operation object, and the first operation type of the second operation is the same as the second operation type of the third operation, determining the first object type or the second object type as a target object type.
Optionally, in the apparatus according to any embodiment of the present disclosure, the operation type of the first operation is the first operation type or the second operation type.
Optionally, in the apparatus according to any embodiment of the present disclosure, the determining a target object type based on the first object type of the first operation object and the second object type of the second operation object includes:
displaying an object type list in the case that a first object type of the first operation object and a second object type of the second operation object are different; wherein the object type list comprises: the first object type and the second object type;
and under the condition that a first selection operation aiming at the object types in the object type list is detected, determining the object type selected by the first selection operation as a target object type.
Optionally, in the apparatus of any embodiment of the present disclosure, the first operation is determined by:
displaying an operation identification list when a first object type of the first operation object is the same as a second object type of the second operation object and a first operation type of the second operation is different from a second operation type of the third operation; wherein the operation identification list comprises: the operation identifier of the first operation type and the operation identifier of the second operation type;
and under the condition that a second selection operation executed aiming at the operation identifier in the operation identifier list is detected, determining the operation indicated by the operation identifier selected by the second selection operation as the first operation.
Optionally, in the apparatus according to any embodiment of the present disclosure, no operation is performed on the other operation objects except the first operation object and the second operation object in the target document within a target time period; wherein the target time period is: a time period between a time of execution of the second operation and a time of execution of the third operation.
Optionally, in the apparatus according to any embodiment of the present disclosure, the target object type is determined by:
detecting a fourth operation aiming at the target document;
determining a target operation object of the fourth operation when the fourth operation is detected;
and determining the object type of the target operation object as the target object type.
Optionally, in the apparatus of any embodiment of the present disclosure, an operation type of the first operation is the same as an operation type of the fourth operation.
Optionally, in an apparatus according to any embodiment of the present disclosure, the determining, from the target document, an operation object set of a target object type includes:
determining the container type of the target operation object from a target program used for presenting the target document;
searching a target container set of the container type from the target program;
and determining the set of the operation objects in the target container set as an operation object set of a target object type.
Optionally, in the apparatus according to any embodiment of the present disclosure, the performing, on an operation object in the operation object set, a first operation includes:
and executing a first operation on the operation objects in the operation object set based on the target container.
Optionally, in the apparatus according to any embodiment of the present disclosure, the performing, on an operation object in the operation object set, a first operation includes one of:
executing a first operation on each operation object in the operation object set; or
And executing a first operation on each operation object in the selected state in the operation object set.
The document operation device provided in this embodiment may be the document operation device shown in fig. 8, and may perform all the steps of the document operation method shown in fig. 1 to 7B, so as to achieve the technical effect of the document operation method shown in fig. 1 to 7B, for which, reference is specifically made to the description related to fig. 1 to 7B, which is not described herein for brevity.
Fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure, where the electronic device 900 shown in fig. 9 includes: at least one processor 901, memory 902, at least one network interface 904, and other user interfaces 903. Various components in the electronic device 900 are coupled together by a bus system 905. It is understood that the bus system 905 is used to enable communications among the components. The bus system 905 includes a power bus, a control bus, and a status signal bus, in addition to a data bus. For clarity of illustration, however, the various buses are labeled in fig. 5 as bus system 905.
The user interface 903 may include, among other things, a display, a keyboard, or a pointing device (e.g., a mouse, trackball, touch pad, or touch screen, among others.
It will be appreciated that the memory 902 in embodiments of the disclosure may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of example, and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), synchronous Dynamic Random Access Memory (SDRAM), double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), enhanced Synchronous SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The memory 902 described herein is intended to comprise, without being limited to, these and any other suitable types of memory.
In some embodiments, memory 902 stores the following elements, executable units or data structures, or a subset thereof, or an expanded set thereof: an operating system 9021 and application programs 9022.
The operating system 9021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, and is configured to implement various basic services and process hardware-based tasks. The application 9022 includes various applications, such as a Media Player (Media Player), a Browser (Browser), and the like, for implementing various application services. A program implementing the methods of embodiments of the present disclosure may be included in application 9022.
In this embodiment, by calling a program or an instruction stored in the memory 902, specifically, a program or an instruction stored in the application 9022, the processor 901 is configured to execute the method steps provided by the method embodiments, for example, including:
acquiring a target document;
determining an operation object set of a target object type from the target document;
and executing a first operation on the operation objects in the operation object set.
The method disclosed in the embodiment of the present disclosure may be applied to the processor 901, or implemented by the processor 901. The processor 901 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be implemented by integrated logic circuits of hardware or instructions in the form of software in the processor 901. The Processor 901 may be a general-purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, or discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present disclosure may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present disclosure may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software elements in the decoding processor. The software elements may be located in ram, flash, rom, prom, or eprom, registers, among other storage media that are well known in the art. The storage medium is located in the memory 902, and the processor 901 reads the information in the memory 902, and completes the steps of the above method in combination with the hardware thereof.
It is to be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For a hardware implementation, the Processing units may be implemented in one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units configured to perform the above-described functions of the present disclosure, or a combination thereof.
For a software implementation, the techniques described herein may be implemented by means of units performing the functions described herein. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
The electronic device provided in this embodiment may be the electronic device shown in fig. 9, and may execute all the steps of the document operation method shown in fig. 1 to 7B, so as to achieve the technical effect of the document operation method shown in fig. 1 to 7B.
The disclosed embodiments also provide a storage medium (computer-readable storage medium). The storage medium herein stores one or more programs. Among others, storage media may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, a hard disk, or a solid state disk; the memory may also comprise a combination of memories of the kind described above.
When one or more programs in the storage medium are executable by one or more processors, the document operation method executed on the electronic device side is realized.
The processor is used for executing the document operation program stored in the memory to realize the following steps of the document operation method executed on the electronic equipment side:
acquiring a target document;
determining an operation object set of a target object type from the target document;
and executing a first operation on the operation objects in the operation object set.
Those of skill would further appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present disclosure.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied in hardware, a software module executed by a processor, or a combination of the two. A software module may reside in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The above-mentioned embodiments, objects, technical solutions and advantages of the present disclosure are further described in detail, it should be understood that the above-mentioned embodiments are only examples of the present disclosure, and are not intended to limit the scope of the present disclosure, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present disclosure should be included in the scope of the present disclosure.

Claims (14)

1. A method of document manipulation, the method comprising:
acquiring a target document;
determining an operation object set of a target object type from the target document;
and executing a first operation on the operation objects in the operation object set.
2. The method of claim 1, wherein the target object type is determined by:
detecting a second operation executed aiming at a first operation object in the target document;
detecting a third operation executed for a second operation object in the target document;
and determining the target object type based on the first object type of the first operation object and the second object type of the second operation object.
3. The method of claim 2, wherein determining a target object type based on the first object type of the first operand and the second object type of the second operand comprises:
and under the condition that the first object type of the first operation object is the same as the second object type of the second operation object, determining the first object type or the second object type as a target object type.
4. The method according to claim 3, wherein the determining the first object type or the second object type as a target object type in the case that the first object type of the first operation object and the second object type of the second operation object are the same comprises:
and determining the first object type or the second object type as a target object type when the first object type of the first operation object is the same as the second object type of the second operation object and the first operation type of the second operation is the same as the second operation type of the third operation.
5. The method of claim 4, wherein the operation type of the first operation is the first operation type or the second operation type.
6. The method of claim 2, wherein determining a target object type based on the first object type of the first operand and the second object type of the second operand comprises:
displaying an object type list in the case that a first object type of the first operation object and a second object type of the second operation object are different; wherein the object type list comprises: the first object type and the second object type;
and under the condition that a first selection operation aiming at the object types in the object type list is detected, determining the object type selected by the first selection operation as a target object type.
7. The method of claim 2, wherein the first operation is determined by:
displaying an operation identification list when a first object type of the first operation object is the same as a second object type of the second operation object and a first operation type of the second operation is different from a second operation type of the third operation; wherein the operation identification list comprises: the operation identifier of the first operation type and the operation identifier of the second operation type;
and under the condition that a second selection operation executed aiming at the operation identifier in the operation identifier list is detected, determining the operation indicated by the operation identifier selected by the second selection operation as the first operation.
8. The method according to any one of claims 2 to 7, wherein no operation is performed on the other operation objects except the first operation object and the second operation object in the target document within a target time period; wherein the target time period is: a time period between a time of execution of the second operation and a time of execution of the third operation.
9. The method of claim 1, wherein the target object type is determined by:
detecting a fourth operation aiming at the target document;
determining a target operation object of the fourth operation when the fourth operation is detected;
and determining the object type of the target operation object as the target object type.
10. The method of claim 9, wherein determining the set of operation objects of the target object type from the target document comprises:
determining the container type of the target operation object from a target program used for presenting the target document;
searching a target container set of the container type from the target program;
and determining the set of the operation objects in the target container set as an operation object set of a target object type.
11. The method of claim 10, wherein the performing a first operation on an operand in the set of operands comprises:
and executing a first operation on the operation objects in the operation object set based on the target container.
12. The method according to any of claims 1-7 and 9-11, wherein the performing a first operation on an operand in the set of operands comprises one of:
executing a first operation on each operation object in the operation object set; or
And executing a first operation on each operation object in the selected state in the operation object set.
13. A document manipulation device, said device comprising:
an acquisition unit configured to acquire a target document;
the determining unit is used for determining an operation object set of a target object type from the target document;
and the execution unit is used for executing a first operation on the operation objects in the operation object set.
14. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method of any one of the preceding claims 1 to 12.
CN202210808129.XA 2022-07-07 2022-07-07 Document operation method, device and storage medium Pending CN115480853A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210808129.XA CN115480853A (en) 2022-07-07 2022-07-07 Document operation method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210808129.XA CN115480853A (en) 2022-07-07 2022-07-07 Document operation method, device and storage medium

Publications (1)

Publication Number Publication Date
CN115480853A true CN115480853A (en) 2022-12-16

Family

ID=84422526

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210808129.XA Pending CN115480853A (en) 2022-07-07 2022-07-07 Document operation method, device and storage medium

Country Status (1)

Country Link
CN (1) CN115480853A (en)

Similar Documents

Publication Publication Date Title
US10372793B2 (en) Hyperlink with graphical cue
US11240320B2 (en) System and method for managing notifications of document modifications
US8201103B2 (en) Accessing an out-space user interface for a document editor program
US20170139890A1 (en) Smart card presentation of tabular data from collaboration database
AU2015101061C4 (en) Method and System for Processing or Notating a Document or Design
US20120159318A1 (en) Full screen view reading and editing user interface
US10210142B1 (en) Inserting linked text fragments in a document
US20090327853A1 (en) Comparing And Selecting Form-Based Functionality
US9910835B2 (en) User interface for creation of content works
CN110462615B (en) Enhanced techniques for use with adhesive plates
Lambert et al. Microsoft Office 2019 Step by Step
US9852117B1 (en) Text-fragment based content editing and publishing
CN104462232A (en) Data storage method and device
CN106970758B (en) Electronic document operation processing method and device and electronic equipment
Chase Using design patterns in user interface design
JP7214166B2 (en) Add-on program for adding browser application software
CN115640783A (en) Method, device, equipment and storage medium for document content display
US11468228B2 (en) Content frames for productivity applications
CN115480853A (en) Document operation method, device and storage medium
US10627997B1 (en) System and method for highlighting dependent slides while editing master slides of a presentation
Jelen Excel 2013 in depth
Lambert et al. MOS 2010 Study Guide for Microsoft Word, Excel, PowerPoint, and Outlook Exams
Jelen Microsoft Excel Inside Out (Office 2021 and Microsoft 365)
Jelen Microsoft Excel 2010 in depth
US10133715B2 (en) Providing semantic based document editor

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