CN113011140A - View display method and device and electronic equipment - Google Patents

View display method and device and electronic equipment Download PDF

Info

Publication number
CN113011140A
CN113011140A CN202110183963.XA CN202110183963A CN113011140A CN 113011140 A CN113011140 A CN 113011140A CN 202110183963 A CN202110183963 A CN 202110183963A CN 113011140 A CN113011140 A CN 113011140A
Authority
CN
China
Prior art keywords
view
file
content
switching
preview
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110183963.XA
Other languages
Chinese (zh)
Inventor
曾清
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Zitiao Network Technology Co Ltd
Original Assignee
Beijing Zitiao Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Zitiao Network Technology Co Ltd filed Critical Beijing Zitiao Network Technology Co Ltd
Priority to CN202110183963.XA priority Critical patent/CN113011140A/en
Publication of CN113011140A publication Critical patent/CN113011140A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/106Display of layout of documents; Previewing

Abstract

The embodiment of the disclosure discloses a view display method and device and electronic equipment. One embodiment of the method comprises: in response to receiving a file to be inserted into a document, determining a first view for displaying the file; displaying the file in a first view in the document; and responding to the switching operation of switching the first view to the second view, and switching the file to be displayed by the second view. The implementation mode can more flexibly show the file inserted by the user in the document.

Description

