JPH05181847A - Output data item delimiting processing method - Google Patents

Output data item delimiting processing method

Info

Publication number
JPH05181847A
JPH05181847A JP4018203A JP1820392A JPH05181847A JP H05181847 A JPH05181847 A JP H05181847A JP 4018203 A JP4018203 A JP 4018203A JP 1820392 A JP1820392 A JP 1820392A JP H05181847 A JPH05181847 A JP H05181847A
Authority
JP
Japan
Prior art keywords
output data
data item
area
block
processing
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
JP4018203A
Other languages
Japanese (ja)
Other versions
JP3100218B2 (en
Inventor
Osamu Tosaka
修 登坂
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.)
Hitachi Software Engineering Co Ltd
Original Assignee
Hitachi Software Engineering 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 Hitachi Software Engineering Co Ltd filed Critical Hitachi Software Engineering Co Ltd
Priority to JP04018203A priority Critical patent/JP3100218B2/en
Publication of JPH05181847A publication Critical patent/JPH05181847A/en
Application granted granted Critical
Publication of JP3100218B2 publication Critical patent/JP3100218B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

PURPOSE:To automatically generate a delimiting line for delimiting each output data item, in a business form generating device for displaying the output data item on a display screen, and generating interactively a business form. CONSTITUTION:With respect to an output data item of arbitrary size arranged in an arbitrary position in a business form, an outer frame 1 containing all blocks of the output data item is set, and within a range of the set outer frame 1, the block of each output data item is delimited to the upper and the lower parts in an area in which the block of the output data item is not arranged, and an area whose horizontal width becomes maximum is set as a horizontal boundary rectangle 2. In the same way, the block of each output data item is delimited to the left and the right parts, an area whose vertical width becomes maximum is set as a vertical boundary rectangle 3, an intersection area of both ends of the set horizontal boundary rectangle 2 and the vertical rectangular area is derived, and a line for connecting a middle point of the area is generated, and becomes a delimiting line 4 of each output data item.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、出力データ項目区切り
処理方法に関し、特に、表示画面に出力データ項目を表
示し、対話的に帳票を作成する帳票作成装置において、
各出力データ項目を区切る区切り線を自動生成する出力
データ項目区切り処理方法に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an output data item delimiter processing method, and more particularly, in a form creating apparatus for displaying output data items on a display screen and interactively creating a form.
The present invention relates to an output data item delimiter processing method for automatically generating a delimiter line that delimits each output data item.

【0002】[0002]

【従来の技術】従来、データ処理システムにより計算し
た出力データ項目を所定形式の帳票として出力するため
の帳票作成方法としては、帳票中に配置する出力データ
項目を指定しておき、それとは別に、帳票フォームを作
成し、帳票フォームの中に配置する出力データ項目を明
示的に指示して帳票を作成する帳票作成方法が、一般的
に行なわれている。
2. Description of the Related Art Conventionally, as a form creating method for outputting an output data item calculated by a data processing system as a form of a predetermined format, an output data item to be arranged in a form is designated, and separately from that, A form creating method is generally performed in which a form form is created, and output data items to be arranged in the form form are explicitly designated to create the form.

【0003】また、他の帳票作成方法として、スプレッ
ドシートプログラムの例に見られるように、表形式に配
置された出力データ項目に対して自動的に出力データ項
目を区切る直線を付加するような帳票作成方法もある。
As another form creation method, as shown in the example of the spreadsheet program, a form is added to the output data items arranged in a table format so as to automatically add straight lines separating the output data items. There is also a creation method.

【0004】[0004]

【発明が解決しようとする課題】ところで、上述の従来
の技術による帳票作成方法においては、帳票中に配置さ
れた全ての出力データ項目について、それらを区切る直
線を付加する場合、それらを明示的に作成される必要が
あり、出力データ項目が多くなると、その操作が煩雑と
なるという問題がある。また、スプレッドシートによる
帳票作成方法の場合では、出力データ項目を区切る直線
は自動生成されるが、出力データ項目を配置する位置や
その大きさについて、表形式に配置できることが前提条
件となっている。このため、表形式以外の形式で配置さ
れた出力データ項目を区切る直線を付加する場合、それ
らを全て明示的に作成する必要があり、その操作が煩雑
となり、帳票作成の手間が大きいという問題がある。
By the way, in the above-mentioned form forming method according to the conventional technique, when a straight line separating them is added to all the output data items arranged in the form, they are explicitly added. It needs to be created, and when the number of output data items increases, there is a problem that the operation becomes complicated. In addition, in the case of the form creation method using a spreadsheet, the straight line that divides the output data items is automatically generated, but it is a prerequisite that the positions and sizes of the output data items can be arranged in a table format. .. For this reason, when adding straight lines that delimit output data items arranged in a format other than table format, it is necessary to explicitly create all of them, the operation becomes complicated, and the problem of creating a form is large. is there.

