JPH08147389A - Table processor - Google Patents

Table processor

Info

Publication number
JPH08147389A
JPH08147389A JP6285607A JP28560794A JPH08147389A JP H08147389 A JPH08147389 A JP H08147389A JP 6285607 A JP6285607 A JP 6285607A JP 28560794 A JP28560794 A JP 28560794A JP H08147389 A JPH08147389 A JP H08147389A
Authority
JP
Japan
Prior art keywords
data
cell
centering
table cell
case
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.)
Pending
Application number
JP6285607A
Other languages
Japanese (ja)
Inventor
Masanori Sasaki
政則 佐々木
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer 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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP6285607A priority Critical patent/JPH08147389A/en
Publication of JPH08147389A publication Critical patent/JPH08147389A/en
Pending legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

PURPOSE: To obtain a visually balanced centering display and to make the layout of the whole of a table easy to be seen by performing the blocking based on the grouping of table cell data before the centering of table cell data. CONSTITUTION: As shown in (a), a case where table data composed of 7-byte data is inputted in each table cell in a 5-line and 1-column table is supposed. In this case, the number of column is investigated at first and table cell data is grouped for every column. In this case, the number of group becomes 1. Next, the maximum value of the number of byte of the area where data exists in each table cell within each group is determined. In this case, the value is 3 bytes. Next, the data of each table cell is blocked by the length of MAX=3 bytes, the data is written in a cell block buffer, and processings of a justification to the right, a justification to the left and a centering are performed for each block data for every type of data. In this case, the processing is the justification to the right. Next, the data within justified to the right buffer is written and displayed within the block of each table cell for which the centering is performed.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は表処理装置に関し、特
に、コンピュータやワープロに使用される表計算ソフト
ウェア及び文章作成ソフトウェアにおいて、表データの
レイアウト処理のうちのセンタリング処理に関するもの
である。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a table processing device, and more particularly to a centering process of a layout process of table data in spreadsheet software and text creation software used in computers and word processors.

【0002】[0002]

【従来の技術】従来の表データのセンタリング処理にお
いては、個々の表セル内でデータのサイズを判断して、
データのセンタリング表示を行っていた。図4はこのよ
うな従来のセンタリング表示方法の一例を示す図であ
る。
2. Description of the Related Art In conventional table data centering processing, the size of data is judged in each table cell,
The data was centered and displayed. FIG. 4 is a diagram showing an example of such a conventional centering display method.

【0003】同図において、センタリングを行なう前に
図4(a)に示すようにデータ表示がなされていた場合
に、各表セル内のデータのサイズが判断されて、図4
(b)に示すごとくセンタリング表示がなされる。
In FIG. 4, when data is displayed as shown in FIG. 4A before centering, the size of the data in each table cell is judged and
As shown in (b), centering is displayed.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、表示さ
れる各データのサイズに基づいてセンタリングを行った
場合、各データそのものの特徴と表の上下のデータの相
関関係によっては表示が見ずらくなってしまうという問
題があった。本発明の目的は、表全体のレイアウトがよ
り見やすくなるようなレイアウト表示を行なうことであ
る。
However, when the centering is performed based on the size of each data to be displayed, the display becomes difficult to see due to the correlation between the characteristics of each data itself and the data above and below the table. There was a problem of being lost. An object of the present invention is to provide a layout display that makes the layout of the entire table easier to see.

【0005】[0005]

【課題を解決するための手段】本発明の手段は次の通り
である。グループ化手段は、縦横各々の方向に複数配列
された表セル内に配置された各表データを所定の規則に
従ってグループ化する。ブロック化手段は、グループ化
された表データのうち同一のグループ毎に各表セル内の
データ有効領域を算出し、この算出結果に基づいて各表
セル内のデータをブロック化する。レイアウト処理手段
は、ブロック化された表データをブロック単位でレイア
ウト処理する。
The means of the present invention are as follows. The grouping means groups each table data arranged in a plurality of table cells arranged vertically and horizontally according to a predetermined rule. The blocking means calculates the data effective area in each table cell for each same group of the grouped table data, and blocks the data in each table cell based on the calculation result. The layout processing means performs a layout process on the block table data in block units.

