CN104123270B - A kind of reverse table-layout method based on content - Google Patents

A kind of reverse table-layout method based on content Download PDF

Info

Publication number
CN104123270B
CN104123270B CN201410366177.3A CN201410366177A CN104123270B CN 104123270 B CN104123270 B CN 104123270B CN 201410366177 A CN201410366177 A CN 201410366177A CN 104123270 B CN104123270 B CN 104123270B
Authority
CN
China
Prior art keywords
content
laid out
location data
layout method
method based
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
CN201410366177.3A
Other languages
Chinese (zh)
Other versions
CN104123270A (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.)
GUANGDONG NENGLONG EDUCATION Co Ltd
Original Assignee
GUANGDONG NENGLONG EDUCATION 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 GUANGDONG NENGLONG EDUCATION Co Ltd filed Critical GUANGDONG NENGLONG EDUCATION Co Ltd
Priority to CN201410366177.3A priority Critical patent/CN104123270B/en
Publication of CN104123270A publication Critical patent/CN104123270A/en
Application granted granted Critical
Publication of CN104123270B publication Critical patent/CN104123270B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Processing Or Creating Images (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The invention discloses a kind of reverse table-layout method based on content, comprise the following steps:A, based on criteria table painting canvas, the location data of object to be laid out is gathered;B, the size of target data form is analyzed according to location data;C, target data form is drawn according to location data and the true content of object to be laid out dynamic.The table-layout method of the present invention utilizes reverse thinking method, solves dynamic table generation problem, substantially reduces the technical requirements of user(User need not understand the related knowledge of Html forms), while solve table content and style separation problem very well, it can solve pattern style reunification.

Description

A kind of reverse table-layout method based on content
Technical field
The invention belongs to Web technical fields, and in particular to a kind of reverse table-layout technology based on content, be especially suitable for The occasion that unified style separates with performance content.
Background technology
In the prior art, form locating is a kind of common technology, and the method for quick Fabrication form is also a lot, in dynamic Conventional method is in terms of table of contents:Form template is first made, is then needing the cell of placed content to place occupy-place mark Know symbol, replacing occupy-place indications by using true content is made final data table.This method in general can be good Meet actual requirement, but also have the following disadvantages:First, because final form depends on template, if necessary to change outside form See, it is necessary to change template.Second, all the elements are placed by table template, if data content changes, template also can Failure.
The content of the invention
In order to solve the above technical problems, it is an object of the invention to provide a kind of reverse table-layout method based on content, To solve the problems, such as unified style and show the table-layout that separates of content.
The technical solution adopted by the present invention is:
A kind of reverse table-layout method based on content, comprises the following steps:
A, based on criteria table painting canvas, the location data of object to be laid out is gathered;
B, the size of target data form is analyzed according to location data;
C, target data form is drawn according to location data and the true content of object to be laid out dynamic.
Further, the step A needs to prepare this before object to be laid out is placed on criteria table painting canvas and treats layout pair As.
Wherein, the step A includes:
A1, prepare criteria table painting canvas;
A2, object to be laid out is placed on criteria table painting canvas, and sets location data;
A3, preserve location data in the A2.
Specifically, the step A1 Plays form painting canvas is made up of the unified cell of size, each cell is made For a minimum positioning units, the cell is referred to as base loxel.
Location data includes in the step A2:Which base loxel object to be laid out is placed on, highly across several Base loxel, width cross over several base loxels.
Further, the line number and columns of location data analysis target data forms of the step B in step A.
Further improved as this programme, the also predefined table style information for having several style in the step C, Target is drawn according to table style information and the location data of combining target data form, the true content of object to be laid out dynamic Data form.
Beneficial effects of the present invention:
The table-layout method of the present invention has broken the table-layout thinking of routine, using content main mode, according to interior Hold dynamic generation form, advantage of this is that:Table-layout is according to content dynamic generation, so content change will not shadow The process of form generation is rung, solves the problem of content change under prototype pattern, template must change, table style is also in addition Dynamic generation, pattern and content are kept completely separate, and are so very beneficial for the beautification and uniformly of table style, especially dynamic table In single generation scene, this method is than conventional method advantageously.
Brief description of the drawings
The embodiment of the present invention is described further below in conjunction with the accompanying drawings.
Fig. 1 is the fundamental diagram of the present invention;
Fig. 2 is the reverse table-layout method flow diagram of the present invention;
Fig. 3 is present invention object positioning method flow chart to be laid out;
Fig. 4 is the schematic layout pattern of criteria table painting canvas of the present invention.
Embodiment
With reference to shown in figure 1- Fig. 2, for a kind of reverse table-layout method based on content of the present invention, in the technical program It is shown respectively comprising object, Fig. 1 such as object to be laid out (content), criteria table painting canvas, target data form, form generation engines Operation principle between object;
The reverse table-layout method of the technical program comprises the following steps:
A, prepare the object to be laid out, and be based on criteria table painting canvas, gather the location data of object to be laid out;
Wherein, see that Fig. 3, the step A include:
A1, prepare criteria table painting canvas;Criteria table painting canvas is made up of the unified cell of size, and each cell is made For a minimum positioning units, the cell is referred to as base loxel, such as Fig. 4.
A2, object to be laid out is placed on criteria table painting canvas, and sets location data;Location data includes:Wait to be laid out Which base loxel object is placed on, and highly crosses over several base loxels across several base loxels, width.
A3, location data in the A2 is preserved, all elements that object mainly to be laid out includes are in criteria table painting canvas In location data.
B, the size of target data form is analyzed according to location data;
Step B can be easy to analyze the line number for carrying out target table and columns according to the location data preserved in A (being based on base loxel).Which simultaneously according to the positioning height and width of form data, can calculate, unit in form Lattice need to merge.
C, according to the predefined table style information for having several style, form generate engine according to table style information, The location data of target data form, the true content of object to be laid out this three dynamic draw target data form.Wherein, by B can determine that the combination situation of the line number of form, list, and internal element lattice (can draw no sample only according to these data Formula, without data, the basic configuration of target table), pattern and data are added, draws final data form.
The table-layout method of the present invention utilizes reverse thinking method, solves dynamic table generation problem, substantially reducing makes The technical requirements (user need not understand the related knowledge of Html forms) of user, while solve table content and segmentation very well Separation problem, it can solve pattern style reunification.
The preferred embodiments of the present invention are the foregoing is only, the present invention is not limited to above-mentioned embodiment, as long as with Essentially identical means realize that the technical scheme of the object of the invention is belonged within protection scope of the present invention.

Claims (7)

  1. A kind of 1. reverse table-layout method based on content, it is characterised in that comprise the following steps:
    A, based on criteria table painting canvas, the location data of object to be laid out is gathered;
    B, the size of target data form is analyzed according to location data;
    C, target data form is drawn according to location data and the true content of object to be laid out dynamic.
  2. A kind of 2. reverse table-layout method based on content according to claim 1, it is characterised in that:The step A Need to prepare the object to be laid out before object to be laid out is placed on criteria table painting canvas.
  3. A kind of 3. reverse table-layout method based on content according to claim 1, it is characterised in that:The step A Including:
    A1, prepare criteria table painting canvas;
    A2, object to be laid out is placed on criteria table painting canvas, and sets location data;
    A3, preserve location data in the A2.
  4. A kind of 4. reverse table-layout method based on content according to claim 3, it is characterised in that:The step A1 Plays form painting canvas is made up of the unified cell of size, each cell positioning units minimum as one, the list First lattice are referred to as base loxel.
  5. A kind of 5. reverse table-layout method based on content according to claim 4, it is characterised in that:The step A2 Middle location data includes:Which base loxel object to be laid out is placed on, and is highly crossed over across several base loxels, width Several base loxels.
  6. A kind of 6. reverse table-layout method based on content according to claim 1, it is characterised in that:The step B The line number and columns of location data analysis target data form in step A.
  7. A kind of 7. reverse table-layout method based on content according to claim 1, it is characterised in that:The step C In the also predefined table style information for having several style, according to the positioning of table style information and combining target data form Data, the true content of object to be laid out dynamic draw target data form.
CN201410366177.3A 2014-07-29 2014-07-29 A kind of reverse table-layout method based on content Active CN104123270B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410366177.3A CN104123270B (en) 2014-07-29 2014-07-29 A kind of reverse table-layout method based on content

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410366177.3A CN104123270B (en) 2014-07-29 2014-07-29 A kind of reverse table-layout method based on content

Publications (2)

Publication Number Publication Date
CN104123270A CN104123270A (en) 2014-10-29
CN104123270B true CN104123270B (en) 2018-03-06

Family

ID=51768684

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410366177.3A Active CN104123270B (en) 2014-07-29 2014-07-29 A kind of reverse table-layout method based on content

Country Status (1)

Country Link
CN (1) CN104123270B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105955944A (en) * 2016-05-09 2016-09-21 杭州艺豆网络科技有限公司 Method for generating size table

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101794280B (en) * 2010-03-11 2011-07-27 北京中科辅龙计算机技术股份有限公司 Form automatic generation method and system based on form template set
US9990347B2 (en) * 2012-01-23 2018-06-05 Microsoft Technology Licensing, Llc Borderless table detection engine
CN103473001B (en) * 2013-09-25 2017-01-11 珠海金山办公软件有限公司 cell adjusting method and device

Also Published As

Publication number Publication date
CN104123270A (en) 2014-10-29

Similar Documents

Publication Publication Date Title
US9177094B2 (en) Automatic mapping method for a distribution network based on logical layout
CN102891765B (en) A kind of method realizing web network topology based on SNMP and HTML5
WO2008124216A3 (en) Method and apparatus for planning air refueling for aircraft
CN104570081A (en) Pre-stack reverse time migration seismic data processing method and system by integral method
CN108027844B (en) Contact resistance reduces
CN102821168B (en) Based on method and the device of the MAC address aging of VPLS
CN102651002A (en) Webpage information extracting method and system
CN107784111A (en) Data digging method, device, equipment and storage medium
CN102968349B (en) Remote sensing image data file completeness method of calibration and system
CN104797084A (en) Layout method and layout device for printed circuit boards
CN102857949B (en) A kind of method and apparatus that layout data consistency guarantees
CN104123270B (en) A kind of reverse table-layout method based on content
CN103440197B (en) A kind of method automatically generating difference test report based on contrast test
JP2015530677A5 (en)
CN103605521A (en) Method and device for realizing interface apposition
CN104850623A (en) Dynamic extension method and system for multidimensional data analysis model
CN102339329B (en) Method for dividing physical layout
CN103514224A (en) Method for processing data in database, data query method and corresponding device
CN104281575A (en) Webpage data obtaining method and template engine
CN106941466A (en) A kind of method and device of the digital pre-distortion of software-hardware synergism
CN105183745A (en) Method based on data visualization analysis
CN102855324A (en) Automatic extracting method and device for network information
CN103092630A (en) Interface data output device and interface data output method
CN103092818B (en) Thumbnail generation system and the reduced graph generating method of form
CN104866176A (en) Navigation method of icon dragging grouping

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Reverse table arrangement method based on content

Effective date of registration: 20200708

Granted publication date: 20180306

Pledgee: China Everbright Bank Zhongshan branch

Pledgor: GUANGDONG NENGLONG EDUCATION Co.,Ltd.

Registration number: Y2020980003904

PE01 Entry into force of the registration of the contract for pledge of patent right
PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20210817

Granted publication date: 20180306

Pledgee: China Everbright Bank Zhongshan branch

Pledgor: GUANGDONG NENGLONG EDUCATION Co.,Ltd.

Registration number: Y2020980003904

PC01 Cancellation of the registration of the contract for pledge of patent right