【0005】このように、従来の帳票作成方法において
は、帳票中に配置する出力データ項目が多くなると、そ
れらを区切るための直線を付加する際、それらを区切る
のに十分かつ最少本数の直線を付加するのは試行錯誤を
伴う困難な作業になる場合が多くなる。このため、更に
出力データ項目の数が多くなると、それに伴い付加する
直線の数も多くなるので、直線を付加する作業自体も煩
雑になるという問題がある。
As described above, in the conventional form creating method, when the number of output data items to be arranged in the form becomes large, when adding straight lines for dividing them, the minimum number of straight lines sufficient to divide them are added. Adding is often a difficult task involving trial and error. For this reason, if the number of output data items further increases, the number of straight lines to be added also increases, which causes a problem that the work itself of adding straight lines becomes complicated.

【0006】本発明は上述のような問題点を解決するた
めになされたものであり、本発明の目的は、表示画面に
出力データ項目を表示し、対話的に帳票を作成する帳票
作成装置において、各出力データ項目を区切る区切り線
を自動生成する出力データ項目区切り処理方法を提供す
ることにある。
The present invention has been made to solve the above-mentioned problems, and an object of the present invention is to provide a form creating apparatus for displaying output data items on a display screen and interactively creating a form. An object of the present invention is to provide an output data item delimiter processing method that automatically generates a delimiter line that delimits each output data item.

【0007】[0007]

【課題を解決するための手段】上記目的を達成するた
め、本発明の出力データ項目区切り処理方法は、帳票中
の任意の位置に配置される任意の大きさの出力データ項
目に対して、該出力データ項目の夫々を区切り、帳票フ
ォームと関係付けて帳票を作成する帳票作成装置におけ
る出力データ項目区切り処理方法であって、帳票中の任
意の位置に配置される任意の大きさの出力データ項目に
対して該出力データ項目の全てのブロックを含む外枠を
設定する第1ステップと、設定した外枠の範囲内におい
て、出力データ項目のブロックが配置されていない領域
で、各出力データ項目のブロックを上下に区切り、横幅
が最大となる領域を横境界矩形として設定する第2ステ
ップと、設定した外枠の範囲内において、出力データ項
目のブロックが配置されていない領域で、各出力データ
項目のブロックを左右に区切り、縦幅が最大となる領域
を縦境界矩形として設定する第3ステップと、横境界矩
形および縦矩形領域の両端の交わり領域を求め、該領域
の中点を結ぶ線を生成し、各出力データ項目の区切り線
とする第4ステップとから成ることを特徴とする。
In order to achieve the above object, the output data item delimiter processing method of the present invention relates to an output data item of an arbitrary size arranged at an arbitrary position in a form. An output data item delimiter processing method in a form creation apparatus that separates each output data item and associates it with a form form to create a form, which is an output data item of any size arranged at any position in the form. For the first step of setting an outer frame including all blocks of the output data item, and for each output data item in the area where the block of the output data item is not arranged within the set outer frame. The second step of dividing the block into upper and lower parts and setting the area with the maximum width as the horizontal boundary rectangle, and the block of the output data item is arranged within the set outer frame range. The third step of dividing each output data item block into left and right areas and setting the area with the maximum vertical width as the vertical boundary rectangle, and the intersection area at both ends of the horizontal boundary rectangle and the vertical rectangular area And a fourth step of generating a line connecting the midpoints of the areas and using the line as a delimiter line for each output data item.

【0008】[0008]

【作用】本発明の出力データ項目区切り処理方法では、
帳票作成装置において、帳票中の任意の位置に配置され
る任意の大きさの出力データ項目に対して、該出力デー
タ項目の夫々を区切り、帳票フォームと関係付けて帳票
を作成する場合、帳票の出力データ項目を区切る区切り
線の生成のために、次のような第1ステップ,第2ステ
ップ,第3ステップ,および第4ステップの処理ステッ
プの処理を行う。
In the output data item delimiter processing method of the present invention,
In the form creation device, when an output data item of arbitrary size placed at an arbitrary position in the form is divided and each of the output data items is separated and associated with the form form to create a form, In order to generate a delimiter line that delimits output data items, the following first, second, third, and fourth processing steps are performed.

【0009】まず、第1ステップで、帳票中の任意の位
置に配置される任意の大きさの出力データ項目に対して
該出力データ項目の全てのブロックを含む外枠を設定す
る。次の第2ステップで設定した外枠の範囲内におい
て、出力データ項目のブロックが配置されていない領域
で、各出力データ項目のブロックを上下に区切り、横幅
が最大となる領域を横境界矩形として設定する。次の第
3ステップで設定した外枠の範囲内において、出力デー
タ項目のブロックが配置されていない領域で、各出力デ
ータ項目のブロックを左右に区切り、縦幅が最大となる
領域を縦境界矩形として設定する。そして、次の第4ス
テップにおいて、横境界矩形および縦矩形領域の両端の
交わり領域を求め、該領域の中点を結ぶ線を生成し、各
出力データ項目の区切り線とする。
First, in a first step, an outer frame including all blocks of an output data item of an arbitrary size arranged at an arbitrary position in a form is set. Within the outer frame set in the next second step, in the area where the block of output data items is not arranged, the block of each output data item is divided into upper and lower parts, and the area with the maximum width is defined as the horizontal boundary rectangle. Set. Within the outer frame set in the next third step, in the area where the block of output data item is not arranged, the block of each output data item is divided into left and right, and the area with the maximum vertical width is the vertical boundary rectangle. Set as. Then, in the next fourth step, an intersection area at both ends of the horizontal boundary rectangular area and the vertical rectangular area is obtained, and a line connecting the midpoints of the areas is generated and used as a delimiter line for each output data item.

【0010】このような各ステップの処理を行うことに
より、帳票中の任意の位置に配置された任意の大きさの
出力データ項目について、隣接する出力データ項目の間
にそれらを区切るのに十分かつ最少本数のデータ項目の
区切り線を設定できる。帳票を作成する場合には、配置
すべき出力データ項目を全てそれぞれの配置位置に配置
してケイ線を作成する作業を行うが、上述のような処理
ステップの処理を行うことにより、出力データ項目を区
切るのに十分かつ最少本数の区切り線を自動生成するこ
とができる。このため、帳票作成作業における出力デー
タ項目を区切るための直線を付加する作業が軽減でき、
簡単に帳票を作成することができる。
By performing the processing of each step as described above, it is sufficient to divide output data items of arbitrary sizes arranged at arbitrary positions in the form between adjacent output data items. You can set a separator line for the minimum number of data items. When creating a form, all output data items that should be placed are placed at their respective placement positions to create a key line. By performing the processing steps as described above, the output data items It is possible to automatically generate the minimum number of dividing lines that are sufficient for dividing the. Therefore, it is possible to reduce the work of adding a straight line for separating the output data items in the form creation work,
You can easily create a form.

【0011】[0011]

【実施例】以下、本発明の一実施例を図面により具体的
に説明する。図1は、本発明の一実施例にかかる帳票作
成装置における出力データ項目区切り処理方法により、
区切り線を自動生成する処理の原理を説明する図であ
る。図1において、斜線でハッチングしたブロックa,
b,c,d,eは、帳票の中の任意位置に配置される夫
々の出力データ項目を示している。ここでは、これらの
帳票中の任意の位置に配置される任意の大きさの各ブロ
ックa〜eの各出力データ項目に対し、隣接する各々の
出力データ項目を区切る直線を自動生成する処理を行
う。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be specifically described below with reference to the drawings. FIG. 1 is a block diagram showing an output data item division processing method in a form creating apparatus according to an embodiment of the present invention.
It is a figure explaining the principle of the process which automatically generates a dividing line. In FIG. 1, a block a, which is hatched with diagonal lines,
b, c, d, and e indicate respective output data items arranged at arbitrary positions in the form. Here, for each output data item of each block a to e of any size arranged at any position in these forms, a process of automatically generating a straight line separating adjacent output data items is performed. ..

【0012】このため、まず、第1処理ステップ11
おいて、帳票中に配置されている各々の出力データ項目
の各ブロックa〜eに対し、それら全てを囲む外枠1を
設定する。以後、各々の出力データ項目のブロックa〜
eを区切る区切り線の生成処理は、外枠1の範囲内の領
域で十分である。また、各々の出力データ項目のブロッ
クa〜eを区切るための直線が引かれる可能性があるの
は、出力データ項目のブロックa〜eが配置されていな
い領域である。
Therefore, first, in the first processing step 11 , the outer frame 1 surrounding all of the blocks a to e of the output data items arranged in the form is set. After that, the block a of each output data item
An area within the range of the outer frame 1 is sufficient for the generation processing of the delimiter line that delimits e. Further, there is a possibility that a straight line for separating the blocks a to e of each output data item may be drawn in the area where the blocks a to e of the output data item are not arranged.

【0013】したがって、次の第2処理ステップ12
おいて、これらの出力データ項目のブロックa〜eが配
置されていない領域において、各出力データ項目を上下
に区切る領域で、かつ夫々に横幅が最大となる領域を設
定する。この領域を横境界矩形2とする。この横境界矩
形2は、条件を満たす矩形が複数個設定される。
Therefore, in the next second processing step 12 , in the area in which the blocks a to e of these output data items are not arranged, the output data items are divided into upper and lower areas, and the maximum width of each is set. Area to be set. This area is defined as a horizontal boundary rectangle 2. As the horizontal boundary rectangle 2, a plurality of rectangles satisfying the conditions are set.

