CN109710909A - Content acquisition method, device, terminal and storage medium - Google Patents
Content acquisition method, device, terminal and storage medium Download PDFInfo
- Publication number
- CN109710909A CN109710909A CN201811637104.8A CN201811637104A CN109710909A CN 109710909 A CN109710909 A CN 109710909A CN 201811637104 A CN201811637104 A CN 201811637104A CN 109710909 A CN109710909 A CN 109710909A
- Authority
- CN
- China
- Prior art keywords
- content
- user
- region
- label
- terminal
- 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.)
- Granted
Links
Landscapes
- Information Transfer Between Computers (AREA)
- User Interface Of Digital Computer (AREA)
- Document Processing Apparatus (AREA)
Abstract
The invention discloses a kind of content acquisition method, device, terminal and storage mediums, belong to network technique field.The described method includes: obtaining the first content that the first user is edited according to the edit instruction to destination document;The second content, the content that second content edits the destination document by second user are received, the second user is the user except first user;When the first content and second content are to the content of edit in the same region in the destination document, the first content and second content are merged, the object content in the region is obtained.The present invention is by merging content of multiple users to the same terrain feature edit, obtain the final content in region, rather than directly content is covered based on edit session, the content that multiple user edits can retain, because of the loss of data without caused by, the accuracy rate of the content got is high.
Description
Technical field
The present invention relates to network technique field, in particular to a kind of content acquisition method, device, terminal and storage medium.
Background technique
With the development of network technology, people can also edit document table on line, that is to say by network
Line table.Wherein, online table can also provide the function of editing on more people's lines, it might even be possible to support multiple users simultaneously to same
One table carries out collaborative editing, to improve editorial efficiency.
Currently, content acquisition method is usually to work as multiple users to carry out edit operation to the same area in a document simultaneously
When, based on the time point that multiple user's edit operation terminates, the edit operation of time point the latest is edited in this region
Content of the content as the region is then directly compiled the content of other users editor by the edit operation of the time point the latest
The content collected is covered.
The user of the posterior content of edit session is not aware that there are also other users in the area in above content acquisition methods
Also content is edited in domain, directly covers the preceding content of edit session with the posterior content of edit session, it is easy to cause to count
According to loss, thus the accuracy rate of above content acquisition methods is lower.
Summary of the invention
The embodiment of the invention provides a kind of content acquisition method, device, terminal and storage mediums, can solve related skill
Loss of data and the lower problem of accuracy rate are easy in art.The technical solution is as follows:
On the one hand, a kind of content acquisition method is provided, which comprises
According to the edit instruction to destination document, the first content that the first user is edited is obtained;
Receive the second content, the content that second content edits the destination document by second user, described
Two users are the user except first user;
When the first content and second content are to the content of edit in the same region in the destination document,
The first content and second content are merged, the object content in the region is obtained.
On the one hand, a kind of content acquisition unit is provided, described device includes:
Module is obtained, for obtaining the first content that the first user is edited according to the edit instruction to destination document;
Receiving module, for receiving the second content, second content edits the destination document by second user
Content, the second user be first user except user;
Merging module, for being to the same region in the destination document when the first content and second content
Content of edit when, the first content and second content are merged, the object content in the region is obtained.
On the one hand, provide a kind of terminal, the terminal includes processor and memory, be stored in the memory to
A few instruction, described instruction are loaded as the processor and are executed to realize operation performed by the content acquisition method.
On the one hand, provide a kind of computer readable storage medium, be stored in the computer readable storage medium to
A few instruction, described instruction are loaded as processor and are executed to realize operation performed by the content acquisition method.
It, can be based on use when the embodiment of the present invention simultaneously edits the same area of same document by multiple users
The content at family merges instruction, and the content edited to multiple users merges, obtains the final content in the region, rather than be based on
Edit session directly covers content, and the content that multiple user edits can retain, because data are lost without caused by
It loses, the accuracy rate of the content got is high.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for
For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other
Attached drawing.
Fig. 1 is a kind of implementation environment of content acquisition method provided in an embodiment of the present invention;
Fig. 2 is a kind of flow chart of content acquisition method provided in an embodiment of the present invention;
Fig. 3 is a kind of schematic diagram of first object position provided in an embodiment of the present invention;
Fig. 4 is a kind of schematic diagram of first object position provided in an embodiment of the present invention;
Fig. 5 is a kind of schematic diagram of first label provided in an embodiment of the present invention;
Fig. 6 is a kind of schematic diagram of second label provided in an embodiment of the present invention;
Fig. 7 is the schematic diagram that a kind of multiple labels provided in an embodiment of the present invention are shown;
Fig. 8 is a kind of schematic diagram for hiding the first label or the second label provided in an embodiment of the present invention;
Fig. 9 is a kind of schematic diagram of selection prompt provided in an embodiment of the present invention;
Figure 10 is a kind of schematic diagram of first content provided in an embodiment of the present invention;
Figure 11 is a kind of schematic diagram of second content provided in an embodiment of the present invention;
Figure 12 is a kind of schematic diagram of object content provided in an embodiment of the present invention;
Figure 13 is a kind of schematic diagram of object content provided in an embodiment of the present invention;
Figure 14 is a kind of flow chart of content acquisition method provided in an embodiment of the present invention;
Figure 15 is a kind of structural schematic diagram of content acquisition unit provided in an embodiment of the present invention;
Figure 16 is a kind of structural block diagram of terminal provided in an embodiment of the present invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention
Formula is described in further detail.
Fig. 1 is a kind of implementation environment of content acquisition method provided in an embodiment of the present invention, referring to Fig. 1, the implementation environment
In may include multiple terminals 101 and server 102, multiple terminal 101 can be based respectively on network connection and server 102
Carry out data interaction.
In embodiments of the present invention, the user logged in multiple terminal 101 can just access at the same time in server 102
A document, each terminal 101 can send in the terminal 101 user that log in the volume of a document to server 102
Information is collected, after server 102 can be handled editor's information, and editor's information is sent to access this article by treated
Terminal 101 where other users of shelves.
For example, the document can be table, multiple users accessible table can store on the server 102
The table, multiple terminals 101 where multiple user can access the table in the server 102 by network connection,
Multiple user can simultaneously edit the table.Multiple terminal 101 can send editor's information to server 102,
The server 102 can will be sent to other terminals 101 after editor's information processing that a terminal 101 is sent, so that realizing should
Data in table are synchronous.
It should be noted that multiple terminal 101 can access to the server 102 by the client of installation,
It can also be by accessing to portal website to the server 102, the embodiment of the present invention is not construed as limiting this.
The content acquisition method is applied to terminal, which can be a terminal 101 in above-mentioned multiple terminals 101,
It is following with the user that is currently logged in the terminal for the first user, the user except first user be for second user into
Row explanation.In embodiments of the present invention, multiple users can simultaneously edit the same document, wherein for some end
For end, the first user logged in the terminal is accessing a document, and the second user logged in other terminals also exists
The document is accessed, and region in the document is edited.
When any user accesses document, terminal can establish connection with server.Specifically, terminal can be called
The channel socket is established with server in the library socket.io.The channel socket is used to carry out the communication of full duplex with server.
The title socket.io in the library socket.io is simply explained below, the Chinese of the socket in the title is
The full name in English of socket, io is Input Output, refers to input and output.
In a kind of possible implementation, for a document, server can store all users of access the document
Socket communication handle and the document corresponding relationship.For example, server can will access all users' of the document
Socket communication handle is stored in Hash mapping (HashMap) object.The HashMap object is usually with the shape of key-value pair
Formula storing data.It specifically, can be using the identification information of the document as key (key), the identification information in the HashMap object
For unique identification the document.For example, key can be regard the identity number (Identification, ID) of the document as.Often
When user sends editor's information to server, server can get according to the identification information of the document and access this
The socket communication handle of all users of document will treated editor's information thus after handling editor's information
All users are sent to by the socket communication handle of all users got, it can be by above-mentioned server to the volume
The process that sends and receivees for collecting information is known as broadcasting, and multiple user collaboratives edit same document, then can also be by the volume
It collects information and is known as cooperative information.
In a kind of possible implementation, when accessing the document, terminal where the second user can be created second user
Mapping (map) object is built, which can also correspond to the identification information and the second user for being stored with the second user
Relevant information, for example, using the identification information of the second user as key.Further, terminal where the second user can be with
By terminal where the second user and the socket established between server, first editor's information is sent to server, this
For one editor's information for informing that the second user is accessing the document, which may include the second user
Identification information.Certainly, this first editor information can also include the second user other information, the embodiment of the present invention to this not
It limits.Terminal where the first editor information can be broadcast to other users by server, terminal where first user
It can receive first editor's information of the server broadcast, so as to know that the second user is accessing the document.
For example, can the second user be referred to as the first user teamworker (collaborator), then above-mentioned map object can
To be named as collaboratorMap, terminal where the second user can be sent by socket to server simultaneously
CollabEnterAction, the collabEnterAction are first editor's information, and referred herein to editor's information is collaboration letter
Breath, then the collabEnterAction is one kind of cooperative information, which is used to describe the mark of second user
The data structure of information, for example, the identification information of the second user can be the ID or the pet name of the second user, the identification information
For the unique identification second user.Server can broadcast the collabEnterAction in addition to the second user
All users for accessing the document.
Specifically may be in embodiment at one, which can also be edited in the document, this second
When user carries out edit operation, terminal where the second user can send second editor's information to server, second editor
Information may include editor's shape of the identification information of the second user, the region of second user editor and the second user
State.Wherein, which may include selected state and input state.It, can after server receives the second editor information
To be broadcasted to terminal where the other users for accessing the document, terminal where the first user is one of whole
End, then the first user can know that the second user edits the document.For example, the second editor information can be by
It is named as coordAction, which may be one of cooperative information.
Further, after the second user is to some terrain feature edit in document, it that is to say that second user exits
When to the input state in the region, terminal where the second user can send third editor information, the third to server
Editing information may include the identification information of the second user, the region of second user editor and second user editor
Content.After server receives third editor's information, third editor's information can also be broadcast to and access the document
Other users where terminal, so that terminal where the other users can be according to third editor's information, synchronized update document
In data.Certainly, if the second user exits the input state to the region, terminal is in determination where the second user
The second user not input content when, then can not to server send third editor information.
When being edited to multiple user to the same region in the same document below by embodiment illustrated in fig. 2
The detailed process that terminal carries out content acquisition is illustrated.Fig. 2 is a kind of content acquisition method provided in an embodiment of the present invention
Flow chart, referring to fig. 2, the content acquisition method may comprise steps of:
201, terminal receives the editing mode of second user.
In embodiments of the present invention, the first user and second user can edit destination document, the destination document
It can be online shared document, can also be stored by terminal local where the first user, but be based on shareware, second user institute
The destination document can also be edited in terminal, it is of course also possible to which terminal local stores where second user, but be based on
Shareware, terminal where the first user can also edit the destination document.
The second user can be edited in destination document, and when the second user carries out edit operation, this second
Terminal where user can send second editor's information to server, which may include the mark of the second user
Know information, the region of second user editor and the editing mode of the second user.Server receives the second editor letter
After breath, it can be broadcasted to terminal where the other users for accessing the destination document, first uses shown in the step 201
Terminal where family is one of terminal, then can know that the second user edits the destination document.For example,
The second editor information can be named as coordAction, which may be one of cooperative information.
Correspondingly, in the step 201, the second editor that terminal where terminal can receive the second user is sent believes
Breath, so that the editing mode of second user is received, to know that the second user is choosing some area in the destination document
The domain still input content just in some region.
For example, second user clicks some cell in the table, or at some so that the destination document is table as an example
In cell when input content, the second user i.e. the cell is being edited, then can by above-mentioned broadcasting process,
Terminal receives second editor's information, the second editor information include the ID of the second user, the cell coordinate and this
The editing mode etc. of two users.For example, second user clicks some cell still by taking the destination document is table as an example, then should
The editing mode of second user is selected state, and second user double-clicks cell, can in the cell input content, then
The second user is in input state.
202, terminal obtains the area that the second user edits the destination document according to the editing mode of the second user
The Show Styles in domain.
In a kind of possible implementation, when second user edits region in destination document, the terminal
The region can be highlighted, to prompt the region by second user editor.Specifically, the editor of second user
State is different, and the Show Styles in the region can also be different.Terminal can obtain the area according to the editing mode of the second user
The Show Styles in domain, so as to execute following step 203 based on the Show Styles got, such first user passes through
The Show Styles in the region can intuitively know second user to the editing mode in the region.
In one specifically possible embodiment, the different Show Styles in the region can be realized by different labels.
It that is to say, when the editing mode difference of the second user, the label in the region be can also be different.Specifically, when the second user
Editing mode be selected state when, terminal obtains first label in the region, which is used to indicate the second user
Choosing the region.When the editing mode of the second user is input state, terminal obtains second label in the region, should
Second label is used to indicate the second user and edits to the region.
For example, the content of the first label can be the second user ID or the pet name, the first user can by this first
Label knows that the second user is choosing the region.The content of second label may include the second user ID or the pet name and
Editing mode, for example, second label can input for XXX, which is the ID or the pet name of the second user, thus
First user can know the second user just input content in this region by second label.
In one specifically possible embodiment, the terminal is compiled in receive server transmission first in the above process
When collecting information, document into regions (division, a div) element can also be created, which is label, the div element
It can be set to invisible, namely be set to hide.It is of course also possible to the div element is referred to as cooperative tags, the cooperation
Label is used to indicate the editing mode of teamworker's (second user).The terminal can also using the identification information of the second user as
Other identity informations of the second user and the cooperative tags are stored in the collaboratorMap in the terminal by key.
By taking the destination document is table as an example, when the second user clicks cell, terminal receives the second volume of server transmission
When volume information, which can be obtained according to the identification information of the second user, and by the curriculum offering of the cooperative tags
For the identification information of the second user, for example, ID or the pet name.When the second user double-clicks cell input content, terminal is connect
When receiving second editor's information of server transmission, which can be obtained according to the identification information of the second user, and
It is the identification information and editing mode of the second user by the curriculum offering of the cooperative tags, for example, XXX is being inputted.
Certainly, if second user exits the access to the destination document, terminal where second user can be to server
The 4th editor's information is sent, the 4th editor's information is also one of cooperative information, and the 4th editor's information may include the
The identification information of two users.When server receive the 4th editor information after, can also by the 4th editor information broadcast to
Other are accessing terminal where the user of the destination document, after terminal where other users receives the 4th editor's information,
The relevant information of the second user can also be deleted or the state of relevant information is set as down state.For example, the 4th
Editor's information can be named as collabExistAction, and terminal where the other users receives
After collabExistAction, can according to the ID or the pet name of the second user, obtained from collaboratorMap this
The corresponding cooperative tags of two users, and the cooperative tags are deleted or destroyed, it can be by the second user at this
Corresponding storage information is set as undefined (undefined) in collaboratorMap, can then indicate in this way this second
User has dropped out the access to the destination document.
203, terminal shows the region according to the Show Styles.
After terminal gets the Show Styles in region, which can be shown according to the Show Styles.Specifically, this is aobvious
Sample formula can realize that then terminal can show the region by label, show the area on the first object position in the region
First label or second label in domain.It that is to say, if it is the first mark that terminal, which gets the label in the region, in step 202
Label, then terminal can show first label on the first object position in the region, if terminal gets this in step 202
The label in region is the second label, then terminal can show second label on the first object position in the region.
Wherein, which can be some position around the region, for example, as shown in figure 3, first mesh
Cursor position can be the upper right comer region around region, and certainly, which can also be other around the region
Region, for example, lower right field, upper left corner area, lower left corner region, area just above, underface region, left area or the right side
Border region etc..Certainly, the first object position can also some position in the region, for example, as shown in Figure 4, or
Upper right comer region in the region, or may be other regions in the region, the embodiment of the present invention is to the first object
Position is not construed as limiting.
In a kind of possible implementation, terminal can be based on the region when showing first label or the second label
Position, the first object position is calculated, to show first label or the second label on the first object position.
It should be noted that above-mentioned first label or the second label are for embodying second user in the destination document
The editing mode in the region, for second user, second user itself knows oneself ongoing editing mode, thus
For terminal where second user without showing first label or the second label, which then can be with
Show first label or the second label, in the interface of first user to prompt the first user.Certainly, this
When one user edits the region, terminal where the second user can also be shown in the interface of the second user to be used for
Embody the first label or the second label that first user is editing.
Specifically may be in embodiment, when the label difference in the region at one, which can also be different.
For example, the corresponding first object position of the first label can be the upper right comer region around the region, the second label corresponding the
One target position can be the upper left corner area around the region.In this way in the terminal the first user can be directly based upon this first
The display position of label or the second label intuitively knows the second user to the editing mode in the region.
In a kind of possible implementation, in the step 203, terminal can also show indicia framing, wrap in the indicia framing
The region is included, which is used to indicate the region and is in the state edited by second user.For example, with the destination document
For table, as shown in figure 5, if the editing mode of second user is selected state, for example the second user clicks certain
A cell, the terminal can show the first label in the upper right corner of the cell, and the content of first label is second use
The ID or the pet name at family, and indicia framing can be shown on the cell location, for marking the cell being edited.Such as figure
Shown in 6, if the editing mode of second user is input state, for example second user has double-clicked some cell, at this time should
Second user institute can show cursor in the cell at the terminal, then terminal can show the in the upper right corner of the cell
Two labels, the content of second label are " XXX is being inputted ", which is the ID or the pet name of the second user, and the cell
Indicia framing can be shown on position, for marking the cell being edited.
It should be noted that the quantity of above-mentioned second user can be one, or it is multiple, when the second user
When quantity is multiple, terminal can also show the first label or the second label of each second user.One kind can the side of being able to achieve
In formula, when the quantity of the second user is multiple, according to the time sequencing that the second user edits the region, superposition
Show the first label or the second label of multiple second users.
It should be noted that the first label of multiple second user or the stacked system of the second label can also include more
Kind mode can be according to above-mentioned time sequencing, on the first object position in the region under in a kind of possible implementation
And multiple first label of upper Overlapping display or the second label, or superposition is aobvious from top to bottom on the first object position in the region
Show multiple first label or the second label, or from the right Overlapping display in a left side multiple on the first object position in the region
One label or the second label, or from multiple first label of the left Overlapping display in the right side or on the first object position in the region
Two labels.Certainly, which can also be to be directly superimposed on the first object position, posterior first mark of time sequencing
Label or the second label are shown in top layer.For example, as shown in (A) figure in Fig. 7, the arrangement of multiple first label or the second label
Sequence can be for from top to bottom or from bottom to top, as shown in (B) figure in Fig. 7, the arrangement of multiple first label or the second label
Sequence can for from a left side it is right or from the right side it is left, as shown in (C) figure in Fig. 7, multiple first label or the second label same
It is directly superimposed on one position, posterior first label of time sequencing or the second label are shown in top layer.
In alternatively possible implementation, for multiple first label or the second label, terminal can also be based on more
The first label or the second label of the identical second user of editing mode in a second user obtain the 4th label or the 5th mark
Label, thus according to above-mentioned time sequencing, the 4th label of Overlapping display or the 5th label on the first object position in the region.
For example, can using the identical second user of editing mode as one group, using editing mode be selected state second user as
First group, using the second user that editing mode is input state as second group, by the mark of first group of multiple second users
Knowledge informix is the 4th label, for example, the content of the 4th label can be AAA, BBB, CCC as shown in (D) figure in Fig. 7, is incited somebody to action
The identification information of second group of multiple second users is arranged according to the time sequencing of above-mentioned editor, and is united after the identification information
One display editing mode, obtains the 5th label, for example, the content of the 5th label can input for XXX, YYY, ZZZ.
It is above-mentioned only to illustrate the superposition display mode of several multiple first labels or the second label with several, it is multiple
First label or the second label can also have other superposition display modes, for example, on the first object position in the region
It is to show that first label or the second label, the target shape can be preset by related technical personnel in target shape,
It can be adjusted by the first user according to itself use habit, for example, target shape can be Pyramid, the present invention is real
Example is applied to be not construed as limiting the superposition display mode of multiple first label or the second label and the target shape.
In one specifically possible embodiment, in the case where the quantity of second user is multiple, the above-mentioned terminal is aobvious
Show in the setting of indicia framing can also include: when the quantity of the second user is multiple, terminal shows multiple indicia framings.Its
In, the time sequencing that the region is edited based on the second user in the display position of multiple indicia framing determines, for example, should
The time sequencing that multiple indicia framings can edit the region according to the second user, from-inner-to-outer show multiple labels
Frame, the corresponding indicia framing of the preceding second user of time sequencing can including, the corresponding mark of the posterior second user of time sequencing
Remember that frame can be outside.
In a kind of possible implementation, the Show Styles of the corresponding indicia framing of different second users is different.Specifically, no
With second user, the color of corresponding indicia framing can be different.For example, when the quantity of second user is 2, one of them second use
The color of the corresponding indicia framing in family can be blue, and the time of second user editor is in preceding, another second user correspondence
The color of indicia framing can be purple, and the time of second user editor rear, then terminal can show two indicia framings,
Including the indicia framing of blue, including the indicia framing of purple.Certainly, the Show Styles of the indicia framing can also be real by other means
It is existing, for example, the line style of the corresponding indicia framing of different second users is different, for example, of different size, real dotted line pattern it is different or
Rectilinear curve pattern difference etc., the embodiment of the present invention is not construed as limiting this.
It should be noted that above-mentioned steps 201 are into step 203, second user to region in destination document into
When edlin, terminal can be highlighted the region.Certainly, which can not also carry out the region prominent aobvious
Show, when the second user edits region in destination document, if getting the first user to the volume in the region
Instruction is collected, following step 204 is executed, the embodiment of the present invention is not construed as limiting the display mode in the region.
204, terminal obtains the first content that the first user is edited according to the edit instruction to destination document.
When second user edits the destination document, the first user can also be to target text in the terminal
Shelves carry out edit operation, when terminal gets the edit instruction of edit operation triggering, what available first user edited
First content.Specifically, the first user on the terminal edits some region in destination document, exists in the first user
When the terminal carries out editor's end operation, which can terminate to refer to based on the editor of the editor's end operation triggering got
It enables, is based on editor's END instruction, obtain the first content that the first user edits.For example, by taking the destination document is table as an example,
First user edits some cell in the table, which can double-click the cell, in the cell
First content is inputted, for example first content can be " 456 ", terminate to input in first user, when exiting input state, terminal
The available first content.
In a kind of possible implementation, when the editing mode of first user is input state, terminal can be hidden
First label or second label.For example, as shown in fig. 6, before the editing mode of the first user is in input state, eventually
End can show the second label in the upper right corner in region, as shown in figure 8, entering input state when the first user double-clicks the cell
When, terminal can hide second label.In this way when the first user is in input state, it is possible to reduce shown in current interface
Information content, to avoid causing to block to the first user input or other influences.
In the implementation, there are also a kind of possible designs, if the first user also wants to check second user to the region
Editing mode that is to say, also wants terminal and shows first label or the second label, then cursor can hover in first mark
On the first object position in region locating for label or the second label, then when cursor hovering is when the first object position, terminal can
To show hiding first label or second label.
It should be noted that first user and second user may carry out the same region in destination document
Editor, during first user edits the region, second user may also edit the region, example
Such as, the position that may change the region, using the destination document as table, which is that some cell in the table is
Example, second user are added to row or column before the cell, or delete the row or column before the cell or cell place
Row or column, or the width of cell height of the row or column is had modified, or have modified row or column where the cell
The height of preceding row or the width of column, then the position of the cell may then change.Terminal can be based on second user
Editor's information, the change in location situation in the region is determined, to obtain the position after the regional change, and based on after the variation
Position, the first object position in the region is obtained, thus when needing to show the first label or the second label, after variation
The first label or the second label are shown on the first object position in the region.
For example, second user can be known as to the teamworker of the first user, editor's information of teamworker is known as to cooperate with letter
The cooperative information for deleting column is named as by breath for example, the cooperative information for deleting row can be named as delRowAction
The cooperative information for increasing row is named as addRowAction, the cooperative information for increasing column is named as by delColAction
The high cooperative information of adjustment setting row is named as setRowHeightAction, col width is arranged in adjustment by addColAction
Cooperative information be named as setColHeightAction.Wherein, terminal to delete row cooperative information delRowAction with
The processing mode for deleting the cooperative information delColAction of column is similar, to the cooperative information addRowAction for increasing row and increases
Add the processing mode of the cooperative information addColAction of column similar, the cooperative information high to adjustment setting row
SetRowHeightAction is similar with the adjustment setting processing mode of cooperative information setColWidthAction of col width.Than
Above-mentioned several cooperative informations can be such as divided into three classes: delete class, increase class and adjustment class.
For deleting class, that is to say the cooperative information delRowAction for deleting row and deleting the cooperative information of column
DelColAction, terminal may determine that whether the row or column of deletion is row or column where region, if it is not, then terminal can be with base
In the delRowAction or delColAction, the position in the region is obtained, which is the position after variation, and being based on should
Position after variation obtains the first object position in the region, so as to change the display position of the first label or the second label
It sets.If row or column where the row or column deleted is the region, that is to say, which is deleted by second user, in this feelings
In condition, when receiving the deletion information in the region, terminal can show third label on second target position in the region,
The third label is used to indicate the region and is deleted by the second user.
Wherein, which can be preset by related technical personnel, or use habit according to itself by user
Used to be adjusted, for example, second target position can be the upper left corner area around the region, which can be with
It is identical as first object position, can also be different from first object position, so that user can be directly based upon the second target position
It sets and knows that the region has been deleted, the embodiment of the present invention is also not construed as limiting second target position.
For increasing class and adjustment class, the position in the region may have occurred variation, and terminal can be based on above-mentioned increase class
Or the cooperative information of adjustment class, the position after obtaining the area change, so that the first object position after the area change is obtained,
So as to change the display position of the first label or the second label.
205, terminal receives the second content, the content which edits the destination document by second user.
Above-mentioned first user to destination document when being edited to obtain first content, if the second user also exists simultaneously
The destination document is edited, thereby increases and it is possible to which the second user has input new content in this region, and terminal is also possible to
The second content that terminal where receiving the second user is sent.Terminal may determine that first user and second user whether
The same region in the destination document is edited, that is to say the region and second user for judging that the first user is edited
Whether the region edited is identical, if the first user and second user simultaneously edit the same region,
The content of editor in the region is conflicted, and terminal needs to be implemented following step, is based on the first content and the second content,
Determine the object content in the region.Wherein, which is the area after passing through second user and the first user while editing
Required final content to be shown in domain.
Specifically, the process which receives second content can be same with the process of above-mentioned reception third editor's information
Reason, the embodiment of the present invention do not repeat herein.
It should be noted that the first content and the second content refer respectively to for above-mentioned first content and the second content
First user and second user to some terrain feature edit in the destination document after all the elements in the region.For example,
If the region does not have content before being edited, the first user has input " 123 ", then, should when first user terminates editor
Content in region is " 123 ", then terminal is available arrives first content " 123 ";If in the region has before being edited
Hold, for example have content " 1124 " in the region, which edits the region, carries out to " 1 " in " 1124 "
It deletes, and increases content " 3 ", when first user terminates editor, the content in the region is " 1243 ", then terminal can
To get first content " 1243 ".It that is to say, after the first user is to the terrain feature edit, to the content of server submission
Full content after for editor in the region.The acquisition modes of second content and the acquisition modes of the first content similarly,
The embodiment of the present invention does not repeat herein.
Certainly, if the current second user not input content in this region, that is to say, terminal does not receive second
Third editor's information that terminal where user is sent, then the first content that terminal can directly edit first user is as this
The object content in region.
206, when the first content and second content are to the content of edit in the same region in the destination document, eventually
End display selects prompt, and selection prompt selects a kind of processing mode in content merging and in replicating for prompting, if obtained
Merge to content and instruct, thens follow the steps 207, if getting duplicate instructions, then follow the steps 208.
When the first content and second content are to the content of edit in the same region in the destination document, first is used
The content of the editor of family and second user in this region is conflicted, and terminal can show selection prompt, prompts first to use
Family selection retains the content of the first user and second user editor, or selects to abandon using the first content of this editor as mesh
Mark a part in content, and the first content can be replicated, so as to it is subsequent want and edit the first content again when directly paste
, without updating again.
For example, as shown in figure 9, selection prompt can show that terminal can show that the selection mentions by way of pop-up
Show, selection prompt can be used for informing the first user region by second user editor and prompt from content merging and again
It makes in two kinds of processing modes and selects one kind.
Specifically, terminal can show that content merges button and reproduction button.User, can when terminal shows selection prompt
To carry out selection operation, which can be to merge the touch control operation of button to the content or to the touch-control of the reproduction button
Operation, if user, which merges button to the content, carries out touch control operation, terminal is available to the touching for merging button to the content
The content of control operation triggering merges instruction, and terminal can then execute following step 207, close to first content and the second content
And obtain object content;If user carries out touch control operation to the reproduction button, terminal is available to the reproduction button
The duplicate instructions of touch control operation triggering, terminal can then execute following step 208, replicate the first content.Wherein, in the target
Holding is required final content to be shown in the region after being edited simultaneously by second user and the first user.
It, can be where the posterior user of edit session in the first user and second user in a kind of possible implementation
Terminal executes the step 206, following step 207 or step 208, then the object content in determining region is passed through editor's information
Mode is broadcast to other users for accessing the destination document.Only with the time of second user editor in the embodiment of the present invention
Preceding, the time that the first user edits is illustrated for rear.
207, terminal merges instruction based on the content of first user, closes to the first content and second content
And the object content in the region is obtained, it is based on the object content, executes step 209.
After terminal gets content merging instruction, instruction can be merged based on the content, it can be to first content and second
Content merges, and determines the object content in the region.Wherein, which includes the first content and the second content.
In a kind of possible implementation, which can merge two contents by the way of content splicing, terminal
The first content and second content are spliced, the object content in the region is obtained.It in this way will be in first content and second
Appearance is stitched together as object content, can retain the content of the first user and second user editor, not will cause data and lose
It loses, it is ensured that the accuracy of process of content retrieval.And through the above steps 201 into step 203 according to certain display sample
Formula display area can intuitively understand and edit there are also other users to region.
Specifically may be in embodiment, when terminal splices first content and the second content at one, it can be according to
The time sequencing of the first content and second Edition Contains is spliced the first content and second content, is somebody's turn to do
The object content in region.It that is to say, when splicing to first content and the second content, the first content and the second content
Splicing sequence is also based on the first content and the time sequencing of the second Edition Contains determines.For example, the time of the editor is suitable
The time sequencing that sequence can terminate for editor, or start the time sequencing of editor, herein only to edit the time terminated
It is illustrated for sequence.For example, sequence of the preceding content of time sequencing of editor's end in object content is in preceding, editor
Sequence of the posterior content of the time sequencing of end in object content is rear.It is of course also possible to be provided with editor terminate when
Between sequence of the preceding content of sequence in object content rear, edit the posterior content of time sequencing of end in object content
In sequence preceding.The embodiment of the present invention is not construed as limiting this.
Specifically, above-mentioned splicing can also be realized by different connecting methods, in a kind of possible implementation,
Terminal can be based on newline, splice to the first content and second content, obtain the object content in the region.Herein
Only to edit sequence of the preceding content of time sequencing in object content terminated preceding, and first content editor terminates
Time sequencing is illustrated for rear, then second content is before the newline, and the first content is after the newline.
For example, by the destination document be table for, as shown in Figure 10 and Figure 11, second user in some cell into
Edlin, at the same time, the first user are also edited in the cell, before first user terminates editor, second
It is 123 that user, which edits the second content, and the first content that the first user edits after this is 456, which terminates to compile
When collecting, it is 456 that terminal, which gets first content, then terminal can show selection prompt as shown in Figure 9, if user selects
Content merging is carried out, then terminal can execute the step 207, by newline by first content and the splicing of the second content one
It rises, obtains object content as shown in figure 12, wherein the second content is in the first row, and the second content is in the second row.
Certainly, above-mentioned splicing can also be realized by other connecting methods, for example, being spliced by target character
Deng, for example plus sige, space character etc., the embodiment of the present invention be not construed as limiting this.
In a kind of possible implementation, during which edits the first content, second user is also possible to
Original content in the destination document in the region is deleted, which refers to that first user starts to edit to the region
The content in the region before.When such first user and second user edit the region, one of user is to it
When former substantial all or part has carried out deletion, can not may intuitively it be embodied in final displaying target content,
Thus, when receiving to former substantial deletion information in the region, terminal can also be in the third target position in the region
It sets display and deletes label, deletion label is for indicating that second user has carried out original content to delete behaviour in this region
Make.Wherein, which can also be preset by related technical personnel or be adjusted according to the use habit of user
Whole, for example, annotation frame is shown or the left area in the region or right area etc., the embodiment of the present invention is not construed as limiting this.
It should be noted that above-mentioned steps 206 and step 207 are when the first content and second content are to the target
In document when the content of edit in the same region, the first content and second content are merged, the mesh in the region is obtained
The process of content is marked, it is above-mentioned only with terminal display selection prompt, and terminal is merged in instruction progress based on the content of the first user
Hold and be illustrated for obtaining, in a kind of possible implementation, after step 205, when the first content and this in second
Hold for when the content of edit in the same region, terminal can be directly to the first content and second content in the destination document
It merges, obtains the object content in the region, it, can without operation is selected by users without showing selection prompt
To improve the efficiency and accuracy of content acquisition, the complexity of user's operation is reduced.
208, duplicate instructions of the terminal based on first user replicate the first content, using second content as the area
The object content in domain is based on the object content, executes step 209.
In above-mentioned steps 206, after terminal display selection prompt, user also can choose this processing mode of duplication, eventually
It holds available to duplicate instructions, then can execute the step 208, be based on the duplicate instructions, replicate the first content, and user
Selection replicates the first content, rather than as a part in object content, then terminal can be by second user editor
Object content of second content as the region.
For example, as shown in Figure 10 and Figure 11, second user and the first user are at the same time so that the destination document is table as an example
One cell to be edited, the second content of second user editor is 123, and the first content that the first user edits is 456,
And first user edits the time for terminating the first content after second user editor terminates the time of the second content, then
Terminal can show selection prompt as shown in Figure 9, if user has selected carry out content merging, terminal can execute the step
Rapid 208, it replicates first content " 456 ", the second content " 123 " is used as object content, as shown in figure 13, terminal can execute down
Step 209 is stated, the object content " 123 " shown in the cell.
Further, which can be reproduced in clipbook.Terminal can be prompted with displaying duplication, the duplication
Prompt successfully replicates first content for prompting.For example, the content of duplication prompt can be " to be copied to and cliped and pasted
Plate ".
In a kind of possible implementation, before the first user edits the region, second user is also possible to
Content has been edited in this region, and correspondingly, before above-mentioned steps 204, which can also obtain region in destination document
In original content, original content refer to first user to the region start editor before the region content.In turn, eventually
End can be then compared after getting the second content with original content, to determine the in first user's editing process
Whether two users edit new content in this region.Thus, may include in this implementation, after step 205 with
Lower three kinds of situations.
Situation one: when second content and original content difference, terminal can execute step 206, and display selection mentions
Show.If getting content merges instruction, step 207 can be executed, then the process is are as follows: when second content is original with this
When content difference, executes and deserve the first content and second content as the content of edit to the same region in the destination document
When, the step of merging to the first content and second content, obtain the object content in the region.
In the situation one, the second content is different from original content, then explanation edits the region in the first user
During, second user also edits the content in the region, has obtained new content, that is to say the second content, then
First user is conflicted with the content of second user editor, thus when terminal gets content and merges instruction, it can be with
Step 207 is executed, object content is obtained.
Situation two: when second content is identical as the original content, terminal can be using the first content as the region
Object content.In the situation two, the second content is identical with original content, then explanation compiles the region in the first user
During volume, second user is not modified original content in the region, thus the first user and second user pair
The edit operation in the region does not clash, thus the first content that can directly edit first user of terminal as
The object content in the region.
Situation three: when second content is identical as original content, and the first content and second content are to the mesh
When marking the content of edit in the same region in document, terminal execution merges the first content and second content, obtains
The step of object content in the region.In the situation three, the region in the destination document is compiled in first user
During volume, which may carry out multiple edit operation to the region, the second content finally determined and the area
Original content in domain is identical, that is to say, the content that second user wants in the region remains original content, in this way in order to protect
The content of edit for demonstrate,proving multiple users is retained, then terminal can be to original content (that is to say the second content) and first content
It merges, obtains object content.Specifically, merging process shown in the merging process and above-mentioned steps 207 similarly, the present invention
Embodiment seldom repeats herein.
Certainly, there are also a kind of possible situations, in the mistake that first user edits the region in the destination document
Cheng Zhong, second user may not be modified original content in the region, then terminal can then execute above situation two
Or the step in situation three, covering is carried out to original content (the second content) or in original content (the second content) and first
Appearance merges, and the embodiment of the present invention is not construed as limiting this.
209, terminal displaying target content in this region.
After terminal gets the object content in the region in step 207 or step 208, the step 209 can be executed,
The object content is shown in the interface of first user.Certainly, which can also pass through third editor information for the object content
It is sent to server, after which receives third editor's information, terminal where the first user can be broadcasted to, thus
Terminal where first user can also be updated based on content of the third editor information to destination document, can also be in Qi Jie
Displaying target content in the region shown in face.
It, can be based on use when the embodiment of the present invention simultaneously edits the same area of same document by multiple users
The content at family merges instruction, and the content edited to multiple users merges, obtains the final content in the region, rather than be based on
Edit session directly covers content, and the content that multiple user edits can retain, because data are lost without caused by
It loses, the accuracy rate of the content got is high.
All the above alternatives can form alternative embodiment of the invention using any combination, herein no longer
It repeats one by one.
The detailed process of the content acquisition method is illustrated below by a specific example, Figure 14 is of the invention real
A kind of flow chart of content acquisition method of example offer is applied, referring to Figure 14, using document as table, region is that some cell is
Example, terminal can first record the value D1 of current input frame and the coordinate of input frame, which is referring to the first user just
In the region edited, the value D1 of current input frame is original content.
First user starts to input in the input frame, and during first user input, terminal can also be sentenced
The collaboration ranks operation of the disconnected selected cell lattice coordinate that whether has an impact, that is to say, terminal may determine that second user whether have into
Increase or delete the operation of the row or column before the cell shown in row above-mentioned steps 204, or adjust the row before the cell or
The row height of column or the operation of col width, or the operation of cell place row or column is deleted, these operations may will affect the list
The coordinate of first lattice, certainly, the operation for row or column where deleting the cell, terminal can also show third label, the portion
Point content may refer to content shown in above-mentioned steps 204, and the embodiment of the present invention does not repeat herein.These are influenced should
The operation of the coordinate of cell, terminal can update the coordinate of selected cell lattice.
The first user input complete when, terminal may determine that whether the first user has input data, for example, can should
The numerical nomenclature of first user input is InputValue1, which is above-mentioned first content.Terminal can be sentenced
Whether the InputValue1 and D1 that breaks is consistent, if unanimously, the non-input data of the first user, thus directly exit input
State, if it is inconsistent, the first user of explanation has input data, terminal obtains selected cell lattice according to the cell coordinate
Interior data D2, the D2 are above-mentioned second content, and terminal may determine that whether D1 and D2 is identical, if identical, illustrate
Two users do not input new content, then can directly exit input state, and can determine that the content in the selected cell lattice is
D1.And if D1 and D2 is different, illustrate while the first user is to input content in selected cell lattice, second user also exists
Content is had input in the selected cell lattice, terminal can prompt data variant, and it prompts user that can click and only replicates text, or
Point Merge Cells, which, which refers to, merges the cell corresponding two contents D1 and D2, namely corresponds to above-mentioned
Step 206, if user clicks Merge Cells, terminal can splice the content InputValue1 of input after D2,
Updating D1 data is the value after splicing, be that is to say corresponding to above-mentioned steps 207, and if user clicks duplication text, eventually
End can replicate InputValue1 data, and exit input state, and the content in the selected cell lattice can then be updated to D2,
It that is to say and correspond to above-mentioned steps 208.
Figure 15 is a kind of structural schematic diagram of content acquisition unit provided in an embodiment of the present invention, referring to Figure 15, the device
Include:
Module 1501 is obtained, for obtaining in the first user is edited first according to the edit instruction to destination document
Hold;
Receiving module 1502, for receiving the second content, which edits the destination document by second user
Content, the second user be first user except user;
Merging module 1503, for being to the same region in the destination document when the first content and second content
When content of edit, the first content and second content are merged, the object content in the region is obtained.
In a kind of possible implementation, the merging module 1503 is for spelling the first content and second content
It connects, obtains the object content in the region.
In a kind of possible implementation, which is used to be based on newline, to the first content and this
Two contents are spliced, and the object content in the region is obtained.
In a kind of possible implementation, which is used for according to the first content and second Edition Contains
Time sequencing, the first content and second content are spliced, the object content in the region is obtained.
In a kind of possible implementation, the device further include:
First display module, for being to the same region in the destination document when the first content and second content
When content of edit, display selection prompt, selection prompt is used to prompt to merge in content and selects a kind of processing mode in replicating;
The merging module 1503 merges instruction for the content based on first user, execute this to the first content and
The step of second content merges, obtains the object content in the region;
Correspondingly, the device further include:
Replication module, for being the editor to the same region in the destination document when the first content and second content
When content, based on the duplicate instructions of first user, the first content is replicated, using second content as in the target in the region
Hold.
In a kind of possible implementation, which is also used to receive the editing mode of the second user;
The acquisition module 1501, is also used to the editing mode according to the second user, obtains the second user to the target
The Show Styles in the region that document is edited;
The device further include:
Second display module, for showing the region according to the Show Styles.
In a kind of possible implementation, which is also used to when the editing mode of the second user be to choose
When state, first label in the region is obtained, which is used to indicate the second user and is choosing the region;Or, working as
When the editing mode of the second user is input state, obtain second label in the region, second label be used to indicate this
Two users edit the region;
Correspondingly, which shows the area on the first object position in the region for showing the region
First label or second label in domain.
In a kind of possible implementation, which is also used to when the quantity of the second user is multiple,
According to the time sequencing that the second user edits the region, the first label or second of the multiple second users of Overlapping display
Label.
In a kind of possible implementation, the device further include:
Third display module includes the region in the indicia framing for showing indicia framing, which is used to indicate the area
Domain is in the state edited by second user;
Correspondingly, the device further include:
4th display module, for showing multiple indicia framings when the quantity of the second user is multiple, difference second is used
The Show Styles of the corresponding indicia framing in family is different.
In a kind of possible implementation, which is also used to when the editing mode of first user be input
When state, first label or second label are hidden.
In a kind of possible implementation, which is also used to hover when cursor in the first object position
When, show hiding first label or second label.
In a kind of possible implementation, the device further include:
5th display module, for when receiving the deletion information in the region, on second target position in the region
Show that third label, the third label are used to indicate the region and are deleted by the second user.
In a kind of possible implementation, the device further include:
6th display module, for when receiving to former substantial deletion information in the region, in the region
Shown on third target position deletion label, the deletion label for indicate second user in this region to original content into
Delete operation is gone.
In a kind of possible implementation, which is also used to obtain the original in the destination document in the region
There is content, which refers to that first user starts the content in the region before editor to the region;
Correspondingly, which is also used to when second content and original content difference, and execution should be somebody's turn to do
First content and second content be in the destination document when content of edit in the same region, to the first content and this
The step of two contents merge, and obtain the object content in the region.
In a kind of possible implementation, which is also used to when second content and original content phase
Together, and the first content and second content are in the destination document when content of edit in the same region, by this in first
Hold the object content as the region.
In a kind of possible implementation, which is also used to when second content and original content phase
Together, and the first content and second content be to when the content of edit in the same region, executed in the destination document to this
The step of one content and second content merge, obtain the object content in the region.
Device provided in an embodiment of the present invention simultaneously edits the same area of same document by multiple users
When, it can be merged based on the content of user and be instructed, content edit to multiple users merge, and obtain the region finally interior
Hold, rather than directly content covered based on edit session, the content that multiple user edits can retain, because without
It will cause loss of data, the accuracy rate of the content got is high.
It should be understood that content acquisition unit provided by the above embodiment is when obtaining content, only with above-mentioned each function
The division progress of module can according to need and for example, in practical application by above-mentioned function distribution by different function moulds
Block is completed, i.e., the internal structure of terminal is divided into different functional modules, to complete all or part of function described above
Energy.In addition, content acquisition unit provided by the above embodiment and content acquisition method embodiment belong to same design, it is specific real
Existing process is detailed in embodiment of the method, and which is not described herein again.
Figure 16 is a kind of structural block diagram of terminal provided in an embodiment of the present invention.The terminal 1600 may is that smart phone,
Tablet computer, MP3 player (Moving Picture Experts Group Audio Layer III, dynamic image expert
Compression standard audio level 3), (Moving Picture Experts Group Audio Layer IV, dynamic image are special by MP4
Family's compression standard audio level 4) player, laptop or desktop computer.Terminal 1600 be also possible to referred to as user equipment,
Other titles such as portable terminal, laptop terminal, terminal console.
In general, terminal 1600 includes: processor 1601 and memory 1602.
Processor 1601 may include one or more processing cores, such as 4 core processors, 8 core processors etc..Place
Reason device 1601 can use DSP (Digital Signal Processing, Digital Signal Processing), FPGA (Field-
Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array, may be programmed
Logic array) at least one of example, in hardware realize.Processor 1601 also may include primary processor and coprocessor, master
Processor is the processor for being handled data in the awake state, also referred to as CPU (Central Processing
Unit, central processing unit);Coprocessor is the low power processor for being handled data in the standby state.?
In some embodiments, processor 1601 can be integrated with GPU (Graphics Processing Unit, image processor),
GPU is used to be responsible for the rendering and drafting of content to be shown needed for display screen.In some embodiments, processor 1601 can also be wrapped
AI (Artificial Intelligence, artificial intelligence) processor is included, the AI processor is for handling related machine learning
Calculating operation.
Memory 1602 may include one or more computer readable storage mediums, which can
To be non-transient.Memory 1602 may also include high-speed random access memory and nonvolatile memory, such as one
Or multiple disk storage equipments, flash memory device.In some embodiments, the non-transient computer in memory 1602 can
Storage medium is read for storing at least one instruction, at least one instruction for performed by processor 1601 to realize this hair
The content acquisition method that bright middle embodiment of the method provides, the content acquisition method may include: according to the editor to destination document
Instruction obtains the first content that the first user is edited;The second content is received, which is second user to target text
The content that shelves are edited, the second user are the user except first user;When the first content and second content are pair
In the destination document when content of edit in the same region, the first content and second content are merged, the area is obtained
The object content in domain.
In some embodiments, terminal 1600 is also optional includes: peripheral device interface 1603 and at least one periphery are set
It is standby.It can be connected by bus or signal wire between processor 1601, memory 1602 and peripheral device interface 1603.It is each outer
Peripheral equipment can be connected by bus, signal wire or circuit board with peripheral device interface 1603.Specifically, peripheral equipment includes:
At least one of input equipment 1604, display screen 1605 and power supply 1606.
Peripheral device interface 1603 can be used for I/O (Input/Output, input/output) is relevant outside at least one
Peripheral equipment is connected to processor 1601 and memory 1602.In some embodiments, processor 1601, memory 1602 and periphery
Equipment interface 1603 is integrated on same chip or circuit board;In some other embodiments, processor 1601, memory
1602 and peripheral device interface 1603 in any one or two can be realized on individual chip or circuit board, this implementation
Example is not limited this.
Input equipment 1604 may be used to provide input function, which can pass through peripheral device interface
1603 connect with processor 1601 or memory 1602, for example, the input equipment 1604 can for input board, keyboard, mouse or
Touch screen etc..In embodiments of the present invention, it can be based on the input equipment 1604, provide editor's function to destination document for user
Can, to obtain the first content that the first user is edited.The processor 1601 is available to obtain the first content, and is based on
The second content received executes above content and merges step, obtains object content.
Display screen 1605 is for showing UI (User Interface, user interface).The UI may include figure, text,
Icon, video and its their any combination.When display screen 1605 is touch display screen, display screen 1605 also there is acquisition to exist
The ability of the touch signal on the surface or surface of display screen 1605, the touch display screen can be used as above-mentioned input equipment
1604.The touch signal can be used as control signal and be input to processor 1601 and be handled.At this point, display screen 1605 can be with
For providing virtual push button and/or dummy keyboard, also referred to as soft button and/or soft keyboard.In some embodiments, display screen 1605
It can be one, the front panel of terminal 1600 is set;In further embodiments, display screen 1605 can be at least two, point
The different surfaces of terminal 1600 are not set or in foldover design;In still other embodiments, display screen 1605 can be flexibility
Display screen is arranged on the curved surface of terminal 1600 or on fold plane.Even, display screen 1605 can also be arranged to non-rectangle
Irregular figure, namely abnormity screen.Display screen 1605 can use LCD (Liquid Crystal Display, liquid crystal display
Screen), the materials preparation such as OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode).Implement in the present invention
In example, which can be obtained from the processor 1601 or at the memory 1602 by peripheral device interface 1603
The Show Styles in the region in destination document is obtained, and the region is shown, is acquiring the target in the region
The object content can also be shown when content.
Power supply 1606 is used to be powered for the various components in terminal 1600.Power supply 1606 can be alternating current, direct current
Electricity, disposable battery or rechargeable battery.When power supply 1606 includes rechargeable battery, which can support wired
Charging or wireless charging.The rechargeable battery can be also used for supporting fast charge technology.
It, can be with it will be understood by those skilled in the art that the restriction of the not structure paired terminal 1600 of structure shown in Figure 16
Including than illustrating more or fewer components, perhaps combining certain components or being arranged using different components.
In the exemplary embodiment, a kind of computer readable storage medium is additionally provided, the memory for example including instruction,
Above-metioned instruction can be executed by processor to complete the content acquisition method in above-described embodiment.For example, the computer-readable storage
Medium can be read-only memory (Read-Only Memory, ROM), random access memory (Random Access
Memory, RAM), CD-ROM (Compact Disc Read-Only Memory, CD-ROM), tape, floppy disk and light data
Store equipment etc..
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware
It completes, relevant hardware can also be instructed to complete by program, which can store in a kind of computer-readable storage
In medium, storage medium mentioned above can be read-only memory, disk or CD etc..
It above are only presently preferred embodiments of the present invention, be not intended to limit the invention, it is all in the spirit and principles in the present invention
Within, any modification, equivalent replacement, improvement and so on should all be included in the protection scope of the present invention.
Claims (18)
1. a kind of content acquisition method, which is characterized in that the described method includes:
According to the edit instruction to destination document, the first content that the first user is edited is obtained;
The second content is received, the content that second content edits the destination document by second user, described second uses
Family is the user except first user;
When the first content and second content are to the content of edit in the same region in the destination document, to institute
It states first content and second content merges, obtain the object content in the region.
2. the method according to claim 1, wherein described carry out the first content and second content
Merge, obtain the object content in the region, comprising:
The first content and second content are spliced, the object content in the region is obtained.
3. according to the method described in claim 2, it is characterized in that, described carry out the first content and second content
Splicing, obtains the object content in the region, comprising:
Based on newline, the first content and second content are spliced, the object content in the region is obtained.
4. according to the method described in claim 2, it is characterized in that, described carry out the first content and second content
Splicing, obtains the object content in the region, comprising:
According to the time sequencing of the first content and second Edition Contains, to the first content and second content
Spliced, obtains the object content in the region.
5. the method according to claim 1, wherein described carry out the first content and second content
Merge, before obtaining the object content in the region, the method also includes:
When the first content and second content are to the content of edit in the same region in the destination document, display
Selection prompt, the selection prompt are used to prompt to merge in content and select a kind of processing mode in replicating;
Correspondingly, described that the first content and second content are merged, the object content in the region is obtained, is wrapped
It includes:
Content based on first user merges instruction, and execution merges the first content and second content,
The step of obtaining the object content in the region;
Correspondingly, after the second content of the reception, the method also includes:
When the first content and second content are to the content of edit in the same region in the destination document, it is based on
The duplicate instructions of first user, replicate the first content, using second content as the object content in the region.
6. the method according to claim 1, wherein the method also includes:
Receive the editing mode of the second user;
According to the editing mode of the second user, the aobvious of the region that the second user edits the destination document is obtained
Sample formula;
According to the Show Styles, the region is shown.
7. according to the method described in claim 6, it is characterized in that, the editing mode according to the second user, obtains
The Show Styles in the region that the second user edits the destination document, comprising:
When the editing mode of the second user is selected state, first label in the region, first label are obtained
It is used to indicate the second user and is choosing the region;Or, when the editing mode of the second user is input state,
Second label in the region is obtained, second label is used to indicate the second user and compiles to the region
Volume;
Correspondingly, described according to the Show Styles, show the region, comprising:
It shows the region, first label or described in the region is shown on the first object position in the region
Two labels.
8. the method according to the description of claim 7 is characterized in that the display region, the first mesh in the region
First label or second label in the region are shown in cursor position, comprising:
When the quantity of the second user is multiple, the time edited according to the second user to the region is suitable
Sequence, the first label or the second label of the multiple second users of Overlapping display.
9. the method according to the description of claim 7 is characterized in that the method also includes:
When the editing mode of first user is input state, first label or second label are hidden.
10. according to the method described in claim 9, it is characterized in that, the method also includes:
When cursor hovering when the first object position, show hiding first label or second label.
11. the method according to claim 1, wherein the method also includes:
When receiving the deletion information in the region, third label is shown on second target position in the region, it is described
Third label is used to indicate the region and is deleted by the second user.
12. the method according to claim 1, wherein the method also includes:
When receiving to former substantial deletion information in the region, shown on the third target position in the region
Label is deleted, the deletion label is for indicating that second user has carried out original content to delete behaviour in this region
Make.
13. the method according to claim 1, wherein edit instruction of the basis to destination document, the is obtained
Before the first content that one user is edited, the method also includes:
Original content in region described in the destination document is obtained, original content refers to first user to described
Region starts to edit the content in foregoing description region;
Correspondingly, after the second content of the reception, the method also includes:
When second content and original content difference, execution is described to be with second content when the first content
To when the content of edit in the same region, being merged to the first content and second content in the destination document,
The step of obtaining the object content in the region.
14. according to the method for claim 13, which is characterized in that the method also includes:
When second content is identical as original content, and the first content and second content are to the target
In document when the content of edit in the same region, using the first content as the object content in the region.
15. according to the method for claim 13, which is characterized in that the method also includes:
When second content is identical as original content, and the first content and second content are to the target
In document when the content of edit in the same region, execution merges the first content and second content, obtains institute
The step of stating the object content in region.
16. a kind of content acquisition unit, which is characterized in that described device includes:
Module is obtained, for obtaining the first content that the first user is edited according to the edit instruction to destination document;
Receiving module, for receiving the second content, in second content edits the destination document by second user
Hold, the second user is the user except first user;
Merging module, for being the volume to the same region in the destination document when the first content and second content
When collecting content, the first content and second content are merged, the object content in the region is obtained.
17. a kind of terminal, which is characterized in that the terminal includes processor and memory, is stored at least in the memory
One instruction, described instruction are loaded by the processor and are executed to realize such as any one of claim 1 to claim 15 institute
Operation performed by the content acquisition method stated.
18. a kind of computer readable storage medium, which is characterized in that be stored at least one in the computer readable storage medium
Item instruction, described instruction are loaded by processor and are executed as described in any item interior to claim 15 such as claim 1 to realize
Hold operation performed by acquisition methods.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811637104.8A CN109710909B (en) | 2018-12-29 | 2018-12-29 | Content acquisition method, device, terminal and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811637104.8A CN109710909B (en) | 2018-12-29 | 2018-12-29 | Content acquisition method, device, terminal and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109710909A true CN109710909A (en) | 2019-05-03 |
CN109710909B CN109710909B (en) | 2020-07-07 |
Family
ID=66259552
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811637104.8A Active CN109710909B (en) | 2018-12-29 | 2018-12-29 | Content acquisition method, device, terminal and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109710909B (en) |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110110301A (en) * | 2019-05-09 | 2019-08-09 | 成都终身成长科技有限公司 | File editing method, device, system, client, server and storage medium |
CN110716901A (en) * | 2019-09-25 | 2020-01-21 | 苏宁云计算有限公司 | Performance test data processing method and device, computer equipment and storage medium |
CN110888853A (en) * | 2019-11-26 | 2020-03-17 | 廊坊新奥燃气有限公司 | Data management system and method |
CN111723560A (en) * | 2020-07-15 | 2020-09-29 | 金蝶软件(中国)有限公司 | Dynamic adjustment method, system and related equipment for table parallel display area |
CN111831944A (en) * | 2020-07-09 | 2020-10-27 | 腾讯科技(深圳)有限公司 | Multimedia processing method, device, client, server and storage medium |
CN111859879A (en) * | 2020-07-31 | 2020-10-30 | 北京字节跳动网络技术有限公司 | Data display method and device based on virtual table and electronic equipment |
CN111930367A (en) * | 2019-05-13 | 2020-11-13 | 阿里巴巴集团控股有限公司 | Data processing method, device and equipment |
WO2020238618A1 (en) * | 2019-05-31 | 2020-12-03 | 北京字节跳动网络技术有限公司 | Interactive information notification method, apparatus and device, and computer readable storage medium |
CN112418791A (en) * | 2020-11-17 | 2021-02-26 | 北京字跳网络技术有限公司 | Document display method and device and electronic equipment |
CN114818625A (en) * | 2022-06-29 | 2022-07-29 | 天津联想协同科技有限公司 | Method and device for processing document area |
WO2023143070A1 (en) * | 2022-01-27 | 2023-08-03 | 北京飞书科技有限公司 | Information presentation method and apparatus for collaborative editing, and electronic device and readable medium |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1489075A (en) * | 2002-10-12 | 2004-04-14 | 鸿富锦精密工业(深圳)有限公司 | Multi-point coordinated operation system and method |
CN1971553A (en) * | 2005-11-22 | 2007-05-30 | 国际商业机器公司 | Method and device for collaborative editing of a document |
CN102982214A (en) * | 2012-12-06 | 2013-03-20 | 北京数码大方科技股份有限公司 | Collaborative establishment method and device of CAD (Computer Aided Design) model |
CN103914439A (en) * | 2013-01-04 | 2014-07-09 | ***通信集团公司 | Method, device and system for online document edition |
US9280529B2 (en) * | 2010-04-12 | 2016-03-08 | Google Inc. | Collaborative cursors in a hosted word processor |
CN105531694A (en) * | 2013-06-15 | 2016-04-27 | 微软技术许可有限责任公司 | Showing presence of multiple authors in a spreadsheet |
CN106569797A (en) * | 2016-10-11 | 2017-04-19 | 东软集团股份有限公司 | Method, device and system for collaboratively drawing process by multiple persons |
CN107943777A (en) * | 2017-12-14 | 2018-04-20 | 北京久蓉科技有限公司 | A kind of collaborative editing, cooperative processing method, device, equipment and storage medium |
CN108009243A (en) * | 2017-11-30 | 2018-05-08 | 云南电网有限责任公司 | A kind of multi-user's synchro edit processing system and processing method being directed to document |
CN108549623A (en) * | 2018-04-12 | 2018-09-18 | 北京三快在线科技有限公司 | Collaborative document editing control method, device, electronic equipment and storage medium |
-
2018
- 2018-12-29 CN CN201811637104.8A patent/CN109710909B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1489075A (en) * | 2002-10-12 | 2004-04-14 | 鸿富锦精密工业(深圳)有限公司 | Multi-point coordinated operation system and method |
CN1971553A (en) * | 2005-11-22 | 2007-05-30 | 国际商业机器公司 | Method and device for collaborative editing of a document |
US9280529B2 (en) * | 2010-04-12 | 2016-03-08 | Google Inc. | Collaborative cursors in a hosted word processor |
CN102982214A (en) * | 2012-12-06 | 2013-03-20 | 北京数码大方科技股份有限公司 | Collaborative establishment method and device of CAD (Computer Aided Design) model |
CN103914439A (en) * | 2013-01-04 | 2014-07-09 | ***通信集团公司 | Method, device and system for online document edition |
CN105531694A (en) * | 2013-06-15 | 2016-04-27 | 微软技术许可有限责任公司 | Showing presence of multiple authors in a spreadsheet |
CN106569797A (en) * | 2016-10-11 | 2017-04-19 | 东软集团股份有限公司 | Method, device and system for collaboratively drawing process by multiple persons |
CN108009243A (en) * | 2017-11-30 | 2018-05-08 | 云南电网有限责任公司 | A kind of multi-user's synchro edit processing system and processing method being directed to document |
CN107943777A (en) * | 2017-12-14 | 2018-04-20 | 北京久蓉科技有限公司 | A kind of collaborative editing, cooperative processing method, device, equipment and storage medium |
CN108549623A (en) * | 2018-04-12 | 2018-09-18 | 北京三快在线科技有限公司 | Collaborative document editing control method, device, electronic equipment and storage medium |
Cited By (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110110301A (en) * | 2019-05-09 | 2019-08-09 | 成都终身成长科技有限公司 | File editing method, device, system, client, server and storage medium |
CN110110301B (en) * | 2019-05-09 | 2023-08-01 | 成都终身成长科技有限公司 | File editing method, device, system, client, server and storage medium |
CN111930367B (en) * | 2019-05-13 | 2024-04-16 | 阿里巴巴集团控股有限公司 | Data processing method, device and equipment |
CN111930367A (en) * | 2019-05-13 | 2020-11-13 | 阿里巴巴集团控股有限公司 | Data processing method, device and equipment |
US11455463B2 (en) | 2019-05-31 | 2022-09-27 | Beijing Bytedance Network Technology Co., Ltd. | Facilitating user interaction in online spreadsheets |
WO2020238618A1 (en) * | 2019-05-31 | 2020-12-03 | 北京字节跳动网络技术有限公司 | Interactive information notification method, apparatus and device, and computer readable storage medium |
CN110716901A (en) * | 2019-09-25 | 2020-01-21 | 苏宁云计算有限公司 | Performance test data processing method and device, computer equipment and storage medium |
CN110888853A (en) * | 2019-11-26 | 2020-03-17 | 廊坊新奥燃气有限公司 | Data management system and method |
CN111831944A (en) * | 2020-07-09 | 2020-10-27 | 腾讯科技(深圳)有限公司 | Multimedia processing method, device, client, server and storage medium |
CN111831944B (en) * | 2020-07-09 | 2021-09-28 | 腾讯科技(深圳)有限公司 | Multimedia processing method, device, client, server and storage medium |
CN111723560A (en) * | 2020-07-15 | 2020-09-29 | 金蝶软件(中国)有限公司 | Dynamic adjustment method, system and related equipment for table parallel display area |
CN111723560B (en) * | 2020-07-15 | 2024-04-19 | 金蝶软件(中国)有限公司 | Dynamic adjustment method, system and related equipment for parallel display area of table |
CN111859879A (en) * | 2020-07-31 | 2020-10-30 | 北京字节跳动网络技术有限公司 | Data display method and device based on virtual table and electronic equipment |
CN111859879B (en) * | 2020-07-31 | 2024-01-30 | 抖音视界有限公司 | Data display method and device based on virtual form and electronic equipment |
CN112418791A (en) * | 2020-11-17 | 2021-02-26 | 北京字跳网络技术有限公司 | Document display method and device and electronic equipment |
WO2023143070A1 (en) * | 2022-01-27 | 2023-08-03 | 北京飞书科技有限公司 | Information presentation method and apparatus for collaborative editing, and electronic device and readable medium |
CN114818625A (en) * | 2022-06-29 | 2022-07-29 | 天津联想协同科技有限公司 | Method and device for processing document area |
Also Published As
Publication number | Publication date |
---|---|
CN109710909B (en) | 2020-07-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109710909A (en) | Content acquisition method, device, terminal and storage medium | |
CN106776514B (en) | Annotating method and device | |
US20180284959A1 (en) | Collection and control of user activity set data and activity set user interface | |
CN103106266B (en) | Folder management based on Android system and display methods and mobile terminal | |
US20190050378A1 (en) | Serializable and serialized interaction representations | |
CN108804002B (en) | Text annotation method and device for interactive intelligent equipment | |
CN104216600B (en) | A kind of method and intelligent touch screen terminal equipment of the function that application program is provided | |
US11853730B2 (en) | Mini program data binding method and apparatus, device, and storage medium | |
CN103064584A (en) | Method and device for pasting | |
TW201600980A (en) | Manage event on calendar with timeline | |
CN109597900A (en) | The management of local and remote media item | |
WO2019032194A1 (en) | Creation, management, and transfer of interaction representation sets | |
JPH10293760A (en) | Object management method | |
CN105378728A (en) | Apparatus and method for representing and manipulating metadata | |
CN109324857A (en) | A kind of user guides implementation method, device and storage medium | |
CN112905094B (en) | Object operation processing method and device and computer storage medium | |
CN111371953A (en) | Tag data processing method, device and storage medium | |
US20240126975A1 (en) | Method, apparatus, terminal and storage medium for data processing for an application | |
CN110488976A (en) | Function management method, apparatus, equipment and storage medium | |
CN111158573A (en) | Vehicle-mounted machine interaction method, system, medium and equipment based on picture framework | |
CN107544723A (en) | A kind of exchange method of application program, apparatus and system | |
CN112434494A (en) | Text editing method, device, terminal and storage medium | |
CN103176979A (en) | Method, device and system for copying layout files online | |
WO2015005599A1 (en) | Method and apparatus for operating message function in connection with note function | |
CN110347327A (en) | Entry edit methods and touch control terminal |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |