CN105824485B - A kind of method for displaying textbox and device - Google Patents

A kind of method for displaying textbox and device Download PDF

Info

Publication number
CN105824485B
CN105824485B CN201510007474.3A CN201510007474A CN105824485B CN 105824485 B CN105824485 B CN 105824485B CN 201510007474 A CN201510007474 A CN 201510007474A CN 105824485 B CN105824485 B CN 105824485B
Authority
CN
China
Prior art keywords
text box
content
frame
margin
format
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.)
Active
Application number
CN201510007474.3A
Other languages
Chinese (zh)
Other versions
CN105824485A (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.)
Beijing Kingsoft Office Software Inc
Zhuhai Kingsoft Office Software Co Ltd
Guangzhou Jinshan Mobile Technology Co Ltd
Original Assignee
Beijing Kingsoft Office Software Inc
Zhuhai Kingsoft Office Software Co Ltd
Guangzhou Jinshan Mobile Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Office Software Inc, Zhuhai Kingsoft Office Software Co Ltd, Guangzhou Jinshan Mobile Technology Co Ltd filed Critical Beijing Kingsoft Office Software Inc
Priority to CN201510007474.3A priority Critical patent/CN105824485B/en
Publication of CN105824485A publication Critical patent/CN105824485A/en
Application granted granted Critical
Publication of CN105824485B publication Critical patent/CN105824485B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses a kind of method for displaying textbox and devices, comprising: receives format regulating command of the user for the size regulating command of window where destination document or for content in source text frame;If the regulating command received is size regulating command, the size of window where adjusting destination document;If the regulating command received is format regulating command, the content in source text frame is adjusted;It determines the initial position of content in displaying target text box, deletes source text frame;Since identified original position, with the format of content in source text frame, the content in source text frame is shown;Determine the bezel locations of target text box;At identified bezel locations, the frame of target text box is drawn, completes the display of target text box.Using the embodiment of the present invention, to user's no requirement (NR), and it is not necessarily to the format of user setting text box, the content-adaptive window size that can be realized in text box is shown, reduces operating procedure.

Description