【0014】次に第3処理ステップ13において、第2
処理ステップと同様な処理を、方向を変えた形式で行
う。すなわち、出力データ項目のブロックa〜eが配置
されていない領域において、各出力データ項目のブロッ
クを左右に区切る領域で、かつ夫々に縦幅が最大となる
領域を設定し、この領域を縦矩形領域3とする。この縦
境界矩形3は、条件を満たす矩形が複数個設定される。
Next, in the third processing step 13 , the second
The same processing as the processing step is performed in a different direction. That is, in the area in which the blocks a to e of the output data items are not arranged, an area that divides each block of the output data items into left and right and has a maximum vertical width is set, and this area is defined as a vertical rectangle. Area 3 is set. As the vertical boundary rectangle 3, a plurality of rectangles satisfying the conditions are set.

【0015】そして、次の第4の処理ステップ14にお
いて、前の処理ステップで求められた複数個の横境界矩
形2および縦境界矩形3の各々の領域の両端の交わり領
域を求め、その中点を結ぶことにより、各々の出力デー
タ項目を区切る区切り線4を生成する。
Then, in the next fourth processing step 14 , the intersection area at both ends of each of the plurality of horizontal boundary rectangles 2 and vertical boundary rectangles 3 obtained in the previous processing step is obtained, and the midpoint thereof is calculated. By connecting these, a delimiter line 4 that delimits each output data item is generated.

【0016】図2は、本発明の一実施例にかかる出力デ
ータ項目区切り処理方法を一態様で実施する帳票作成装
置の全体構成を示すブロック図であり、図3は、帳票作
成装置のメモリにおけるデータ構造を詳細に説明する図
である。図2において、20はメモリ、21は入力装
置、22は処理装置、23は表示装置である。また、図
2および図3において、31は出力データ項目座標領
域、32は項目間X範囲領域、33は項目間Y範囲領
域、34は横境界矩形領域、35は縦境界矩形領域、3
6は区切り線端点領域を夫々に表わしている。
FIG. 2 is a block diagram showing an overall configuration of a form creating apparatus for carrying out the output data item delimiter processing method according to an embodiment of the present invention in one mode, and FIG. 3 is a memory of the form creating apparatus. It is a figure explaining a data structure in detail. In FIG. 2, 20 is a memory, 21 is an input device, 22 is a processing device, and 23 is a display device. 2 and 3, 31 is an output data item coordinate area, 32 is an inter-item X range area, 33 is an inter-item Y range area, 34 is a horizontal boundary rectangular area, 35 is a vertical boundary rectangular area, 3
Denoted at 6 are the end points of the dividing line.

【0017】図2および図3を参照して説明する。処理
装置22は、入力装置21から入力された指示により、
帳票中の出力データ項目を区切る直線を自動生成する処
理を開始する。まず、帳票中に配置されている各々の出
力データ項目のブロックa〜eの座標情報(ブロックの
左上座標,右下座標の値)を、出力データ項目座標領域
31から求め、この座標情報から、対象領域の全体を囲
む外枠1を設定する。すなわち、各々の座標情報の最大
値/最小値情報を求め、必要により所定枠領域分の座標
値を加えて、外枠1の座標情報とする。
Description will be made with reference to FIGS. 2 and 3. The processing device 22 receives the instruction input from the input device 21,
Starts the process to automatically generate a straight line that divides the output data items in the form. First, the coordinate information (the values of the upper left coordinates and the lower right coordinates of blocks) of the blocks a to e of each output data item arranged in the form is obtained from the output data item coordinate area 31, and from this coordinate information, An outer frame 1 that surrounds the entire target area is set. That is, the maximum value / minimum value information of each coordinate information is obtained, and the coordinate values of the predetermined frame area are added as necessary to obtain the coordinate information of the outer frame 1.

【0018】次に、左から右へと直線を引く場合、直線
の終端となる可能性があるのは各出力データ項目のブロ
ックa〜eの左辺または外枠1である。このため、左か
ら右へと向かう最長の直線を求めるために、帳票中の全
ての出力データ項目のブロックa〜eの左辺(x座標
値)に着目し、各出力データ項目のブロックの左辺が存
在する位置xにおけるy座標が、いずれか2つの出力デ
ータ項目のブロックの間にある範囲を、出力データ項目
座標領域31に格納されている各々の座標情報より算出
し、その結果を項目間y範囲領域33に格納する。
When a straight line is drawn from left to right, the end of the straight line may be the left side of the blocks a to e of each output data item or the outer frame 1. Therefore, in order to find the longest straight line from left to right, pay attention to the left side (x coordinate value) of blocks a to e of all output data items in the form, and check that the left side of the block of each output data item is The range where the y coordinate at the existing position x is between the blocks of any two output data items is calculated from each coordinate information stored in the output data item coordinate area 31, and the result is calculated as the inter-item y. It is stored in the range area 33.

【0019】同様にして、帳票中の全ての出力データ項
目のブロックa〜eの上辺(y座標値)に着目して、各
出力データ項目のブロックの上辺が存在する位置yにお
けるx座標が、いずれか2つの出力データ項目の間にあ
る範囲を、出力データ項目座標31に格納されている各
々の座標情報より算出し、その結果を項目間x範囲領域
32に格納する。
Similarly, paying attention to the upper sides (y coordinate values) of the blocks a to e of all the output data items in the form, the x coordinate at the position y where the upper side of the block of each output data item exists is The range between any two output data items is calculated from the coordinate information stored in the output data item coordinates 31, and the result is stored in the inter-item x range area 32.

【0020】次に、帳票中の各出力データ項目のブロッ
クを上下に区切る最長の直線を求めるため、横境界矩形
2を求める処理を行う。横境界矩形2は、次のような手
順の処理を行って求められる。
Next, in order to obtain the longest straight line that vertically divides the block of each output data item in the form, processing for obtaining the horizontal boundary rectangle 2 is performed. The horizontal boundary rectangle 2 is obtained by performing processing in the following procedure.

【0021】帳票中の各出力データ項目のブロックa〜
eの左辺の座標情報から、最も左側のx座標値をx1と
し、順次右に行くに従いx2,x3,…とする。いま、
x1におけるy座標がいずれか2つの出力データ項目の
ブロックの間にある範囲を求め、それぞれを範囲R1,
R2,…とする。各々の範囲R1,R2,…は、出力デ
ータ項目座標領域31に格納されている各座標情報より
算出し、その結果を項目間y範囲領域33に格納する。
これにより、項目間y範囲領域33には、項目左端x位
置に対してその項目間範囲(上),項目間範囲(下)が
格納される。
Block a of each output data item in the form
From the coordinate information on the left side of e, the leftmost x coordinate value is set to x1, and it is set to x2, x3, ... Now
The range in which the y coordinate at x1 is between any two blocks of output data items is determined, and each range is defined as range R1,
R2 ... Each range R1, R2, ... Is calculated from each coordinate information stored in the output data item coordinate area 31, and the result is stored in the inter-item y range area 33.
As a result, the inter-item y range area 33 stores the inter-item range (upper) and the inter-item range (lower) with respect to the x position of the left end of the item.

【0022】次に、範囲R1,R2,…のうち、x2で
もy座標がいずれか2つの出力データ項目のブロックの
間にある範囲を求め、新たにそれぞれの範囲R1,R
2,…とする。これを順次繰り返すと、いずれかの位置
でy座標がいずれか2つの出力データ項目の間にある範
囲がなくなるか、または項目間y範囲領域33の各デー
タにおいて、それより右側にあるものの情報がなくな
る。
Next, of the ranges R1, R2, ..., The range in which the y coordinate is also between the blocks of any two output data items in x2 is obtained, and the ranges R1, R are newly added.
2, ... When this is repeated sequentially, there is no range in which the y coordinate is between any two output data items at any position, or in each data of the inter-item y range area 33, the information of the one on the right side is lost. Disappear.

【0023】範囲R1,R2,…の夫々について、この
時のx座標のすぐ左側の座標が、各範囲R1,R2,…
に示されるy座標の範囲における出力データ項目のブロ
ックを上下に区切る最長の直線の右端の座標となる。こ
の直線の左端の座標はそれぞれ範囲R1,R2,…に示
されるy座標であり、x1から左に直線を伸ばしたとき
に最初にぶつかる出力データ項目のブロックの右辺のす
ぐ右側の座標である。これにより、夫々の最長の直線と
対応する範囲R1,R2,…によって形成される領域の
矩形が求められる。この矩形領域が横境界矩形2であ
る。
For each of the ranges R1, R2, ..., The coordinates immediately to the left of the x coordinate at this time are the ranges R1, R2 ,.
The coordinates of the right end of the longest straight line that divides the block of output data items in the y-coordinate range shown in FIG. The coordinates of the left end of this straight line are the y coordinates shown in the ranges R1, R2, ..., respectively, and are the coordinates of the right side of the right side of the block of the output data item which first hits when the straight line is extended from x1 to the left. Thereby, the rectangle of the area formed by the ranges R1, R2, ... Corresponding to the longest straight lines is obtained. This rectangular area is the horizontal boundary rectangle 2.

【0024】求められた横境界矩形2の領域の左上座標
および右下座標は、横境界矩形領域34に格納する。こ
の場合、新たに求めた横境界矩形2が、既に求めてある
横境界矩形2に対して、x座標は全て含まれ、かつy座
標も全て含まれる場合の横境界矩形2は、横境界矩形領
域34に既に格納されているものの一部に過ぎないので
新たに格納することはしない。この操作をx2,x3,
…に対して順次繰り返し行うことにより、全ての横境界
矩形2が算出され、その座標情報が横境界矩形領域34
に格納される。
The upper left coordinates and the lower right coordinates of the obtained area of the horizontal boundary rectangle 2 are stored in the horizontal boundary rectangular area 34. In this case, the newly-obtained horizontal boundary rectangle 2 is the horizontal boundary rectangle 2 that includes all the x coordinates and all the y coordinates with respect to the already obtained horizontal boundary rectangle 2. Since it is only a part of what is already stored in the area 34, it is not newly stored. This operation is x2, x3
.. are sequentially repeated, all the horizontal boundary rectangles 2 are calculated, and the coordinate information of the horizontal boundary rectangles 2 is calculated.
Stored in.