【0006】[0006]

【作用】本発明の手段の作用は次の通りである。まず、
縦横各々の方向に複数配列された表セル内に配置された
各表データを、グループ化手段によって所定の規則に従
って、例えば列ごとにグループ化する。次に、グループ
化された表データのうち同一のグループ毎に各表セル内
のデータ有効領域、例えば、データの存在する最大バイ
ト数を算出し、この算出結果に基づいてブロック化手段
によって各表セル内のデータをブロック化する。そし
て、ブロック化された表データをレイアウト処理手段に
よってブロック単位でレイアウト処理する。
The operation of the means of the present invention is as follows. First,
The table data arranged in a plurality of table cells arranged in each of the vertical and horizontal directions are grouped according to a predetermined rule by the grouping means, for example, column by column. Next, the data effective area in each table cell, for example, the maximum number of bytes in which the data exists is calculated for each same group of the grouped table data, and each table is calculated by the blocking means based on the calculation result. Block the data in the cell. Then, the block-structured table data is laid out in block units by the layout processing means.

【0007】[0007]

【実施例】以下、本発明の一実施例を図1乃至図3を参
照して詳細に説明する。図1は本発明が適用される表処
理装置の構成を示すブロック図である。同図において、
参照数字2はCPUであり、以下に述べる各部の制御を
行なう。1は入力装置であり、入力機能キーを備えたキ
ーボードやマウス等で構成されている。ユーザによって
入力装置1の入力機能キーが操作されたときに発生され
る操作信号はCPU2に転送されて所定の処理が実行さ
れる。3はデータメモリであり、ユーザが作成した表デ
ータを保存する。4はプログラムRAMであり、入力制
御、表編集等の処理を行なうプログラムが記憶されてい
る。5は表示データをドットパターンで記憶する表示メ
モリであり、データメモリ3に保存された表データをC
PU2の制御の基に変換して得られる表示イメージを記
憶している。この表示メモリ5のデータはドライバ6を
介して表示部7にて表示される。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described in detail below with reference to FIGS. FIG. 1 is a block diagram showing the configuration of a table processing device to which the present invention is applied. In the figure,
Reference numeral 2 is a CPU, which controls each part described below. An input device 1 is composed of a keyboard, a mouse and the like having input function keys. An operation signal generated when a user operates the input function key of the input device 1 is transferred to the CPU 2 and a predetermined process is executed. A data memory 3 stores table data created by the user. A program RAM 4 stores a program for performing processing such as input control and table editing. Reference numeral 5 is a display memory for storing display data in a dot pattern, and the table data stored in the data memory 3 is stored in C
A display image obtained by conversion under the control of PU2 is stored. The data in the display memory 5 is displayed on the display unit 7 via the driver 6.

【0008】以下、図2を参照して上記した構成の動作
を説明する。本実施例は各表セル内のデータにおいて、
上下あるいは左右の表セル内のデータの特徴に相関があ
ることに着目したものであり、表示セルデータの上下あ
るいは左右のデータ群をグループ化してそのグループ内
の各表セルにおけるデータ固定長(ここでは最大バイト
数)を算出し、そのデータ固定長のブロック単位でセン
タリング処理を行なうものである。
The operation of the above configuration will be described below with reference to FIG. In this example, in the data in each table cell,
It focuses on the fact that there is a correlation between the characteristics of the data in the table cells above and below or to the left and right. Then, the maximum number of bytes) is calculated, and the centering process is performed for each block having a fixed data length.