Text box display method and device
Technical Field
The invention relates to the technical field of computers, in particular to a text box display method and device.
Background
The Word document view includes: page view, reading format view, Web format view, outline view and draft view; the user can switch views of the Word document.
Under the condition that a user uses a Web layout view to check or edit a Word document, when the window size of the Word document is changed or the format of the content in a text box is adjusted, the content in the text box cannot adapt to the window size display like the plain text content outside the text box under the condition that the format of the text box is not set, and the content in the text box can adapt to the window size display only by setting the format of the text box in order to adapt to the window size display of the content in the text box.
The method enables the content in the text box to be suitable for the display of the size of the window as the pure text content outside the text box, the format of the text box needs to be set, the operation steps for setting the format of the text box are complicated, and a user needs to master the related operation set for the text box in Word, so that the requirement on the user is high.
Disclosure of Invention
An object of the embodiments of the present invention is to provide a method and an apparatus for displaying a text box, so as to reduce the operation steps that contents in the text box adapt to the display of the size of a window as plain text contents outside the text box, and reduce the requirements on a user.
In order to achieve the above object, an embodiment of the present invention discloses a text box display method, including:
when the target document is displayed in a Web format view, receiving an adjusting instruction of a user;
judging the type of the received regulating instruction;
under the condition that the type of the received adjusting instruction is the size adjusting instruction aiming at the window where the target document is located, adjusting the size of the window where the target document is located according to the size adjusting instruction;
under the condition that the type of the received adjusting instruction is a format adjusting instruction aiming at the content in the source text box, adjusting the content in the source text box according to a format corresponding to the format adjusting instruction;
determining a starting position for displaying the content in the target text box;
obtaining the content in the source text box and the current format of the content, and deleting the source text box;
starting from the determined starting position, displaying the obtained content in the source text box in the format of the obtained content in the source text box;
after the content in the source text box is displayed, determining the frame position of a target text box around the displayed content in the source text box;
and drawing the frame of the target text box at the determined frame position to finish the display of the target text box.
Preferably, the determining a starting position of displaying the content in the target text box includes:
determining the position of a pre-obtained source text box in the target document as the initial position for displaying the content in the target text box; or
And obtaining the position of the source text box in the target document, and determining the obtained position as the starting position for displaying the content in the target text box.
Preferably, the determining the border position of the target text box around the displayed content in the source text box includes:
according to the internal margin format of a source text box, respectively determining positions, which are respectively distant from the leftmost content, the rightmost content, the uppermost content and the lowermost content in the displayed content in the source text box, of the left margin, the right margin, the upper margin and the lower margin recorded in the internal margin format as positions of a left frame, a right frame, an upper frame and a lower frame of a target text box around the displayed content in the source text box; wherein,
the left margin, the right margin, the upper margin and the lower margin in the text box are recorded in the internal margin format of the text box; the left margin, the right margin, the upper margin and the lower margin are respectively the distance from the leftmost content, the rightmost content, the uppermost content and the lowermost content in the text box to the left frame, the distance from the right frame, the distance from the upper frame and the distance from the lower frame of the text box.
Preferably, the drawing the frame of the target text box at the determined frame position includes:
and drawing the frame of the target text box at the determined frame position according to the frame style of the source text box obtained in advance.
Preferably, the method further comprises:
and performing color filling on the target text box by using the filling color of the source text box obtained in advance.
In order to achieve the above object, an embodiment of the present invention discloses a text box display device, including: an adjusting instruction receiving module, a judging module, a window size adjusting module, a content adjusting module, a starting position determining module, a content obtaining module, a content displaying module, a frame position determining module and a frame drawing module, wherein,
the adjusting instruction receiving module is used for receiving an adjusting instruction of a user when the target document is displayed in a Web format view;
the judging module is used for judging the type of the adjusting instruction received by the adjusting instruction receiving module;
the window size adjusting module is used for adjusting the size of the window where the target document is located according to the size adjusting instruction under the condition that the judging result of the judging module is that the type of the received adjusting instruction is the size adjusting instruction aiming at the window where the target document is located;
the content adjusting module is used for adjusting the content in the source text box according to the format corresponding to the format adjusting instruction under the condition that the judging result of the judging module is that the type of the received adjusting instruction is the format adjusting instruction aiming at the content in the source text box;
the starting position determining module is used for determining the starting position of the content in the display target text box;
the content obtaining module is used for obtaining the content in the source text box and the current format of the content, and deleting the source text box;
the content display module is used for displaying the content in the source text box obtained by the content obtaining module from the starting position determined by the starting position determining module in the format of the content in the source text box obtained by the content obtaining module;
the frame position determining module is used for determining the frame position of the target text box around the displayed content in the source text box after the content in the source text box is displayed;
and the frame drawing module is used for drawing the frame of the target text box at the frame position determined by the frame position determining module to finish the display of the target text box.
Preferably, the starting position determining module is specifically configured to:
determining the position of a pre-obtained source text box in the target document as the initial position for displaying the content in the target text box; or
And obtaining the position of the source text box in the target document, and determining the obtained position as the starting position for displaying the content in the target text box.
Preferably, the frame position determining module is specifically configured to:
according to the internal margin format of a source text box, after the content in the source text box is displayed, respectively determining the positions of the left margin, the right margin, the upper margin and the lower margin, which are respectively the positions of the left margin, the right margin, the upper margin and the lower margin recorded in the internal margin format, of the leftmost content, the rightmost content, the uppermost content and the lowermost content in the displayed content in the source text box at the periphery of the displayed content in the source text box as the positions of the left frame, the right frame, the upper frame and the lower frame of a target text box; wherein,
the left margin, the right margin, the upper margin and the lower margin in the text box are recorded in the internal margin format of the text box; the left margin, the right margin, the upper margin and the lower margin are respectively the distance from the leftmost content, the rightmost content, the uppermost content and the lowermost content in the text box to the left frame, the distance from the right frame, the distance from the upper frame and the distance from the lower frame of the text box.
Preferably, the frame drawing module is specifically configured to:
and drawing the frame of the target text box at the frame position determined by the frame position determining module according to the frame style of the source text box obtained in advance.
Preferably, the apparatus further comprises: a color-filling module for filling in the color,
and the color filling module is used for filling the target text box with the color of the pre-obtained source text box.
According to the technical scheme, the embodiment of the invention provides a method and a device for displaying a text box, which are used for receiving an adjusting instruction of a user when a target document is displayed in a Web format view; judging the type of the received regulating instruction; under the condition that the type of the received adjusting instruction is the size adjusting instruction aiming at the window where the target document is located, adjusting the size of the window where the target document is located according to the size adjusting instruction; under the condition that the type of the received adjusting instruction is a format adjusting instruction aiming at the content in the source text box, adjusting the content in the source text box according to a format corresponding to the format adjusting instruction; determining a starting position for displaying the content in the target text box; obtaining the content in the source text box and the current format of the content, and deleting the source text box; starting from the determined starting position, displaying the obtained content in the source text box in the format of the obtained content in the source text box; after the content in the source text box is displayed, determining the frame position of a target text box around the displayed content in the source text box; and drawing the frame of the target text box at the determined frame position to finish the display of the target text box. By applying the embodiment of the invention, the user has no requirement, the format of the text box is not required to be set by the user, and the user only needs to adjust the size of the window where the document is located or adjust the format of the content in the text box, so that the content in the text box can be displayed in the same size as the pure text content outside the text box, and the operation steps are reduced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a first flowchart illustrating a text box display method according to an embodiment of the present invention;
fig. 2 is a second flowchart illustrating a text box displaying method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a first structure of a textbox display apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a second structure of a text box display apparatus according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The present invention will be described in detail below with reference to specific examples.
Fig. 1 is a first flowchart illustrating a text box display method according to an embodiment of the present invention; the method can comprise the following steps:
s101: when the target document is displayed in a Web format view, receiving an adjusting instruction of a user;
s102: judging the type of the received regulating instruction; executing S103 if the type of the received adjusting instruction is the size adjusting instruction for the window where the target document is located, and executing S104 if the type of the received adjusting instruction is the format adjusting instruction for the content in the source text box;
the size adjusting instruction for the window where the target document is located can be a window maximization instruction, a window restoration instruction, and an adjusting instruction for dragging the edge of the window to adjust the size of the window; the format adjustment instruction for the content in the source text box may be to change the size of a word, change the size of a picture, and so on.
S103: adjusting the size of a window where the target document is located according to the size adjusting instruction;
for example, assuming that the size adjustment instruction is a window maximization instruction, the window in which the target document is located is maximized.
S104: adjusting the content in the source text box according to the format corresponding to the format adjusting instruction;
wherein, the content in the source text box may include: words, icons, text boxes, tables, charts, and the like.
For example, assuming that the format adjustment instruction is to adjust the size of the characters in the source text box from a four-number character to a three-number character, the characters in the source text box are adjusted to a three-number character.
S105: determining a starting position for displaying the content in the target text box;
in practical application, the position of the source text box obtained in advance in the target document can be determined as the starting position for displaying the content in the target text box; the position of the source text box in the target document can also be obtained, and the obtained position is determined as the starting position for displaying the content in the target text box. Wherein,
determining the position of the text box in the document can be determined according to the placeholder of the text box object; the position of the text box relative to the document page can also be determined, for example, how many centimeters away from the upper side and how many centimeters from the left side of the document page; the determination may also be made according to the position of the text box relative to the head of the text paragraph closest to the text box in the document, for example, how many centimeters the text box is away from the text content of the second section of the text and how many centimeters the text box is away from the left of the page.
For example, assume that the determined location of the source text box in the target document is: 2 cm away from the second segment of text content of the text and 2 cm away from the left edge of the page. And determining the position 2 cm away from the second segment of text content of the text and 2 cm away from the left edge of the page as the initial position of the content in the display target text box.
Of course, the specific implementation manner of determining the position of the text box in the document is not limited in the present invention, and any possible implementation manner may be applied in the present invention.
S106: obtaining the content in the source text box and the current format of the content, and deleting the source text box;
for example, assuming that the content in the source text box is obtained as "to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required to be used in the embodiments or the prior art descriptions will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings can be obtained according to the drawings without creative efforts for those skilled in the art. "wherein, the format is the first line indentation 2 characters, the font size is the third size, and the line spacing is 22 pounds.
S107: starting from the determined starting position, displaying the obtained content in the source text box in the format of the obtained content in the source text box;
illustratively, starting from the above-identified starting position, the content in the source text box is shown in a format with 2 character indentation in the top line, a font size of three-size characters, and a line spacing of 22 pounds, "in order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the technical solutions in the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without any creative effort. ". And automatically folding or unfolding the content in the source text box according to the size of the current window to ensure that the content in the source text box does not exceed the current window.
S108: after the content in the source text box is displayed, determining the frame position of a target text box around the displayed content in the source text box;
in practical application, according to an internal margin format of a source text box, respectively determining positions of a leftmost content, a rightmost content, an uppermost content and a lowermost content in the displayed contents of the source text box, which are respectively distant from the left margin, the right margin, the upper margin and the lower margin recorded in the internal margin format, as positions of a left frame, a right frame, an upper frame and a lower frame of a target text box; wherein,
the left margin, the right margin, the upper margin and the lower margin in the text box are recorded in the internal margin format of the text box; the left margin, the right margin, the upper margin and the lower margin are respectively the distance from the leftmost content, the rightmost content, the uppermost content and the lowermost content in the text box to the left frame, the distance from the right frame, the distance from the upper frame and the distance from the lower frame of the text box.
The internal margin format of the source text box can be obtained before the source text box is deleted after a user receives a size adjusting instruction for a window where the target document is located or a format adjusting instruction for content in the source text box, or the internal margin format of the source text box can be obtained after the internal margin format of the source text box is adjusted every time.
Illustratively, assume that the internal margin format of the source text box is: the left margin is 0.25 cm, the right margin is 0.25 cm, the upper margin is 0.13 cm and the lower margin is 0.13 cm; positions which are respectively 0.25 cm, 0.13 cm and 0.13 cm away from the leftmost content, the rightmost content, the topmost content and the bottommost content in the displayed contents in the source text box are respectively determined as positions of a left frame, a right frame, an upper frame and a lower frame of the target text box.
S109: and drawing the frame of the target text box at the determined frame position to finish the display of the target text box.
In practical application, the frame of the target text box can be drawn in the frame style of the source text box obtained in advance at the determined frame position.
The border style of the source text box can be obtained before the source text box is deleted after a user receives a size adjustment instruction for a window where the target document is located or a format adjustment instruction for content in the source text box, or the border style of the source text box can be obtained after the border style of the source text box is adjusted every time.
For example, assume that the border style of the source text box is: the color of the frame line is black, the frame line is a dotted line, and the thickness of the frame line is 1 pound; the border of the target text box is drawn with a black dashed line having a line thickness of 1 pound.
By applying the embodiment shown in FIG. 1 of the present invention, there is no requirement for the user, and the user does not need to set the format of the text box, and the user only needs to adjust the size of the window where the document is located or adjust the format of the content in the text box, so that the content in the text box can be displayed in the same size as the pure text content outside the text box, and the operation steps are reduced.
Fig. 2 is a second flowchart illustrating a text box displaying method according to an embodiment of the present invention; the embodiment shown in fig. 2 of the present invention is based on the embodiment shown in fig. 1, and adds S110: and performing color filling on the target text box by using the filling color of the source text box obtained in advance.
In practical applications, the filling color of the source text box may be obtained before the source text box is deleted after receiving a size adjustment instruction of a window where the target document is located by a user or a format adjustment instruction of content in the source text box, or the filling color of the source text box may be obtained after adjusting the filling color of the source text box each time.
For example, assuming that the filling color of the source text box is red, the target text box is color-filled in red.
By applying the embodiment shown in fig. 2 of the present invention, the target text box can be filled with the filling color of the source text box obtained in advance, so that the filling colors of the target text box and the source text box are the same, the color difference between the target text box and the source text box is visually reduced, and the user's needs are better met.
FIG. 3 is a schematic diagram of a first structure of a textbox display apparatus according to an embodiment of the present invention; the method can comprise the following steps: an adjustment instruction receiving module 201, a judging module 202, a window size adjusting module 203, a content adjusting module 204, a start position determining module 205, a content obtaining module 206, a content displaying module 207, a frame position determining module 208, and a frame drawing module 209, wherein,
an adjustment instruction receiving module 201, configured to receive an adjustment instruction of a user when a target document is displayed in a Web layout view;
a judging module 202, configured to judge the type of the adjustment instruction received by the adjustment instruction receiving module 201;
the window size adjusting module 203 is configured to, when the judgment result of the judging module 202 is that the type of the received adjusting instruction is the size adjusting instruction for the window where the target document is located, adjust the size of the window where the target document is located according to the size adjusting instruction;
a content adjusting module 204, configured to adjust the content in the source text box according to a format corresponding to the format adjusting instruction when the determination result of the determining module 202 is that the type of the received adjusting instruction is the format adjusting instruction for the content in the source text box;
a start position determining module 205, configured to determine a start position of displaying the content in the target text box;
in practical applications, the start position determining module 205 of the embodiment of the present invention may be specifically configured to:
determining the position of a pre-obtained source text box in the target document as the initial position for displaying the content in the target text box; or
And obtaining the position of the source text box in the target document, and determining the obtained position as the starting position for displaying the content in the target text box.
A content obtaining module 206, configured to obtain content in the source text box and a current format of the content, and delete the source text box;
a content display module 207, configured to display, starting from the start position determined by the start position determination module 205, the content in the source text box obtained by the content obtaining module 206 in the format of the content in the source text box obtained by the content obtaining module 206;
a border position determining module 208, configured to determine, after the content in the source text box is displayed, a border position of a target text box around the displayed content in the source text box;
in practical applications, the border position determining module 208 according to the embodiment of the present invention may be specifically configured to:
according to the internal margin format of a source text box, after the content in the source text box is displayed, respectively determining the positions of the left margin, the right margin, the upper margin and the lower margin, which are respectively the positions of the left margin, the right margin, the upper margin and the lower margin recorded in the internal margin format, of the leftmost content, the rightmost content, the uppermost content and the lowermost content in the displayed content in the source text box at the periphery of the displayed content in the source text box as the positions of the left frame, the right frame, the upper frame and the lower frame of a target text box; wherein,
the left margin, the right margin, the upper margin and the lower margin in the text box are recorded in the internal margin format of the text box; the left margin, the right margin, the upper margin and the lower margin are respectively the distance from the leftmost content, the rightmost content, the uppermost content and the lowermost content in the text box to the left frame, the distance from the right frame, the distance from the upper frame and the distance from the lower frame of the text box.
And a frame drawing module 209, configured to draw a frame of the target text box at the frame position determined by the frame position determining module 208, so as to complete display of the target text box.
In practical applications, the border drawing module 209 according to the embodiment of the present invention may be specifically configured to:
the border of the target text box is drawn in the border style of the source text box obtained in advance at the border position determined by the border position determination module 208.
By applying the embodiment shown in FIG. 3 of the present invention, there is no requirement for the user, and the user does not need to set the format of the text box, and the user only needs to adjust the size of the window where the document is located or adjust the format of the content in the text box, so that the content in the text box can be displayed in the same size as the pure text content outside the text box, and the operation steps are reduced.
Fig. 4 is a schematic structural diagram of a second example of a text box display apparatus according to an embodiment of the present invention, in which a color filling module 210 is added to the embodiment shown in fig. 3 according to the embodiment shown in fig. 4 of the present invention,
and a color filling module 210, configured to perform color filling on the target text box with a previously obtained filling color of the source text box.
By applying the embodiment shown in fig. 4 of the present invention, the target text box can be filled with the filling color of the source text box obtained in advance, so that the filling colors of the target text box and the source text box are the same, the color difference between the target text box and the source text box is visually reduced, and the user's needs are better met.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
Those skilled in the art will appreciate that all or part of the steps in the above method embodiments may be implemented by a program to instruct relevant hardware to perform the steps, and the program may be stored in a computer-readable storage medium, which is referred to herein as a storage medium, such as: ROM/RAM, magnetic disk, optical disk, etc.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (10)

1. A method for displaying a text box, the method comprising:
when the target document is displayed in a Web format view, receiving an adjusting instruction of a user;
judging the type of the received regulating instruction;
under the condition that the type of the received adjusting instruction is the size adjusting instruction aiming at the window where the target document is located, adjusting the size of the window where the target document is located according to the size adjusting instruction;
under the condition that the type of the received adjusting instruction is a format adjusting instruction aiming at the content in the source text box, adjusting the content in the source text box according to a format corresponding to the format adjusting instruction;
determining a starting position for displaying the content in the target text box;
obtaining the content in the source text box and the current format of the content, and deleting the source text box;
starting from the determined starting position, displaying the obtained content in the source text box in the format of the obtained content in the source text box;
after the content in the source text box is displayed, determining the frame position of a target text box around the displayed content in the source text box;
and drawing the frame of the target text box at the determined frame position to finish the display of the target text box.
2. The method of claim 1, wherein determining a starting location for displaying content in a target text box comprises:
determining the position of a pre-obtained source text box in the target document as the initial position for displaying the content in the target text box; or
And obtaining the position of the source text box in the target document, and determining the obtained position as the starting position for displaying the content in the target text box.
3. The method of claim 1, wherein determining the border position of a target text box around the displayed content in the source text box comprises:
determining the leftmost content in the displayed content in the source text box as the position of the left margin recorded in the internal margin format to be the left frame of the target text box at the periphery of the displayed content in the source text box according to the internal margin format of the source text box; determining the rightmost content in the source text box which is displayed at a distance as the position of the right margin recorded in the internal margin format as the right frame of the target text box; determining the uppermost content in the source text box which is displayed at a distance as the position of the upper margin recorded in the internal margin format as the upper frame of the target text box; determining the lowest content in the source text box which is displayed at a distance as the position of the lower margin recorded in the internal margin format as the lower frame of the target text box; wherein,
the left margin, the right margin, the upper margin and the lower margin in the text box are recorded in the internal margin format of the text box; the left margin, the right margin, the upper margin and the lower margin are respectively the distance from the leftmost content, the rightmost content, the uppermost content and the lowermost content in the text box to the left frame, the distance from the right frame, the distance from the upper frame and the distance from the lower frame of the text box.
4. The method of claim 1, wherein the drawing the border of the target text box at the determined border position comprises:
and drawing the frame of the target text box at the determined frame position according to the frame style of the source text box obtained in advance.
5. The method of any one of claims 1 to 4, further comprising:
and performing color filling on the target text box by using the filling color of the source text box obtained in advance.
6. A text box display apparatus, characterized in that the apparatus comprises: an adjusting instruction receiving module, a judging module, a window size adjusting module, a content adjusting module, a starting position determining module, a content obtaining module, a content displaying module, a frame position determining module and a frame drawing module, wherein,
the adjusting instruction receiving module is used for receiving an adjusting instruction of a user when the target document is displayed in a Web format view;
the judging module is used for judging the type of the adjusting instruction received by the adjusting instruction receiving module;
the window size adjusting module is used for adjusting the size of the window where the target document is located according to the size adjusting instruction under the condition that the judging result of the judging module is that the type of the received adjusting instruction is the size adjusting instruction aiming at the window where the target document is located;
the content adjusting module is used for adjusting the content in the source text box according to the format corresponding to the format adjusting instruction under the condition that the judging result of the judging module is that the type of the received adjusting instruction is the format adjusting instruction aiming at the content in the source text box;
the starting position determining module is used for determining the starting position of the content in the display target text box;
the content obtaining module is used for obtaining the content in the source text box and the current format of the content, and deleting the source text box;
the content display module is used for displaying the content in the source text box obtained by the content obtaining module from the starting position determined by the starting position determining module in the format of the content in the source text box obtained by the content obtaining module;
the frame position determining module is used for determining the frame position of the target text box around the displayed content in the source text box after the content in the source text box is displayed;
and the frame drawing module is used for drawing the frame of the target text box at the frame position determined by the frame position determining module to finish the display of the target text box.
7. The apparatus of claim 6, wherein the starting position determining module is specifically configured to:
determining the position of a pre-obtained source text box in the target document as the initial position for displaying the content in the target text box; or
And obtaining the position of the source text box in the target document, and determining the obtained position as the starting position for displaying the content in the target text box.
8. The apparatus of claim 6, wherein the border position determining module is specifically configured to:
according to the internal margin format of a source text box, after the content in the source text box is displayed, determining the leftmost content in the displayed content in the source text box as the position of the left margin recorded in the internal margin format to be the left frame of a target text box around the displayed content in the source text box; determining the rightmost content in the source text box which is displayed at a distance as the position of the right margin recorded in the internal margin format as the right frame of the target text box; determining the uppermost content in the source text box which is displayed at a distance as the position of the upper margin recorded in the internal margin format as the upper frame of the target text box; determining the lowest content in the source text box which is displayed at a distance as the position of the lower margin recorded in the internal margin format as the lower frame of the target text box; wherein,
the left margin, the right margin, the upper margin and the lower margin in the text box are recorded in the internal margin format of the text box; the left margin, the right margin, the upper margin and the lower margin are respectively the distance from the leftmost content, the rightmost content, the uppermost content and the lowermost content in the text box to the left frame, the distance from the right frame, the distance from the upper frame and the distance from the lower frame of the text box.
9. The apparatus of claim 6, wherein the border drawing module is specifically configured to:
and drawing the frame of the target text box at the frame position determined by the frame position determining module according to the frame style of the source text box obtained in advance.
10. The apparatus of any one of claims 6 to 9, further comprising: a color-filling module for filling in the color,
and the color filling module is used for filling the target text box with the color of the pre-obtained source text box.
CN201510007474.3A 2015-01-05 2015-01-05 A kind of method for displaying textbox and device Active CN105824485B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510007474.3A CN105824485B (en) 2015-01-05 2015-01-05 A kind of method for displaying textbox and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510007474.3A CN105824485B (en) 2015-01-05 2015-01-05 A kind of method for displaying textbox and device