【0025】次に、方向を変えて同様な処理を行い、帳
票中の各出力データ項目を左右に区切る最長の直線を求
めるための縦境界矩形を求める。求められた縦境界矩形
の座標情報は縦境界矩形領域35に格納する。
Next, the same processing is performed by changing the direction, and a vertical boundary rectangle for obtaining the longest straight line that divides each output data item in the form into left and right is obtained. The calculated coordinate information of the vertical boundary rectangle is stored in the vertical boundary rectangular area 35.

【0026】以上により求められた結果の横境界矩形領
域34と縦境界矩形領域35とに格納されている夫々の
座標情報に従い、次に、それらの横境界矩形2と縦境界
矩形3とが交わる両端の矩形を算出し、さらにその中点
を算出する。この中点が、出力データ項目のブロックa
〜eを区切る直線の端点となる。求めた端点の座標値は
区切り線端点領域36に格納する。最後に、区切り線端
点領域36の座標情報に従い、例えば、表示装置23に
直線を表示することで、自動生成された出力データ項目
を区切る直線が表示される。
According to the respective coordinate information stored in the horizontal boundary rectangular area 34 and the vertical boundary rectangular area 35 obtained as a result, the horizontal boundary rectangle 2 and the vertical boundary rectangle 3 intersect next. The rectangles at both ends are calculated, and the midpoint thereof is calculated. This midpoint is the block a of the output data item.
It becomes an end point of a straight line that divides ~ e. The calculated coordinate values of the end points are stored in the terminating line end point area 36. Finally, according to the coordinate information of the dividing line end point area 36, for example, by displaying a straight line on the display device 23, a straight line dividing the automatically generated output data item is displayed.

【0027】図4は、出力データ項目区切り処理方法に
よる出力データ項目の区切り線を生成する処理のフロー
をPADで示すフローチャートである。図4を参照し
て、出力データ項目の区切り線を生成するアルゴリズム
を説明すると、まず、処理ブロック41で外枠を設定を
行う。次に、x方向の処理について、処理ブロック42
において項目間x範囲の設定を行う。これは次の繰返し
制御ブロック43による処理の制御で、全ての出力デー
タ項目について、処理ブロック44における項目の間に
あるx範囲の算出を行う。次にy方向についても同様な
処理を行う。すなわち、処理ブロック45において項目
間y範囲の設定を行う。これは次の繰返し制御ブロック
46による処理の制御によって、全ての出力データ項目
について、処理ブロック47での項目の間にあるx範囲
の算出を行う処理を行う。
FIG. 4 is a PAD showing a flow of a process of generating a dividing line of output data items by the output data item dividing processing method. Referring to FIG. 4, the algorithm for generating the delimiter line of the output data item will be described. First, the outer frame is set in the processing block 41. Next, for the processing in the x direction, the processing block 42
In, the x range between items is set. This is the control of the processing by the next iterative control block 43, and the x range between the items in the processing block 44 is calculated for all output data items. Next, similar processing is performed for the y direction. That is, the y range between items is set in the processing block 45. Under the control of the process by the next iterative control block 46, the process of calculating the x range between the items in the process block 47 is performed for all the output data items.

【0028】次に、処理ブロック48において、横境界
矩形の設定を行う。これは次の繰返し制御ブロック49
による処理の制御で、全ての項目間x範囲について、更
に次の繰返し制御ブロック50のよる処理の制御で、交
わりの範囲が無くなるか、または右側の項目間x範囲が
なくなるまでの2重の制御で、処理ブロック51におけ
る処理でのすぐ右側の項目間x範囲との交わりの範囲算
出の処理を行う。続いて、次の判定処理ブロック52に
おいて、結果は算出済みの横境界矩形に含まれるか否か
を判定し、含まれない場合のみ、次の処理ブロック53
において、横境界矩形の左端座標の算出の処理を行う。
Next, in processing block 48, the horizontal boundary rectangle is set. This is the next iteration control block 49.
In the control of the processing by the above, the double control until the intersection range disappears or the inter-item x range on the right side disappears by the control of the processing by the next repetitive control block 50 for all the x ranges between the items. Then, the range calculation processing of the intersection with the inter-item x range on the right side in the processing in the processing block 51 is performed. Then, in the next determination processing block 52, it is determined whether or not the result is included in the calculated horizontal boundary rectangle. Only when the result is not included, the next processing block 53 is performed.
At, the process of calculating the left end coordinates of the horizontal boundary rectangle is performed.