【0009】このようなセンタリング処理において、右
詰めデータタイプ、すなわち表内で右詰めで配置される
データのセンタリング処理の動作フローを以下に述べ
る。ここでは、図2(a)に示すように、5行1列の表
において各表セルが7バイトのデータからなる表データ
が入力された場合を仮定する。 A.まず、このような表データが入力されたときその列
数を調べ、各列ごとに表セルデータをグループ化する。
ここでは列数=1なので、グループ数も1となる。 B.次に、各グループ内で各表セルにデータが存在する
領域のバイト数の最大値(MAX値)を求める。ここで
は、MAX=3バイトである。 C.次に、各表セルのデータをMAX=3バイトの長さ
でブロック化し、セルブロックバッファに書き込む。そ
して、セルブロックバッファに書き込んだ各ブロックデ
ータに対してデータのタイプ(特徴)ごとに右詰め、左
詰め、センタリングの処理を行なう。ここでは右詰めの
処理を行なう(図2(b))。 D.次に、センタリングされた各表セルのブロック内
に、右詰め処理されたバッファ内のデータを書き込ん
で、表示する(図2(c))。
In such a centering process, the operation flow of the centering process of the right-justified data type, that is, the data arranged right-justified in the table will be described below. Here, as shown in FIG. 2A, it is assumed that table data in which each table cell is 7 bytes of data is input in the table of 5 rows and 1 column. A. First, when such table data is input, the number of columns is checked, and table cell data is grouped for each column.
Since the number of columns is 1 here, the number of groups is also 1. B. Next, the maximum value (MAX value) of the number of bytes in the area where data is present in each table cell in each group is obtained. Here, MAX = 3 bytes. C. Next, the data of each table cell is divided into blocks with a length of MAX = 3 bytes, and written into the cell block buffer. Then, for each block data written in the cell block buffer, right-justified, left-justified, and centering processes are performed for each data type (feature). Right-justified processing is performed here (FIG. 2B). D. Next, the data in the right-justified buffer is written and displayed in the centered block of each table cell (FIG. 2C).

【0010】次に上記した動作を図3の処理フローチャ
ートを参照してさらに説明する。同図において、S0乃
至S9は動作状態を示している。まず、状態S0より処
理を開始する。状態S1では上記した動作フローAの処
理を行なう。次に状態S2において動作フローBの処理
を行い、状態S3、S4において動作フローCの処理を
行なう。さらに状態S5、S6では動作フローDの処理
を行なう。
Next, the above operation will be further described with reference to the processing flowchart of FIG. In the figure, S0 to S9 indicate operating states. First, the process is started from the state S0. In the state S1, the processing of the operation flow A described above is performed. Next, the process of operation flow B is performed in state S2, and the process of operation flow C is performed in states S3 and S4. Further, in states S5 and S6, the process of operation flow D is performed.

【0011】このようにして同一グループ内のデータ数
だけ状態S7の処理が行われ、グループ化時のグループ
数だけ状態S8の処理を行って、状態S9の処理終了に
至る。
In this way, the processing of state S7 is performed for the number of data in the same group, the processing of state S8 is performed for the number of groups at the time of grouping, and the processing of state S9 ends.

【0012】上記した本実施例によれば、従来のように
データのサイズによって表セルデータをセンタリングす
るのではなく、表全体のレイアウトを考慮して、そのグ
ループ内のデータ固定長、例えばデータが存在する領域
の最大バイト数のブロック単位でセンタリング表示を行
なうので、データのタイプによっては表セル内で中央よ
りずらした状態で表示され、表全体のレイアウトがより
見やすくなる。
According to the present embodiment described above, instead of centering the table cell data according to the size of the data as in the prior art, the fixed length of the data in the group, for example Since the centering display is performed in block units of the maximum number of bytes in the existing area, it is displayed in a state shifted from the center in the table cell depending on the type of data, and the layout of the entire table becomes easier to see.

【0013】なお、上記した実施例では右詰めデータタ
イプのセンタリング処理について説明したがこれに限定
されず、例えば、左詰めデータタイプのセンタリング処
理に適用できることは勿論である。また、本発明はセン
タリング処理だけでなく、他のレイアウト処理にも適用
可能である。
Although the centering process of the right-justified data type has been described in the above embodiment, the present invention is not limited to this and can be applied to the centering process of the left-justified data type. The present invention can be applied not only to the centering process but also to other layout processes.