View display method and device and electronic equipment
Technical Field
The embodiment of the disclosure relates to the technical field of computers, in particular to a view display method and device and electronic equipment.
Background
In daily work, documents are one of important means for recording information. Typically, a user may edit the document content. For example, the user may edit text size, line spacing, margin, and the like.
In the related art, since a file cannot be presented in a document through a variety of views, the flexibility of presenting the file in the document is low.
Disclosure of Invention
This disclosure is provided to introduce concepts in a simplified form that are further described below in the detailed description. This disclosure is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
The embodiment of the disclosure provides a view display method and device and electronic equipment, which can more flexibly display files inserted by a user in a document.
In a first aspect, an embodiment of the present disclosure provides a view displaying method, including: in response to receiving a file to be inserted into a document, determining a first view for displaying the file; displaying the file in a first view in the document; and responding to the switching operation of switching the first view into the second view, and switching the file to be displayed in the second view.
In a second aspect, embodiments of the present disclosure provide a view display apparatus, the apparatus comprising: the device comprises a determining unit, a display unit and a display unit, wherein the determining unit is used for responding to the received file to be inserted into the document and determining a first view for displaying the file; the file display unit is used for displaying the file in a first view in the document; and the switching unit is used for responding to the switching operation of switching the first view into the second view and switching the file to be displayed in the second view.
In a third aspect, an embodiment of the present disclosure provides an electronic device, including: one or more processors; a storage device, configured to store one or more programs, which when executed by the one or more processors, cause the one or more processors to implement the view presentation method according to the first aspect.
In a fourth aspect, an embodiment of the present disclosure provides a computer-readable medium, on which a computer program is stored, which when executed by a processor, implements the steps of the view presentation method according to the first aspect.
According to the view display method and device and the electronic equipment, the first view for displaying the file can be determined in response to the fact that the file to be inserted into the document is received. Further, the file may be presented in a first view in the document. In response to the switching operation of switching the first view to the second view, the file may be switched to be presented in the second view. On one hand, according to the switching operation executed by the user, the view showing the file in the document is switched. On the other hand, the inserted file is presented in the document with a different view. Thus, the file inserted by the user can be more flexibly displayed in the document.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale.
Fig. 1 is a flow diagram of some embodiments of a view presentation method according to the present disclosure;
FIG. 2 is a flow diagram of some embodiments of a view presentation method according to the present disclosure;
3A, 3B, 3C are schematic diagrams showing a line embedding view, a card view, a preview view, respectively, in some embodiments of a view showing method according to the present disclosure;
fig. 4A, 4B are flow diagrams of some embodiments of a view presentation method according to the present disclosure;
fig. 5A, 5B are flow diagrams of some embodiments of a view presentation method according to the present disclosure;
FIG. 6 is a schematic structural view of some embodiments of a view display apparatus according to the present disclosure;
FIG. 7 is an exemplary system architecture to which the view illustration methods of some embodiments of the present disclosure may be applied;
fig. 8 is a schematic diagram of a basic structure of an electronic device provided in accordance with some embodiments of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
Referring to fig. 1, a flow diagram of some embodiments of a view presentation method according to the present disclosure is shown. As shown in fig. 1, the view presentation method includes the following steps:
step 101, in response to receiving a file to be inserted into a document, determining a first view for displaying the file.
In the present embodiment, the execution subject of the view presentation method (e.g., terminal devices 701, 702 shown in fig. 7) may receive a file to be inserted into a document.
The documents may be various types of documents. For example, the document may be an online document that can be operated in cooperation.
It should be noted that the file to be inserted into the document may be a file specified by the user of the execution subject, or may be a file specified by the user of another device forwarded by a server (e.g., the server 704 shown in fig. 7).
In this embodiment, in response to receiving a file to be inserted into a document, the execution body may determine a first view for presenting the file.
In some scenarios, the execution body may present view selection information. Here, the view selection information may be information for a user to select a view from a preset plurality of views. Further, the execution subject may use a view selected by a user as a first view for displaying the file.
And 102, displaying the file in a first view in the document.
In this embodiment, after determining the first view, the execution body may present the file in the document in the first view.
Step 103, in response to the switching operation of switching the first view into the second view, switching the file to be displayed in the second view.
In this embodiment, the user may switch the file to be displayed in the second view by performing a switching operation.
In this embodiment, in response to the switching operation, the execution main body may switch the file to be displayed in a second view.
In this embodiment, when a user inserts a file in a document, the file may be presented using a first view. If the user performs the switching operation, the file can be switched to be displayed in a second view. On one hand, according to the switching operation executed by the user, the view showing the file in the document is switched. On the other hand, the inserted file is presented in the document with a different view. Thus, the file inserted by the user can be more flexibly displayed in the document.
In some embodiments, the execution subject may determine a first view for displaying the file according to the flow shown in fig. 2. The flow includes step 201.
Step 201, based on the document type of the file, a first view is determined.
The document types may include a first document type and a second document type. The first document type is a document type in which the contents of a file can be viewed in a document. Files of the first document type may include, but are not limited to, at least one of: a picture file, a video file, an audio file, a PDF file, a text file, a table file (e.g., an excel file), a presentation file (e.g., a PPT file). The second document type is a document type in which the contents of the file cannot be viewed in the document. Optionally, the file of the second document type may include at least one of: compressed files, files of a special file format.
In some scenarios, if the file is of a first document type, one view may be randomly selected as the first view from among the views for presenting the first document type.
In some scenarios, if the file is of a second document type, one view may be randomly selected as the first view from among the views for presenting the second document type.
Thus, when a user inserts a file in a document, a first view for presenting the file is determined according to the document type of the file. Thus, the flexibility of showing the file inserted by the user in the document is improved.
In some embodiments, the executing agent may execute step 201 as follows.
Specifically, in response to the file belonging to the document type, a default presentation view set for the file in the file format of the file is used as the first view.
In general, file formats may include, but are not limited to, at least one of: a picture file format, a video file format, an audio file format, a PDF file format, a text file format, a table file format (e.g., an excel file), a presentation file format (e.g., a PPT file).
The default presentation view may be a default set view for presenting files.
In practice, corresponding default display views can be set for files of different file formats. In some scenarios, the default presentation view of the audio file may be a card view. The default presentation views for picture files, video files, PDF files, text files, form files, and presentation files may be preview views.
Thus, when a user inserts a file whose file content can be viewed in a document, the file can be presented in the document in accordance with a default presentation view set for the file format of the file.
Generally, files of different file formats have different presentation characteristics for the file content. Therefore, for files of different file formats, corresponding default display views are set, which means that the display views of the files are set according to the display characteristics of the files on the file contents. Therefore, after the user inserts the file which can view the file content in the document, the file can be displayed in the document according to the display characteristics of the file to the file content.
In some embodiments, the executing agent may execute step 201 as follows.
Specifically, in response to the file being of the second document type, the default presentation view set for the file of the second document type is used as the first view.
In some scenarios, the default presentation view set for files of the second document type may be a card view.
Therefore, after the user inserts the file which can not preview the file content in the document, the file can be displayed in the document according to the default display view set for the file which can not preview the file content. Therefore, the file inserted by the user is shown in the document by combining the characteristic that the content of the file cannot be viewed.
In some embodiments, the view for exposing the file of the first document type includes: line embedding view, card view. The view for exposing the file of the second document type includes: line-embedded view, card view, preview view.
A row embedded view is a view that may be embedded into row content. As can be seen, the row embedded view and the row content of the document may be shown in the same row. In some scenarios, the schematic diagram shown in FIG. 3A presents one implementation of a row embedding view 301. As shown in FIG. 3A, a line embedding view 301 is embedded into the line content of a document. In general, a line-embedded view occupies less area in a document and presents less information for the file. Thus, for less important files, a line-embedded view may be employed to present in the document.
The card view is a view in card form. In some scenarios, FIG. 3B presents one implementation of card view 302.
The preview view is a view capable of previewing the contents of a file of a document. In some scenarios, FIG. 3C illustrates one implementation of preview view 303. In some scenarios, in response to a trigger operation of the preview view, the execution body may jump to a presentation page of a document presented in the preview view.
In general, the card view and the preview view occupy a larger area in the document, and more information is displayed on the document. Thus, for files of higher importance, a card view or preview view may be presented in the document.
For files that require previewing the contents of the file in the document, the preview view may be presented in the document. Therefore, the method is convenient for more intuitively knowing the file content of the file.
In actual practice, the card view and preview view are shown in different rows than the row contents.
Referring to the schematic diagrams shown in fig. 3B and 3C, respectively, card view 302 and preview view 303 are shown in different rows than the line contents of the document.
Thus, the document content and the card view (or preview view) may be presented in different rows in the document. In some embodiments, the first view comprises a row-embedded view. At this time, the execution body may execute the step 102 according to the flow shown in fig. 4A. The flow includes step 401 and step 402.
Step 401, determine the first content line where the insertion position of the file is located.
Step 402, the file is displayed in a first view in a first content line.
Therefore, when a user inserts a file into a document, the file and the content in the first content can be displayed on the same line in a way of embedding the line into the view.
In some embodiments, the second view comprises a card view or a preview view. At this time, the execution body may execute the step 103 according to the flow shown in fig. 4B. The flow includes step 403.
Step 403, in response to that the target content is displayed in the first content line, in a fourth content line where the content is not displayed, the file is switched to be displayed in a card view or a preview view.
The target content may be content outside the view showing the above-mentioned file.
Therefore, the user can switch the display of the file in the line embedded view into the display in the card view or the preview view by executing the switching operation.
Typically, the height of the card view and preview view is much greater than the height of the line content. If the card view or preview view is inserted directly where the line embedding view is located, the layout of the line content may be disturbed. Therefore, the card view or the preview view is inserted into the fourth content line which does not display the content, and the view for displaying the file can be switched on the basis of not disturbing the typesetting of the content of each line.
In some embodiments, the executing entity may execute step 403 as follows.
The first step, in response to the line embedded view showing the file, the target content is divided into a first target content and a second target content, and a fourth content line is inserted at the position of the embedded view.
The line embedded view divides the target content in the first content line into a first target content and a second target content, i.e. the line embedded view is located between the first target content and the second target content.
It can be seen that the first target content and the second target content can be separated in different content lines by inserting a fourth content line of non-shown content. It is to be understood that the content line in which the first target content is located, the content line in which the second target content is located, and the fourth content line are different lines.
And secondly, in a fourth content line, the file is switched to be displayed in a card view or a preview view, so that the file, the first target content and the second target content are displayed in different content lines.
Therefore, when the line embedded view for displaying the file is positioned between the first target content and the second target content, if the user switches the file to be displayed in a card view or a preview view, the first target content, the second target content and the file can be displayed in different lines.
In some embodiments, the executing entity may execute step 403 as follows.
Specifically, the target content is divided into a first target content and a second target content in response to the row-embedded view showing the file, the first target content and the second target content are merged and shown in the first content row, and the file is shown in the fourth content row.
Typically, the first target content and the second target content are positioned adjacent to each other in the first content line before the file is inserted into the first content line.
And merging and displaying the first target content and the second target content, namely restoring the first target content and the second target content to adjacent positions.
Therefore, when the line embedded view for displaying the file is positioned between the first target content and the second target content, if the user switches the file to be displayed in a card view or a preview view, the first target content and the second target content can be restored to adjacent positions. Meanwhile, the file can be displayed in a card view or a preview view in a fourth content line in which the content is not displayed.
In some embodiments, the first view comprises a card view or a preview view. At this time, the execution body may execute the step 102 according to the flow shown in fig. 5A. The flow includes step 501.
Step 501, in response to that the insertion position of the file is located in the second content line where the content is already displayed, displaying the file in a card view or a preview view in the third content line where the content is not displayed.
Thus, when a user inserts a file in a document, the file is not directly presented in the same line as the content in the second content line, but rather is presented separately in a card view or preview view in a third content line. In some embodiments, the second view comprises a row-embedded view. At this time, the execution body may execute the step 103 according to the flow shown in fig. 5B. The flow includes step 502.
Step 502, in the third content line, the file is switched to be displayed in a line embedded view.
Thus, when the user performs a switching operation, the file is presented in a row-embedded view alone directly in the third content row. Rather than having the row embedded view showing the file in question be shown in the same row as the other content. Therefore, when the user switches the file to be displayed in the line embedding view, the typesetting of the document content can not be disturbed.
In some embodiments, the row-embedded view includes at least one of: attachment prompt information and file information.
The accessory reminder information may include various information that serves as a reminder. For example, various information such as text, icons, and the like may be included.
The file information may include various information of the file. For example, but not limited to, at least one of: file name information, file subject information, file format information and file attribute information. The format information may be information characterizing a file format. In some scenarios, the format information may include text, icons, and the like. The attribute information may be information characterizing attributes of the file. In some scenarios, the attribute information may include a file size, a language in which the file is to be used, and the like.
As an example, in the line-embedded view shown in fig. 3A, the attachment prompt information may be an icon 3011, and the file information may include "item introduction.
The card view includes at least one of: attachment prompt information, file information, view control and download control.
The view control may be a control for viewing the contents of a file.
The download control may be a control for downloading a file.
As an example, in the card view shown in fig. 3B, the attachment prompt information may be an icon 3023, the file information may include "1.52 MB" and "item introduction. pdf", the view control may be a control 3021, and the download control may be a control 3022.
The preview view includes at least one of: attachment prompt information, file information and a content preview area.
The content preview area may be an area for previewing content associated with the file.
In some scenarios, preview content for a file may be presented in a content preview area according to the file format of the file. For example, if the document is a document containing multiple pages (e.g., a pdf document, a txt document, etc.), the page content of the pages may be previewed in the content preview region. For example, if the file is a video file, a video picture may be previewed in the content preview area. For example, if the file is an audio file, text information corresponding to the audio content may be previewed in the content preview area. Of course, the content previewed in the content preview area may be set according to actual requirements, and is not specifically limited herein.
By way of example, in the preview view shown in fig. 3C, the attachment prompt information can be an icon 3032, the file information can be "item introduction. pdf", and the content preview region can be a field 3031. Here, the content preview section shows the content of a certain page in the pdf file.
Optionally, the preview content presented in the content preview area is presented statically or dynamically.
In some embodiments, the file information shown in the row-embedded view shows a display page of the file in response to a trigger operation.
Therefore, when the user executes the trigger operation on the file information displayed in the row embedded view, the display page of the file can be displayed.
In some embodiments, the view control displayed in the card view displays the display page of the file in response to the trigger operation.
Here, the presentation page includes a file directory presentation area and a currently viewed content presentation area.
The file directory exhibition area may be an area for exhibiting a file directory.
The currently viewed content presentation area may be an area for presenting currently viewed content.
Therefore, when the user executes the trigger operation on the viewing control displayed in the card view, the file directory of the file can be displayed in the file directory display area, and the content currently viewed by the user is displayed in the currently viewed content display area.
In some embodiments, the file information displayed in the preview view displays the display page of the file in response to the trigger operation.
Here, the presentation page includes a file directory presentation area and a currently viewed content presentation area.
Therefore, when the user executes the trigger operation on the file information displayed in the preview view, the file directory of the file can be displayed in the file directory display area, and the content currently viewed by the user is displayed in the currently viewed content display area.
In some embodiments, the executing agent may perform the following steps before performing step 103.
Specifically, the view switching control is displayed in response to a control display operation on the file in the first view.
The control exposing operation can be an operation for triggering the exposing of various controls. Here, the control presentation operation may be an operation of triggering the presentation view switching control.
The view switching control may be a control for switching the presentation view of the file. The view toggle control includes at least one of: and switching to a view switching control of the line embedded view, switching to a view switching control of the card view, and switching to a view switching control of the preview view.
At this time, the execution body may execute the step 103 in the following manner.
Specifically, the file is switched to be displayed in a second view indicated by the target view switching control in response to a triggering operation of the target view switching control in the view switching controls.
The target view toggle control may be a view toggle control selected by the user from among the plurality of view toggle controls described above.
Therefore, the user can switch the display view of the file by the display view switching control.
In some embodiments, the execution body may further perform the following steps.
And in the first step, a comment control is displayed in response to the control display operation of the file under the first view or the second view.
Here, the control exposing operation may be an operation of triggering the comment control to be exposed.
The comment control may be a control for posting comment information to a file inserted into the document.
And secondly, responding to the triggering operation of the comment control, and displaying the comment panel.
The comment panel includes at least one of: file information of the file, user information of a comment information publishing user and a comment information editing area.
The file information may include various information of the file. For example, but not limited to, at least one of: file name, file title.
The user information may include various information of the user. For example, but not limited to, at least one of: user name, user account.
In practical application, a user can edit the comment information of the file in the comment information editing area. Generally, comment information edited by a user may include various information such as text, emoticons, and the like.
Therefore, the comment panel is displayed for the user to issue comment information to the file inserted into the document.
In some embodiments, the execution body may further perform the following steps.
Specifically, in response to the control display operation on the file in the first view or the second view, the position adjustment control and/or the file operation control are displayed.
Here, the control presentation operation may be an operation of triggering presentation position adjustment control and/or file operation control. The position adjustment control may be a control for adjusting the position of the view in the document. The position adjustment controls may include, but are not limited to, at least one of: left control, right control.
The left control may be a control that adjusts the view to align the left boundary with the left boundary of the document content. The right control may adjust the view to a control whose right boundary aligns with the right boundary of the document content. The centering control may be a control that adjusts the view to the center of the document.
The file manipulation control may be a control that manipulates files exposed by the view. File operation controls may include, but are not limited to, at least one of: copying the control, downloading the control, cutting the control and deleting the control.
Therefore, the position of the view for displaying the file in the document can be adjusted by the user through the display position adjusting control. And displaying the file operation control for the user to operate the file inserted into the document.
It should be noted that the control exposure operation may include various operations performed on the file. For example, but not limited to, at least one of: long press operation, cursor suspension operation and double-click operation.
With further reference to fig. 6, as an implementation of the methods shown in the above figures, the present disclosure provides some embodiments of a view demonstration apparatus, which correspond to the method embodiment shown in fig. 1, and which can be applied in various electronic devices.
As shown in fig. 6, the view display apparatus of the present embodiment includes: a determination unit 601, a file presentation unit 602, and a switching unit 603. The determination unit 601 is configured to: in response to receiving a file to be inserted into a document, a first view for presenting the file is determined. The file display unit 602 is configured to: and displaying the file in a first view in the document. The switching unit 603 is configured to: and responding to the switching operation of switching the first view into the second view, and switching the file to be displayed in the second view.
In this embodiment, the specific processing of the determining unit 601, the file presenting unit 602, and the switching unit 603 of the view presenting apparatus and the technical effects thereof can refer to the related descriptions of step 101, step 102, and step 103 in the corresponding embodiment of fig. 1, which are not described herein again.
In some embodiments, the determining unit 601 is further configured to: and determining a first view based on whether the file belongs to the document type.
In some embodiments, the determining unit 601 is further configured to: and in response to the file being of the first document type, taking a default display view set for the file of the file format of the file as a first view.
In some embodiments, the determining unit 601 is further configured to: and in response to the file being of the second document type, taking the default display view set for the file of the second document type as the first view.
In some embodiments, the view for exposing the file of the first document type includes: line embedding view, card view; the view for exposing the file of the second document type includes: line-embedded view, card view, preview view.
In some embodiments, the first view is a row-embedded view; the file presentation unit 602 is further configured to: determining a first content line where an insertion position of the file is located; the files are presented in a row-embedded view in a first content row.
In some embodiments, the first view comprises a card view or a preview view; the file presentation unit 602 is further configured to: and in response to the insertion position of the file being positioned in the second content line of the displayed content, displaying the file in a card view or a preview view in a third content line of the non-displayed content.
In some embodiments, the second view comprises a row-embedded view; the switching unit 603 is further configured to: and in a third content line, switching the file to be displayed in a line embedded view.
In some embodiments, the second view comprises a card view or a preview view; the switching unit 603 is further configured to: and responding to the target content displayed in the first content line, and in a fourth content line without the displayed content, switching the file to be displayed in a card view or a preview view.
In some embodiments, the switching unit 603 is further configured to: dividing the target content into a first target content and a second target content in response to the row embedded view showing the file, and inserting the fourth content row at the position of the row embedded view; in the fourth content line, the file is switched to be displayed in the card view or the preview view, so that the file, the first target content and the second target content are displayed in different content lines.
In some embodiments, the switching unit 603 is further configured to: in response to the row-embedded view showing the file, dividing the target content into a first target content and a second target content, concurrently showing the first target content and the second target content in the first content row, and showing the file in the fourth content row.
In some embodiments, the view for presenting the file includes at least one of: line embedding view, card view, preview view; the row embedded view includes at least one of: attachment prompt information, file information; the card view includes at least one of: accessory prompt information, file information, viewing controls and downloading controls; the preview view includes at least one of: attachment prompt information, file information and a content preview area.
In some embodiments, the preview content presented in the content preview region is presented statically or dynamically.
In some embodiments, the theme information presented in the row-embedded view presents a presentation page of the document in response to a trigger operation.
In some embodiments, the viewing control displayed in the card view displays a display page of the file in response to the trigger operation, wherein the display page includes a file directory display area and a current viewing content display area.
In some embodiments, the file information displayed in the preview view is in response to a trigger operation, and a display page of the file is displayed, wherein the display page includes a file directory display area and a currently viewed content display area. In some embodiments, the view presentation apparatus further includes a control presentation unit (not shown in the drawings). The control display unit is used for: in response to a control showing operation on the file under the first view, showing a view switching control, wherein the view switching control comprises at least one of: and switching to a view switching control of the line embedded view, switching to a view switching control of the card view, and switching to a view switching control of the preview view. The switching unit 603 is further configured to: and responding to the triggering operation of a target view switching control in the view switching controls, and switching the file to be displayed by a second view indicated by the target view switching control.
In some embodiments, the view display apparatus further comprises a panel display unit (not shown in the figures). The panel display unit is used for: in response to a control showing operation on the file under the first view or the second view, showing a comment control; in response to a triggering operation of the comment control, a comment panel is displayed, wherein at least one of the following is included in the comment panel: file information of the file, user information of a comment information publishing user and a comment information editing area.
With further reference to fig. 7, fig. 7 illustrates an exemplary system architecture to which the view illustration methods of some embodiments of the present disclosure may be applied.
As shown in fig. 7, the system architecture may include terminal devices 701, 702, a network 703, and a server 704. The network 703 is the medium used to provide communications links between the terminal devices 701, 702 and the server 704. The network 703 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The end devices 701, 702 may interact with a server 704 over a network 703 to receive or send messages or the like. Various client applications may be installed on the terminal devices 701, 702. For example, a document editing application may be installed on the terminal device 701, 702.
In some scenarios, in response to receiving a file to be inserted into a document, the terminal device 701, 702 may determine a first view for presenting the file. Further, the terminal devices 701 and 702 may present the file in the document in a first view. Still further, in response to a switching operation of switching the first view to the second view, the terminal devices 701 and 702 may switch the file to be displayed in the second view.
The terminal devices 701 and 702 may be hardware or software. When the terminal devices 701 and 702 are hardware, they may be various electronic devices having display screens and supporting information interaction, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like. When the terminal devices 701 and 702 are software, they can be installed in the electronic devices listed above. It may be implemented as multiple pieces of software or software modules, or as a single piece of software or software module. And is not particularly limited herein.
The server 704 may be a server that provides various services. In some scenarios, server 704 may forward information of the operation of the document by the user of terminal device 701 to terminal device 702. The terminal device 702 may perform a corresponding operation on the document according to the received operation information. As an example, when the user of the terminal apparatus 701 inserts a file in a document, the terminal apparatus 701 may transmit insertion information of the user inserted file to the server 704. The server 704 may forward the insertion information to the terminal device 702. The terminal device 702 may insert the corresponding file in the document according to the insertion information that is red.
The server 704 may be hardware or software. When the server 704 is hardware, it can be implemented as a distributed server cluster composed of a plurality of servers, or as a single server. When the server 704 is software, it may be implemented as multiple pieces of software or software modules (e.g., multiple pieces of software or software modules used to provide distributed services), or as a single piece of software or software module. And is not particularly limited herein.
It should be noted that the view showing method provided by the embodiment of the present disclosure may be executed by the server 704, and accordingly, the view showing apparatus may be disposed in the server 704.
It should be understood that the number of terminal devices, networks, and servers in fig. 7 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to fig. 8, shown is a schematic diagram of an electronic device (e.g., the terminal device of fig. 7) suitable for use in implementing some embodiments of the present disclosure. The terminal device in some embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle-mounted terminal (e.g., a car navigation terminal), and the like, and a fixed terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 8 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure. The electronic device shown in fig. 8 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 8, an electronic device may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 801 that may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)802 or a program loaded from a storage means 808 into a Random Access Memory (RAM) 803. In the RAM 803, various programs and data necessary for the operation of the electronic apparatus are also stored. The processing apparatus 801, the ROM 802, and the RAM 803 are connected to each other by a bus 804. An input/output (I/O) interface 805 is also connected to bus 804.
Generally, the following devices may be connected to the I/O interface 805: input devices 806 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 807 including, for example, a Liquid Crystal Display (LCD), speakers, vibrators, and the like; storage 808 including, for example, magnetic tape, hard disk, etc.; and a communication device 809. The communication means 809 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. While fig. 8 illustrates an electronic device having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided. Each block shown in fig. 8 may represent one device or may represent multiple devices as desired.
In particular, according to some embodiments of the present disclosure, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, some embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication means 809, or installed from the storage means 808, or installed from the ROM 802. The computer program, when executed by the processing apparatus 801, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium described in some embodiments of the present disclosure may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In some embodiments of the disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In some embodiments of the present disclosure, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be included in the electronic device or may exist separately without being incorporated in the electronic device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: in response to receiving a file to be inserted into a document, determining a first view for displaying the file; displaying the file in a first view in the document; and responding to the switching operation of switching the first view into the second view, and switching the file to be displayed in the second view.
Computer program code for carrying out operations for embodiments of the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in some embodiments of the present disclosure may be implemented by software, and may also be implemented by hardware. The names of these units do not in some cases constitute a limitation to the unit itself, for example, a file presentation unit may also be described as a unit "presenting a file in a first view in a document".
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure in the embodiments of the present disclosure is not limited to the particular combination of the above-described features, but also encompasses other embodiments in which any combination of the above-described features or their equivalents is possible without departing from the scope of the present disclosure. For example, the above features may be interchanged with other features disclosed in this disclosure (but not limited to) those having similar functions.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