【0029】次に、処理ブロック54において、縦境界
矩形の設定を行う。これも前述の処理と同様に、次の繰
返し制御ブロック55による処理の制御で、全ての項目
間y範囲について、更に次の繰返し制御ブロック56の
よる処理の制御で、交わりの範囲が無くなるか、または
右側の項目間y範囲がなくなるまでの2重の制御で、処
理ブロック57における処理でのすぐ下側の項目間y範
囲との交わりの範囲算出の処理を行う。続いて、次の判
定処理ブロック58において、結果は算出済みの縦境界
矩形に含まれるか否かを判定し、含まれない場合のみ、
次の処理ブロック59において、縦境界矩形の上端座標
の算出の処理を行う。
Next, in processing block 54, a vertical boundary rectangle is set. Similarly to the above-described processing, the processing control by the next iterative control block 55 controls the processing by the next iterative control block 56 for all y ranges between items. Alternatively, the processing for calculating the range of intersection with the y range between items on the immediately lower side in the processing in the processing block 57 is performed by double control until the y range between items on the right side disappears. Subsequently, in the next determination processing block 58, it is determined whether or not the result is included in the calculated vertical boundary rectangle, and only when the result is not included,
In the next processing block 59, the processing of calculating the upper end coordinates of the vertical boundary rectangle is performed.

【0030】これらの処理により、横境界矩形および縦
境界矩形の算出の処理が完了するので、次の処理ブロッ
ク60からの区切り線端点の設定の処理を行う。この処
理では、次の繰返し制御ブロック61による処理の制御
で、全ての横境界矩形について、処理ブロック62にお
ける処理で、両端の縦境界矩形との交わり矩形の中点算
出の処理を行う。続いて、次の繰返し制御ブロック63
による処理の制御で、全ての縦境界矩形について、処理
ブロック64における処理で、両端の横境界矩形との交
わり矩形の中点算出の処理を行う。そして、ここで求め
られた区切り線端点が夫々に結ばれて、出力データ項目
の各々のブロックの区切り線が生成される。
By the above processing, the processing for calculating the horizontal boundary rectangle and the vertical boundary rectangle is completed, so that the processing for setting the delimiter end points from the next processing block 60 is performed. In this process, under the control of the process by the next iterative control block 61, the process of calculating the midpoint of the intersecting rectangle with the vertical boundary rectangles at both ends is performed for all the horizontal boundary rectangles in the process block 62. Then, the next iterative control block 63
Under the control of the processing by, the processing in the processing block 64 is performed on all the vertical boundary rectangles to calculate the midpoint of the intersecting rectangle with the horizontal boundary rectangles at both ends. Then, the dividing line end points obtained here are connected to each other to generate a dividing line of each block of the output data item.

【0030】[0030]

【発明の効果】以上に説明したように本発明の出力デー
タ項目区切り処理方法によれば、帳票作成において、帳
票中に任意の出力データ項目を任意位置に配置するのみ
で、出力データ項目を区切るのに十分かつ最少本数の直
線を自動的に生成される。これにより、出力データ項目
を区切る区切り直線の作成のため、出力データ項目の妥
当性を判断する必要が無くなり、またその直線を明示的
に作成する作業もなくなる。
As described above, according to the output data item delimiter processing method of the present invention, when a form is created, the output data items are separated only by arranging any output data item in any position in the form. Sufficient and minimal number of straight lines are automatically generated. This eliminates the need to judge the validity of the output data item because of the creation of the dividing straight line that divides the output data item, and the work of explicitly creating the straight line.

【図面の簡単な説明】[Brief description of drawings]

【図1】 図1は本発明の一実施例にかかる帳票作成装
置における出力データ項目区切り処理方法により区切り
線を自動生成する処理の原理を説明する図、
FIG. 1 is a diagram for explaining the principle of processing for automatically generating a dividing line by an output data item dividing processing method in a form creating apparatus according to an embodiment of the present invention;

【図2】 図2は本発明の一実施例にかかる出力データ
項目区切り処理方法を一態様で実施する帳票作成装置の
全体構成を示すブロック図、
FIG. 2 is a block diagram showing the overall configuration of a form creation device that implements the output data item delimitation processing method according to an embodiment of the present invention in one form;

【図3】 帳票作成装置のメモリにおけるデータ構造を
詳細に説明する図、
FIG. 3 is a diagram for explaining in detail the data structure in the memory of the form creation device;

【図4】 図4は出力データ項目区切り処理方法による
出力データ項目の区切り線を生成する処理のフローをP
ADで示すフローチャートである。
FIG. 4 is a flowchart of a process of generating a delimiter line of an output data item by the output data item delimitation processing method.
It is a flowchart shown by AD.

【符号の説明】[Explanation of symbols]