【0014】[0014]

【発明の効果】本発明によれば、表セルデータのセンタ
リングを行なうに先だって、表セルデータのグループ化
に基づいたブロック化を行っているので、データ本来の
見やすい表示形式を損なわずして、視覚上バランスの良
いセンタリング表示を実現でき、表全体のレイアウトが
より見やすくなる。
According to the present invention, since the table cell data is centered before being centered, the blocks are formed based on the grouping of the table cell data. A visually well-balanced centering display can be realized, and the layout of the entire table becomes easier to see.

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

【図1】本発明が適用される表処理装置の構成を示すブ
ロック図である。
FIG. 1 is a block diagram showing a configuration of a table processing device to which the present invention is applied.

【図2】本発明の一実施例の動作フローを説明するため
の図である。
FIG. 2 is a diagram for explaining an operation flow of an embodiment of the present invention.

【図3】本発明の一実施例の処理フローチャートであ
る。
FIG. 3 is a processing flowchart of an embodiment of the present invention.

【図4】従来のセンタリング方法を説明するための図で
ある。
FIG. 4 is a diagram for explaining a conventional centering method.

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

1…入力装置、2…CPU、3…データメモリ、4…プ
ログラムメモリ、5…表示メモリ、6…ドライバ、7…
表示部。
1 ... Input device, 2 ... CPU, 3 ... Data memory, 4 ... Program memory, 5 ... Display memory, 6 ... Driver, 7 ...
Display section.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 縦横各々の方向に複数配列された表セル
内に配置された各表データを所定の規則に従ってグルー
プ化するグループ化手段と、 グループ化された表データのうち同一のグループ毎に各
表セル内のデータ有効領域を算出し、この算出結果に基
づいて各表セル内のデータをブロック化するブロック化
手段と、 ブロック化された表データをブロック単位でレイアウト
処理するレイアウト処理手段と、 を具備することを特徴とする表処理装置。
1. A grouping means for grouping each table data arranged in a plurality of table cells arranged in each of the vertical and horizontal directions according to a predetermined rule, and for each same group of the grouped table data. Blocking means for calculating the data effective area in each table cell and blocking the data in each table cell based on this calculation result, and layout processing means for laying out the blocked table data in block units A table processing device comprising:
JP6285607A 1994-11-18 1994-11-18 Table processor Pending JPH08147389A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6285607A JPH08147389A (en) 1994-11-18 1994-11-18 Table processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6285607A JPH08147389A (en) 1994-11-18 1994-11-18 Table processor

Publications (1)

Publication Number Publication Date
JPH08147389A true JPH08147389A (en) 1996-06-07

Family

ID=17693722

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6285607A Pending JPH08147389A (en) 1994-11-18 1994-11-18 Table processor

Country Status (1)

Country Link
JP (1) JPH08147389A (en)

Similar Documents

Publication Publication Date Title
JPH08147389A (en) Table processor
JP2752496B2 (en) Sentence processing equipment
JPH096765A (en) Information processor
JPH0467210B2 (en)
JPH0585929B2 (en)
JPH0896153A (en) Layout processor
JPH0445875B2 (en)
JPH01266662A (en) Document processor
JPH07105189A (en) Table processor
JPH09198031A (en) Graphic processing method and device
JPH10207873A (en) Ruled line processor and storage medium
JP2655900B2 (en) Character processor
JP3006988B2 (en) Spreadsheet apparatus and data management method for spreadsheet apparatus
JP3044052B2 (en) Character processor
JPS5868141A (en) Character processor
JPH02164563A (en) Character processor
JP3040624B2 (en) Pattern generator
JPH08137659A (en) Data input control method
JPH05210688A (en) Table calculation processing device
JPH052581A (en) Character input device
JPH028593B2 (en)
JPH10333661A (en) Character generating device, character generating method, and recording medium recording character generating program
JPH06161424A (en) Method for output processing of character data
JPH06309311A (en) Document processor
JPH0816151A (en) Image enlargement/reduction processing method