Claims (21)

1. A method for presenting a view, comprising:
in response to receiving a file to be inserted into a document, determining a first view for presenting the file;
presenting the file in the document in the first view;
in response to a switching operation to switch the first view to a second view, the file is switched to be displayed in the second view.
2. The method of claim 1, wherein determining the first view for presenting the file comprises:
determining the first view based on a document type of the file.
3. The method of claim 2, wherein determining the first view based on the document type of the file comprises:
and in response to the file being of the first document type, taking a default presentation view set for the file in the file format of the file as the first view.
4. The method of claim 2, wherein determining the first view based on the document type of the file comprises:
and in response to the file being of a second document type, taking a default presentation view set for the file of the second document type as the first view.
5. The method of claim 2,
the view for showing the file of the second document type includes: line embedding view, card view;
the view for showing the file of the first document type comprises: line-embedded view, card view, preview view.
6. The method of claim 1, wherein the first view comprises a card view or a preview view;
the presenting the file in the document in the first view includes:
in response to the insertion location of the file being in the second content line where content has been presented, the file is presented in either the card view or the preview view in a third content line where content is not presented.
7. The method of claim 6, wherein the second view comprises a row-embedded view;
said switching said file to be presented in said second view comprises:
in the third content line, switching the file to be presented in the line-embedded view.
8. The method of claim 1, wherein the first view comprises a row-embedded view;
the presenting the file in the document in the first view includes:
determining a first content line where an insertion position of the file is located;
the file is shown in the first content row with the row embedded view.
9. The method of claim 8, wherein the second view comprises a card view or a preview view;
said switching said file to be presented in said second view comprises:
and responding to the target content displayed in the first content line, and in a fourth content line without displayed content, switching the file to be displayed in the card view or the preview view.
10. The method of claim 9, wherein switching the file to be presented in the card view or the preview view in a fourth content line of non-presented content comprises:
dividing the target content into a first target content and a second target content in response to the row embedded view showing the file, and inserting the fourth content row at the position of the row embedded view;
in the fourth content line, the file is switched to be displayed in the card view or the preview view, so that the file, the first target content and the second target content are displayed in different content lines.
11. The method of claim 9, wherein switching the file to be presented in the card view or the preview view in a fourth content line of non-presented content comprises:
in response to the row-embedded view showing the file, dividing the target content into a first target content and a second target content, concurrently showing the first target content and the second target content in the first content row, and showing the file in the fourth content row.
12. The method of claim 1, wherein the view for presenting the file comprises at least one of: line embedding view, card view, preview view;
the row embedded view includes at least one of: attachment prompt information, file information;
the card view includes at least one of: accessory prompt information, file information, viewing controls and downloading controls;
the preview view includes at least one of: attachment prompt information, file information and a content preview area.
13. The method of claim 12, wherein the preview content presented in the content preview area is presented statically or dynamically.
14. The method of claim 12, wherein the file information shown in the row-embedded view shows a show page of the file in response to a trigger operation.
15. The method of claim 12, wherein the view control shown in the card view shows a display page of the file in response to a trigger operation, wherein the display page comprises a file directory display area and a current view content display area.
16. The method of claim 12, wherein the file information shown in the preview view shows a display page of the file in response to a trigger operation, wherein the display page comprises a file directory display area and a current viewing content display area.
17. The method of claim 1, wherein prior to said switching said file to be presented in said second view in response to said switching operation switching said first view to said second view, said method further comprises:
in response to a control showing operation on the file under the first view, showing a view switching control, wherein the view switching control comprises at least one of: switching to a view switching control of a line embedding view, switching to a view switching control of a card view, and switching to a view switching control of a preview view; and
the switching the file to be displayed in the second view in response to the switching operation of switching the first view to the second view comprises:
and responding to the triggering operation of a target view switching control in the view switching controls, and switching the file to be displayed by a second view indicated by the target view switching control.
18. The method of claim 1, further comprising:
in response to a control showing operation on the file under the first view or the second view, showing a comment control;
in response to a triggering operation of the comment control, a comment panel is displayed, wherein at least one of the following is included in the comment panel: file information of the file, user information of a comment information publishing user and a comment information editing area.
19. A view display apparatus, comprising:
the device comprises a determining unit, a display unit and a display unit, wherein the determining unit is used for responding to the receiving of a file to be inserted into a document and determining a first view for displaying the file;
the file display unit is used for displaying the file in the first view in the document;
and the switching unit is used for responding to the switching operation of switching the first view into the second view and switching the file to be displayed by the second view.
20. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-18.
21. A computer-readable medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-18.
CN202110183963.XA 2021-02-10 2021-02-10 View display method and device and electronic equipment Pending CN113011140A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110183963.XA CN113011140A (en) 2021-02-10 2021-02-10 View display method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110183963.XA CN113011140A (en) 2021-02-10 2021-02-10 View display method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN113011140A true CN113011140A (en) 2021-06-22

