WO2021037005A1 - 一种显示文档的方法及装置 - Google Patents

一种显示文档的方法及装置 Download PDF

Info

Publication number
WO2021037005A1
WO2021037005A1 PCT/CN2020/110915 CN2020110915W WO2021037005A1 WO 2021037005 A1 WO2021037005 A1 WO 2021037005A1 CN 2020110915 W CN2020110915 W CN 2020110915W WO 2021037005 A1 WO2021037005 A1 WO 2021037005A1
Authority
WO
WIPO (PCT)
Prior art keywords
target
document
shell layer
display screen
display
Prior art date
Application number
PCT/CN2020/110915
Other languages
English (en)
French (fr)
Inventor
朱健
Original Assignee
北京金山办公软件股份有限公司
珠海金山办公软件有限公司
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 北京金山办公软件股份有限公司, 珠海金山办公软件有限公司 filed Critical 北京金山办公软件股份有限公司
Priority to US17/619,425 priority Critical patent/US20220179546A1/en
Priority to EP20858843.4A priority patent/EP3971697A4/en
Priority to KR1020217041208A priority patent/KR20220034043A/ko
Priority to JP2021574275A priority patent/JP7348966B2/ja
Publication of WO2021037005A1 publication Critical patent/WO2021037005A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/1633Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
    • G06F1/1637Details related to the display arrangement, including those related to the mounting of the display in the housing
    • G06F1/1641Details related to the display arrangement, including those related to the mounting of the display in the housing the display being formed by a plurality of foldable display components
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/1633Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
    • G06F1/1637Details related to the display arrangement, including those related to the mounting of the display in the housing
    • G06F1/1652Details related to the display arrangement, including those related to the mounting of the display in the housing the display being flexible, e.g. mimicking a sheet of paper, or rollable
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/1633Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
    • G06F1/1675Miscellaneous details related to the relative movement between the different enclosures or enclosure parts
    • G06F1/1677Miscellaneous details related to the relative movement between the different enclosures or enclosure parts for detecting open or closed state or particular intermediate positions assumed by movable parts of the enclosure, e.g. detection of display lid position with respect to main body in a laptop, detection of opening of the cover of battery compartment
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/041Indexing scheme relating to G06F3/041 - G06F3/045
    • G06F2203/04102Flexible digitiser, i.e. constructional details for allowing the whole digitising part of a device to be flexed or rolled like a sheet of paper
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/048Indexing scheme relating to G06F3/048
    • G06F2203/04803Split screen, i.e. subdividing the display area or the window area into separate subareas

Definitions

  • This application relates to the field of computer technology, and in particular to a method and device for displaying documents.
  • WPS (English: Word Processing System, Chinese: Word Processing System) client is a common document processing software, and the documents processed in the WPS client can be called WPS documents.
  • a flexible screen mobile phone is a bendable and foldable mobile electronic device. This electronic device has two display types: mobile phone status and tablet status. The two display types are realized by folding or opening the mobile phone. When the two display types are converted to each other, in order to ensure the user's reading experience of WPS documents, the form of the WPS client will also change accordingly.
  • the electronic device when the WPS client switches between the two display types of the mobile phone and the tablet, the electronic device will close the WPS document and reopen it in another display type.
  • the purpose of the embodiments of the present application is to provide a method and device for displaying a document, so as to realize a user-insensitive switch when switching the display type of the document, and to reduce the possibility of losing the content being processed before the switch, so as to ensure the security of the document content.
  • the specific technical solutions are as follows:
  • the present application provides a method for displaying a document, the method is applied to a terminal with a flexible display screen, and the method includes:
  • the generating the second shell layer corresponding to the target display type includes:
  • the second code and the second layout container are input into a code sequence corresponding to the target document to generate a second shell layer corresponding to the target display type.
  • the deleting the first shell layer of the target document includes:
  • the first shell of the target document is deleted, and the first shell includes a first code and a first layout container.
  • the determining the target display type of the target document after the switching includes:
  • the target display type corresponding to the target display mode is determined.
  • the present application provides a device for displaying documents, the device is applied to a terminal with a flexible display screen, and the device includes:
  • a display module configured to display a target document through the flexible display screen
  • a deleting module configured to delete the first shell layer of the target document when it is detected that the display mode of the flexible display screen is switched, and determine the target display type of the target document after the switching;
  • a generating module is used to generate a second shell layer corresponding to the target display type, and display the switched target document on the flexible display screen through the second shell layer.
  • the generating module is specifically used for:
  • the second code and the second layout container are input into a code sequence corresponding to the target document to generate a second shell layer corresponding to the target display type.
  • deletion module is specifically used for:
  • the first shell of the target document is deleted, and the first shell includes a first code and a first layout container.
  • deletion module is specifically used for:
  • the target display type corresponding to the target display mode is determined.
  • the present application provides an electronic device, including a processor, a communication interface, a memory, and a communication bus.
  • the processor, the communication interface, and the memory communicate with each other through the communication bus;
  • Memory used to store computer programs
  • the processor is configured to implement the method steps described in the first aspect when executing the program stored in the memory.
  • the present application provides a computer-readable storage medium in which a computer program is stored, and when the computer program is executed by a processor, the method steps described in the first aspect are implemented.
  • the present application provides a computer program product containing instructions, which when run on a computer, causes the computer to execute the method described in the first aspect.
  • the present application provides a computer program that, when run on a computer, causes the computer to execute the method described in the first aspect.
  • an electronic device can display a target document through the flexible display screen.
  • the electronic device may delete the first shell layer of the target document, and determine the target display type of the target document after the switch.
  • the electronic device may generate a second shell layer corresponding to the target display type, and display the switched target document on the flexible display screen through the second shell layer.
  • the electronic device can switch only the shell layer of the target document on the premise that the editor layer and the document core layer of the target document are retained.
  • FIG. 1 is a flowchart of a method for displaying documents according to an embodiment of the application
  • FIG. 2 is a schematic diagram of a display interface provided by an embodiment of the application.
  • FIG. 3 is a flowchart of a method for displaying documents according to another embodiment of this application.
  • FIG. 4 is a schematic structural diagram of an apparatus for displaying documents provided by an embodiment of the application.
  • FIG. 5 is a schematic structural diagram of an electronic device provided by an embodiment of the application.
  • the embodiments of the present application provide a method for displaying documents, which can be applied to electronic devices that can read documents.
  • the electronic devices can be terminals with flexible display screens, such as folding screen mobile phones and folding screen tablet computers. Wait.
  • the method can be applied to a terminal with a flexible display screen.
  • the execution subject of the method for displaying documents may be document processing software running in an electronic device, which is also referred to as a document processing client.
  • the document processing client may be a WPS client such as a WPS Android client, but of course it is not limited to this.
  • the WPS client is the office software of Kingsoft Office
  • the WPS Android client is the client used in Android devices.
  • the document processing client such as the WPS client
  • the document core layer is the core program of the client, which can ensure the normal operation of the client.
  • the editor layer is the editing component of the document. The editing status and content of the document can be saved in the editor layer.
  • the shell layer includes the title bar, the menu bar, and the bottom panel. And other functional components.
  • each document contains the document core layer, editor layer and shell layer.
  • Step 101 Display the target document through the flexible display screen.
  • the electronic device can display the target document on the flexible display screen.
  • the flexible display screen is the display component of the electronic device.
  • the flexible display screen can be folded, unfolded or bent, etc.
  • the display mode of the flexible display screen can include two modes: unfolded mode and folded mode , Or, the three modes of unfolding mode, folding mode and bending mode, and so on.
  • the electronic device can select a version of the target document suitable for the display size of the flexible display screen according to the display mode of the flexible display screen.
  • the electronic device can display the target document of the tablet version on the flexible display: if the display mode of the flexible display is the folding mode, the electronic device can display the display mode of the mobile phone version
  • the target document is displayed on the flexible display.
  • the display type of the document may include: a tablet display state and a mobile phone display state, the tablet computer version is a version corresponding to the tablet display state of the electronic device, and the mobile phone version is a version corresponding to the mobile phone display state of the electronic device version.
  • the target document can be any document displayed in the document processing client.
  • the target document may be any WPS document displayed in the WPS client.
  • Step 102 When it is detected that the display mode of the flexible display screen is switched, delete the first shell layer of the target document, and determine the target display type of the target document after the switch.
  • the display mode of the flexible display screen can be changed with the change of the flexible display screen form.
  • the display mode of the flexible display screen can be changed, and the electronic device can detect the flexible display screen.
  • the display mode changes.
  • the electronic device detects that the display mode of the flexible display screen is switched, it can delete the first shell layer of the target document and determine the target display type of the target document after the switch.
  • the shell layer may include functional components such as the title bar, menu bar, and bottom panel in the target document, and is composed of code and layout containers.
  • the specific process of deleting the first shell layer of the target document may be: deleting the first shell layer of the target document, the first shell layer including the first code and the first layout container.
  • the first code and the first layout container may be deleted to achieve the purpose of deleting the first shell of the target document.
  • the function of the layout container is to divide the document core layer, editor layer and shell layer of the WPS Android client into three independent parts. When the electronic device deletes the shell layer, it will not affect the document core layer and editor layer. .
  • the document core layer is the core program of the client, it can ensure the normal operation of the client.
  • the editor layer is the editing component of the document.
  • the editing status and content of the document can be saved in the editor layer. Therefore, delete the first shell layer After that, the selected, zoomed, and other editing states in the target document, and the document content will not be lost, where the document content includes the content being processed before the switch and the unprocessed content.
  • the process of determining the target display type of the target document after switching may specifically include step one and step two:
  • Step 1 Determine the target display mode of the flexible display screen.
  • the electronic device can detect that the flexible display screen switches the display mode, and when the flexible display screen switches the display mode, the electronic device can determine the display mode of the flexible display screen after switching according to the electrical signal triggered when the flexible display screen is switched. .
  • Step 2 Determine the target display type corresponding to the target display mode according to the corresponding relationship between the target display mode of the flexible display screen and the target display type of the target document.
  • the corresponding relationship between each display mode of the flexible display screen and the display type of the document can be established in advance. In this way, when the document is displayed, the corresponding relationship between the target display mode of the flexible display screen and the target display type of the target document can be obtained to determine The target display type corresponding to the target display mode.
  • the corresponding relationship between the display mode of the flexible display screen and the display type of the document can be stored in the electronic device in advance.
  • the display mode of the flexible display screen can be changed by the user folding or unfolding the electronic device.
  • the display type of the document Different versions of documents displayed in different types of electronic devices.
  • the electronic device can change the display type of the document of the electronic device by folding or unfolding the flexible display screen, the display type of the document needs to be adapted to the different display modes of the electronic device in the embodiment of the present application.
  • the electronic device can determine the target display type corresponding to the target display mode according to the correspondence between the display mode of the flexible display screen and the target display type of the target document.
  • the display type of the document may include: a tablet display state and a mobile phone display state.
  • the tablet display state corresponds to a display document with a computer tablet version interface
  • the mobile phone display state corresponds to a display document with a mobile phone version interface.
  • Step 103 Generate a second shell layer corresponding to the target display type, and display the switched target document on the flexible display screen through the second shell layer.
  • the electronic device after the electronic device determines the target display type corresponding to the target display mode, it can generate the second shell layer corresponding to the target display type. After the electronic device generates the second shell layer, it can display the switched target document on the flexible display screen, and the shell layer in the target document is the second shell layer. That is, through the second shell layer, the switched target document is displayed on the flexible display screen.
  • FIG. 2 shows a schematic diagram of two display types corresponding to the target document in the two display modes of the flexible display screen of the electronic device.
  • the interface 201 is a display type of the target document, that is, the display state of the mobile phone.
  • the interface 201 includes the toolbar 1 and the bottom sidebar 1.
  • the toolbar 1 and the bottom sidebar 1 are:
  • the shell of the target document includes
  • the interface 202 is another display type of the target document, that is, the tablet display state.
  • the interface 202 includes the toolbar 2, the toolbar 3, and the bottom sidebar 2.
  • the toolbar 2, the toolbar 3 and the bottom sidebar 2 are: The functional components included in the shell of the target document in the flat panel display state.
  • the electronic device can delete toolbar 1 and bottom sidebar 1 in interface 201, that is, delete the functional components included in the shell of the target document in the display state of the mobile phone;
  • the toolbar 2, the toolbar 3, and the bottom sidebar 2 are added to the new interface, that is, the functional components included in the shell of the target document in the flat display state are added to form the interface 202. That is to say, when the flexible display screen of the electronic device is switched from the folding mode to the unfolding mode, the electronic device can delete toolbar 1 and bottom sidebar 1 in interface 201, and add toolbar 2, toolbar 3, and bottom to the new interface.
  • Sidebar 2 to form an interface 202.
  • the process of generating the second shell layer corresponding to the target display type may specifically include step one and step two:
  • Step 1 Determine the second shell layer corresponding to the target display type according to the correspondence between the preset display mode and the shell layer.
  • the second shell layer includes the second code and the second layout container.
  • the electronic device may determine the second shell layer corresponding to the target display type according to the corresponding relationship between the preset display mode and the shell layer, where the second shell layer includes the second code and the second layout container. In this way, the electronic device can achieve the purpose of matching a suitable shell layer for the target document in different display modes.
  • the shell layer corresponding to the target display mode is determined as the second shell layer corresponding to the target display type.
  • Step 2 Input the second code and the second layout container into the code sequence corresponding to the target document to generate the second shell layer corresponding to the target display type.
  • the electronic device may input the second code and the second layout container into the code sequence corresponding to the target document to generate the second shell layer corresponding to the target display type.
  • the code sequence is the code sequence of the WPS Android client.
  • the electronic device can delete the code of the shell and the layout container of the shell while the WPS Android client is running, and re-enter the code of the new shell. And the layout of the new shell container to achieve a thermal reconstruction process.
  • the process of generating the second shell layer corresponding to the target display type may include:
  • the second shell layer including the second code and the second layout container
  • the second code and the second layout container are input into the code sequence corresponding to the target document to generate the second shell layer corresponding to the target display type.
  • an electronic device can display a target document through the flexible display screen.
  • the electronic device may delete the first shell layer of the target document, and determine the target display type of the target document after the switch.
  • the electronic device may generate a second shell layer corresponding to the target display type, and display the switched target document on the flexible display screen through the second shell layer.
  • the display type of the document can be switched without closing the currently opened and/or edited document. It can be seen that through this solution, the user can switch insensitively when switching the display type of the document, and reduce the possibility of losing the content being processed before the switch, thereby ensuring the security of the document content.
  • an example of a method for displaying a document specifically includes the following steps:
  • Step 301 Display the target document through the flexible display screen.
  • Step 302 When it is detected that the display mode of the flexible display screen is switched, delete the first code and the first layout container.
  • Step 303 Determine the target display mode of the flexible display screen.
  • Step 304 Determine the target display type corresponding to the target display mode according to the corresponding relationship between the target display mode of the flexible display screen and the target display type of the target document.
  • Step 305 Determine the second code and the second layout container corresponding to the target display type according to the corresponding relationship between the display mode and the shell layer.
  • Step 306 Input the second code and the second layout container into the code sequence corresponding to the target document to generate a second shell layer corresponding to the target display type.
  • Step 307 Display the switched target document on the flexible display screen through the second shell layer.
  • an electronic device can display a target document through the flexible display screen.
  • the electronic device may delete the first shell layer of the target document, and determine the target display type of the target document after the switch.
  • the electronic device may generate a second shell layer corresponding to the target display type, and display the switched target document on the flexible display screen through the second shell layer.
  • the electronic device can switch only the shell layer of the target document on the premise that the editor layer and the document core layer of the target document are retained.
  • an embodiment of the present application also provides a device for displaying documents. As shown in FIG. 4, the device includes:
  • the display module 401 is configured to display a target document through the flexible display screen
  • the deleting module 402 is configured to delete the first shell layer of the target document when it is detected that the display mode of the flexible display screen is switched, and determine the target display type of the target document after the switching;
  • the generating module 403 is configured to generate a second shell layer corresponding to the target display type, and display the switched target document on the flexible display screen through the second shell layer.
  • the generating module 403 is specifically used for:
  • the second code and the second layout container are input into a code sequence corresponding to the target document to generate a second shell layer corresponding to the target display type.
  • deletion module 402 is specifically used for:
  • the first shell of the target document is deleted, and the first shell includes a first code and a first layout container.
  • deletion module 402 is specifically used for:
  • the target display type corresponding to the target display mode is determined.
  • an electronic device can display a target document through the flexible display screen.
  • the electronic device may delete the first shell layer of the target document, and determine the target display type of the target document after the switch.
  • the electronic device may generate a second shell layer corresponding to the target display type, and display the switched target document on the flexible display screen through the second shell.
  • the electronic device can switch only the shell layer of the target document on the premise that the editor layer and the document core layer of the target document are retained. In this way, when the electronic device switches the display type, there is no need to close the currently open and / Or the edited document, the display type of the document can be switched. It can be seen that through this solution, the user can switch insensitively when switching the display type of the document, and reduce the possibility of losing the content being processed before the switch, thereby ensuring the security of the document content.
  • the embodiment of the present application also provides an electronic device, as shown in FIG. 5, including a processor 501, a communication interface 502, a memory 503, and a communication bus 504.
  • the processor 501, the communication interface 502, and the memory 503 pass through the communication bus 504. Complete the communication between each other,
  • the memory 503 is used to store computer programs
  • the processor 501 is configured to implement the following steps when executing the program stored in the memory 503:
  • the electronic device has a flexible display screen.
  • the electronic device may be a terminal with a flexible display screen.
  • the generating the second shell layer corresponding to the target display type includes:
  • the second code and the second layout container are input into a code sequence corresponding to the target document to generate a second shell layer corresponding to the target display type.
  • the deleting the first shell layer of the target document includes:
  • the first shell of the target document is deleted, and the first shell includes a first code and a first layout container.
  • the determining the target display type of the target document after the switching includes:
  • the target display type corresponding to the target display mode is determined.
  • the communication bus mentioned by the aforementioned network device may be a peripheral component interconnection standard (English: Peripheral Component Interconnect, referred to as PCI) bus or an extended industry standard architecture (English: Extended Industry Standard Architecture, referred to as EISA) bus, etc.
  • PCI Peripheral Component Interconnect
  • EISA Extended Industry Standard Architecture
  • the communication bus can be divided into address bus, data bus, control bus and so on. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
  • the communication interface is used for communication between the aforementioned network device and other devices.
  • the memory may include a random access memory (English: Random Access Memory, abbreviated as: RAM), and may also include a non-volatile memory (English: Non-Volatile Memory, abbreviated as: NVM), for example, at least one disk storage.
  • RAM Random Access Memory
  • NVM Non-Volatile Memory
  • the memory may also be at least one storage device located far away from the foregoing processor.
  • the above-mentioned processor may be a general-purpose processor, including a central processing unit (English: Central Processing Unit, abbreviated as: CPU), a network processor (English: Network Processor, abbreviated as: NP), etc.; it may also be a digital signal processor (English: : Digital Signal Processing, abbreviation: DSP), application specific integrated circuit (English: Application Specific Integrated Circuit, abbreviation: ASIC), Field-Programmable Gate Array (English: Field-Programmable Gate Array, abbreviation: FPGA) or other programmable logic devices , Discrete gates or transistor logic devices, discrete hardware components.
  • CPU Central Processing Unit
  • NP Network Processor
  • DSP Digital Signal Processing
  • ASIC Application Specific Integrated Circuit
  • FPGA Field-Programmable Gate Array
  • FPGA Field-Programmable Gate Array
  • the embodiments of the present application also provide a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for displaying a document are realized. .
  • the embodiments of the present application also provide a computer program product containing instructions, which when run on a computer, cause the computer to execute the steps of the above method for displaying documents.
  • the present application provides a computer program that, when running on a computer, causes the computer to execute the steps of the above method for displaying documents.
  • the computer may be implemented in whole or in part by software, hardware, firmware, or any combination thereof.
  • software it can be implemented in the form of a computer program product in whole or in part.
  • the computer program product includes one or more computer instructions.
  • the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium.
  • the computer instructions may be transmitted from a website, computer, server, or data center.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or a data center integrated with one or more available media.
  • the usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, and a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state disk (SSD)).

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

