[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN109710911A - Cell content layout method, device, electronic device and storage medium - Google Patents

Cell content layout method, device, electronic device and storage medium Download PDF

Info

Publication number
CN109710911A
CN109710911A CN201811626913.9A CN201811626913A CN109710911A CN 109710911 A CN109710911 A CN 109710911A CN 201811626913 A CN201811626913 A CN 201811626913A CN 109710911 A CN109710911 A CN 109710911A
Authority
CN
China
Prior art keywords
cell
width
content information
input area
content
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811626913.9A
Other languages
Chinese (zh)
Other versions
CN109710911B (en
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.)
Tianjin ByteDance Technology Co Ltd
Original Assignee
Tianjin ByteDance 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 Tianjin ByteDance Technology Co Ltd filed Critical Tianjin ByteDance Technology Co Ltd
Priority to CN201811626913.9A priority Critical patent/CN109710911B/en
Publication of CN109710911A publication Critical patent/CN109710911A/en
Application granted granted Critical
Publication of CN109710911B publication Critical patent/CN109710911B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The disclosure proposes content typesetting method, apparatus, electronic equipment and the storage medium of a kind of cell, wherein, method includes: in advance to reserve region required for icon in cell in electrical form, and when the content information inputted in cell to user carries out typesetting, the width of combined content information and reserved area and cell carries out typesetting to the content information in the input area.The occurrence of region required for binding function icon carries out Automatic Typesetting to the content information in cell as a result, avoids when showing corresponding function icon on subsequent cell lattice, and the content in cell is blocked, improves the Experience Degree of user.

Description

Content typesetting method, apparatus, electronic equipment and the storage medium of cell
Technical field
This disclosure relates to which field of computer technology more particularly to a kind of content typesetting method, apparatus of cell, electronics are set Standby and storage medium.
Background technique
Currently, during using electrical form, user inputted in the cell in electrical form text and/or After word content information, user can be according to demand using functions such as screening, the evaluations of electrical form, for example, using electricity in user After screening function in sub-table, the apex angle last time of some cell in electrical form shows a screening function icon.
However, at least there are the following problems for the existing electrical form of inventor's discovery in the implementation of the present invention: When to adding corresponding function icon in cell, added icon is easy to block the content after icon, thus The content in cell is caused not show completely, the user experience of the electrical form of user is unsatisfactory.
Summary of the invention
The disclosure provides content typesetting method, apparatus, electronic equipment and the storage medium of a kind of cell, is able to solve it His user is easy to interfere to candidate using the user of online table, to cause user to the selection result of online table Experience undesirable problem.
Disclosure first aspect embodiment proposes a kind of content typesetting method of cell, comprising: obtains user in list The content information inputted in first lattice, wherein the cell includes that can be used for showing the input area of input content and for showing Show the reserved area of preset icon;It is right according to the width of the content information, the width of the cell and the reserved area The content information in the input area carries out typesetting.
In one embodiment of the present disclosure, described according to the width of the content information, the cell and described pre- The width for staying region carries out typesetting to the content information in the input area, comprising: according to the width of the cell With the width of the reserved area, the width of the input area is determined;When the width of the content information is more than the input When the width in region, then the content information in the input area is subjected to line feed and shown.
In one embodiment of the present disclosure, further includes: according to the height of the cell, determine the input area Highly;When the height of the content information is greater than the height of the input area, the width of the cell is adjusted, so as to adjust The height of input area after whole matches with height required for the content information is shown.
In one embodiment of the present disclosure, before the content information that the acquisition user inputs in cell, institute State method further include: obtain the location information that the preset icon is arranged in the cell;According to the positional information, institute The width and height for stating preset icon, reserve the reserved area on the corresponding position of the cell.
In one embodiment of the present disclosure, the method also includes: obtain the user be the cell setting Text justification mode;The width according to the width of the content information, the width of the cell and the reserved area Degree carries out typesetting to the content information in the input area, comprising: according to the width of the cell and described reserved The width in region determines the width of the input area;When the width of the content information is more than the width of the input area When, then according to the width of the width of the content information and the input area, calculate the width beyond the input area Content information, and according to the text justification mode, the content information that will exceed carries out line feed in the input area and shows.
The content typesetting method of the cell of the embodiment of the present disclosure, in advance by icon institute in the cell in electrical form The region needed is reserved, and when the content information inputted in cell to user carries out typesetting, combined content information With the width of reserved area and cell, typesetting is carried out to the content information in the input area.Function is combined as a result, Region required for energy icon carries out Automatic Typesetting to the content information in cell, avoids and shows correspondence on subsequent cell lattice When icon, the occurrence of content in cell is blocked, the Experience Degree of user is improved.
In order to achieve the above object, disclosure second aspect embodiment proposes a kind of content typesetting device of cell, comprising: Obtain module, the content information inputted in cell for obtaining user, wherein the cell is defeated including can be used for showing Enter the input area of content and the reserved area for showing preset icon;Type-setting module, for according to the content information The width of width, the cell and the reserved area carries out typesetting to the content information in the input area.
The content typesetting device of the cell of the embodiment of the present disclosure, in advance by icon institute in the cell in electrical form The region needed is reserved, and when the content information inputted in cell to user carries out typesetting, combined content information With the width of reserved area and cell, typesetting is carried out to the content information in the input area.Function is combined as a result, Region required for energy icon carries out Automatic Typesetting to the content information in cell, avoids and shows correspondence on subsequent cell lattice When icon, the occurrence of content in cell is blocked, the Experience Degree of user is improved.
In order to achieve the above object, disclosure third aspect embodiment proposes a kind of electronic equipment, including memory, processor And it is stored in the computer program that can be run on the memory and on the processor, the processor executes the journey Sequence, to be used for: obtaining the content information that user inputs in cell, wherein the cell includes that can be used for showing input The input area of content and reserved area for showing preset icon;According to the width of the content information, the cell With the width of the reserved area, typesetting is carried out to the content information in the input area.
In order to achieve the above object, disclosure fourth aspect embodiment proposes a kind of non-transitory computer-readable storage medium Matter is stored thereon with computer program, which is executed by processor, to be used for: in acquisition user inputs in cell Hold information, wherein the cell includes that can be used for showing the input area of input content and for showing the pre- of preset icon Stay region;According to the width of the content information, the width of the cell and the reserved area, in the input area The content information carry out typesetting.
The additional aspect of the disclosure and advantage will be set forth in part in the description, and will partially become from the following description It obtains obviously, or recognized by the practice of the disclosure.
Detailed description of the invention
The disclosure is above-mentioned and/or additional aspect and advantage will become from the following description of the accompanying drawings of embodiments Obviously and it is readily appreciated that, in which:
Fig. 1 is a kind of flow diagram of the content typesetting method of cell provided by the embodiment of the present disclosure;
Fig. 2 is the flow diagram of the content typesetting method of another kind cell provided by the embodiment of the present disclosure;
Fig. 3 is the exemplary diagram one of the content information in cell in input area after typesetting;
Fig. 4 is the exemplary diagram two of the content information in cell in input area after typesetting;
Fig. 5 is a kind of structural schematic diagram of the content typesetting device of cell provided by the embodiment of the present disclosure;
Fig. 6 is the structural schematic diagram of the content typesetting device of another kind cell provided by the embodiment of the present disclosure;
Fig. 7 is the structural schematic diagram of the content typesetting device of another kind cell provided by the embodiment of the present disclosure;
Fig. 8 is that the hardware configuration of the electronic equipment of the content typesetting method for the execution unit lattice that the embodiment of the present disclosure provides shows It is intended to.
Specific embodiment
Embodiment of the disclosure is described below in detail, the example of embodiment is shown in the accompanying drawings, wherein identical from beginning to end Or similar label indicates same or similar element or element with the same or similar functions.It is retouched below with reference to attached drawing The embodiment stated is exemplary, it is intended to for explaining the disclosure, and should not be understood as the limitation to the disclosure.
Below with reference to the accompanying drawings the content typesetting method, apparatus of the cell of the embodiment of the present disclosure, electronic equipment are described and is deposited Storage media.
Fig. 1 is a kind of flow diagram of the content typesetting method of cell provided by the embodiment of the present disclosure.
As shown in Figure 1, the content typesetting method of the cell the following steps are included:
Step 101, the content information that user inputs in cell is obtained, wherein cell is defeated including can be used for showing Enter the input area of content and the reserved area for showing preset icon.
Wherein, it should be noted that the content typesetting method of the cell of the embodiment is filled by the content typesetting of cell Execution is set, the content typesetting device of the cell can be set in the electronic device.
Wherein, electronic equipment can include but is not limited to personal computer, tablet computer, mobile terminal etc. with various behaviour Make the hardware device of system, which is not construed as limiting electronic equipment.
Wherein, content information can include but is not limited to text and/or digital information.
Wherein, preset icon is subsequent after executing corresponding function to electrical form or cell, attached on cell In addition icon.
Wherein, it is to be understood that the cell of the embodiment can be the cell in online electrical form, Ke Yiwei Cell in offline e table, the embodiment are not construed as limiting this.
Step 102, according to the width of the width of content information, cell and reserved area, to the content in input area Information carries out typesetting.
It in one embodiment of the present disclosure, can be according to list after obtaining the content information that user inputs in cell The width of first lattice and the width of reserved area, determine the width of input area, then, by the corresponding width of content information and input The width in region is compared, if it is determined that the width of content information is more than the width of input area, then will be in input area Content information carries out line feed and shows.
That is, if it is determined that show that display area required for content information and reserved area exist in cell When overlapping region, the content information fallen into reserved area is determined, and the content information for falling into reserved area is subjected to line feed and is shown Show.Thus, it is possible to which the occurrence of avoiding the content when cell shows preset icon, in cell from being blocked, improves The Experience Degree of user.
The content typesetting method of the cell of the embodiment of the present disclosure, in advance by icon institute in the cell in electrical form The region needed is reserved, and when the content information inputted in cell to user carries out typesetting, combined content information With the width of reserved area and cell, typesetting is carried out to the content information in input area.Binding function icon institute as a result, The region needed carries out Automatic Typesetting to the content information in cell, avoids and shows corresponding function icon on subsequent cell lattice When, the occurrence of content in cell is blocked, improve the Experience Degree of user.
Wherein, it is to be understood that in practical applications, the icon that can be shown in cell may to be multiple, Also, the position that different function icon is shown in cell may be different, therefore, the embodiment party of property as an example Formula when in order to avoid showing corresponding function icon in cell, the occurrence of content in cell is blocked, is obtaining Before the content information that user inputs in cell, the location information that preset icon is arranged in cell can also be obtained, Then, according to location information, the width of preset icon and height, the reserved area is reserved on the corresponding position of cell.
For example, the corresponding icon A of function 1, when user uses the function 1, icon A Cell display Upper right corner position, the corresponding icon B of function 2, when user uses the function 2, icon B is shown in cell Bottom right corner position can be in the upper right apex angle in cell before obtaining the content information that inputs in cell of user And upper right corner position is respectively provided with reserved area.
On the basis of based on the above embodiment, in order to avoid user needs the height of manual unit lattice so that in cell The trouble that can show completely of content information, the embodiment of property as an example, combine reserved area to input area Content information carry out Automatic Typesetting when, the content typesetting method of the cell can also determine defeated according to the height of cell Enter the height in region, then, height required for display content information be compared with the height of input area, if it is determined that When showing that height required for content information is greater than the height of input area, the width of adjustment unit lattice, so that adjusted defeated The height and height required for display content information for entering region match.Height required for display content information is combined as a result, Spend information, realize the adjustment to the height of input area automatically, avoid user need manual unit lattice height so that The trouble that content information in cell can be shown completely, further improves the Experience Degree of user.
Wherein, it should be noted that during the height of adjustment unit lattice, the height for controlling reserved area is kept not Become.
Fig. 2 is a kind of flow diagram of the content typesetting method of cell provided by the embodiment of the present disclosure.
As shown in Fig. 2, the content typesetting method of the cell the following steps are included:
Step 201, the content information that user inputs in cell is obtained, wherein cell is defeated including can be used for showing Enter the input area of content and the reserved area for showing preset icon.
Step 202, the text justification mode that user is cell setting is obtained.
Step 203, according to the width of the width of cell and reserved area, the width of input area is determined.
Step 204, when the width of content information is more than the width of input area, then according to the width of content information and defeated Enter the width in region, calculates the content information of the width beyond input area, and according to text justification mode, the content that will exceed Information carries out line feed in input area and shows.
Wherein, text justification mode can include but is not limited to the side such as left-justify mode, Right Aligns mode, align center Formula.
For example, it is assumed that user is that the text justification mode of cell setting is Right Aligns mode, and in cell Upper right apex angle reserved a reserved area A for display function icon, be " First Year in the content information of user's input It is shown after Automatic Typesetting in input area when the 7th year the 6th year the 5th year the 4th year second year third year ", in cell interior Appearance information, corresponding exemplary diagram, as shown in Figure 3.
In another example, it is assumed that user is that the text justification mode of cell setting is Right Aligns mode, and in cell Upper right apex angle has reserved a reserved area A for display function icon, is " First Year the in the content information of user's input When 2 years the 8th year the 7th year the 6th year the 5th year the 4th year third years ", shown after Automatic Typesetting in input area in cell Content information, corresponding exemplary diagram, as shown in Figure 4.
The content typesetting method of the cell of the embodiment of the present disclosure obtains the content information that user inputs in cell, and The text justification mode that user is cell setting is obtained, and combines text justification mode, the width of content information and input The width in region carries out Automatic Typesetting to the content information in input area.Corresponding preset icon is not shown in cell as a result, Before, Automatic Typesetting is carried out to the content information in input area in conjunction with text justification mode, makes full use of the interior of input area The occurrence of portion space avoids when showing corresponding function icon on subsequent cell lattice, and the content in cell is blocked, mentions The high Experience Degree of user.
On the basis of based on the above embodiment, in order to avoid user needs the height of manual unit lattice so that in cell The trouble that can show completely of content information, the embodiment of property as an example, combine reserved area to input area Content information carry out Automatic Typesetting when, the content typesetting method of the cell can also determine defeated according to the height of cell Enter the height in region, then, height required for display content information be compared with the height of input area, if it is determined that When showing that height required for content information is greater than the height of input area, the width of adjustment unit lattice, so that adjusted defeated The height and height required for display content information for entering region match.Height required for display content information is combined as a result, Spend information, realize the adjustment to the height of input area automatically, avoid user need manual unit lattice height so that The trouble that content information in cell can be shown completely, further improves the Experience Degree of user.
Wherein, it should be noted that during the height of adjustment unit lattice, the height for controlling reserved area is kept not Become.
The embodiment of the present disclosure also proposes a kind of content typesetting device of cell.
Fig. 5 is a kind of structural schematic diagram of the content typesetting device of cell provided by the embodiment of the present disclosure.
As shown in figure 5, the content typesetting device of the cell may include obtaining module 110 and type-setting module 120, In:
Obtain module 110, the content information inputted in cell for obtaining user, wherein cell includes available Input area in display input content and reserved area for showing preset icon.
Type-setting module 120, for the width according to the width of content information, cell and reserved area, to input area In content information carry out typesetting.
In one embodiment of the present disclosure, type-setting module is specifically used for: according to the width of cell and reserved area Width determines the width of input area;It, then will be in input area when the width of content information is more than the width of input area Content information carries out line feed and shows.
In one embodiment of the present disclosure, in order to avoid user needs the height of manual unit lattice so that in cell The trouble that can show completely of content information, on the basis of embodiment shown in Fig. 5, as shown in fig. 6, the device can also wrap It includes:
Determining module 130 determines the height of input area for the height according to cell.
Module 140 is adjusted, when for being greater than the height of input area when the height of content information, the width of adjustment unit lattice Degree, so that the height of input area adjusted matches with height required for display content information.
Wherein, it is to be understood that in practical applications, the icon that can be shown in cell may to be multiple, Also, the position that different function icon is shown in cell is different, therefore, the embodiment of property as an example, When in order to avoid showing corresponding function icon in cell, the occurrence of content in cell is blocked, is used obtaining Before the content information that family inputs in cell, the location information that preset icon is arranged in cell can also be obtained, so Afterwards, according to location information, the width of preset icon and height, the reserved area is reserved on the corresponding position of cell.
For example, the corresponding icon A of function 1, when user uses the function 1, icon A Cell display Upper left corner position, the corresponding icon B of function 2, when user uses the function 2, icon B is shown in cell Corner position of sitting down can be in the upper left apex angle in cell before obtaining the content information that inputs in cell of user And upper right corner position is respectively provided with reserved area.
In one embodiment of the present disclosure, on the basis of embodiment shown in Fig. 5, as shown in fig. 7, the device may be used also To include:
First obtains module 150, for obtaining the text justification mode that user is cell setting;
Wherein, type-setting module is specifically used for: according to the width of the width of cell and reserved area, determining input area Width;When the width of content information is more than the width of input area, then according to the width of content information and input area Width calculates the content information of the width beyond input area, and according to text justification mode, the content information that will exceed is defeated Enter to carry out line feed in region to show.
Wherein, it should be noted that the explanation of the aforementioned content typesetting embodiment of the method to cell is also applied for The content typesetting device of the cell of the embodiment, details are not described herein again.
The content typesetting device of the cell of the embodiment of the present disclosure, in advance by icon institute in the cell in electrical form The region needed is reserved, and when the content information inputted in cell to user carries out typesetting, combined content information With the width of reserved area and cell, typesetting is carried out to the content information in input area.Binding function icon institute as a result, The region needed carries out Automatic Typesetting to the content information in cell, avoids and shows corresponding function icon on subsequent cell lattice When, the occurrence of content in cell is blocked, improve the Experience Degree of user.
In order to realize above-described embodiment, the embodiment of the present disclosure also proposes a kind of electronic equipment, including memory, processor and The computer program that can be run on a memory and on a processor is stored, processor executes program, to be used for: obtaining user and exist The content information inputted in cell, wherein cell includes that can be used for showing the input area of input content and for showing The reserved area of preset icon;According to the width of the width of content information, cell and reserved area, in input area Hold information and carries out typesetting.
In order to realize above-described embodiment, the embodiment of the present invention also proposes a kind of non-transitorycomputer readable storage medium, It is stored thereon with computer program, which is executed by processor, the content typesetting of the cell for executing above-described embodiment Method.
Below with reference to Fig. 8, it illustrates the structural representations for the electronic equipment 800 for being suitable for being used to realize the embodiment of the present disclosure Figure.Terminal device in the embodiment of the present disclosure can include but is not limited to such as mobile phone, laptop, digital broadcasting and connect Receive device, PDA (personal digital assistant), PAD (tablet computer), PMP (portable media player), car-mounted terminal (such as vehicle Carry navigation terminal) etc. mobile terminal and such as number TV, desktop computer etc. fixed terminal.Electricity shown in Fig. 8 Sub- equipment is only an example, should not function to the embodiment of the present disclosure and use scope bring any restrictions.
As shown in figure 8, electronic equipment 800 may include processing unit (such as central processing unit, graphics processor etc.) 801, random access can be loaded into according to the program being stored in read-only memory (ROM) 802 or from storage device 808 Program in memory (RAM) 803 and execute various movements appropriate and processing.In RAM 803, it is also stored with electronic equipment Various programs and data needed for 800 operations.Processing unit 801, ROM 802 and RAM 803 pass through the phase each other of bus 804 Even.Input/output (I/O) interface 805 is also connected to bus 804.
In general, following device can connect to I/O interface 805: including such as touch screen, touch tablet, keyboard, mouse, taking the photograph As the input unit 806 of head, microphone, accelerometer, gyroscope etc.;Including such as liquid crystal display (LCD), loudspeaker, vibration The output device 807 of dynamic device etc.;Storage device 808 including such as tape, hard disk etc.;And communication device 809.Communication device 809, which can permit electronic equipment 800, is wirelessly or non-wirelessly communicated with other equipment to exchange data.Although Fig. 8 shows tool There is the electronic equipment 800 of various devices, it should be understood that being not required for implementing or having all devices shown.It can be with Alternatively implement or have more or fewer devices.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable medium On computer program, which includes the program code for method shown in execution flow chart.In such reality It applies in example, which can be downloaded and installed from network by communication device 809, or from storage device 808 It is mounted, or is mounted from ROM 802.When the computer program is executed by processing unit 801, the embodiment of the present disclosure is executed Method in the above-mentioned function that limits.
It should be noted that the above-mentioned computer-readable medium of the disclosure can be computer-readable signal media or meter Calculation machine readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example can be --- but not Be limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.Meter The more specific example of calculation machine readable storage medium storing program for executing can include but is not limited to: have the electrical connection, just of one or more conducting wires Taking formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only storage Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device, Or above-mentioned any appropriate combination.In the disclosure, computer readable storage medium can be it is any include or storage journey The tangible medium of sequence, the program can be commanded execution system, device or device use or in connection.And at this In open, computer-readable signal media may include in a base band or as the data-signal that carrier wave a part is propagated, In carry computer-readable program code.The data-signal of this propagation can take various forms, including but not limited to Electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computer-readable and deposit Any computer-readable medium other than storage media, the computer-readable signal media can send, propagate or transmit and be used for By the use of instruction execution system, device or device or program in connection.Include on computer-readable medium Program code can transmit with any suitable medium, including but not limited to: electric wire, optical cable, RF (radio frequency) etc. are above-mentioned Any appropriate combination.
Above-mentioned computer-readable medium can be included in above-mentioned electronic equipment;It is also possible to individualism, and not It is fitted into the electronic equipment.
Above-mentioned computer-readable medium carries one or more program, when said one or multiple programs are by the electricity When sub- equipment executes, so that the electronic equipment: obtaining the content information that user inputs in cell, wherein the cell Reserved area including can be used for showing the input area of input content and for showing preset icon;According to the content information Width, the cell and the reserved area width, in the input area the content information carry out typesetting.
Alternatively, above-mentioned computer-readable medium carries one or more program, when said one or multiple programs When being executed by the electronic equipment, so that the electronic equipment: obtaining the content information that user inputs in cell, wherein described Cell includes the input area that can be used for showing input content and the reserved area for showing preset icon;According to described interior The width for holding the width of information, the cell and the reserved area, to the content information in the input area into Row typesetting.
The calculating of the operation for executing the disclosure can be write with one or more programming languages or combinations thereof Machine program code, above procedure design language include object oriented program language-such as Java, Smalltalk, C+ +, it further include conventional procedural programming language-such as " C " language or similar programming language.Program code can Fully to execute, partly execute on the user computer on the user computer, be executed as an independent software package, Part executes on the remote computer or executes on a remote computer or server completely on the user computer for part. In situations involving remote computers, remote computer can pass through the network of any kind --- including local area network (LAN) Or wide area network (WAN)-is connected to subscriber computer, or, it may be connected to outer computer (such as utilize Internet service Provider is connected by internet).
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can It realizes by means of software and necessary general hardware platform, naturally it is also possible to pass through hardware.Based on this understanding, on Stating technical solution, substantially the part that contributes to existing technology can be embodied in the form of software products in other words, should Computer software product may be stored in a computer readable storage medium, such as magnetic disk, CD, read-only memory (ROM) Or random access memory (RAM) etc., including some instructions use is so that a computer equipment (can be individual calculus Machine, server or network equipment etc.) execute each embodiment or embodiment certain parts method.
Finally, it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although Present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: it still may be used To modify the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features; And these are modified or replaceed, technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution spirit and Range.

Claims (10)

1.一种单元格的内容排版方法,其特征在于,包括:1. a kind of content typesetting method of cell, is characterized in that, comprises: 获取用户在单元格中输入的内容信息,其中,所述单元格包括可用于显示输入内容的输入区域和用于显示预设图标的预留区域;Obtain the content information input by the user in the cell, wherein the cell includes an input area that can be used to display the input content and a reserved area for displaying a preset icon; 根据所述内容信息的宽度、所述单元格和所述预留区域的宽度,对所述输入区域中的所述内容信息进行排版。The content information in the input area is typeset according to the width of the content information, the width of the cell and the reserved area. 2.如权利要求1所述的方法,其特征在于,所述根据所述内容信息的宽度、所述单元格和所述预留区域的宽度,对所述输入区域中的所述内容信息进行排版,包括:2. The method according to claim 1, wherein the content information in the input area is performed according to the width of the content information, the width of the cell and the reserved area. typography, including: 根据所述单元格的宽度和所述预留区域的宽度,确定所述输入区域的宽度;Determine the width of the input area according to the width of the cell and the width of the reserved area; 当所述内容信息的宽度超过所述输入区域的宽度时,则将所述输入区域内的所述内容信息进行换行显示。When the width of the content information exceeds the width of the input area, the content information in the input area is displayed in a new line. 3.如权利要求2所述的方法,其特征在于,还包括:3. The method of claim 2, further comprising: 根据所述单元格的高度,确定所述输入区域的高度;Determine the height of the input area according to the height of the cell; 当所述内容信息的高度大于所述输入区域的高度时,调整所述单元格的宽度,以使调整后的输入区域的高度与显示所述内容信息所需要的高度相匹配。When the height of the content information is greater than the height of the input area, the width of the cell is adjusted so that the adjusted height of the input area matches the height required for displaying the content information. 4.如权利要求1所述的方法,其特征在于,在所述获取用户在单元格中输入的内容信息之前,所述方法还包括:4. The method according to claim 1, wherein before acquiring the content information input by the user in the cell, the method further comprises: 获取所述预设图标在所述单元格中设置的位置信息;根据所述位置信息、所述预设图标的宽度和高度,在所述单元格的对应位置上预留所述预留区域。Acquire the position information set in the cell of the preset icon; and reserve the reserved area at the corresponding position of the cell according to the position information and the width and height of the preset icon. 5.如权利要求1所述的方法,其特征在于,所述方法还包括:5. The method of claim 1, wherein the method further comprises: 获取所述用户为所述单元格设置的文本对齐方式;Obtain the text alignment set by the user for the cell; 所述根据所述内容信息的宽度、所述单元格的宽度以及所述预留区域的宽度,对所述输入区域中的所述内容信息进行排版,包括:The typesetting of the content information in the input area according to the width of the content information, the width of the cell and the width of the reserved area includes: 根据所述单元格的宽度和所述预留区域的宽度,确定所述输入区域的宽度;Determine the width of the input area according to the width of the cell and the width of the reserved area; 当所述内容信息的宽度超过所述输入区域的宽度时,则根据所述内容信息的宽度和所述输入区域的宽度,计算超出所述输入区域的宽度的内容信息,并根据所述文本对齐方式,将超出的内容信息在所述输入区域中进行换行显示。When the width of the content information exceeds the width of the input area, the content information exceeding the width of the input area is calculated according to the width of the content information and the width of the input area, and aligned according to the text In the input area, the excess content information is displayed in a new line. 6.一种单元格的内容排版装置,其特征在于,包括:6. A content typesetting device for a cell, comprising: 获取模块,用于获取用户在单元格中输入的内容信息,其中,所述单元格包括可用于显示输入内容的输入区域和用于显示预设图标的预留区域;an acquisition module, configured to acquire content information input by a user in a cell, wherein the cell includes an input area that can be used to display the input content and a reserved area used to display a preset icon; 排版模块,用于根据所述内容信息的宽度、所述单元格和所述预留区域的宽度,对所述输入区域中的所述内容信息进行排版。and a typesetting module, configured to typeset the content information in the input area according to the width of the content information, the width of the cell and the reserved area. 7.如权利要求6所述的装置,其特征在于,所述排版模块,具体用于:7. The device according to claim 6, wherein the typesetting module is specifically used for: 根据所述单元格的宽度和所述预留区域的宽度,确定所述输入区域的宽度;Determine the width of the input area according to the width of the cell and the width of the reserved area; 当所述内容信息的宽度超过所述输入区域的宽度时,则将所述输入区域内的所述内容信息进行换行显示。When the width of the content information exceeds the width of the input area, the content information in the input area is displayed in a new line. 8.如权利要求7所述的装置,其特征在于,还包括:8. The apparatus of claim 7, further comprising: 确定模块,用于根据所述单元格的高度,确定所述输入区域的高度;a determining module, configured to determine the height of the input area according to the height of the cell; 调整模块,用于当所述内容信息的高度大于所述输入区域的高度时,调整所述单元格的宽度,以使调整后的输入区域的高度与显示所述内容信息所需要的高度相匹配。an adjustment module, configured to adjust the width of the cell when the height of the content information is greater than the height of the input area, so that the height of the adjusted input area matches the height required for displaying the content information . 9.一种电子设备,其特征在于,包括:9. An electronic device, characterized in that, comprising: 至少一个处理器;以及,与所述至少一个处理器通信连接的存储器;at least one processor; and, a memory communicatively coupled to the at least one processor; 其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被设置为用于执行上述权利要求1-5任一项所述的单元格的内容排版方法。Wherein, the memory stores instructions executable by the at least one processor, and the instructions are configured to execute the content typesetting method for a cell according to any one of claims 1-5 above. 10.一种非暂态计算机可读存储介质,其特征在于,所述非暂态计算机可读存储介质存储计算机指令,所述计算机指令用于使所述计算机执行权利要求1-5任一项所述的单元格的内容排版方法。10. A non-transitory computer-readable storage medium, characterized in that the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to cause the computer to execute any one of claims 1-5 The content typesetting method of the described cell.
CN201811626913.9A 2018-12-28 2018-12-28 Content typesetting method and device for cells, electronic equipment and storage medium Active CN109710911B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811626913.9A CN109710911B (en) 2018-12-28 2018-12-28 Content typesetting method and device for cells, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811626913.9A CN109710911B (en) 2018-12-28 2018-12-28 Content typesetting method and device for cells, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109710911A true CN109710911A (en) 2019-05-03
CN109710911B CN109710911B (en) 2023-12-22

Family

ID=66257933

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811626913.9A Active CN109710911B (en) 2018-12-28 2018-12-28 Content typesetting method and device for cells, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109710911B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111079396A (en) * 2019-12-20 2020-04-28 方正国际软件(北京)有限公司 Typesetting method and device for characters in irregular unit grid

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009001462A1 (en) * 2007-06-28 2008-12-31 Fujitsu Limited Spread sheet generation program, recording medium storing its program, spread sheet generation device, and spread sheet generation method
CN101436178A (en) * 2008-12-03 2009-05-20 北大方正集团有限公司 Method and system for typesetting oblique line unit lattice
CN103136183A (en) * 2011-12-05 2013-06-05 北大方正集团有限公司 Method and device for typesetting
CN104238919A (en) * 2014-08-25 2014-12-24 三星电子(中国)研发中心 Method and device for displaying content on mobile interface
CN107908338A (en) * 2017-11-13 2018-04-13 掌阅科技股份有限公司 Hide word rearrangement method, terminal and the medium of finger pressing position
CN108647348A (en) * 2018-05-15 2018-10-12 平安普惠企业管理有限公司 Textual presentation method, apparatus, equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009001462A1 (en) * 2007-06-28 2008-12-31 Fujitsu Limited Spread sheet generation program, recording medium storing its program, spread sheet generation device, and spread sheet generation method
CN101436178A (en) * 2008-12-03 2009-05-20 北大方正集团有限公司 Method and system for typesetting oblique line unit lattice
CN103136183A (en) * 2011-12-05 2013-06-05 北大方正集团有限公司 Method and device for typesetting
CN104238919A (en) * 2014-08-25 2014-12-24 三星电子(中国)研发中心 Method and device for displaying content on mobile interface
CN107908338A (en) * 2017-11-13 2018-04-13 掌阅科技股份有限公司 Hide word rearrangement method, terminal and the medium of finger pressing position
CN108647348A (en) * 2018-05-15 2018-10-12 平安普惠企业管理有限公司 Textual presentation method, apparatus, equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111079396A (en) * 2019-12-20 2020-04-28 方正国际软件(北京)有限公司 Typesetting method and device for characters in irregular unit grid
CN111079396B (en) * 2019-12-20 2023-06-16 方正国际软件(北京)有限公司 Chinese typesetting method and typesetting device for irregular unit cell

Also Published As

Publication number Publication date
CN109710911B (en) 2023-12-22

Similar Documents

Publication Publication Date Title
CN110191231A (en) A kind of unread message based reminding method, device, terminal device and storage medium
CN110688829B (en) Table generation method, device, equipment and storage medium
CN112036824A (en) Business approval method, system, storage medium and electronic equipment
US20150067521A1 (en) Method and apparatus for presenting content using electronic devices
US20150061971A1 (en) Method and system for presenting content
WO2021114979A1 (en) Video page display method and apparatus, electronic device and computer-readable medium
WO2020156058A1 (en) Method and device for realizing dragging-based image warping on terminal
CN109446199A (en) Cell data processing method and device
EP4187490B1 (en) Method and apparatus for displaying text, electronic device, and computer-readable storage medium
WO2021098643A1 (en) Method and device for configuring prop in live streaming room, readable medium, and electronic device
WO2024212839A1 (en) Card layout method and apparatus, medium and electronic device
CN110087122A (en) For handling system, the method and apparatus of information
CN109145530A (en) Online document automatic authorization method, apparatus and electronic equipment
CN109710364A (en) Adjust method, apparatus, electronic equipment and the storage medium of layout type
CN109710911A (en) Cell content layout method, device, electronic device and storage medium
WO2024148803A1 (en) Aircraft-change-before-departure protection control system and method, device, and storage medium
WO2025011550A1 (en) Login method and apparatus, and electronic device
CN110209462B (en) Window arrangement method, device and equipment
WO2024251060A1 (en) Image and text typesetting method and apparatus, medium, and electronic device
CN113138897A (en) Information display method, device, equipment and storage medium
EP4481545A1 (en) Method and apparatus for adjusting interface layout, and device, storage medium and program product
CN115268821B (en) Audio playing method and device, equipment and medium
CN110162239A (en) Card method for folding, device, electronic equipment and storage medium in mind map
CN109976800A (en) Message informing method, device, equipment and storage medium based on Gitlab
CN115115230A (en) Flight seat adjusting method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TG01 Patent term adjustment
TG01 Patent term adjustment