Family

ID=76402269

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110183963.XA Pending CN113011140A (en) 2021-02-10 2021-02-10 View display method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN113011140A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115061616A (en) * 2022-06-02 2022-09-16 北京字跳网络技术有限公司 Document view switching method and device and electronic equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102156742A (en) * 2011-04-19 2011-08-17 北京神州数码思特奇信息技术股份有限公司 Method and middleware for supporting structured document display with own browser of mobile phone
US20160345052A1 (en) * 2015-05-19 2016-11-24 Lemobile Information Technology (Beijing) Co., Ltd. Method and device for previewing video files
CN109408752A (en) * 2018-10-17 2019-03-01 天津字节跳动科技有限公司 Online document methods of exhibiting, device and electronic equipment
CN110909275A (en) * 2018-09-18 2020-03-24 优视科技有限公司 Page browsing method and device and electronic equipment
CN110928460A (en) * 2019-10-09 2020-03-27 广州视源电子科技股份有限公司 Operation method and device of intelligent interactive panel, terminal equipment and storage medium
CN111680005A (en) * 2020-04-27 2020-09-18 平安国际智慧城市科技股份有限公司 File online preview method, device, system, equipment and storage medium
CN112214971A (en) * 2020-10-28 2021-01-12 腾讯科技(深圳)有限公司 Processing method and device for online document bulletin, electronic equipment and storage medium
CN112328853A (en) * 2020-11-26 2021-02-05 北京字跳网络技术有限公司 Document information processing method and device and electronic equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102156742A (en) * 2011-04-19 2011-08-17 北京神州数码思特奇信息技术股份有限公司 Method and middleware for supporting structured document display with own browser of mobile phone
US20160345052A1 (en) * 2015-05-19 2016-11-24 Lemobile Information Technology (Beijing) Co., Ltd. Method and device for previewing video files
CN110909275A (en) * 2018-09-18 2020-03-24 优视科技有限公司 Page browsing method and device and electronic equipment
CN109408752A (en) * 2018-10-17 2019-03-01 天津字节跳动科技有限公司 Online document methods of exhibiting, device and electronic equipment
CN110928460A (en) * 2019-10-09 2020-03-27 广州视源电子科技股份有限公司 Operation method and device of intelligent interactive panel, terminal equipment and storage medium
CN111680005A (en) * 2020-04-27 2020-09-18 平安国际智慧城市科技股份有限公司 File online preview method, device, system, equipment and storage medium
CN112214971A (en) * 2020-10-28 2021-01-12 腾讯科技(深圳)有限公司 Processing method and device for online document bulletin, electronic equipment and storage medium
CN112328853A (en) * 2020-11-26 2021-02-05 北京字跳网络技术有限公司 Document information processing method and device and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
朱建国: "基于PHP的复杂文件资源格式转换和网上发布实践", 《网络安全技术与应用》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115061616A (en) * 2022-06-02 2022-09-16 北京字跳网络技术有限公司 Document view switching method and device and electronic equipment

Similar Documents

Publication Publication Date Title
CN112433654B (en) Page display method and device, electronic equipment and computer readable medium
CN111339418B (en) Page display method, page display device, electronic equipment and computer readable medium
CN113238706B (en) View display method, device, equipment and medium
CN112434175A (en) Multimedia information display method and device, electronic equipment and computer readable medium
CN110674624A (en) Method and system for editing image and text
CN110958481A (en) Video page display method and device, electronic equipment and computer readable medium
CN113128182A (en) Electronic document processing method and device, terminal and storage medium
CN112035030A (en) Information display method and device and electronic equipment
CN113128185A (en) Interaction method and device and electronic equipment
CN111596991A (en) Interactive operation execution method and device and electronic equipment
CN114047986A (en) Form generation method, form data processing method and device and electronic equipment
CN114363686B (en) Method, device, equipment and medium for publishing multimedia content
CN114302208A (en) Video distribution method, video distribution device, electronic equipment, storage medium and program product
CN111931464A (en) Document editing method and device and electronic equipment
CN111324834A (en) Image-text mixed arranging method and device, electronic equipment and computer readable medium
CN113721807B (en) Information display method and device, electronic equipment and storage medium
WO2023207543A1 (en) Media content publishing method and apparatus, and device, storage medium and program product
CN112380819A (en) Document editing method and device and electronic equipment
CN113011140A (en) View display method and device and electronic equipment
CN113238688A (en) Table display method, device, equipment and medium
CN109947528B (en) Information processing method and device
CN111756953A (en) Video processing method, device, equipment and computer readable medium
CN114327732B (en) Page configuration method, page configuration device, electronic equipment and computer readable medium
CN112579218B (en) User interface display method and device, computer readable medium and electronic equipment
CN115016878A (en) Information processing method and device and electronic equipment

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