a〜e…出力データ項目のブロック 1…外枠 2…横境界矩形 3…縦境界矩形 4…区切り線 20…メモリ 21…入力装置 22…処理装置 23…表示装置 31…出力データ項目座標領域 32…項目間x範囲領域 33…項目間y範囲領域 34…横境界矩形領域 35…縦境界矩形領域 36…区切り線端点領域 a to e ... Block of output data item 1 ... Outer frame 2 ... Horizontal boundary rectangle 3 ... Vertical boundary rectangle 4 ... Separation line 20 ... Memory 21 ... Input device 22 ... Processing device 23 ... Display device 31 ... Output data item coordinate area 32 ... inter-item x range area 33 ... inter-item y range area 34 ... horizontal boundary rectangular area 35 ... vertical boundary rectangular area 36 ... delimiter end point area

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 帳票中の任意の位置に配置される任意の
大きさの出力データ項目に対して、該出力データ項目の
夫々を区切り、帳票フォームと関係付けて帳票を作成す
る帳票作成装置における出力データ項目区切り処理方法
であって、 帳票中の任意の位置に配置される任意の大きさの出力デ
ータ項目に対して該出力データ項目の全てのブロックを
含む外枠を設定する第1ステップと、 設定した外枠の範囲内において、出力データ項目のブロ
ックが配置されていない領域で、各出力データ項目のブ
ロックを上下に区切り、横幅が最大となる領域を横境界
矩形として設定する第2ステップと、 設定した外枠の範囲内において、出力データ項目のブロ
ックが配置されていない領域で、各出力データ項目のブ
ロックを左右に区切り、縦幅が最大となる領域を縦境界
矩形として設定する第3ステップと、 横境界矩形および縦矩形領域の両端の交わり領域を求
め、該領域の中点を結ぶ線を生成し、各出力データ項目
の区切り線とする第4ステップとから成ることを特徴と
する出力データ項目区切り処理方法。
1. A form creating apparatus for creating a form by separating each output data item from an output data item of an arbitrary size arranged at an arbitrary position in a form and associating the output data item with a form form. A first step of setting an outer frame including all blocks of an output data item for an output data item of an arbitrary size arranged at an arbitrary position in a form; , In the range of the set outer frame, in the area where the block of the output data item is not arranged, the block of each output data item is divided into upper and lower parts, and the area having the maximum width is set as the horizontal boundary rectangle. And within the set outer frame, the block of each output data item is divided into the left and right in the area where the block of the output data item is not placed, and the vertical width becomes maximum. The third step of setting an area as a vertical boundary rectangle, obtaining the intersection area at both ends of the horizontal boundary rectangle and the vertical rectangular area, generating a line connecting the midpoints of the area, and setting it as a delimiter line for each output data item. An output data item delimiter processing method comprising four steps.
JP04018203A 1992-01-07 1992-01-07 Output data item separation method Expired - Fee Related JP3100218B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP04018203A JP3100218B2 (en) 1992-01-07 1992-01-07 Output data item separation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP04018203A JP3100218B2 (en) 1992-01-07 1992-01-07 Output data item separation method

Publications (2)

Publication Number Publication Date
JPH05181847A true JPH05181847A (en) 1993-07-23
JP3100218B2 JP3100218B2 (en) 2000-10-16

Family

ID=11965085

Family Applications (1)

Application Number Title Priority Date Filing Date
JP04018203A Expired - Fee Related JP3100218B2 (en) 1992-01-07 1992-01-07 Output data item separation method

Country Status (1)

Country Link
JP (1) JP3100218B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2000047537A1 (en) * 1999-02-12 2000-08-17 Sumitomo Electric Industries, Ltd. High strength sintered impact having excellent resistance to cratering

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2000047537A1 (en) * 1999-02-12 2000-08-17 Sumitomo Electric Industries, Ltd. High strength sintered impact having excellent resistance to cratering

Also Published As

Publication number Publication date
JP3100218B2 (en) 2000-10-16

Similar Documents

Publication Publication Date Title
JPH07105257A (en) Method and system for plotting network chart
JPH0765201A (en) Device and method for shape modeling
JPH04312186A (en) System for generating graph
JPH05181847A (en) Output data item delimiting processing method
JP3517119B2 (en) Computer-aided design apparatus, computer-aided design method, and computer-readable recording medium recording computer-aided design program
JPS63155260A (en) Editing method for table by computer
JPH01232475A (en) Parallel line connecting method
JP3275277B2 (en) Graphic drawing creation apparatus and method
JP2957417B2 (en) Distributed database system aggregation processing method
JP2002163323A (en) Method and device for pattern layout and medium storing pattern layout program
JPH0927048A (en) Method and device for mesh generation
JP2667454B2 (en) Plotting device
JP2830550B2 (en) Integrated circuit layout design equipment
JPH04172566A (en) Shape changing method for wiring pattern
JPH07297292A (en) Drawing method of cross-sectional structure and drawing processing device of cross-sectional structure
JPH05101156A (en) Graphic generating device
JPH08221452A (en) Layout display device
JP2003293445A (en) Outer wall panel material computing system
JPH06161694A (en) Selection displkay device
JPH05210480A (en) Rectangular cursor display device
JPH0451358A (en) Document preparing device
JPH08202686A (en) Automatic element dividing device
JPH0636042A (en) Tree structure data display method
JPH0492981A (en) Character string display method
JPH08339409A (en) Preparing method for document

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees