CN109542554A - Method, apparatus, computer equipment and the storage medium of document layout conversion - Google Patents

Method, apparatus, computer equipment and the storage medium of document layout conversion Download PDF

Info

Publication number
CN109542554A
CN109542554A CN201811256881.8A CN201811256881A CN109542554A CN 109542554 A CN109542554 A CN 109542554A CN 201811256881 A CN201811256881 A CN 201811256881A CN 109542554 A CN109542554 A CN 109542554A
Authority
CN
China
Prior art keywords
interface element
streaming
frame
layout
frame interface
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
CN201811256881.8A
Other languages
Chinese (zh)
Other versions
CN109542554B (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.)
Kingdee Software China Co Ltd
Original Assignee
Kingdee Software China 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 Kingdee Software China Co Ltd filed Critical Kingdee Software China Co Ltd
Priority to CN201811256881.8A priority Critical patent/CN109542554B/en
Publication of CN109542554A publication Critical patent/CN109542554A/en
Application granted granted Critical
Publication of CN109542554B publication Critical patent/CN109542554B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/151Transformation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/177Editing, e.g. inserting or deleting of tables; using ruled lines
    • G06F40/18Editing, e.g. inserting or deleting of tables; using ruled lines of spreadsheets

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

This application involves method, apparatus, computer equipment and the storage mediums of a kind of conversion of document layout.The described method includes: obtaining the configuration information of the frame interface element and the frame interface element in frame layout document, the configuration information includes the element type of the frame interface element;According to the configuration information of the frame interface element and the frame interface element, the streaming layout ordering rule of the corresponding streaming interface element of the frame interface element and each streaming interface element is obtained;It is laid out ordering rule according to the streaming of each streaming interface element and each streaming interface element, generates streaming layout document.It can be by the frame interface element in frame layout document using the present invention, it is automatically converted to the streaming layout ordering rule of streaming interface element and streaming interface element, and then generate streaming layout document, without human intervention, it is time saving and energy saving, treatment effeciency is substantially increased in the case where guaranteeing correctness.

Description

Method, apparatus, computer equipment and the storage medium of document layout conversion
Technical field
This application involves the goal of electronic form technology fields, set more particularly to the method, apparatus of document layout conversion, computer Standby and storage medium.
Background technique
With the development of the goal of electronic form technology, electronic spreadsheet is also more and more extensive in the application of all trades and professions.Wherein, frame Memory space shared by the list of layout is small, and wide is applied in multipad, has more universal audient, because This, (such as: ERP dynamic list) electronic spreadsheet all can preferentially realize this layout under normal circumstances.But frame layout table The position of interface element in list is absolute position, when the outline border of list reduces, in fact it could happen that the interface element in list is aobvious Show incomplete problem, although there is partial region that can check the content beyond visual range by rolling content way, It is just isolated by each docks in content, an entirety cannot be formed.And the position of the interface element in the list of streaming layout It is set to relative position, the position of interface element can be adjusted with the frame size of list.It checks, is needed frame in order to facilitate user The list of frame layout is converted to the list of streaming layout,
Currently, the dynamic list that streaming can be used to be laid out by operator, to the frame interface in frame layout document Element according to the layout requirements manual layout again that streaming is laid out, and saves the streaming layout document after rearranging.In this way, After can be by human-edited, then streaming layout document be saved, by the frame interface element in frame layout document with streaming cloth The mode of office is shown.
However, the method that current document layout is converted, has that manpower workload is big, treatment effeciency is low.
Summary of the invention
Based on this, it is necessary in view of the above technical problems, provide a kind of document layout conversion that can be improved treatment effeciency Method, apparatus, computer equipment and storage medium.
A kind of method of document layout conversion, which comprises
The configuration information of the frame interface element and the frame interface element in frame layout document is obtained, it is described Configuration information includes the element type of the frame interface element;
According to the configuration information of the frame interface element and the frame interface element, the frame interface element is obtained The streaming of corresponding streaming interface element and each streaming interface element is laid out ordering rule;
It is laid out ordering rule according to the streaming of each streaming interface element and each streaming interface element, generates streaming Layout document.
It is described in one of the embodiments, that confidence is matched according to the frame interface element and the frame interface element Breath obtains the streaming layout sequence of the corresponding streaming interface element of the frame interface element and each streaming interface element Rule, comprising:
If the element type of the frame interface element is the preset first kind, it is determined that the frame interface element is The streaming interface element, and according to the element type of the frame interface element, determine the streaming of the streaming interface element It is laid out ordering rule;
If the element type of the frame interface element is preset Second Type, preset element conversion method is used The frame interface element is converted into the streaming laying-out interface element, and ordering rule is laid out according to preset streaming, it is raw Ordering rule is laid out at the streaming of the streaming laying-out interface element.
The first kind includes watermark element and menu element in one of the embodiments,;
The element type according to the frame interface element determines the streaming layout sequence of the streaming interface element Rule, comprising:
If the element type of the frame interface element is the menu element, the streaming of the streaming interface element is determined Being laid out ordering rule is the first place in the streaming layout document;
If the element type of the frame interface element is the watermark element, the streaming of the streaming interface element is determined Being laid out ordering rule is the tail position in the streaming layout document.
The Second Type includes Container Type and non-Container Type, the Container Type in one of the embodiments, Including preset the first container element;
It is described that the frame interface element is converted to by the streaming layout interface member using preset element conversion method Element, comprising:
If the element type of the frame interface element is the preset the first container element, the frame interface is determined Relative order rule of each child element block in the frame interface element in element;
According to relative order rule of each child element block in the frame interface element, by the frame Interface Element Element is converted to the streaming laying-out interface element.
The preset the first container element includes left-right layout segmentation Container elements and a left side in one of the embodiments, Right stop layout container;
If the element type of the frame interface element is the preset Container elements, the frame interface element is determined In each child element block in the frame interface element relative order rule, comprising:
If the element type of the frame interface element is that the left-right layout divides Container elements or the left and right is stopped Layout container determines respectively in the frame interface element, the daughter element positioned at the left side and the daughter element positioned at the right, described Relative order rule in frame interface element;
According to relative order rule of each child element block in the frame interface element, by the frame Interface Element Element is converted to the streaming laying-out interface element, comprising:
It is regular according to the relative order of the child element block positioned at the left side and the child element block positioned at the right, By the child element block, the child element block positioned at the right and the frame interface element positioned at the left side, it is converted into The streaming laying-out interface element, wherein the streaming laying-out interface element after the frame interface element conversion includes institute The streaming laying-out interface element and the child element block positioned at the right of the rheme after the child element block conversion on the left side turn The streaming laying-out interface element after changing.
The configuration information further includes translation type and collects mark, the translation type in one of the embodiments, Including business module;
It is described that the frame interface element is converted to by the streaming layout interface member using preset element conversion method Before element, the method also includes:
If described in the element type of the frame interface element is the Container Type, the frame interface element is not belonging to Preset the first container element, and the translation type of the frame interface element is business module, judges the frame interface element Configuration information in whether comprising collecting mark;
If so, identifying the daughter element of corresponding frame interface element using described collect, mark pair is collected described in replacement The frame interface element answered.
In one of the embodiments, after the frame interface element in the acquisition frame layout document, the side Method further include:
The width of the corresponding streaming interface element of the frame interface element is set.
A kind of conversion equipment of layout document, described device include:
Module is obtained, for obtaining frame interface element and the frame interface in preset frame layout document The configuration information of element, the configuration information include the element type of the frame interface element;
Generation module generates institute for the element type based on the frame interface element and the frame interface element State the streaming layout ordering rule of the corresponding streaming interface element of frame interface element and the streaming interface element;
The generation module is also used to the streaming cloth based on the streaming interface element and the streaming interface element Office's ordering rule, generates streaming layout document.
In one embodiment, the acquisition module, is specifically used for
If the element type of the frame interface element is the preset first kind, it is determined that the frame interface element is The streaming interface element, and according to the element type of the frame interface element, determine the streaming of the streaming interface element It is laid out ordering rule;
If the element type of the frame interface element is preset Second Type, preset element conversion method is used The frame interface element is converted into the streaming laying-out interface element, and ordering rule is laid out according to preset streaming, it is raw Ordering rule is laid out at the streaming of the streaming laying-out interface element.
In one embodiment, the first kind includes watermark element and menu element;
The acquisition module, is specifically used for
If the element type of the frame interface element is the menu element, the streaming of the streaming interface element is determined Being laid out ordering rule is the first place in the streaming layout document;
If the element type of the frame interface element is the watermark element, the streaming of the streaming interface element is determined Being laid out ordering rule is the tail position in the streaming layout document.
In one embodiment, the Second Type includes Container Type and non-Container Type, the Container Type packet Include preset the first container element;
The acquisition module, is specifically used for
If the element type of the frame interface element is the preset the first container element, the frame interface is determined Relative order rule of each child element block in the frame interface element in element;
According to relative order rule of each child element block in the frame interface element, by the frame Interface Element Element is converted to the streaming laying-out interface element.
In one embodiment, the preset the first container element includes left-right layout segmentation Container elements and left and right Stop layout container;
The acquisition module, if the element type specifically for the frame interface element is that left-right layout segmentation is held Layout container is stopped in device element or the left and right, is determined in the frame interface element respectively, daughter element and position positioned at the left side Daughter element in the right, the relative order rule in the frame interface element;
The acquisition device, specifically for according to the child element block and the daughter element positioned at the right for being located at the left side The relative order rule of block, by the child element block positioned at the left side, the child element block positioned at the right and described Frame interface element is converted into the streaming laying-out interface element, wherein the stream after the frame interface element conversion Formula laying-out interface element includes the streaming laying-out interface element after the child element block conversion positioned at the left side and described The streaming laying-out interface element after the child element block conversion on the right.
In one embodiment, the configuration information further includes translation type and collects mark, the translation type packet Include business module;
Described device further include: judgment module;
The judgment module, if the element type for the frame interface element is the Container Type, the frame Interface element is not belonging to the preset the first container element, and the translation type of the frame interface element is business module, is sentenced Whether break in the configuration information of the frame interface element comprising collecting mark;If so, using it is described collect mark it is corresponding The daughter element of frame interface element collects the corresponding frame interface element of mark described in replacement.
In one embodiment, described device further include: setup module, it is corresponding for the frame interface element to be arranged Streaming interface element width.
A kind of computer equipment, including memory and processor, the memory are stored with computer program, the processing Device performs the steps of when executing the computer program
The configuration information of the frame interface element and the frame interface element in frame layout document is obtained, it is described Configuration information includes the element type of the frame interface element;
According to the configuration information of the frame interface element and the frame interface element, the frame interface element is obtained The streaming of corresponding streaming interface element and each streaming interface element is laid out ordering rule;
It is laid out ordering rule according to the streaming of each streaming interface element and each streaming interface element, generates streaming Layout document.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor It is performed the steps of when row
The configuration information of the frame interface element and the frame interface element in frame layout document is obtained, it is described Configuration information includes the element type of the frame interface element;
According to the configuration information of the frame interface element and the frame interface element, the frame interface element is obtained The streaming of corresponding streaming interface element and each streaming interface element is laid out ordering rule;
It is laid out ordering rule according to the streaming of each streaming interface element and each streaming interface element, generates streaming Layout document.
Method, apparatus, computer equipment and the storage medium of above-mentioned document layout conversion, it is possible, firstly, to obtain frame cloth The configuration information of frame interface element and frame interface element in office's document, wherein configuration information includes frame Interface Element The element type of element;Then, according to the configuration information of frame interface element and frame interface element, frame interface element pair is obtained The streaming of the streaming interface element and each streaming interface element answered is laid out ordering rule;Finally, according to each streaming interface element and The streaming of each streaming interface element is laid out ordering rule, generates streaming layout document.
As it can be seen that the frame interface element in frame layout document can be automatically converted to streaming circle by the embodiment of the present invention The streaming of surface element and streaming interface element is laid out ordering rule, and then generates streaming layout document, without human intervention, time saving It is laborsaving, treatment effeciency is substantially increased in the case where guaranteeing correctness.
Detailed description of the invention
Fig. 1 is the applied environment figure of the method for document layout conversion in one embodiment;
Fig. 2 is the flow diagram of the method for document layout conversion in one embodiment;
Fig. 3 is the processing flow schematic diagram in another embodiment under second situation;
Fig. 4 is the flow diagram of the method for document layout conversion in another embodiment;
Fig. 5 is the flow diagram of S206 in further embodiment;
Fig. 6 is the flow diagram of the method for document layout conversion in further embodiment;
Fig. 7 is the interaction flow schematic diagram of user and server in an Application Example;
Fig. 8 is the structural block diagram of the conversion equipment of layout document in one embodiment;
Fig. 9 is the internal structure chart of computer equipment in one embodiment.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, not For limiting the application.
The method of document layout conversion provided by the present application, can be applied in application environment as shown in Figure 1.Wherein, Terminal 102 is communicated with server 104 by network by network.Wherein, terminal 102 can be, but not limited to be various individuals Computer, laptop, smart phone, tablet computer and portable wearable device, server 104 can use independent clothes The server cluster of business device either multiple servers composition is realized.
In one embodiment, as shown in Fig. 2, providing a kind of method of document layout conversion, this method can be applied Terminal or server in Fig. 1, this method can be applied to for the terminal in Fig. 1 or server be illustrated, including with Lower step:
S202 obtains the configuration information of the frame interface element and the frame interface element in frame layout document The configuration information includes the element type of the frame interface element.
In this step, the frame interface element in available frame layout document and frame interface element are matched Frame interface element is converted to streaming interface element, wherein configuration information can wrap to be based on configuration information by confidence breath Include the element type of frame interface element, also may include the conversion method of each element, the relative positional relationship of each element and Corresponding target streaming element type etc., the present embodiment does not limit this.Wherein the element type includes: watermark element, dish Single element, Container elements, fixed element, document element etc..
Specifically, frame interface element can be obtained from the former data file of frame layout document;It can also be first by frame The superset of a frame interface element in the former data file of frame layout document, which closes, is added a blank document, from blank text Frame interface element is obtained in shelves.
S204 obtains frame circle according to the configuration information of the frame interface element and the frame interface element The streaming of the corresponding streaming interface element of surface element and each streaming interface element is laid out ordering rule.
It in this step, can be according to the configuration information of frame interface element and frame interface element, to obtain frame circle The streaming of the corresponding streaming interface element of surface element and each streaming interface element is laid out ordering rule, so as to according to streaming circle The streaming of surface element and streaming interface element is laid out ordering rule, generates streaming layout document.Wherein, which includes Location information, sequence serial number and stop information etc. of the element in streaming layout, the present embodiment does not limit this.
It should be noted that being converted to streaming interface element institute due to the frame interface element for being directed to different element types The method used is different, and the frame interface element of some element types can be directly as streaming interface element, some element classes The frame interface element of type can be converted directly into streaming interface element, and the frame interface element of some element types needs first true Behind the position of fixed internal daughter element, streaming interface element can be just converted to, therefore, for the frame Interface Element of different element types Element needs to perform corresponding processing, and obtains the corresponding streaming interface element of frame interface element.
Correspondingly, for the streaming interface element obtained by the frame interface element of different element types, corresponding to determination Streaming layout ordering rule mode it is also different, the corresponding streaming interface element of the frame interface element of some element types Streaming layout ordering rule can directly determine, the streaming of the corresponding streaming interface element of frame interface element of some plain types Layout ordering rule needs are determined according to preset placement rule.
It should also be noted that, since the position of each streaming interface element in streaming layout document is relative position, Therefore, ordering rule and preset streaming placement rule are laid out according to streaming, it will be able to determine streaming interface element in display box In layout.Wherein, preset streaming placement rule can be " Z " font layout, it may be assumed that with behavior unit, from left to right, from upper Sequence under is also possible to " N " font layout, it may be assumed that arrange as unit, from top to bottom, sequence from left to right can also be by It determines and is laid out according to typing sequence, can specifically determine according to the actual situation.
S206 is laid out ordering rule according to the streaming of each streaming interface element and each streaming interface element, raw At streaming layout document.
In this step, it can be laid out according to the streaming of the S204 each streaming interface element determined and each streaming interface element Ordering rule determines that each streaming interface element in the relative position of the display page, generates streaming cloth according to preset placement rule Office's document.When user needs to check, operation streaming layout document can be by the corresponding streaming Interface Element of frame interface element Element is shown in such a way that streaming is laid out.In this way, without human intervention, so that it may which the streaming after being saved by operation is laid out text Shelves show the frame interface element in frame layout document in a manner of streaming layout.
It, can be by the frame interface element in frame layout document, automatic conversion in the method for above-mentioned document layout conversion It is laid out ordering rule for the streaming of streaming interface element and streaming interface element, and then generates streaming layout document, without artificial Operation, it is time saving and energy saving, treatment effeciency can be improved, furthermore, it is possible to avoid error-prone problem as caused by manual operation.
In yet another embodiment, element type can be divided into the preset first kind and preset Second Type, In, the frame interface element of the preset first kind can be determined directly as streaming interface element, without conversion, such as watermark member Element and menu element, the frame interface element of preset Second Type are needed by being converted to corresponding streaming interface element, It may include the other elements type in addition to the preset first kind.
For above-mentioned scene, S204 can be handled for the first following situation and second situation:
The first situation, if the element type of the frame interface element is the preset first kind, it is determined that the frame Frame interface element is the streaming interface element, and according to the element type of the frame interface element, determines streaming circle The streaming of surface element is laid out ordering rule.
It in this step, is the frame interface element of the preset first kind for element type, it can be by frame interface Element is determined directly as streaming interface element, and according to element type, can determine the streaming layout row of streaming interface element Sequence rule generates streaming layout document to be laid out ordering rule based on the streaming of streaming interface element and streaming interface element.
It should be noted that the preset first kind may include watermark element and menu element, since element type is The frame interface element and element type of watermark element are the frame interface element of menu element in frame layout document neutralized stream Display mode in formula layout document is all the same, therefore, can directly really for the frame interface element of the preset first kind The fixed frame interface element is the streaming interface element, without being converted.
In addition, either frame layout document or streaming layout document, due to the frame that element type is watermark element Interface element is usually located at the bottom of all texts or pattern in the page, and element type is the frame interface element of menu element It is usually located at the top of the page, is the frame interface element of the preset first kind for element type therefore, it can directly really The streaming for determining the corresponding streaming interface element of the frame interface element is laid out ordering rule, to guarantee that element type is pre- If the first kind normal display of the frame interface element in streaming layout document.
In a kind of wherein embodiment, in more detail, in above-described embodiment in " the first situation " " according to the frame The element type of interface element determines the streaming layout ordering rule of the streaming interface element " processing step, it can be for such as Lower situation A and scenario B are handled:
Situation A determines the streaming interface element if the element type of the frame interface element is the menu element Streaming layout ordering rule be the streaming layout document in first place.
In this step, it is the frame interface element of menu element for element type, can determines the frame Interface Element The streaming layout ordering rule of the corresponding streaming interface element of element is the first place in the streaming layout document, namely guarantees frame The corresponding streaming interface element of interface element is placed on top or side in streaming layout document, specifically can be by the way that cloth is arranged Office's rule determines.
Situation B determines the streaming interface element if the element type of the frame interface element is the watermark element Streaming layout ordering rule be the streaming layout document in tail position.
In this step, it is the frame interface element of watermark element for element type, can determines the frame Interface Element The streaming layout ordering rule of the corresponding streaming interface element of element is the tail position in the streaming layout document, namely guarantees frame The corresponding streaming interface element of interface element is placed on the bottom in streaming layout document.
Second situation, if the element type of the frame interface element is preset Second Type, using preset The frame interface element is converted to the streaming laying-out interface element by element conversion method, and is laid out according to preset streaming Ordering rule generates the streaming layout ordering rule of the streaming laying-out interface element.
Wherein, preset Second Type may include Container Type and non-Container Type, wherein non-Container Type can wrap Include document element and fixed element.
In this step, it is the frame interface element of preset Second Type for element type, can uses preset Frame interface element is converted to streaming laying-out interface element by element conversion method, and, it is laid out and is sorted according to preset streaming Rule, the streaming for generating streaming laying-out interface element are laid out ordering rule.
It should be noted that being converted to streaming circle for the frame interface element of the different element types in Second Type Preset element conversion method used in surface element is also different, and the frame interface element of some element types can be converted directly For the specific type in streaming interface element, such as non-Container Type and Container Type, the frame Interface Element of some element types After element needs first to determine the layout of internal daughter element, streaming interface element can be just converted to, such as the special defects in Container Type Type;It therefore, can be from preset element conversion method for the frame interface element of the different element types in Second Type Corresponding element conversion method is selected, to obtain the corresponding streaming interface element of frame interface element.
Correspondingly, streaming interface element corresponding for the frame interface element of Second Type, can be used preset stream Formula is laid out ordering rule to determine the corresponding streaming layout ordering rule of streaming interface element, wherein preset streaming layout rule It then can be " Z " font layout, it may be assumed that with behavior unit, from left to right, sequence from top to bottom is also possible to " N " font cloth Office, it may be assumed that arrange as unit, from top to bottom, sequence from left to right can also be determined according to typing sequence and is laid out, specifically can be with It determines according to the actual situation.
It should be noted that element type is the frame layout element of the specific type in Container Type, refer to comprising more A child element block, and the relative placement of child element block is fixed, for example, frame layout element includes three child element blocks, point Not Wei Yu the left side, centre and the right, after being converted to streaming interface element, due to the relative placement of three child element blocks It changes and inconvenience is generated to the use of user, therefore, for this kind of frame layout element, need before being converted, The relative placement for first determining wherein child element block, specifically, the relative placement of child element block can pass through the opposite of child element block Ordering rule embodies.
For convenience of explanation, the specific type in said vesse type can be denoted as to preset the first container element.
In a kind of wherein embodiment, for the frame layout member that above-mentioned element type is preset the first container element Element, the process for being converted to streaming laying-out interface element are described in detail.Fig. 3 can be referred to, Fig. 3 is the in another embodiment Processing flow schematic diagram in the case of two kinds, as shown in figure 3, above-described embodiment is in " second situation " " using preset The frame interface element is converted to the streaming laying-out interface element by element conversion method " processing step, may include with Lower sub-step:
S301 determines the frame if the element type of the frame interface element is the preset the first container element Relative order rule of each child element block in the frame interface element in frame interface element.
It in this step, is the frame interface element of preset the first container element for element type, it can be with determination block Relative order rule of each child element block in frame interface element in frame interface element, namely determine each child element block in frame Relative placement in frame interface element, to avoid in the corresponding streaming interface element of frame interface element, due to each daughter element The relative placement of block changes and generates inconvenience to the use of user.
For example, frame layout element includes three child element blocks, it is located at the left side, centre and the right, setting layout rule Then from left to right, it is possible to which the relative order rule for the child element block for being located at the left side is determined as 1, son will be located in the middle The relative order rule of element blocks is determined as 2, and the relative order rule for being located at the child element block on the right is determined as 3;In this way, just It can determine relative placement of three child element blocks in frame interface element in the frame interface element.
In a kind of wherein specific embodiment, when preset the first container element include left-right layout segmentation Container elements and When layout container is stopped in left and right, S301 be can specifically include in above-described embodiment: if the element type of the frame interface element Divide Container elements for the left-right layout or layout container stopped in the left and right, is determined in the frame interface element respectively, Child element block positioned at the left side and the child element block positioned at the right, the relative order rule in the frame interface element.
Specifically, being the frame that left-right layout divides Container elements or layout container is stopped in the left and right for element type Interface element can determines respectively in the frame interface element, the child element block positioned at the left side and the daughter element positioned at the right Block, the relative order rule in the frame interface element.
For example, element type is two child element blocks of frame layout element packet that left-right layout divides Container elements, respectively Positioned at the left side and the right, placement rule is set from left to right, it is possible to which the relative order for the child element block for being located at the left side is advised Then it is determined as 1, the relative order rule for being located at the child element block on the right is determined as 2;In this manner it is possible to determine the frame interface Relative placement of two child element blocks in frame interface element in element.
S302, according to relative order rule of each child element block in the frame interface element, by the frame Interface element is converted to the streaming laying-out interface element.
In this step, it can determine that each child element block, will after the relative order rule in frame interface element Frame interface element is converted to streaming laying-out interface element, it is possible to understand that, it can be in the streaming laying-out interface element after conversion By relative order rule, relative placement of each child element block in frame interface element is limited, it can be to avoid at frame interface In the corresponding streaming interface element of element, the use of user is generated not since the relative placement of each child element block changes Just.
In a kind of wherein specific embodiment, when preset the first container element include left-right layout segmentation Container elements and When layout container is stopped in left and right, S302 may include:
It is regular according to the relative order of the child element block positioned at the left side and the child element block positioned at the right, By the child element block, the child element block positioned at the right and the frame interface element positioned at the left side, it is converted into The streaming laying-out interface element.
Wherein, the streaming laying-out interface element after the frame interface element conversion includes the son for being located at the left side The streaming after the streaming laying-out interface element and the child element block conversion positioned at the right after element blocks conversion Laying-out interface element.
Specifically, being the frame that left-right layout divides Container elements or layout container is stopped in the left and right for element type Interface element, can be in determining the frame interface element, the child element block positioned at the left side and the child element block positioned at the right, After the relative placement in the frame interface element, according to the daughter element positioned at the left side and the son positioned at the right The relative order rule of element, by the child element block positioned at the left side, the child element block and institute positioned at the right Frame interface element is stated, the streaming laying-out interface element is converted into.
It should be noted that the streaming laying-out interface element after the frame interface element conversion includes described is located at After the streaming laying-out interface element and the child element block conversion positioned at the right after the child element block conversion on the left side The streaming laying-out interface element;That is, the streaming laying-out interface element after conversion still includes two child element blocks, and two The Relative distribution of a child element block keeps the distribution situation before conversion, but two child element block median surface elements have been converted into distribution For streaming layout.
It should be understood that being the frame that left-right layout divides Container elements or layout container is stopped in the left and right by element type Streaming laying-out interface element after the conversion of frame interface element can limit each child element block in frame circle by relative order rule Relative placement in surface element, can be to avoid in the corresponding streaming interface element of frame interface element, due to each child element block Relative placement change and the use of user is generated it is inconvenient.
In another embodiment, the configuration information further includes translation type and collects mark, the translation type packet Include business module;Translation type is that the daughter element in the frame interface element of business module can be converted to streaming layout element;It is described Translation type further includes traffic item;Wherein, translation type is that the daughter element in the frame interface element of traffic item cannot be converted The frame interface element that translation type is traffic item can be known as fixed element for convenience of explanation for streaming layout element.
In addition, if including collecting mark, and the element of the frame interface element in the configuration information of frame interface element Type is the Container Type, the frame interface element is not belonging to the preset the first container element, then institute can be used The daughter element for collecting and identifying corresponding frame interface element is stated, the corresponding frame interface element of mark is collected described in replacement, namely The daughter element of frame interface element subordinate is upgraded into the element with the frame interface element peer, and no longer to collecting mark Corresponding frame interface element is converted, that is to say, that no longer occurs collecting mark in streaming local document after conversion Corresponding frame interface element.
For example, frame interface element is that superset closes B, the daughter element that superset closes B subordinate includes B1, B2 and B3, and superset closes B's Element at the same level includes that superset closes A and superset conjunction C, and total collection includes: that superset closes A, superset closes B, and superset closes the daughter element of B subordinate B1, B2 and B3 and superset close C;If setting collects mark in the configuration information that superset closes B, then, then B is closed using superset Daughter element B1, B2 and B3 of subordinate, replacement superset close B, at this point, total collection includes: that superset closes A, daughter element B1, B2 and B3, with And superset closes C also, when being converted to streaming interface element, reconvert superset does not close B, then, text is laid out in the streaming of generation In shelves, no longer there is superset and close B, daughter element B1, B2 and B3, which upgrade to, closes A and superset conjunction C peer with superset.
It on the basis of the above embodiments, is the method for document layout conversion in another embodiment with reference to Fig. 4, Fig. 4 Flow diagram, as shown in figure 4, " using preset member in the above-described embodiments in " second situation " corresponding processing step The frame interface element is converted to the streaming laying-out interface element by plain conversion method " the step of before, the method is also May include:
S401, if the element type of the frame interface element is preset Container Type but is not described preset first Container elements, and the translation type of the frame interface element is business module, judges the configuration information of the frame interface element In whether comprising collecting mark, if it has, then execution S402.
In this step, it is preset Container Type for element type but is not the preset the first container element, And the translation type of the frame interface element is the frame interface element of business module, that checks the frame interface element matches confidence Whether comprising collecting mark in breath, if it has, then carrying out collecting processing to the frame interface element by executing S2043B.
It should be noted that be not preset Container Type or element type for element type being described preset The first container element or translation type are not the frame interface element of business module, then without judging the frame interface element Configuration information in whether comprising collecting mark.
S402 replaces the frame interface element using the daughter element of the frame interface element.
In this step, it is preset Container Type for element type but is not the preset the first container element, And the translation type of the frame interface element is business module, and comprising collecting mark in the configuration information of the frame interface element The frame interface element of knowledge carries out collecting processing, collects processing and refers to the daughter element for using the frame interface element, replaces institute State frame interface element.That is, no longer there is the frame interface element, the frame in the streaming layout document of generation The daughter element of interface element upgrades at the same level with the frame interface element.
In this way, can close and be carried out automatically to the superset for not needing to show in streaming layout document according to the demand of user Collect processing, it is possible to reduce the depth of tree structure and improve rendering performance.
In another embodiment, on the basis of the above embodiments, in the method for document layout conversion shown in Fig. 2 After S202, the method can also include:
The width of the corresponding streaming interface element of the frame interface element is set.
Specifically, the width of the corresponding streaming interface element of frame interface element can be set, can guarantee to convert in this way The width of streaming interface element afterwards is unified, so that display page neat appearance.
It is S206 in further embodiment with reference to Fig. 5, Fig. 5 on the basis of the above embodiments in another embodiment Flow diagram, S206 can specifically include:
S206A, by each streaming interface element and each streaming interface element after frame interface element conversion Streaming layout ordering rule be put into preset streaming layout superset and close.
Specifically, each streaming interface element and each streaming interface element after being converted by frame interface element Streaming layout ordering rule be put into during preset streaming layout superset closes, to be laid out during superset closes according to preset streaming, Generate streaming layout document.
S206B closes according to the preset streaming layout superset, generates streaming layout document.
Specifically, sequence rule can be laid out according to comprising the streaming of each streaming interface element and each streaming interface element Preset streaming layout superset then closes, and streaming layout document is generated, and then by operation streaming layout document, by frame layout Frame interface element in document is shown in a manner of streaming layout.
It should be noted that in order to save memory space, the streaming layout document of above-mentioned generation can be not take up fixed Memory space, for example can save in the buffer.When user needs to check, frame layout document can be automatically converted to Streaming layout document.And in the method for traditional document layout conversion, it is non-due to generating streaming layout document by manual operation It is often bothersome laborious, it is therefore desirable to which streaming layout document is saved, a large amount of memory space is occupied, the operation to equipment Efficiency generates adverse effect.
In addition, being converted when the frame interface element in frame layout document is changed in traditional document layout In method, need by manually in the streaming layout document saved, being modified according to the frame interface element of change, especially Big or in the case that streaming layout document quantity is big in amount of change, it will take a lot of manpower and time, and modification has saved Streaming layout document;And in the embodiment of the present application, frame layout document can be automatically converted to streaming layout text automatically Shelves, it is only necessary to determine the change of the frame interface element in frame layout document is correct, so that it may the stream after automatically generating change Formula layout document avoids a large amount of maintenance work, time saving and energy saving.
In further embodiment, as shown in fig. 6, provide a kind of method of document layout conversion, can by traversal and Frame layout superset conjunction is converted to streaming layout superset and closed by recursive mode, method includes the following steps:
S602 records current streaming layout superset and closes.
It should be noted that preceding streaming layout superset is combined into sky when starting, frame can be laid out to superset conjunction and be added to During currently streaming layout superset closes, by traversal and recurrence, the daughter element that current streaming can be laid out in superset conjunction gradually turns It is changed to streaming layout framework element.
S604 proposes a daughter element from the layout superset conjunction of current streaming.
S606 proposes the configuration information of daughter element.
Wherein, configuration information includes element type, translation type and collects mark.
Unified tag width is arranged in S608.
Specifically, the tag width of the streaming layout framework element after daughter element conversion can be set, so that the frame The equivalent width of the element of the corresponding non-container absolute position in element interface, to realize that horizontally-arranged multiple elements can be adaptive Screen width, and realize the function of word wrap.
S610 judges whether the element type of daughter element is watermark element;If it has, then S612 is executed, if it has not, then holding Row S614.
The absolute position for the daughter element that element type is watermark element is converted to the streaming cloth of streaming interface element by S612 The ordering rule of office executes S642.
Wherein, element type is the ordering rule of the streaming layout of the corresponding streaming interface element of daughter element of watermark element For the tail position in the streaming layout document.
S614 judges whether the element type of daughter element is menu element;If it has, then S616 is executed, if it has not, then holding Row S618.
The streaming for the corresponding streaming interface element of daughter element that element type is menu element is laid out ordering rule by S616 For the first place in the streaming layout document, S642 is executed.
S618, judges whether the element type of daughter element is whether left-right layout segmentation Container elements or daughter element are appointed as Menu;If it has, then S620 is executed, if it has not, then executing S628.
Wherein, user can according to actual needs, and specifying daughter element is menu, and it includes multiple for being appointed as the daughter element of menu Subitem element, and the relative placement for needing to guarantee to keep multiple subitem elements in streaming interface element after conversion.
S620 generates the relative ranks number of each subitem element of daughter element subordinate, executes S622.
Wherein, the relative order rule mentioned in relative ranks number namely above-described embodiment.
Daughter element is converted to streaming interface element, executes S624 by S622.
S624, the streaming interface element after daughter element is converted are added current streaming layout superset and close, and execute S626.
S626 forces that all subitem elements are arranged to be business module, executes S642.
Specifically, can force that all subitem elements are arranged to be business module, subitem element can be also converted into this way Streaming laying-out interface element.
S628 judges whether the element type of daughter element is fixed element;If it has, then S632 is executed, if it has not, then holding Row S630.
Wherein, fixed element can be set in advance, and element type is that the daughter element of fixed element can be with overall conversion For streaming laying-out interface element.
S630 judges whether the element type of daughter element is Container elements, if it has not, S632 is then executed, if it has, then holding Row S634.
Daughter element overall conversion is a streaming element, executes S642 by S632.
S634 judges whether the element type of daughter element is left and right stop layout container, if it has, then S636 is executed, if Be it is no, then execute S638, if it has, then execute S640.
Left and right is stopped layout container and is converted to transverse combination Container elements, executes S641 by S636.
Wherein, transverse combination Container elements are streaming laying-out interface element, are able to maintain the original opposite cloth of subitem element Office.
Daughter element is converted to streaming Container elements by S640.
Transverse combination Container elements and/or streaming Container elements are added current streaming layout superset and closed, executed by S641 S642。
S642 executes sub-process, executes S644.
Sub-process includes: not yet to determine the streaming cloth of the ordering rule of streaming layout in the layout superset conjunction of current streaming Office's interface element, the ordering rule of the streaming layout of distribution streaming laying-out interface element.
S644 judges that daughter element whether there is subitem element and not be fixed element, if it has, then S646 is executed, if It is no, then execute S648.
Specifically, since fixed element must be converted integrally, only there are subitem element and not when daughter element When for fixed element, S646 can be executed.
S646 loops through each subitem element of daughter element subordinate, and current streaming is added in each subitem element and is laid out father Set.
S648 inquires next element at the same level of daughter element, executes S650.
S650 judges whether the next element at the same level for inquiring daughter element, if it has, then S602 is executed, if it has not, then Processing is completed.
It should be noted that the detailed process and technical effect of above-mentioned steps can be referring to figs. 2 to document cloth shown in fig. 5 The method of office's conversion, details are not described herein.
It closes, saves in this way, frame can be laid out superset conjunction by traversal and recursive mode and be converted to streaming layout superset Shi Shengli, and treatment effeciency can be improved.
In a kind of Application Example, the embodiment of the present invention can be used for frame layout document moving to cloud from local device After upper, due to requiring to support user to check by browser the element in frame layout document, therefore, it is necessary to frame layout is literary Shelves are converted to streaming layout document, so that user checks streaming cloth document by browser.
It is the interaction flow schematic diagram of user and server in an Application Example with reference to Fig. 7 Fig. 7, specifically includes:
A, user send the order for opening list by browser.
B, browser forward the order from the user for opening list to server.
C, server is according to the order for opening list, inquiry form frame layout document.
The form framework layout document inquired is returned to browser by D, server.
E, browser send the order for obtaining configuration to server after receiving form framework layout document.
F, the order for the acquisition configuration that server is sent according to browser, by frame each in form framework layout document interface The configuration information of element returns to browser.
G, browser after the configuration information of each frame interface element, assemble number in receiving form framework layout document According to.
Wherein, fabrication data expression receives frame layout document data, conversion streaming is laid out special specified configuration data, Electronic spreadsheet business sets data (such as currently available size of list), these data are merged and are packaged into turn of tidal stream formula layout Algorithm suction parameter.
H, browser send the life for calling streaming layout converter to conversion equipment or system after completing fabrication data It enables.
Wherein, the order of streaming layout converter is called to carry each frame interface element in form framework layout document, with And the configuration information of each frame interface element;Streaming layout converter is arranged in conversion equipment or system.
I, conversion equipment or system receive browser transmission calling streaming layout converter order after, according to The configuration information of each frame interface element and each frame interface element in form framework layout document generates streaming layout text Shelves.
J, conversion equipment or system return to streaming layout document to browser.
K, browser render interface according to browsing layout document, show user.
In this way, user only needs to send the order for opening list by browser, it will be able to server will be stored in automatically On form framework layout document be converted to streaming layout document, and show user, it is not only time saving and energy saving, and streaming layout text Shelves can not be needed storage in memory, can be saved storage resource with in-time generatin.
It should be understood that although each step in the flow chart of Fig. 2-7 is successively shown according to the instruction of arrow, These steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly stating otherwise herein, these steps Execution there is no stringent sequences to limit, these steps can execute in other order.Moreover, at least one in Fig. 2-7 Part steps may include that perhaps these sub-steps of multiple stages or stage are not necessarily in synchronization to multiple sub-steps Completion is executed, but can be executed at different times, the execution sequence in these sub-steps or stage is also not necessarily successively It carries out, but can be at least part of the sub-step or stage of other steps or other steps in turn or alternately It executes.
In one embodiment, as shown in figure 8, providing a kind of conversion equipment of layout document, the conversion of layout document Device 800 includes: to obtain module 801 and generation module 802, in which:
Module 801 is obtained, for obtaining frame interface element and frame circle in preset frame layout document The configuration information of surface element, the configuration information include the element type of the frame interface element.
Generation module 802 is generated for the element type based on the frame interface element and the frame interface element The streaming of the corresponding streaming interface element of frame interface element and the streaming interface element is laid out ordering rule.
The raw module 802 is also used to the streaming cloth based on the streaming interface element and the streaming interface element Office's ordering rule, generates streaming layout document.
In one embodiment, the acquisition module 801, if specifically for the element type of the frame interface element For the preset first kind, it is determined that the frame interface element is the streaming interface element, and according to the frame interface The element type of element determines the streaming layout ordering rule of the streaming interface element;If the member of the frame interface element Plain type is preset Second Type, then the frame interface element is converted to the stream using preset element conversion method Formula laying-out interface element, and ordering rule is laid out according to preset streaming, generate the streaming cloth of the streaming laying-out interface element Office's ordering rule.
In one embodiment, the first kind includes watermark element and menu element;The acquisition module 801, If the element type specifically for the frame interface element is the menu element, the streaming of the streaming interface element is determined Being laid out ordering rule is the first place in the streaming layout document;If the element type of the frame interface element is the watermark Element determines that the streaming layout ordering rule of the streaming interface element is the tail position in the streaming layout document.
In one embodiment, the Second Type includes Container Type and non-Container Type, the Container Type packet Include preset the first container element;The acquisition module 801, if the element type specifically for the frame interface element is institute Preset the first container element is stated, determines each child element block in the frame interface element in the frame interface element Relative order rule;According to relative order rule of each child element block in the frame interface element, by the frame Interface element is converted to the streaming laying-out interface element.
In one embodiment, the preset the first container element includes left-right layout segmentation Container elements and left and right Stop layout container;The acquisition module 801, if the element type specifically for the frame interface element is the left and right cloth Score of the game cuts Container elements or layout container is stopped in the left and right, is determined in the frame interface element respectively, the son positioned at the left side Element and daughter element positioned at the right, the relative order rule in the frame interface element;The acquisition module 801, tool Body is used for the relative order rule according to the child element block positioned at the left side and the child element block positioned at the right, will The child element block, the child element block positioned at the right and the frame interface element positioned at the left side, is converted into institute State streaming laying-out interface element, wherein the streaming laying-out interface element after the frame interface element conversion includes described The streaming laying-out interface element and the child element block positioned at the right after the child element block conversion on the left side are converted The streaming laying-out interface element afterwards.
In one embodiment, the configuration information further includes translation type and collects mark, the translation type packet Include business module;Described device further include: judgment module;The judgment module, if the element class for the frame interface element Type is the Container Type, the frame interface element is not belonging to the preset the first container element, and the frame interface Whether the translation type of element is business module, judge in the configuration information of the frame interface element comprising collecting mark;If so, The daughter element of corresponding frame interface element then is identified using described collect, the corresponding frame Interface Element of mark is collected described in replacement Element.
In one embodiment, described device further includes setup module, corresponding for the frame interface element to be arranged Streaming interface element width.
The specific of conversion equipment about layout document limits the method that may refer to convert above for document layout Restriction, details are not described herein.Modules in the conversion equipment of above-mentioned layout document can be fully or partially through software, hard Part and combinations thereof is realized.Above-mentioned each module can be embedded in the form of hardware or independently of in the processor in computer equipment, It can also be stored in a software form in the memory in computer equipment, execute the above modules in order to which processor calls Corresponding operation.
In one embodiment, a kind of computer equipment is provided, which can be server, internal junction Composition can be as shown in Figure 9.The computer equipment include by system bus connect processor, memory, network interface and Database.Wherein, the processor of the computer equipment is for providing calculating and control ability.The memory packet of the computer equipment Include non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system, computer program and data Library.The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium.The calculating The database of machine equipment is for storing electronic spreadsheet data.The network interface of the computer equipment is used to pass through with external terminal Network connection communication.A kind of method when the computer program is executed by processor to realize document layout conversion.
It will be understood by those skilled in the art that structure shown in Fig. 9, only part relevant to application scheme is tied The block diagram of structure does not constitute the restriction for the computer equipment being applied thereon to application scheme, specific computer equipment It may include perhaps combining certain components or with different component layouts than more or fewer components as shown in the figure.
In one embodiment, a kind of computer equipment, including memory and processor are provided, is stored in memory Computer program, the processor perform the steps of when executing computer program
The configuration information of the frame interface element and the frame interface element in frame layout document is obtained, it is described Configuration information includes the element type of the frame interface element;
According to the configuration information of the frame interface element and the frame interface element, the frame interface element is obtained The streaming of corresponding streaming interface element and each streaming interface element is laid out ordering rule;
It is laid out ordering rule according to the streaming of each streaming interface element and each streaming interface element, generates streaming Layout document.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated Machine program performs the steps of when being executed by processor
The configuration information of the frame interface element and the frame interface element in frame layout document is obtained, it is described Configuration information includes the element type of the frame interface element;
According to the configuration information of the frame interface element and the frame interface element, the frame interface element is obtained The streaming of corresponding streaming interface element and each streaming interface element is laid out ordering rule;
It is laid out ordering rule according to the streaming of each streaming interface element and each streaming interface element, generates streaming Layout document.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, To any reference of memory, storage, database or other media used in each embodiment provided herein, Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM (PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms, Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
Each technical characteristic of above embodiments can be combined arbitrarily, for simplicity of description, not to above-described embodiment In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance Shield all should be considered as described in this specification.
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art It says, without departing from the concept of this application, various modifications and improvements can be made, these belong to the protection of the application Range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.

Claims (10)

1. a kind of method of document layout conversion, which is characterized in that the described method includes:
Obtain the configuration information of the frame interface element and the frame interface element in frame layout document, the configuration Information includes the element type of the frame interface element;
According to the configuration information of the frame interface element and the frame interface element, it is corresponding to obtain the frame interface element Streaming interface element and each streaming interface element streaming be laid out ordering rule;
It is laid out ordering rule according to the streaming of each streaming interface element and each streaming interface element, generates streaming layout Document.
2. the method according to claim 1, wherein described according to the frame interface element and frame circle The configuration information of surface element obtains the corresponding streaming interface element of the frame interface element and each streaming interface element Streaming be laid out ordering rule, comprising:
If the element type of the frame interface element is the preset first kind, it is determined that the frame interface element is described Streaming interface element, and according to the element type of the frame interface element, determine the streaming layout of the streaming interface element Ordering rule;
If the element type of the frame interface element is preset Second Type, use preset element conversion method by institute It states frame interface element and is converted to the streaming laying-out interface element, and ordering rule is laid out according to preset streaming, generate institute State the streaming layout ordering rule of streaming laying-out interface element.
3. according to the method described in claim 2, it is characterized in that, the first kind includes watermark element and menu element;
The element type according to the frame interface element determines the streaming layout sequence rule of the streaming interface element Then, comprising:
If the element type of the frame interface element is the menu element, the streaming layout of the streaming interface element is determined Ordering rule is the first place in the streaming layout document;
If the element type of the frame interface element is the watermark element, the streaming layout of the streaming interface element is determined Ordering rule is the tail position in the streaming layout document.
4. according to the method described in claim 2, it is characterized in that, the Second Type includes Container Type and non-container class Type, the Container Type include preset the first container element;
It is described that the frame interface element is converted to by the streaming laying-out interface element using preset element conversion method, it wraps It includes:
If the element type of the frame interface element is the preset the first container element, the frame interface element is determined In each child element block in the frame interface element relative order rule;
According to relative order rule of each child element block in the frame interface element, the frame interface element is turned It is changed to the streaming laying-out interface element.
5. the preset the first container element includes left-right layout according to the method described in claim 4, other are characterized in that Divide Container elements and layout container is stopped in left and right;
If the element type of the frame interface element is the preset Container elements, determine in the frame interface element Relative order rule of each child element block in the frame interface element, comprising:
If the element type of the frame interface element is that the left-right layout divides Container elements or layout is stopped in the left and right Container determines respectively in the frame interface element, the daughter element positioned at the left side and the daughter element positioned at the right, in the frame Relative order rule in interface element;
According to relative order rule of each child element block in the frame interface element, the frame interface element is turned It is changed to the streaming laying-out interface element, comprising:
According to the relative order of the child element block positioned at the left side and the child element block positioned at the right rule, by institute Rheme is converted into described in the child element block, the child element block positioned at the right and the frame interface element on the left side Streaming laying-out interface element, wherein the streaming laying-out interface element after the frame interface element conversion includes institute's rheme After the streaming laying-out interface element and the child element block conversion positioned at the right after the child element block conversion on the left side The streaming laying-out interface element.
6. method according to claim 4 or 5, which is characterized in that the configuration information further includes translation type and collects Mark, the translation type includes business module;
It is described using preset element conversion method by the frame interface element be converted to the streaming laying-out interface element it Before, the method also includes:
If the element type of the frame interface element is the Container Type, the frame interface element is not belonging to described preset The first container element, and the translation type of the frame interface element be business module, judge matching for the frame interface element Whether comprising collecting mark in confidence breath;
If so, identifying the daughter element of corresponding frame interface element using described collect, it is corresponding that mark is collected described in replacement Frame interface element.
7. the method according to claim 1, wherein the frame Interface Element in the acquisition frame layout document After element, the method also includes:
The width of the corresponding streaming interface element of the frame interface element is set.
8. a kind of device of document layout conversion, which is characterized in that described device includes:
Module is obtained, for obtaining frame interface element and the frame interface element in preset frame layout document Configuration information, the configuration information includes the element type of the frame interface element;
Generation module generates the frame for the element type based on the frame interface element and the frame interface element The streaming of the corresponding streaming interface element of frame interface element and the streaming interface element is laid out ordering rule;
The generation module is also used to the streaming layout row based on the streaming interface element and the streaming interface element Sequence rule, generates streaming layout document.
9. a kind of computer equipment, including memory and processor, the memory are stored with computer program, feature exists In the step of processor realizes any one of claims 1 to 8 the method when executing the computer program.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The step of method described in any item of the claim 1 to 8 is realized when being executed by processor.
CN201811256881.8A 2018-10-26 2018-10-26 Document layout conversion method and device, computer equipment and storage medium Active CN109542554B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811256881.8A CN109542554B (en) 2018-10-26 2018-10-26 Document layout conversion method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811256881.8A CN109542554B (en) 2018-10-26 2018-10-26 Document layout conversion method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109542554A true CN109542554A (en) 2019-03-29
CN109542554B CN109542554B (en) 2022-06-10

Family

ID=65844946

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811256881.8A Active CN109542554B (en) 2018-10-26 2018-10-26 Document layout conversion method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109542554B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111126019A (en) * 2019-11-28 2020-05-08 泰康保险集团股份有限公司 Report generation method and device based on mode customization and electronic equipment
CN112926010A (en) * 2021-04-09 2021-06-08 上海臣星软件技术有限公司 Web page generation method and device, electronic equipment and computer storage medium

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050154980A1 (en) * 2004-01-14 2005-07-14 Xerox Corporation System and method for dynamic document layout
CN101436308A (en) * 2008-12-15 2009-05-20 北大方正集团有限公司 Formula input method and system for interactive formula typesetting software
CN101887413A (en) * 2009-05-14 2010-11-17 北大方正集团有限公司 Structure processing method and system of plate type table
CN102103586A (en) * 2009-12-16 2011-06-22 新奥特(北京)视频技术有限公司 Multi-language bidirectionally mixed-arranged caption edition system
CN102591849A (en) * 2011-01-07 2012-07-18 北大方正集团有限公司 Document format conversion method and device
US20130174024A1 (en) * 2011-12-30 2013-07-04 Guofeng XING Method and device for converting document format
CN103645906A (en) * 2013-12-25 2014-03-19 上海斐讯数据通信技术有限公司 Method and system for realizing interface re-layout based on fixed interface layout document
US20140258851A1 (en) * 2013-03-11 2014-09-11 Microsoft Corporation Table of Contents Detection in a Fixed Format Document
CN104221033A (en) * 2012-01-23 2014-12-17 微软公司 Fixed format document conversion engine
CN104346322A (en) * 2013-08-08 2015-02-11 北大方正集团有限公司 Document format processing device and document format processing method
CN104731588A (en) * 2015-03-12 2015-06-24 用友网络科技股份有限公司 Page layout file generation method and device
CN106202005A (en) * 2015-05-08 2016-12-07 珠海金山办公软件有限公司 A kind of web page conversion method and device
CN106294304A (en) * 2015-06-01 2017-01-04 掌阅科技股份有限公司 Automatically the method identifying and being converted to streaming document annotation of format document footnote
CN106547528A (en) * 2015-09-22 2017-03-29 腾讯科技(深圳)有限公司 A kind of quick interface arrangement method and device

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050154980A1 (en) * 2004-01-14 2005-07-14 Xerox Corporation System and method for dynamic document layout
CN101436308A (en) * 2008-12-15 2009-05-20 北大方正集团有限公司 Formula input method and system for interactive formula typesetting software
CN101887413A (en) * 2009-05-14 2010-11-17 北大方正集团有限公司 Structure processing method and system of plate type table
CN102103586A (en) * 2009-12-16 2011-06-22 新奥特(北京)视频技术有限公司 Multi-language bidirectionally mixed-arranged caption edition system
CN102591849A (en) * 2011-01-07 2012-07-18 北大方正集团有限公司 Document format conversion method and device
US20130174024A1 (en) * 2011-12-30 2013-07-04 Guofeng XING Method and device for converting document format
CN104221033A (en) * 2012-01-23 2014-12-17 微软公司 Fixed format document conversion engine
US20140258851A1 (en) * 2013-03-11 2014-09-11 Microsoft Corporation Table of Contents Detection in a Fixed Format Document
CN104346322A (en) * 2013-08-08 2015-02-11 北大方正集团有限公司 Document format processing device and document format processing method
CN103645906A (en) * 2013-12-25 2014-03-19 上海斐讯数据通信技术有限公司 Method and system for realizing interface re-layout based on fixed interface layout document
CN104731588A (en) * 2015-03-12 2015-06-24 用友网络科技股份有限公司 Page layout file generation method and device
CN106202005A (en) * 2015-05-08 2016-12-07 珠海金山办公软件有限公司 A kind of web page conversion method and device
CN106294304A (en) * 2015-06-01 2017-01-04 掌阅科技股份有限公司 Automatically the method identifying and being converted to streaming document annotation of format document footnote
CN106547528A (en) * 2015-09-22 2017-03-29 腾讯科技(深圳)有限公司 A kind of quick interface arrangement method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
郁婧宇: "流式文档到版式文档的转换技术", 《北京信息科技大学学报》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111126019A (en) * 2019-11-28 2020-05-08 泰康保险集团股份有限公司 Report generation method and device based on mode customization and electronic equipment
CN111126019B (en) * 2019-11-28 2024-01-05 泰康保险集团股份有限公司 Report generation method and device based on mode customization and electronic equipment
CN112926010A (en) * 2021-04-09 2021-06-08 上海臣星软件技术有限公司 Web page generation method and device, electronic equipment and computer storage medium

Also Published As

Publication number Publication date
CN109542554B (en) 2022-06-10

Similar Documents

Publication Publication Date Title
CN110069257B (en) Interface processing method and device and terminal
EP3220249A1 (en) Method, device and terminal for implementing regional screen capture
US20220414326A1 (en) Document applet generation
CN109408746A (en) Portrait information query method, device, computer equipment and storage medium
CN110764850A (en) Interface display method, parameter assignment method, system and equipment
CN110851368A (en) Multi-device collaborative testing method and device, computing device and system
CN106296622B (en) Automatic layout jigsaw method and device
US20150062171A1 (en) Method and device for providing a composition of multi image layers
CN109542554A (en) Method, apparatus, computer equipment and the storage medium of document layout conversion
CN110507986B (en) Animation information processing method and device
CN111399831A (en) Page display method and device, storage medium and electronic device
CN103379476A (en) Terminal and contact information updating method
CN111899352A (en) Part model processing method, system, equipment and storage medium based on CATIA
CN112445400A (en) Visual graph creating method, device, terminal and computer readable storage medium
WO2024103958A1 (en) Image material processing method based on multiple devices, and related apparatus
CN109783782A (en) Generation method, equipment, storage medium and the device of electronic contract template
CN102110055A (en) Memory layout method and memory layout device of flash chip
CN113591827A (en) Text image processing method and device, electronic equipment and readable storage medium
CN107608733A (en) Image display method, device and terminal device
CN106156247B (en) Image management method and device
CN104503776A (en) Method for rapidly packaging android application on APP development platform
CN107220302A (en) Auto slice storage system and method based on QT technologies
CN105187860B (en) Obtain the system and method in digital television program data storehouse
CN109815977B (en) Cutting and marking integrated method for mass production of machine learning samples
CN109543122B (en) Content synchronization method, device, storage medium and electronic 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