Publications (2)

Publication Number Publication Date
CN105824485A CN105824485A (en) 2016-08-03
CN105824485B true CN105824485B (en) 2019-03-12

Family

ID=56513982

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510007474.3A Active CN105824485B (en) 2015-01-05 2015-01-05 A kind of method for displaying textbox and device

Country Status (1)

Country Link
CN (1) CN105824485B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107272993A (en) * 2017-06-30 2017-10-20 深圳铂睿智恒科技有限公司 The control method and system of intelligent terminal window view

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101140496A (en) * 2007-10-23 2008-03-12 深圳市迅雷网络技术有限公司 Method and device for regulating column frame
CN101615189A (en) * 2009-07-20 2009-12-30 魏新成 On mobile phone screen, increase the font pantograph ratio and play up the display web page word content
CN104050155A (en) * 2014-07-01 2014-09-17 西安诺瓦电子科技有限公司 Text editing device and method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101140496A (en) * 2007-10-23 2008-03-12 深圳市迅雷网络技术有限公司 Method and device for regulating column frame
CN101615189A (en) * 2009-07-20 2009-12-30 魏新成 On mobile phone screen, increase the font pantograph ratio and play up the display web page word content
CN104050155A (en) * 2014-07-01 2014-09-17 西安诺瓦电子科技有限公司 Text editing device and method