一种显示文档的方法及装置,涉及计算机技术领域,所述方法包括:通过所述柔性显示屏显示目标文档。当检测到所述柔性显示屏的显示模式发生切换时,删除所述目标文档的第一壳层,并确定切换后所述目标文档的目标显示类型。生成所述目标显示类型对应的第二壳层,并通过所述第二壳层,在所述柔性显示屏中显示切换后的所述目标文档。通过本方案,可以在切换文档的显示类型时实现用户无感切换,以及降低切换之前正在处理内容的丢失可能性,从而保证文档内容安全。

Description

一种显示文档的方法及装置
本申请要求于2019年8月23日提交中国专利局、申请号为201910786505.8发明名称为“一种显示文档的方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及计算机技术领域,特别是涉及一种显示文档的方法及装置。
背景技术
WPS(英文:Word Processing System,中文:文字处理***)客户端是常见的文档处理软件,WPS客户端中所处理的文档可以被称为WPS文档。柔性屏手机为一种可弯曲可折叠的移动电子设备,此电子设备存在两种显示类型:手机状态与平板状态。两种显示类型通过折叠或者打开手机实现,当两种显示类型互相转换时,为了保证用户对WPS文档的阅读体验,WPS客户端的形态也将随之改变。
目前,在现有技术中,WPS客户端在手机和平板两种显示类型之间进行转换时,电子设备将关闭WPS文档,并在另一种显示类型中重新打开。
发明内容
本申请实施例的目的在于提供一种显示文档的方法及装置,以在切换文档的显示类型时实现用户无感切换,以及降低切换之前正在处理内容的丢失可能性,从而保证文档内容安全。具体技术方案如下:
第一方面,本申请提供了一种显示文档的方法,所述方法应用于具有柔性显示屏的终端,所述方法包括:
通过所述柔性显示屏显示目标文档;
当检测到所述柔性显示屏的显示模式发生切换时,删除所述目标文档的 第一壳层,并确定切换后所述目标文档的目标显示类型;
生成所述目标显示类型对应的第二壳层,并通过所述第二壳层,在所述柔性显示屏中显示切换后的所述目标文档。
可选的,所述生成所述目标显示类型对应的第二壳层,包括:
根据预设的显示模式和壳层的对应关系,确定所述目标显示类型对应的第二壳层,所述第二壳层包括第二代码和第二布局容器;
将所述第二代码和所述第二布局容器输入至所述目标文档对应的代码序列中,生成所述目标显示类型对应的第二壳层。
可选的,所述删除所述目标文档的第一壳层,包括:
删除所述目标文档的所述第一壳层,所述第一壳层包括第一代码和第一布局容器。
可选的,所述确定切换后所述目标文档的目标显示类型,包括:
确定所述柔性显示屏的目标显示模式;
根据所述柔性显示屏的目标显示模式与所述目标文档的目标显示类型的对应关系,确定所述目标显示模式对应的所述目标显示类型。
第二方面,本申请提供了一种显示文档的装置,所述装置应用于具有柔性显示屏的终端,所述装置包括:
显示模块,用于通过所述柔性显示屏显示目标文档;
删除模块,用于当检测到所述柔性显示屏的显示模式发生切换时,删除所述目标文档的第一壳层,并确定切换后所述目标文档的目标显示类型;
生成模块,用于生成所述目标显示类型对应的第二壳层,并通过所述第二壳层,在所述柔性显示屏中显示切换后的所述目标文档。
可选的,所述生成模块,具体用于:
根据预设的显示模式和壳层的对应关系,确定所述目标显示类型对应的第二壳层,所述第二壳层包括第二代码和第二布局容器;
将所述第二代码和所述第二布局容器输入至所述目标文档对应的代码序列中,生成所述目标显示类型对应的第二壳层。
可选的,所述删除模块,具体用于:
删除所述目标文档的所述第一壳层,所述第一壳层包括第一代码和第一布局容器。
可选的,所述删除模块,具体用于:
确定所述柔性显示屏的目标显示模式;
根据所述柔性显示屏的目标显示模式与所述目标文档的目标显示类型的对应关系,确定所述目标显示模式对应的所述目标显示类型。
第三方面,本申请提供了一种电子设备,包括处理器、通信接口、存储器和通信总线,其中,处理器,通信接口,存储器通过通信总线完成相互间的通信;
存储器,用于存放计算机程序;
处理器,用于执行存储器上所存放的程序时,实现第一方面所述的方法步骤。
第四方面,本申请提供了一种计算机可读存储介质,所述计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现第一方面所述的方法步骤。
第五方面,本申请提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述第一方面所述的方法。
第六方面,本申请提供了一种计算机程序,所述计算机程序在计算机上运行时,使得计算机执行第一方面所述的方法。
本申请实施例提供的一种显示文档的方法及装置,电子设备可以通过所述柔性显示屏显示目标文档。当检测到所述柔性显示屏的显示模式发生切换时,电子设备可以删除所述目标文档的第一壳层,并确定切换后所述目标文档的目标显示类型。电子设备可以生成所述目标显示类型对应的第二壳层, 并通过第二壳层,在所述柔性显示屏中显示切换后的所述目标文档。通过本申请实施例,电子设备可以在保留目标文档的编辑器层与文档内核层的前提下,只对目标文档的壳层进行切换,这样,在电子设备切换显示类型时,无需关闭当前打开和/或编辑的文档,即可实现文档的显示类型的切换。可见,通过本方案,在切换文档的显示类型时实现用户无感切换,以及降低切换之前正在处理内容的丢失可能性,从而保证文档内容安全。
另外,由于无需关闭当前打开和/或编辑的文档,因此,无需重启文档,这样,可以提高切换显示类型时的效率,以及提高文档显示流畅度,从而提高用户体验。
当然,实施本申请的任一产品或方法并不一定需要同时达到以上所述的所有优点。
附图说明
为了更清楚地说明本申请实施例和现有技术的技术方案,下面对实施例和现有技术中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的实施例。
图1为本申请一个实施例提供的一种显示文档的方法流程图;
图2为本申请实施例提供的一种显示界面的示意图;
图3为本申请另一个实施例提供的一种显示文档的方法流程图;
图4为本申请实施例提供的一种显示文档的装置的结构示意图;
图5为本申请实施例提供的一种电子设备的结构示意图。
具体实施方式
为使本申请的目的、技术方案、及优点更加清楚明白,以下参照附图并举实施例,对本申请进一步详细说明。显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本 申请保护的范围。
本申请实施例提供了一种显示文档的方法,该方法可以应用于可以读取文档的电子设备中,其中,电子设备可以为具有柔性显示屏的终端,例如:折叠屏手机、折叠屏平板电脑等。示例性的,该方法可以应用于具有柔性显示屏的终端。
另外,本申请实施例所提供的一种显示文档的方法的执行主体可以为运行于电子设备中的文档处理软件,也称为文档处理客户端。示例性的,该文档处理客户端可以为:WPS安卓客户端等WPS客户端,当然并不局限于此。其中,WPS客户端为金山办公旗下的办公软件,而WPS安卓客户端为应用于安卓设备中的客户端。
并且,文档处理客户端,例如:WPS客户端,主要由三部分组成:文档内核层、编辑器层与壳层,这三部分为三个独立的部分,WPS的该三部分均由代码与布局容器组成。文档内核层为客户端的核心程序,可以确保该客户端正常运行,编辑器层为文档的编辑组件,文档的编辑状态与内容可以保存在编辑器层,壳层包括标题栏、菜单栏、底部面板等功能性组件。对于WPS文档,每个文档都包含有文档内核层、编辑器层与壳层。
下面将结合具体实施方式,对本申请实施例提供的一种显示文档的方法进行详细的说明,如图1所示,具体步骤如下:
步骤101、通过柔性显示屏显示目标文档。
本申请实施例中,电子设备可以将目标文档显示在柔性显示屏上。其中,柔性显示屏为电子设备的显示部件,根据柔性显示屏的特性,柔性显示屏可以进行折叠、展开或者弯曲等,相应的,柔性显示屏的显示模式可以包括展开模式和折叠模式两种模式,或者,展开模式、折叠模式和弯曲模式三种模式,等等。在柔性显示屏中显示目标文档的状态下,电子设备可以根据柔性显示屏的显示模式,选择适合柔性显示屏显示大小的目标文档的版本。例如:若柔性显示屏的显示模式为展开模式,则电子设备可以将平板电脑版本的目标文档显示在柔性显示屏上:若柔性显示屏的显示模式为折叠模式,则电子设备可以将手机版本的目标文档显示在柔性显示屏上。示例性的,文档的显 示类型可以包括:平板显示状态和手机显示状态,该平板电脑版本为与电子设备的平板显示状态相对应的版本,该手机版本为与电子设备的手机显示状态相对应的版本。
其中,目标文档可以为文档处理客户端中所显示的任一文档。示例性的,当文档处理客户端为WPS客户端时,目标文档可以为WPS客户端中所显示的任一WPS文档。
步骤102、当检测到柔性显示屏的显示模式发生切换时,删除目标文档的第一壳层,并确定切换后目标文档的目标显示类型。
本申请实施例中,柔性显示屏的显示模式可以随柔性显示屏形态的改变而改变,当用户手动折叠或者展开柔性显示屏时,柔性显示屏的显示模式可以发生改变,电子设备可以检测到柔性显示屏显示模式的改变。当电子设备检测到柔性显示屏的显示模式发生切换时,可以删除目标文档的第一壳层,并确定切换后目标文档的目标显示类型。其中,壳层可以包括目标文档中的标题栏、菜单栏、底部面板等功能性组件,由代码以及布局容器组成。
可选的,删除目标文档的第一壳层的具体过程可以为:删除目标文档的第一壳层,第一壳层包括第一代码和第一布局容器。本申请实施例中,当电子设备删除目标文档的第一壳层时,可以删除第一代码与第一布局容器,以实现删除目标文档的第一壳层的目的。其中,布局容器的作用是使WPS安卓客户端的文档内核层、编辑器层与壳层,分为三个独立的部分,当电子设备删除壳层时,不会影响到文档内核层和编辑器层。
可见,由于文档内核层为客户端的核心程序,可以确保该客户端正常运行,编辑器层为文档的编辑组件,文档的编辑状态与内容可以保存在编辑器层,因此,在删除第一壳层后,目标文档中的选中、缩放等编辑状态,以及文档内容不会丢失,其中,该文档内容包括切换之前正在处理的内容和未处理的内容。可选的,确定切换后目标文档的目标显示类型的过程,具体可以包括步骤一和步骤二:
步骤一、确定柔性显示屏的目标显示模式。
本申请实施例中,电子设备可以检测到柔性显示屏切换显示模式,当柔 性显示屏切换显示模式时,电子设备可以根据柔性显示屏切换时触发的电信号,确定柔性显示屏切换后的显示模式。
步骤二、根据柔性显示屏的目标显示模式与目标文档的目标显示类型的对应关系,确定目标显示模式对应的目标显示类型。
其中,可以预先建立柔性显示屏的各个显示模式与文档的显示类型的对应关系,这样,在文档显示时,可以获取柔性显示屏的目标显示模式与目标文档的目标显示类型的对应关系,从而确定目标显示模式对应的目标显示类型。
本申请实施例中,电子设备中可以预先存储柔性显示屏的显示模式与文档的显示类型的对应关系,其中,柔性显示屏的显示模式可以通过用户折叠或者展开电子设备来改变,文档的显示类型为文档在不同类型的电子设备中展示的不同版本。在本申请实施例中,由于电子设备可以通过折叠或者展开柔性显示屏,改变电子设备自身的文档的显示类型,因此,文档的显示类型需要适应本申请实施例中的电子设备的不同显示模式。当电子设备确定切换后的显示模式后,电子设备可以根据柔性显示屏的显示模式与目标文档的目标显示类型的对应关系,确定目标显示模式对应的目标显示类型。示例性的,文档的显示类型可以包括:平板显示状态和手机显示状态,平板显示状态对应有电脑平板版本界面的显示文档,手机显示状态对应有手机版本界面的显示文档。
步骤103、生成目标显示类型对应的第二壳层,并通过第二壳层,在柔性显示屏中显示切换后的目标文档。
本申请实施例中,电子设备确定目标显示模式对应的目标显示类型后,可以生成目标显示类型对应的第二壳层。电子设备生成第二壳层后,可以在柔性显示屏显示切换后的目标文档,该目标文档中的壳层为第二壳层。也就是,通过第二壳层,在柔性显示屏中显示切换后的目标文档。
如图2所示,图2展示了电子设备的柔性显示屏的两种显示模式下,目标文档对应的两种显示类型的示意图。其中,界面201为目标文档的一种显示类型,即手机显示状态,界面201包括工具栏1和底边栏1,工具栏1和底边栏1为: 在手机显示状态下目标文档的壳层所包括的功能组件;界面202为目标文档的另一种显示类型,即平板显示状态,界面202包括工具栏2、工具栏3和底边栏2,工具栏2、工具栏3和底边栏2为:在该平板显示状态下目标文档的壳层所包括的功能组件。电子设备的柔性显示屏由界面201切换至界面202时,电子设备可以删除界面201中的工具栏1和底边栏1,即删除在手机显示状态下目标文档的壳层所包括的功能组件;在新的界面中加入工具栏2、工具栏3和底边栏2,即加入在该平板显示状态下目标文档的壳层所包括的功能组件,以形成界面202。也就是说,电子设备的柔性显示屏由折叠模式切换到展开模式时,电子设备可以删除界面201中的工具栏1和底边栏1,在新的界面中加入工具栏2、工具栏3和底边栏2,以形成界面202。
其中,生成目标显示类型对应的第二壳层的具体实现方式存在多种。
可选的,在一种实现方式中,生成目标显示类型对应的第二壳层的过程,具体可以包括步骤一和步骤二:
步骤一、根据预设的显示模式和壳层的对应关系,确定目标显示类型对应的第二壳层,第二壳层包括第二代码和第二布局容器。
本申请实施例中,电子设备可以根据预设的显示模式和壳层的对应关系,确定目标显示类型对应的第二壳层,其中,第二壳层包括第二代码和第二布局容器。这样,电子设备可以实现在不同的显示模式下,为目标文档匹配合适的壳层的目的。其中,在确定目标显示类型时,根据预设的显示模式和壳层的对应关系,确定目标显示模式对应的壳层,作为目标显示类型对应的第二壳层。
步骤二、将第二代码和第二布局容器输入至目标文档对应的代码序列中,生成目标显示类型对应的第二壳层。
本申请实施例中,电子设备可以将第二代码和第二布局容器输入至目标文档对应的代码序列中,生成目标显示类型对应的第二壳层。本申请实施例中,代码序列为WPS安卓客户端的代码序列,电子设备可以在WPS安卓客户端运行的过程中,删除壳层的代码和壳层的布局容器,并重新输入新的壳层的代码和新的壳层的布局容器,以实现一种热重建过程。
可选地,在另一种实现方式中,生成目标显示类型对应的第二壳层的过程,可以包括:
根据预设的显示类型和壳层的对应关系,确定目标显示类型对应的第二壳层,第二壳层包括第二代码和第二布局容器;
将第二代码和第二布局容器输入至目标文档对应的代码序列中,生成目标显示类型对应的第二壳层。
本申请实施例提供的一种显示文档的方法,电子设备可以通过所述柔性显示屏显示目标文档。当检测到所述柔性显示屏的显示模式发生切换时,电子设备可以删除所述目标文档的第一壳层,并确定切换后所述目标文档的目标显示类型。电子设备可以生成所述目标显示类型对应的第二壳层,并通过第二壳层,在所述柔性显示屏中显示切换后的所述目标文档。这样,在电子设备切换显示类型时,无需关闭当前打开和/或编辑的文档,即可实现文档的显示类型的切换。可见,通过本方案,在切换文档的显示类型时实现用户无感切换,以及降低切换之前正在处理内容的丢失可能性,从而保证文档内容安全。
另外,由于无需关闭当前打开和/或编辑的文档,因此,无需重启文档,这样,可以提高切换显示类型时的效率,以及提高文档显示流畅度,从而提高用户体验。
如图3所示,为本申请实施例提供的一种显示文档的方法示例,具体包括以下步骤:
步骤301、通过柔性显示屏显示目标文档。
步骤302、检测到柔性显示屏的显示模式发生切换时,删除第一代码与第一布局容器。
步骤303、确定柔性显示屏的目标显示模式。
步骤304、根据柔性显示屏的目标显示模式与目标文档的目标显示类型的对应关系,确定目标显示模式对应的目标显示类型。
步骤305、根据显示模式和壳层的对应关系,确定目标显示类型对应的第 二代码和第二布局容器。
步骤306、将第二代码和第二布局容器输入至目标文档对应的代码序列中,生成目标显示类型对应的第二壳层。
步骤307、通过第二壳层,在柔性显示屏中显示切换后的目标文档。
本申请实施例提供的一种显示文档的方法,电子设备可以通过所述柔性显示屏显示目标文档。当检测到所述柔性显示屏的显示模式发生切换时,电子设备可以删除所述目标文档的第一壳层,并确定切换后所述目标文档的目标显示类型。电子设备可以生成所述目标显示类型对应的第二壳层,并通过第二壳层,在所述柔性显示屏中显示切换后的所述目标文档。通过本申请实施例,电子设备可以在保留目标文档的编辑器层与文档内核层的前提下,只对目标文档的壳层进行切换,这样,在电子设备切换显示类型时,无需关闭当前打开和/或编辑的文档,即可实现文档的显示类型的切换。可见,通过本方案,在切换文档的显示类型时实现用户无感切换,以及降低切换之前正在处理内容的丢失可能性,从而保证文档内容安全。
另外,由于无需关闭当前打开和/或编辑的文档,因此,无需重启文档,这样,可以提高切换显示类型时的效率,以及提高文档显示流畅度,从而提高用户体验。
基于相同的技术构思,本申请实施例还提供了一种显示文档的装置,如图4所示,该装置包括:
显示模块401,用于通过所述柔性显示屏显示目标文档;
删除模块402,用于当检测到所述柔性显示屏的显示模式发生切换时,删除所述目标文档的第一壳层,并确定切换后所述目标文档的目标显示类型;
生成模块403,用于生成所述目标显示类型对应的第二壳层,并通过所述第二壳层,在所述柔性显示屏中显示切换后的所述目标文档。
可选的,所述生成模块403,具体用于:
根据预设的显示模式和壳层的对应关系,确定所述目标显示类型对应的第二壳层,所述第二壳层包括第二代码和第二布局容器;
将所述第二代码和所述第二布局容器输入至所述目标文档对应的代码序列中,生成所述目标显示类型对应的第二壳层。
可选的,所述删除模块402,具体用于:
删除所述目标文档的所述第一壳层,所述第一壳层包括第一代码和第一布局容器。
可选的,所述删除模块402,具体用于:
确定所述柔性显示屏的目标显示模式;
根据所述柔性显示屏的目标显示模式与所述目标文档的目标显示类型的对应关系,确定所述目标显示模式对应的所述目标显示类型。
本申请实施例提供的一种显示文档的装置,电子设备可以通过所述柔性显示屏显示目标文档。当检测到所述柔性显示屏的显示模式发生切换时,电子设备可以删除所述目标文档的第一壳层,并确定切换后所述目标文档的目标显示类型。电子设备可以生成所述目标显示类型对应的第二壳层,并通过第二壳体,在所述柔性显示屏中显示切换后的所述目标文档。通过本申请实施例,电子设备可以在保留目标文档的编辑器层与文档内核层的前提下,只对目标文档的壳层进行切换,这样,在电子设备切换显示类型时,无需关闭当前打开和/或编辑的文档,即可实现文档的显示类型的切换。可见,通过本方案,在切换文档的显示类型时实现用户无感切换,以及降低切换之前正在处理内容的丢失可能性,从而保证文档内容安全。
另外,由于无需关闭当前打开和/或编辑的文档,因此,无需重启文档,这样,可以提高切换显示类型时的效率,以及提高文档显示流畅度,从而提高用户体验。
本申请实施例还提供了一种电子设备,如图5所示,包括处理器501、通信接口502、存储器503和通信总线504,其中,处理器501,通信接口502,存 储器503通过通信总线504完成相互间的通信,
存储器503,用于存放计算机程序;
处理器501,用于执行存储器503上所存放的程序时,实现如下步骤:
通过所述柔性显示屏显示目标文档;
当检测到所述柔性显示屏的显示模式发生切换时,删除所述目标文档的第一壳层,并确定切换后所述目标文档的目标显示类型;
生成所述目标显示类型对应的第二壳层,并通过所述第二壳层,在所述柔性显示屏中显示切换后的所述目标文档。
示例性的,该电子设备具有柔性显示屏,示例性的,该电子设备可以为具有柔性显示屏的终端。
可选的,所述生成所述目标显示类型对应的第二壳层,包括:
根据预设的显示模式和壳层的对应关系,确定所述目标显示类型对应的第二壳层,所述第二壳层包括第二代码和第二布局容器;
将所述第二代码和所述第二布局容器输入至所述目标文档对应的代码序列中,生成所述目标显示类型对应的第二壳层。
可选的,所述删除所述目标文档的第一壳层,包括:
删除所述目标文档的所述第一壳层,所述第一壳层包括第一代码和第一布局容器。
可选的,所述确定切换后所述目标文档的目标显示类型,包括:
确定所述柔性显示屏的目标显示模式;
根据所述柔性显示屏的目标显示模式与所述目标文档的目标显示类型的对应关系,确定所述目标显示模式对应的所述目标显示类型。
上述网络设备提到的通信总线可以是外设部件互连标准(英文:Peripheral Component Interconnect,简称:PCI)总线或扩展工业标准结构(英文:Extended Industry Standard Architecture,简称:EISA)总线等。该通信总线可以分为地 址总线、数据总线、控制总线等。为便于表示,图中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。
通信接口用于上述网络设备与其他设备之间的通信。
存储器可以包括随机存取存储器(英文:Random Access Memory,简称:RAM),也可以包括非易失性存储器(英文:Non-Volatile Memory,简称:NVM),例如至少一个磁盘存储器。可选的,存储器还可以是至少一个位于远离前述处理器的存储装置。
上述的处理器可以是通用处理器,包括中央处理器(英文:Central Processing Unit,简称:CPU)、网络处理器(英文:Network Processor,简称:NP)等;还可以是数字信号处理器(英文:Digital Signal Processing,简称:DSP)、专用集成电路(英文:Application Specific Integrated Circuit,简称:ASIC)、现场可编程门阵列(英文:Field-Programmable Gate Array,简称:FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。
基于相同的技术构思,本申请实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现上述显示文档的方法步骤。
基于相同的技术构思,本申请实施例还提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述显示文档的方法步骤。
基于相同的技术构思,本申请提供了一种计算机程序,所述计算机程序在计算机上运行时,使得计算机执行上述显示文档的方法步骤。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例 如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。
以上所述仅为本申请的较佳实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本申请保护的范围之内。

Claims (12)

  1. 一种显示文档的方法,所述方法应用于具有柔性显示屏的终端,所述方法包括:
    通过所述柔性显示屏显示目标文档;
    当检测到所述柔性显示屏的显示模式发生切换时,删除所述目标文档的第一壳层,并确定切换后所述目标文档的目标显示类型;
    生成所述目标显示类型对应的第二壳层,并通过所述第二壳层,在所述柔性显示屏中显示切换后的所述目标文档。
  2. 根据权利要求1所述的方法,其中,所述生成所述目标显示类型对应的第二壳层,包括:
    根据预设的显示模式和壳层的对应关系,确定所述目标显示类型对应的第二壳层,所述第二壳层包括第二代码和第二布局容器;
    将所述第二代码和所述第二布局容器输入至所述目标文档对应的代码序列中,生成所述目标显示类型对应的第二壳层。
  3. 根据权利要求1或2所述的方法,其中,所述删除所述目标文档的第一壳层,包括:
    删除所述目标文档的所述第一壳层,所述第一壳层包括第一代码和第一布局容器。
  4. 根据权利要求1或2所述的方法,其中,所述确定切换后所述目标文档的目标显示类型,包括:
    确定所述柔性显示屏的目标显示模式;
    根据所述柔性显示屏的目标显示模式与所述目标文档的目标显示类型的对应关系,确定所述目标显示模式对应的所述目标显示类型。
  5. 一种显示文档的装置,所述装置应用于具有柔性显示屏的终端,所述装置包括:
    显示模块,用于通过所述柔性显示屏显示目标文档;
    删除模块,用于当检测到所述柔性显示屏的显示模式发生切换时,删除所述目标文档的第一壳层,并确定切换后所述目标文档的目标显示类型;
    生成模块,用于生成所述目标显示类型对应的第二壳层,并通过所述第二壳层,在所述柔性显示屏中显示切换后的所述目标文档。
  6. 根据权利要求5所述的装置,其中,所述生成模块,具体用于:
    根据预设的显示模式和壳层的对应关系,确定所述目标显示类型对应的第二壳层,所述第二壳层包括第二代码和第二布局容器;
    将所述第二代码和所述第二布局容器输入至所述目标文档对应的代码序列中,生成所述目标显示类型对应的第二壳层。
  7. 根据权利要求5或6所述的装置,其中,所述删除模块,具体用于:
    删除所述目标文档的所述第一壳层,所述第一壳层包括第一代码和第一布局容器。
  8. 根据权利要求5或6所述的装置,其中,所述删除模块,具体用于:
    确定所述柔性显示屏的目标显示模式;
    根据所述柔性显示屏的目标显示模式与所述目标文档的目标显示类型的对应关系,确定所述目标显示模式对应的所述目标显示类型。
  9. 一种电子设备,包括处理器、通信接口、存储器和通信总线,其中,处理器,通信接口,存储器通过通信总线完成相互间的通信;
    存储器,用于存放计算机程序;
    处理器,用于执行存储器上所存放的程序时,实现权利要求1-4任一所述的方法步骤。
  10. 一种计算机可读存储介质,所述计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现权利要求1-4任一所述的方法步骤。
  11. 一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行权利要求1-4任一项所述的方法步骤。
  12. 一种计算机程序,所述计算机程序在计算机上运行时,使得计算机执行权利要求1-4任一项所述的方法步骤。
PCT/CN2020/110915 2019-08-23 2020-08-24 一种显示文档的方法及装置 WO2021037005A1 (zh)

Priority Applications (4)

Application Number Priority Date Filing Date Title
US17/619,425 US20220179546A1 (en) 2019-08-23 2020-08-24 Document display method and device
EP20858843.4A EP3971697A4 (en) 2019-08-23 2020-08-24 DOCUMENT DISPLAY METHOD AND DEVICE
KR1020217041208A KR20220034043A (ko) 2019-08-23 2020-08-24 문서 디스플레이 방법 및 장치
JP2021574275A JP7348966B2 (ja) 2019-08-23 2020-08-24 文書表示方法およびデバイス

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910786505.8 2019-08-23
CN201910786505.8A CN112416190B (zh) 2019-08-23 2019-08-23 一种显示文档的方法及装置

Publications (1)

Publication Number Publication Date
WO2021037005A1 true WO2021037005A1 (zh) 2021-03-04

Family

ID=74684558

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/110915 WO2021037005A1 (zh) 2019-08-23 2020-08-24 一种显示文档的方法及装置

Country Status (6)

Country Link
US (1) US20220179546A1 (zh)
EP (1) EP3971697A4 (zh)
JP (1) JP7348966B2 (zh)
KR (1) KR20220034043A (zh)
CN (1) CN112416190B (zh)
WO (1) WO2021037005A1 (zh)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105607696A (zh) * 2014-11-18 2016-05-25 三星电子株式会社 控制屏幕的方法以及用于处理该方法的电子设备
CN107092421A (zh) * 2017-04-12 2017-08-25 广州三星通信技术研究有限公司 显示应用的控件的方法及装置
CN107329766A (zh) * 2017-07-05 2017-11-07 深圳市泰衡诺科技有限公司 一种组件信息的显示方法及显示装置
CN108196743A (zh) * 2017-12-26 2018-06-22 努比亚技术有限公司 一种柔性屏幕中应用显示方法及移动终端
CN109408163A (zh) * 2018-09-07 2019-03-01 百度在线网络技术(北京)有限公司 屏幕控制方法、装置设备及计算机可读存储介质
JP2019051360A (ja) * 2018-11-26 2019-04-04 株式会社コロプラ ゲームプログラム、ゲームを提供する方法、および情報処理装置

Family Cites Families (46)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6819304B2 (en) * 2001-10-11 2004-11-16 International Business Machines Corporation Adjustable display device with display adjustment function and method therefor
JP2003150586A (ja) * 2001-11-12 2003-05-23 Ntt Docomo Inc 文書変換システム、文書変換方法及び文書変換プログラムを記録したコンピュータ読み取り可能な記録媒体
JP4332477B2 (ja) * 2004-08-06 2009-09-16 キヤノン株式会社 レイアウト調整方法及び装置並びにプログラム
KR101472021B1 (ko) * 2008-09-02 2014-12-24 엘지전자 주식회사 플렉서블 디스플레이부를 구비한 휴대 단말기 및 그 제어방법
EP2557505A1 (en) * 2011-03-07 2013-02-13 Showcase-Tv Inc. Web display program conversion system, web display program conversion method, and program for web display program conversion
US9007300B2 (en) * 2011-10-14 2015-04-14 Blackberry Limited Method and system to control a process with bend movements
US9223348B2 (en) * 2012-02-03 2015-12-29 Lg Electronics Inc. Split keyboard modification for a pull-out flexible display
KR102104588B1 (ko) * 2012-07-11 2020-04-24 삼성전자주식회사 플렉서블 디스플레이 장치 및 그 동작 방법
KR102043810B1 (ko) * 2012-08-20 2019-11-12 삼성전자주식회사 플렉서블 디스플레이 장치 및 그 제어 방법
KR102042211B1 (ko) * 2012-08-20 2019-11-07 삼성전자주식회사 벤딩 상태에 따라 오브젝트를 변경하여 디스플레이하는 전자 장치 및 방법
KR102042556B1 (ko) * 2012-09-05 2019-11-11 엘지전자 주식회사 이동 단말기 및 이동 단말기의 제어 방법
JP2014075025A (ja) * 2012-10-04 2014-04-24 Sharp Corp 電子機器
KR102083918B1 (ko) * 2012-10-10 2020-03-04 삼성전자주식회사 멀티 디스플레이 장치 및 그 제어 방법
KR102061881B1 (ko) * 2012-10-10 2020-01-06 삼성전자주식회사 멀티 디스플레이 장치 및 그 디스플레이 제어 방법
US9513929B2 (en) * 2013-01-31 2016-12-06 Sap Se Foldable computing device capable of behaving as different types of devices
KR102097361B1 (ko) * 2013-02-01 2020-04-07 삼성디스플레이 주식회사 가요성 디스플레이 장치를 구비한 모바일 기기 및 이의 동작 방법
KR102066716B1 (ko) * 2013-06-20 2020-01-15 삼성전자주식회사 동작 방법 및 그 전자 장치
KR20150010516A (ko) * 2013-07-19 2015-01-28 삼성전자주식회사 플렉서블 디바이스가 객체를 디스플레이 하는 방법 및 장치
CN104375737B (zh) * 2013-08-12 2018-08-07 联想(北京)有限公司 一种信息处理方法以及电子设备
KR102119843B1 (ko) * 2014-02-10 2020-06-05 삼성전자주식회사 사용자 단말 장치 및 이의 디스플레이 방법
EP2908236A1 (en) * 2014-02-13 2015-08-19 Samsung Electronics Co., Ltd Electronic device and index display method thereof
KR20150126201A (ko) * 2014-05-02 2015-11-11 엘지전자 주식회사 터치 리젝션을 제공하는 디지털 디바이스 및 그 제어 방법
KR20150132918A (ko) * 2014-05-19 2015-11-27 엘지전자 주식회사 디스플레이 디바이스 및 그의 제어 방법
KR102276108B1 (ko) * 2014-05-26 2021-07-12 삼성전자 주식회사 폴더형 표시부를 가지는 전자 장치 및 이의 운영 방법
US9706009B2 (en) * 2014-12-30 2017-07-11 International Business Machines Corporation Generating collapsed user interface interaction sequence controls in mobile applications
US10613655B2 (en) * 2015-12-10 2020-04-07 Lg Electronics Inc. Rollable mobile terminal and control method therefor
KR102459831B1 (ko) * 2015-12-28 2022-10-28 삼성전자주식회사 플렉서블 디스플레이를 포함하는 전자 장치 및 그 동작 방법
CN105700841B (zh) * 2016-01-11 2021-12-24 联想(北京)有限公司 一种柔性电子设备
US10872585B2 (en) * 2016-01-15 2020-12-22 Huawei Technologies Co., Ltd. Display method and terminal
KR102480462B1 (ko) * 2016-02-05 2022-12-23 삼성전자주식회사 복수의 디스플레이들을 포함하는 전자 장치 및 그 동작 방법
US20170345396A1 (en) * 2016-05-24 2017-11-30 Lenovo (Singapore) Pte. Ltd. Configuring virtual display zones within one flexible display
US11586339B2 (en) * 2016-06-21 2023-02-21 Huawei Technologies Co., Ltd. Electronic device having flexible display screen and processing method thereof
KR102649254B1 (ko) * 2016-08-03 2024-03-20 삼성전자주식회사 디스플레이 제어 방법, 저장 매체 및 전자 장치
KR102571369B1 (ko) * 2016-08-03 2023-08-29 삼성전자주식회사 디스플레이 제어 방법, 저장 매체 및 전자 장치
WO2018119584A1 (zh) * 2016-12-26 2018-07-05 深圳市柔宇科技有限公司 柔性显示屏的交互方法及装置
JP6947843B2 (ja) * 2017-04-20 2021-10-13 ホアウェイ・テクノロジーズ・カンパニー・リミテッド 表示制御方法及び装置
US10635292B2 (en) * 2017-05-15 2020-04-28 Dell Products L.P. Information handling system predictive content navigation
CN107562324B (zh) * 2017-09-08 2023-01-17 Oppo广东移动通信有限公司 数据显示控制的方法和终端
US11079995B1 (en) * 2017-09-30 2021-08-03 Apple Inc. User interfaces for devices with multiple displays
CN108255376A (zh) * 2018-01-29 2018-07-06 努比亚技术有限公司 文档编辑方法、柔性终端及计算机可读存储介质
KR102266152B1 (ko) * 2018-02-22 2021-06-17 삼성전자주식회사 디스플레이 영역의 크기 변경이 가능한 플렉시블 디스플레이를 포함하는 전자 장치 및 그 제어 방법
US10725506B2 (en) * 2018-08-21 2020-07-28 Dell Products, L.P. Context-aware user interface (UI) for multi-form factor information handling systems (IHSs)
US10795477B2 (en) * 2019-02-27 2020-10-06 Sharp Kabushiki Kaisha System and method for multidimensional flexible display device input
CN110086928B (zh) * 2019-04-18 2021-03-26 珠海格力电器股份有限公司 数据展示方法及装置
WO2021221647A1 (en) * 2020-04-30 2021-11-04 Hewlett-Packard Development Company, L.P. Regions with digital ink input
US11429203B2 (en) * 2020-06-19 2022-08-30 Microsoft Technology Licensing, Llc Tilt-responsive techniques for digital drawing boards

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105607696A (zh) * 2014-11-18 2016-05-25 三星电子株式会社 控制屏幕的方法以及用于处理该方法的电子设备
CN107092421A (zh) * 2017-04-12 2017-08-25 广州三星通信技术研究有限公司 显示应用的控件的方法及装置
CN107329766A (zh) * 2017-07-05 2017-11-07 深圳市泰衡诺科技有限公司 一种组件信息的显示方法及显示装置
CN108196743A (zh) * 2017-12-26 2018-06-22 努比亚技术有限公司 一种柔性屏幕中应用显示方法及移动终端
CN109408163A (zh) * 2018-09-07 2019-03-01 百度在线网络技术(北京)有限公司 屏幕控制方法、装置设备及计算机可读存储介质
JP2019051360A (ja) * 2018-11-26 2019-04-04 株式会社コロプラ ゲームプログラム、ゲームを提供する方法、および情報処理装置

Also Published As

Publication number Publication date
US20220179546A1 (en) 2022-06-09
EP3971697A1 (en) 2022-03-23
CN112416190B (zh) 2022-05-06
JP2022539672A (ja) 2022-09-13
JP7348966B2 (ja) 2023-09-21
EP3971697A4 (en) 2022-07-27
CN112416190A (zh) 2021-02-26
KR20220034043A (ko) 2022-03-17

Similar Documents

Publication Publication Date Title
RU2600106C2 (ru) Переключатель приложений
US20180322215A1 (en) Web page access method and apparatus
JP2020504865A (ja) アプリケーションデータ処理方法、装置、及び記憶媒体
US20150227736A1 (en) Data sharing between multiple applications running on a mobile device
US20150278164A1 (en) Method and apparatus for constructing documents
CN108549568B (zh) 应用入口处理方法、装置、存储介质及电子设备
CN107291449B (zh) 一种页面渲染方法、装置及设备
US10831354B2 (en) Display apparatus and display method
US11803636B2 (en) Security system and method
WO2020253386A1 (zh) 应用程序处理方法、装置、电子设备及存储介质
CN107656924A (zh) 一种应用于移动终端的双语翻译方法和***
US20150186367A1 (en) Re-use of binaries for multiple user accounts
US20200034101A1 (en) Data displaying method and electronic device
WO2024114516A1 (zh) 信息显示方法、装置、电子设备和存储介质
JP7142961B2 (ja) 多言語キーボードシステム
WO2024109635A1 (zh) 界面显示方法及其装置
US11995302B2 (en) Interface information presenting method and electronic device
WO2021037005A1 (zh) 一种显示文档的方法及装置
CN106919397B (zh) 一种界面显示的方法及移动终端
JP2023063313A (ja) キャラクターユーザーインターフェースのメニューモデルを生成する方法及びコンピュータープログラム
CN114691259B (zh) 一种控件显示方法及装置、电子设备和可读存储介质
CN110929048A (zh) 一种书签生成方法、装置、电子设备及存储介质
CN110928470B (zh) 一种签名框展示方法、装置、电子设备及存储介质
WO2023273482A1 (zh) 一种控制方法及电子设备
CN113448556A (zh) 一种数据管理方法、装置及终端设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20858843

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2021574275

Country of ref document: JP

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 2020858843

Country of ref document: EP

Effective date: 20211214

NENP Non-entry into the national phase

Ref country code: DE