Also Published As

Publication number Publication date
CN105824485A (en) 2016-08-03

Similar Documents

Publication Publication Date Title
US8855413B2 (en) Image reflow at word boundaries
US11455460B2 (en) Method for displaying handwritten note in electronic book, electronic device and computer storage medium
US9823824B2 (en) Context sensitive adaptable user interface
CN104239284A (en) Method and device for automatic image-text composition
US9733876B2 (en) Method of printing web page by using mobile terminal and mobile terminal for performing the method
US20170365036A1 (en) Method and apparatus for controlling image display during image editing
US9767081B2 (en) Method and apparatus for displaying a webpage in a mobile terminal
JP5789719B2 (en) Method and apparatus for determining the display mode of an electronic document
US9767077B2 (en) Image processing apparatus, image processing method, and storage medium that stores program
CN104462044A (en) Recognizing and editing method and device of tabular images
US9135223B2 (en) Automatically configuring white space around an object in a document
CN105824485B (en) A kind of method for displaying textbox and device
JP2011040971A (en) Device, method and program for processing image
US9886629B2 (en) Techniques for restoring content from a torn document
US10789715B2 (en) Image processing device, image processing method, and information storage medium
JP6589302B2 (en) Information processing apparatus, image reading apparatus, and image display method
JP6305138B2 (en) Display control device and display control device control method
JP2014017661A (en) Image processing device, image processing method, and program
US9692936B2 (en) Image processing apparatus and image processing method for clipping, from a second image, an area at a position corresponding to designated position in a first image
CN104317782B (en) Text document processing method, processing unit and electronic equipment
US9400926B2 (en) Image processing apparatus, image processing method, and non-transitory computer readable medium
JP2013016049A (en) Image processing system, image forming device and program
US8933999B2 (en) Stereoscopic image display control apparatus, and method and program for controlling operation of same
KR101999549B1 (en) Cell auto divide device
JP6515523B2 (en) Sentence providing apparatus, program, sentence providing method and printed matter

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Jinshan software building No. 8 Jingshan Hill Road, Lane 519015 Lianshan Jida Zhuhai city in Guangdong Province

Applicant after: Zhuhai Kingsoft Office Software Co., Ltd.

Applicant after: Beijing Kingsoft office software Limited by Share Ltd

Applicant after: GUANGZHOU JINSHAN JINSHAN MOBILE TECHNOLOGY CO., LTD.

Address before: Jinshan software building No. 8 Jingshan Hill Road, Lane 519015 Lianshan Jida Zhuhai city in Guangdong Province

Applicant before: Zhuhai Kingsoft Office Software Co., Ltd.

Applicant before: Beijing Kingsoft WPS Office Co., Ltd.

Applicant before: GUANGZHOU JINSHAN JINSHAN MOBILE TECHNOLOGY CO., LTD.

COR Change of bibliographic data
GR01 Patent grant
GR01 Patent grant