JP2833203B2 - Table creation processing device - Google Patents

Table creation processing device

Info

Publication number
JP2833203B2
JP2833203B2 JP2320701A JP32070190A JP2833203B2 JP 2833203 B2 JP2833203 B2 JP 2833203B2 JP 2320701 A JP2320701 A JP 2320701A JP 32070190 A JP32070190 A JP 32070190A JP 2833203 B2 JP2833203 B2 JP 2833203B2
Authority
JP
Japan
Prior art keywords
ruled line
cell
cells
attribute data
data
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.)
Expired - Fee Related
Application number
JP2320701A
Other languages
Japanese (ja)
Other versions
JPH04191965A (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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox 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 Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP2320701A priority Critical patent/JP2833203B2/en
Publication of JPH04191965A publication Critical patent/JPH04191965A/en
Application granted granted Critical
Publication of JP2833203B2 publication Critical patent/JP2833203B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)

Description

【発明の詳細な説明】 「産業上の利用分野」 本発明は、電子的な手法で処理する文書内に表の作成
を行う表作成処理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a table creation processing apparatus for creating a table in a document to be processed by an electronic method.

「従来の技術」 日本語ワードプロセッサやワークステーション等の文
書処理装置で電子的に文書の作成を行うことが一般化し
ている。文書には各種の形態があり、表やイメージを組
み込んだものも多く存在する。ところで、このような表
作成処理装置の多くは、表を構成する罫線を通常の文字
と同様に文字コードとして取り扱っている。このような
装置では、文字を入力する要領で表を構成する罫線を簡
単に入力し表示することができる。
2. Description of the Related Art It has become common to create documents electronically with a document processing device such as a Japanese word processor or a workstation. Documents come in a variety of forms, many of which incorporate tables and images. By the way, many of such table creation processing devices treat ruled lines constituting a table as character codes in the same manner as ordinary characters. In such an apparatus, ruled lines constituting a table can be easily input and displayed in the manner of inputting characters.

「発明が解決しようとする課題」 しかしながら、このような装置ではそれぞれの表示最
小領域に罫線のパターンのうちの1つか1つの文字のい
ずれか一方を配置することになり、双方を同一位置に配
置することができない。すなわち、ある文字の上に罫線
を重ねて表示することができない。したがって、すでに
作成された表に罫線を追加して表の構成を複雑にするよ
うな場合には、不用意に罫線を追加すると罫線の引かれ
た周囲の文字が消えてしまうといった思わぬ事故を発生
させる。
[Problem to be Solved by the Invention] However, in such a device, one of the ruled line patterns or one of the characters is arranged in each display minimum area, and both are arranged at the same position. Can not do it. That is, a ruled line cannot be displayed over a certain character. Therefore, when adding a ruled line to an already created table and complicating the structure of the table, adding a ruled line carelessly may cause unexpected accidents such as disappearing characters around the ruled line. generate.

また、文字コードで表を構成するこのような文書処理
装置では、文章中に文字を挿入したり削除したりすると
これらが連続した後続の文字列に次々と影響するのと同
様に、文字の挿入や削除を行うと表を構成する罫線が移
動してしまう。この結果、せっかく作成した表が崩れて
しまうという問題を発生させる。
Further, in such a document processing apparatus in which a table is composed of character codes, the insertion or deletion of characters in a sentence affects successive successive character strings in a similar manner. Or delete, the ruled lines that make up the table move. As a result, there arises a problem that the prepared table is broken.

更に、このような表作成処理装置では罫線を文字と同
様の配置関係で表現するので、文字同士の配置と同様に
罫線を一定間隔ごとに配置するしかなく、表を構成する
罫線を自在に引くことができない。
Furthermore, in such a table creation processing device, ruled lines are expressed in the same arrangement relationship as characters, so that ruled lines must be arranged at regular intervals, similarly to the arrangement of characters, and ruled lines constituting the table can be freely drawn. Can not do.

これに対して、罫線の追加や削除を自由に行うことの
できる表作成処理装置が存在する。しかしながら、この
装置では表示された表に対して複数の内部データ形式が
あり得るため、見掛け上同一に見える表でも編集操作が
一意に定まらないという問題があった。すなわち、表の
構造を変更しようとすると、これができない場合があっ
たり、訂正した後に表を基に戻そうとすると基に戻らな
い場合があった。
On the other hand, there is a table creation processing device that can freely add and delete ruled lines. However, in this device, there is a possibility that there are a plurality of internal data formats for the displayed table, so that there is a problem that the editing operation is not uniquely determined even for a table that appears to be the same. In other words, there were cases where this could not be performed when trying to change the structure of the table, and cases where the table was not restored when the table was restored after correction.

そこで、ある種の表作成処理装置では表をセルの集ま
りとして捉えてその作成を行うようにしている。ここで
セルとは、罫線によって作成された矩形の枠をいう。こ
の装置では1つ1つのセルの中に文字を書くことができ
る。しかしながら、この装置ではセルの中に書かれた文
字は独立したものではなく、そのセルの上端に配置され
た横罫線に属している。このため、この横罫線を移動し
たり削除したりすると、そのセル内の文字も同一箇所に
移動したり削除されてしまう。また、文字を他の箇所に
コピーしようとしても、横罫線も同時にコピーされてし
まう。
In view of this, a certain type of table creation processing device creates a table by treating a table as a group of cells. Here, a cell refers to a rectangular frame created by ruled lines. With this device, characters can be written in individual cells. However, in this device, characters written in a cell are not independent, but belong to a horizontal ruled line arranged at the upper end of the cell. Therefore, if the horizontal ruled line is moved or deleted, the characters in that cell are also moved or deleted to the same location. Further, even if a character is to be copied to another place, the horizontal ruled line is also copied at the same time.

そこで本発明の目的は、文字を消すことなく罫線の追
加や削除を自在に行うことができ、しかも表に対する可
能な操作が一意に定まり、また文字や罫線の移動や削除
を独立して行うことのできる表作成処理装置を提供する
ことにある。
Therefore, it is an object of the present invention to be able to freely add or delete a ruled line without erasing characters, and furthermore, possible operations on a table are uniquely determined, and to independently move and delete characters and ruled lines. It is an object of the present invention to provide a table creation processing device capable of performing the above.

「課題を解決するための手段」 請求項1記載の発明では、(イ)表を構成する縦の罫
線と横の罫線のそれぞれの位置を表わす罫線データを保
持する罫線データ保持手段と、(ロ)罫線データに基づ
いて縦の罫線と横の罫線の交点を所定の順序で調べるこ
とで、縦の罫線と横の罫線の組み合わせによって形成さ
れるセルを順次認識し、これら認識したセルの順に複数
のセルを順序付ける順序付手段と、(ハ)縦の罫線と横
の罫線の組み合わせによって形成されるセルのそれぞれ
について、これらのセル中に存在するテキスト等の表示
すべき内容やその表示態様を表わしたセル属性データを
順序付手段によって順序付けられた順に保持するセル属
性データ保持手段と、(ニ)罫線データ保持手段に保持
された罫線データによって複数の罫線を表示するととも
に、罫線によって形成される複数のセルのそれぞれに対
してセル属性データ保持手段に保持されたセル属性デー
タのうちの対応するものを用いてセル単位でテキスト等
の内容表示を行うことでこれらのセル全体として表を表
示する表表示手段とを表作成処理装置に具備させる。
[Means for Solving the Problems] According to the invention described in claim 1, (a) ruled line data holding means for holding ruled line data indicating respective positions of a vertical ruled line and a horizontal ruled line constituting a table; By examining the intersection of the vertical ruled line and the horizontal ruled line in a predetermined order based on the ruled line data, the cells formed by the combination of the vertical ruled line and the horizontal ruled line are sequentially recognized. (C) For each of the cells formed by the combination of the vertical ruled line and the horizontal ruled line, the contents to be displayed such as text existing in these cells and the display form thereof are described. Cell attribute data holding means for holding the represented cell attribute data in the order ordered by the ordering means; and (d) displaying a plurality of ruled lines by the ruled line data held in the ruled line data holding means. In addition, for each of the plurality of cells formed by the ruled lines, by using corresponding cell attribute data held in the cell attribute data holding means to display contents such as text in a cell unit, And a table display means for displaying a table as an entire cell.

すなわち請求項1記載の発明では、表を構成する縦の
罫線と横の罫線のそれぞれの位置を表わす罫線データを
罫線データ保持手段に保持することにし、罫線データに
基づいて縦の罫線と横の罫線の交点を所定の順序で調べ
ることで、順序付手段で縦の罫線と横の罫線の組み合わ
せによって形成されるセルを順次認識し、これら認識し
たセルの順に複数のセルを順序付けるようにする。縦の
罫線と横の罫線の組み合わせによって形成されるセルの
それぞれについては、セル属性データ保持手段によっ
て、これらのセル中に存在するテキスト等の表示すべき
内容やその表示態様を表わしたセル属性データを順序付
手段によって順序付けられた順に保持するようにする。
そして、罫線データ保持手段に保持された罫線データに
よって複数の罫線を表示するとともに、罫線によって形
成される複数のセルのそれぞれに対してセル属性データ
保持手段に保持されたセル属性データのうちの対応する
ものを用いてセル単位でテキスト等の内容表示を行うこ
とによって表を表示するようにしている。
That is, according to the first aspect of the present invention, the ruled line data representing the respective positions of the vertical ruled line and the horizontal ruled line constituting the table is stored in the ruled line data holding means, and the vertical ruled line and the horizontal ruled line are stored based on the ruled line data. By examining intersections of ruled lines in a predetermined order, the ordering means sequentially recognizes cells formed by a combination of vertical ruled lines and horizontal ruled lines, and orders a plurality of cells in the order of these recognized cells. . For each of the cells formed by the combination of the vertical ruled lines and the horizontal ruled lines, cell attribute data holding means stores cell attribute data indicating the contents of text and the like to be displayed in these cells and the display mode thereof. Are held in the order ordered by the ordering means.
A plurality of ruled lines are displayed by the ruled line data held by the ruled line data holding means, and a plurality of cells formed by the ruled lines are corresponded to each other among the cell attribute data held by the cell attribute data holding means. The table is displayed by displaying the contents of text or the like in cell units using a table.

この結果、文字と罫線の処理が独立して行えることに
なり、しかも罫線データとセル属性データは、罫線とセ
ル中に存在するテキスト等の表示すべき内容とを表わし
ているので、表に対する可能な操作が一意に定まること
になる。
As a result, processing of characters and ruled lines can be performed independently, and ruled line data and cell attribute data represent ruled lines and contents to be displayed such as text existing in cells. Operations are uniquely determined.

請求項2記載の発明では、(イ)表を構成する紙の罫
線と横の罫線のそれぞれの位置を表わす罫線データを保
持する罫線データ保持手段と、(ロ)縦の罫線と横の罫
線の組み合わせによって形成されるセルのそれぞれにつ
いて、これらのセル中に存在するテキスト等の表示すべ
き内容やその表示態様を表わしたセル属性データを、こ
れらのセルの位置を基準として順序付けられた所定の順
序で保持するセル属性データ保持手段と、(ハ)罫線デ
ータ保持手段に保持された罫線データによって複数の罫
線を表示するとともに、これらの罫線の組み合わせによ
って形成される複数のセルのそれぞれに対してセル属性
データ保持手段に保持されたセル属性データのうちの対
応するものを用いてセル単位でテキスト等の内容表示を
行うことでこれらのセル全体として表を表示する表表示
手段と、(ニ)この表表示手段で表示された表における
編集対象を指定して編集処理内容を指示する編集指示手
段と、(ホ)罫線データに基づいて縦の罫線と横の罫線
の交点を所定の順序で調べることで、縦の罫線と横の罫
線の組み合わせによって形成されるセルを順次認識し、
編集指示手段によって指示された編集対象の位置までに
存在するセルを計数する計数手段と、(ヘ)この計数手
段が計数した値に基づいてセル属性データ保持手段に保
持されたセル属性データを特定し、編集処理内容に応じ
た編集を行う編集手段とを表作成処理装置に具備させ
る。
According to the second aspect of the present invention, (a) ruled line data holding means for holding ruled line data indicating the respective positions of the paper ruled line and the horizontal ruled line constituting the table; For each of the cells formed by the combination, the cell attribute data representing the contents to be displayed such as texts present in these cells and the display mode thereof are arranged in a predetermined order based on the positions of these cells. And (c) displaying a plurality of ruled lines by the ruled line data held in the ruled line data holding means, and a cell for each of a plurality of cells formed by a combination of these ruled lines. By displaying the contents such as text on a cell-by-cell basis using the corresponding one of the cell attribute data held in the attribute data holding means, Table display means for displaying a table as a whole file, (d) edit instructing means for designating an edit target in the table displayed by the table display means and instructing the contents of editing processing, and (e) based on the ruled line data. By examining the intersection of the vertical ruled line and the horizontal ruled line in a predetermined order, the cells formed by the combination of the vertical ruled line and the horizontal ruled line are sequentially recognized,
Counting means for counting cells existing up to the position to be edited designated by the editing instructing means; and (f) specifying the cell attribute data held in the cell attribute data holding means based on the value counted by the counting means. Then, the table creation processing device is provided with editing means for performing editing according to the content of the editing process.

すなわち請求項2記載の発明では、罫線データ保持手
段で表を構成する縦の罫線と横の罫線のそれぞれの位置
を表わす罫線データを保持し、セル属性データ保持手段
で縦の罫線と横の罫線の組み合わせによって形成される
セルのそれぞれについて、これらのセル中に存在するテ
キスト等の表示すべき内容やその表示態様を表わしたセ
ル属性データを、これらのセルの位置を基準として順序
付けされた所定の順序で保持するようにしている。表表
示手段は、罫線データ保持手段に保持された罫線データ
によって複数の罫線を表示するとともに、これらの罫線
の組み合わせによって形成される複数のセルのそれぞれ
に対してセル属性データ保持手段に保持されたセル属性
データのうちの対応するものを用いてセル単位でテキス
ト等の内容表示を行うことでこれらのセル全体として表
を表示する。この表に対して編集を行う場合には、編集
指示手段が表における編集対象を指定して編集処理内容
を指示する。すると、計数手段が罫線データに基づいて
縦の罫線と横の罫線の交点を所定の順序で調べること
で、縦の罫線と横の罫線の組み合わせによって形成され
るセルを順次認識し、編集指示手段によって指示された
編集対象の位置までに存在するセルを計数する。そし
て、この計数手段が計数した値に基づいて編集処理がセ
ル属性データ保持手段に保持されたセル属性データを特
定し、編集処理内容に応じた編集を行うことになる。
In other words, the ruled line data holding means holds the ruled line data indicating the positions of the vertical ruled lines and the horizontal ruled lines constituting the table, and the cell attribute data holding means holds the vertical ruled lines and the horizontal ruled lines. For each of the cells formed by the combination of the above, the contents to be displayed such as texts present in these cells and the cell attribute data representing the display mode thereof are converted into a predetermined order which is ordered based on the positions of these cells. They are kept in order. The table display means displays a plurality of ruled lines based on the ruled line data held by the ruled line data holding means, and holds the cell attribute data holding means for each of a plurality of cells formed by combining these ruled lines. By displaying the contents such as text on a cell-by-cell basis using the corresponding one of the cell attribute data, a table is displayed as these cells as a whole. When editing the table, the editing instructing means specifies an editing target in the table and instructs the contents of the editing process. Then, the counting means examines the intersection of the vertical ruled line and the horizontal ruled line in a predetermined order based on the ruled line data, thereby sequentially recognizing the cells formed by the combination of the vertical ruled line and the horizontal ruled line, and The number of cells existing up to the position of the editing target specified by (1) is counted. Then, the editing processing specifies the cell attribute data held in the cell attribute data holding means based on the value counted by the counting means, and performs the editing according to the contents of the editing processing.

このように編集の指示があったときにはセル属性デー
タを特定して編集することで表の編集を可能にしてい
る。
In this way, when an editing instruction is given, the table can be edited by specifying and editing the cell attribute data.

請求項3記載の発明では、(イ)表を構成する縦の罫
線と横の罫線のそれぞれの位置を表わす罫線データを保
持する罫線データ保持手段と、(ロ)縦の罫線と横の罫
線の組み合わせによって形成されるセルのそれぞれにつ
いて、これらのセル中に存在するテキスト等の表示すべ
き内容やその表示態様を表わしたセル属性データをこれ
らのセルの位置を基準として順序付けされた所定の順序
で保持するセル属性データ保持手段と、(ハ)罫線の追
加を指示する罫線追加指示手段と、(ニ)罫線データに
基づいて縦の罫線と横の罫線の交点を所定の順序で調べ
ることで、縦の罫線と横の罫線の組み合わせによって形
成されるセルを順次認識し、罫線追加指示手段によって
追加を指示された罫線の位置までに存在するセルを計数
することで罫線の追加によって分割されるセルを検索す
る検索手段と、(ホ)この検索手段が検索した罫線の追
加によって分割されるセルのセル属性データをセル属性
データ保持手段から削除するとともに、罫線追加指示手
段によって追加を指示された罫線についての罫線データ
を追加し、罫線追加指示手段によって追加された罫線デ
ータを含めた罫線データに基づいて縦の罫線と横の罫線
の交点を所定の順序で調べることで、縦の罫線と横の罫
線の組み合わせによって形成されるセルをそれぞれ認識
し、追加された罫線により新たに生成されたセルのセル
属性データをも含めたセル属性データをこれらのセルの
位置を基準として前記した所定の順序で並べ替えるセル
属性データ更新手段とを表作成処理装置に具備させる。
According to the third aspect of the present invention, (a) ruled line data holding means for holding ruled line data indicating respective positions of a vertical ruled line and a horizontal ruled line constituting a table; For each of the cells formed by the combination, the contents to be displayed such as texts present in the cells and the cell attribute data representing the display mode are arranged in a predetermined order based on the positions of the cells. Cell attribute data holding means to be held, (c) ruled line addition instructing means for instructing addition of ruled lines, and (d) checking intersections of vertical ruled lines and horizontal ruled lines based on ruled line data in a predetermined order, The cells formed by the combination of the vertical ruled lines and the horizontal ruled lines are sequentially recognized, and the number of cells existing up to the position of the ruled line instructed to be added by the ruled line instructing means is counted to add the ruled line. (E) deleting from the cell attribute data holding means the cell attribute data of the cell divided by adding the ruled line searched by the search means, and adding the cell attribute data by the ruled line addition instructing means. By adding ruled line data for the ruled line designated by, the intersection of the vertical ruled line and the horizontal ruled line is checked in a predetermined order based on the ruled line data including the ruled line data added by the ruled line addition instructing means. The cell formed by the combination of the ruled line and the horizontal ruled line is respectively recognized, and the cell attribute data including the cell attribute data of the cell newly generated by the added ruled line is referred to based on the positions of these cells. The table creation processing device is provided with cell attribute data updating means for rearranging in the predetermined order.

すなわち請求項3記載の発明では、罫線データ保持手
段で表を構成する縦の罫線と横の罫線のそれぞれの位置
を表わす罫線データを保持し、セル属性データ保持手段
は、縦の罫線と横の罫線の組み合わせによって形成され
るセルのそれぞれについて、これらのセル中に存在する
テキスト等の表示すべき内容やその表示態様を表わした
セル属性データをこれらのセルの位置を基準として順序
付けされた所定の順序で保持するようにしている。そし
て、罫線の追加が指示されたときには、検索手段を用い
て罫線の追加によって分割されるセルを検索する。これ
は、縦の罫線と横の罫線の交点を所定の順序で調べるこ
とで、縦の罫線と横の罫線の組み合わせによって形成さ
れるセルを順次認識し、追加を指示された罫線の位置ま
でに存在するセルを計数することで実現する。検索手段
が検索した罫線の追加によって分割されるセルが存在す
ることになるので、このセルについての属性データをセ
ル属性データ保持手段から削除するとともに、罫線追加
指示手段によって追加を指示された罫線についての罫線
データを追加する。そして、罫線追加指示手段によって
追加された罫線データを含めた罫線データに基づいてセ
ルをそれぞれ再び認識し直し、追加された罫線により新
たに生成されたセルのセルのセル属性データをも含めた
セル属性データを、セル属性データ更新手段を用いて各
セルの位置を基準として前記した所定の順序で並べ替え
るようにしている。
That is, according to the third aspect of the present invention, the ruled line data holding means holds the ruled line data indicating the respective positions of the vertical ruled line and the horizontal ruled line constituting the table, and the cell attribute data holding means stores the vertical ruled line and the horizontal ruled line. For each of the cells formed by the combination of the ruled lines, the contents of the cells, such as text, to be displayed and the cell attribute data representing the display mode are determined in a predetermined order which is ordered based on the positions of these cells. They are kept in order. When an instruction to add a ruled line is given, a search unit is used to search for cells divided by the ruled line addition. This is done by examining the intersection of the vertical ruled line and the horizontal ruled line in a predetermined order, and sequentially recognizing the cells formed by the combination of the vertical ruled line and the horizontal ruled line. This is realized by counting existing cells. Since there is a cell to be divided by the addition of the ruled line searched by the search means, the attribute data of this cell is deleted from the cell attribute data holding means, and the ruled line designated by the ruled line addition instructing means is added. Add ruled line data. The cell is re-recognized based on the ruled line data including the ruled line data added by the ruled line addition instructing means, and the cell including the cell attribute data of the cell of the cell newly generated by the added ruled line. The attribute data is rearranged in the above-described predetermined order with reference to the position of each cell by using the cell attribute data updating means.

このように罫線の追加の指示があったときにはセル属
性データの入れ替えと罫線データの追加を行って罫線の
追加を実現する。
As described above, when an instruction to add a ruled line is issued, replacement of cell attribute data and addition of ruled line data are performed to realize addition of a ruled line.

請求項4記載の発明では、(イ)表を構成する縦の罫
線と横の罫線のそれぞれの位置を表わす罫線データを保
持する罫線データ保持手段と、(ロ)縦の罫線と横の罫
線の組み合わせによって形成されるセルのそれぞれにつ
いて、これらのセル中に存在するテキスト等の表示すべ
き内容やその表示態様を表わしたセル属性データをこれ
らのセルの位置を基準として順序付けされた所定の順序
で保持するセル属性データ保持手段と、(ハ)罫線の削
除を指示する罫線削除指示手段と、(ニ)罫線データに
基づいて縦の罫線と横の罫線の交点を所定の順序で調べ
ることで、縦の罫線と横の罫線の組み合わせによって形
成されるセルを順次認識し、罫線削除指示手段によって
削除を指示された罫線の位置までに存在するセルを計数
することで罫線の削除によって合併されるセルのセル属
性データを検索する検索手段と、(ホ)この検索手段が
検索した合併されるセルのセル属性データをセル属性デ
ータ保持手段から削除するとともに、罫線削除指示手段
によって指示された罫線の罫線データを削除し、この後
に残った罫線データに基づいて縦の罫線と横の罫線の交
点を所定の順序で調べることで、縦の罫線と横の罫線の
組み合わせによって形成させるセルをそれぞれ認識し、
罫線の削除により新たに生成されたセルのセル属性デー
タをも含めたセル属性データをこれらのセルの位置を基
準として前記した所定の順序で並び替えるセル属性デー
タ更新手段とを表作成処理装置に具備させる。
According to the fourth aspect of the present invention, (a) ruled line data holding means for holding ruled line data indicating respective positions of a vertical ruled line and a horizontal ruled line constituting a table; For each of the cells formed by the combination, the contents to be displayed such as texts present in the cells and the cell attribute data representing the display mode are arranged in a predetermined order based on the positions of the cells. Cell attribute data holding means to be held, (c) ruled line deletion instructing means for instructing deletion of ruled lines, and (d) checking intersections of vertical ruled lines and horizontal ruled lines based on ruled line data in a predetermined order, The cells formed by the combination of the vertical ruled lines and the horizontal ruled lines are sequentially recognized, and the cells existing up to the position of the ruled line instructed to be deleted by the ruled line delete instructing means are counted to delete the ruled line. (E) deleting the cell attribute data of the merged cell searched by the search means from the cell attribute data holding means, and instructing by the ruled line deletion instructing means. A cell formed by combining the vertical ruled line and the horizontal ruled line by deleting the ruled line data of the set ruled line and examining the intersection of the vertical ruled line and the horizontal ruled line in a predetermined order based on the remaining ruled line data. Recognize each,
Cell attribute data updating means for rearranging cell attribute data including cell attribute data of cells newly generated by deleting ruled lines in the above-mentioned predetermined order with reference to the positions of these cells; To equip it.

すなわち請求項4記載の発明では、罫線データ保持手
段で表を構成する縦の罫線と横の罫線のそれぞれの位置
を表わす罫線データを保持し、セル属性データ保持手段
は、縦の罫線と横の罫線の組み合わせによって形成され
るセルのそれぞれについて、これらのセル中に存在する
テキスト等の表示すべき内容やその表示態様を表わした
セル属性データをこれらのセルの位置を基準として順序
付けされた所定の順序で保持するようにしている。そし
て、罫線の削除が指示されたときには、検索手段を用い
て罫線の追加によって罫線のサイズ等によって合併する
セルを検索する。これは、縦の罫線と横の罫線の交点を
所定の順序で調べることで、縦の罫線と横の罫線の組み
合わせによって形成されるセルを順次認識し、削除を指
示された罫線の位置までに存在するセルを計数すること
で実現する。検索手段が検索した罫線の削除によってセ
ルが合併することになるので、合併されるセルのセル属
性データをセル属性データ保持手段から削除するととも
に、罫線削除指示手段によって指示された罫線の罫線デ
ータを削除する。そして、この後に残った罫線データに
基づいて縦の罫線と横の罫線の交点を所定の順序で調べ
ることで、縦の罫線と横の罫線の組み合わせによって形
成されるセルをそれぞれ認識し、罫線の削除により新た
に生成されたセル属性データをも含めたセル属性データ
をこれらのセルの位置を基準として前記した所定の順序
で並べ替えるようにしている。
That is, in the invention according to claim 4, the ruled line data holding means holds the ruled line data indicating the respective positions of the vertical ruled line and the horizontal ruled line constituting the table, and the cell attribute data holding means stores the vertical ruled line and the horizontal ruled line. For each of the cells formed by the combination of the ruled lines, the contents of the cells, such as text, to be displayed and the cell attribute data representing the display mode are determined in a predetermined order which is ordered based on the positions of these cells. They are kept in order. When an instruction to delete a ruled line is given, a search unit is used to search for a cell to be merged based on the size of the ruled line by adding the ruled line. This is because by examining the intersection of the vertical ruled line and the horizontal ruled line in a predetermined order, the cells formed by the combination of the vertical ruled line and the horizontal ruled line are sequentially recognized, and up to the position of the ruled line instructed to be deleted. This is realized by counting existing cells. Since the cells are merged by deleting the ruled line searched by the search means, the cell attribute data of the merged cell is deleted from the cell attribute data holding means, and the ruled line data of the ruled line specified by the ruled line delete instruction means is deleted. delete. Then, by examining the intersection of the vertical ruled line and the horizontal ruled line in a predetermined order based on the ruled line data remaining after this, the cells formed by the combination of the vertical ruled line and the horizontal ruled line are recognized, and the cells of the ruled line are recognized. The cell attribute data including the cell attribute data newly generated by the deletion is rearranged in the above-mentioned predetermined order based on the positions of these cells.

このように罫線の削除の指示があったときにはセル属
性データの入れ替えと罫線データの削除を行って罫線の
削除を実現する。
As described above, when the instruction to delete the ruled line is issued, the cell attribute data is replaced and the ruled line data is deleted to realize the ruled line deletion.

請求項5記載の発明では、請求項3または請求項4記
載の発明に更に、(イ).罫線データ保持手段に保持さ
れた罫線データに基づいて複数の罫線を表示するととも
に、これらの罫線に組み合わせによって形成される複数
のセルのそれぞれに対してセル属性データ保持手段に保
持されたセル属性データのうちの対応するものを用いて
セル単位でテキスト等の内容表示を行うことでこれらの
セル全体として表を表示する表表示手段と、(ロ)罫線
の追加あるいは削除による変更によって新たに生成され
るセルの縦の罫線と横の罫線の組み合わせによって形成
される矩形領域を罫線データに基づいて求める矩形領域
特定手段と、(ハ)変更によって新たに生成されたセル
についての特定された矩形領域についての表示を、セル
属性データ更新手段によって更新されたセル属性データ
保持手段に保持された当該セルのセル属性データに基づ
いて更新する表表示更新手段とを具備させている。
According to the invention described in claim 5, the invention described in claim 3 or 4 is further provided with (a). A plurality of ruled lines are displayed based on the ruled line data held in the ruled line data holding means, and cell attribute data held in the cell attribute data holding means for each of a plurality of cells formed by combining these ruled lines. Table display means for displaying a table as a whole of these cells by displaying the contents of text or the like in cell units by using corresponding ones of the above, and (b) newly generated by change by adding or deleting ruled lines. Rectangular area specifying means for obtaining a rectangular area formed by a combination of a vertical ruled line and a horizontal ruled line of a cell based on ruled line data; and (c) a rectangular area specified for a cell newly generated by the change. Is displayed in the cell attribute data holding unit updated by the cell attribute data updating unit. And it is provided with a table display updating means for updating, based on the data.

「実施例」 以下実施例につき本発明を詳細に説明する。"Example" Hereinafter, the present invention will be described in detail with reference to examples.

この表作成処理装置はCPU(中央処理装置)11を搭載
している。CPU11はデータバス等のバス12を通じて各種
の回路装置と接続されている。このうちRAM13はこの表
作成処理装置の制御を行うためのプログラムや、製御を
行う際の一時的なデータを格納するためのランダム・ア
クセス・メモリである。ディスク制御装置14は、磁気デ
ィスク15に対するデータの入出力を制御するための装置
である。磁気ディスク15には、前記したプログラムや、
各種の文書データが格納されている。入力回路16は、キ
ーボード17を接続しており、文字等のデータの入力を行
うようになっている。キーボード17には、ポインティン
グ・デバイスとしてのマウス18が接続されている。
This table creation processing device has a CPU (central processing unit) 11 mounted thereon. The CPU 11 is connected to various circuit devices through a bus 12 such as a data bus. The RAM 13 is a random access memory for storing a program for controlling the table creation processing device and temporary data for performing control. The disk control device 14 is a device for controlling the input and output of data to and from the magnetic disk 15. The magnetic disk 15 has the above-described programs,
Various types of document data are stored. The input circuit 16 is connected to a keyboard 17 so as to input data such as characters. The keyboard 17 is connected to a mouse 18 as a pointing device.

ディスプレイ制御回路21は、CRT等のディスプレイ22
を接続しており、これに視覚的にデータを表示させるよ
うになっている。通信制御回路23は、ケーブル24を介し
て図示しない他の装置と接続されており、データの入出
力を行うことができる。例えば印刷データはケーブル24
を介して図示しない印刷装置に送られ、ここでプリント
アウトすることができる。また、イメージ情報は図示し
ないイメージ読取装置によって読み取られ、その結果が
ケーブル24を介してこの表作成処理装置に取り込まれる
ようになっている。
The display control circuit 21 includes a display 22 such as a CRT.
Is connected, and the data is displayed visually on this. The communication control circuit 23 is connected to another device (not shown) via a cable 24 and can input and output data. For example, print data is cable 24
Through the printer to a printing device (not shown). The image information is read by an image reading device (not shown), and the result is taken into the table creation processing device via the cable 24.

第2図はディスプレイに表示された文書の一例を表わ
したものである。この例で、ディスプレイ22の表示画面
31には、文字からなるテキスト領域32−1、32−2の間
に表33が表示されている。
FIG. 2 shows an example of a document displayed on the display. In this example, the display screen of the display 22
In FIG. 31, a table 33 is displayed between text regions 32-1 and 32-2 composed of characters.

第3図は、このような表を表わすためのデータの構成
を表わしたものである。表が作成されたとき、第1図に
示したRAM13には、3種類のデータが格納される。これ
らは、全縦罫線データ41と、全横罫線データ42、および
全セル属性データ43である。
FIG. 3 shows the structure of data for representing such a table. When the table is created, three types of data are stored in the RAM 13 shown in FIG. These are all vertical ruled line data 41, all horizontal ruled line data 42, and all cell attribute data 43.

第4図は表を座標系で表わしたものである。この第4
図と共に、3種類のデータ41〜43の説明を行う。この第
4図で、表45はその左上隅46が原点となっており、水平
右方向がx軸に、垂直下方向がy軸になっている。
FIG. 4 shows the table in a coordinate system. This fourth
The three types of data 41 to 43 will be described with reference to the drawings. In FIG. 4, in Table 45, the upper left corner 46 is the origin, the horizontal right direction is the x axis, and the vertical lower direction is the y axis.

(イ)全縦罫線データ41: 全縦罫線データ41は、表41の1本1本の縦罫線46を表
わした第1の縦罫線データ47−1、第2の縦罫線データ
47−2、……から構成されている。ここで、y軸に平行
な1本の直線上にある縦罫線46は複数本に分かれていて
も一括して1つの縦罫線データ47で表現する。各縦罫線
データ47−1、47−2、……は、y軸に近いものから順
に並べられる。それぞれの縦罫線データ47は、罫線の位
置を表わし罫線位置データ48と、罫線の形状を表わした
罫線形状データ49とから構成されている。
(A) All vertical ruled line data 41: The entire vertical ruled line data 41 is the first vertical ruled line data 47-1 and the second vertical ruled line data representing each vertical ruled line 46 in Table 41.
47-2,.... Here, the vertical ruled line 46 on one straight line parallel to the y-axis is expressed as one vertical ruled line data 47 at a time even if it is divided into a plurality of lines. Each of the vertical ruled line data 47-1, 47-2,... Is arranged in order from the one closest to the y-axis. Each vertical ruled line data 47 is composed of ruled line position data 48 representing the position of the ruled line and ruled line shape data 49 representing the shape of the ruled line.

(ロ)全横罫線データ42: 全横罫線データ42は、表41の1本1本の横罫線51を表
わした第1の横罫線データ52−1、第2の横罫線データ
52−2、……から構成されている。ここで、x軸に平行
な1本の直線上にある横罫線51は複数本に分かれていて
も一括して1つの横罫線データ52で表現する。各横罫線
データ52−1、52−2、……は、x軸に近いものから順
に並べられる。それぞれの横罫線データ52は、罫線の位
置を表わした罫線位置データ53と、罫線の形状を表わし
た罫線形状データ54とから構成されている。
(B) All horizontal ruled line data 42: The entire horizontal ruled line data 42 is the first horizontal ruled line data 52-1, representing the one horizontal ruled line 51 in Table 41, and the second horizontal ruled line data.
52-2,.... Here, even if the horizontal ruled line 51 on one straight line parallel to the x-axis is divided into a plurality of lines, it is collectively expressed by one horizontal ruled line data 52. Each of the horizontal ruled line data 52-1, 52-2,... Is arranged in order from the one closest to the x-axis. Each horizontal ruled line data 52 is composed of ruled line position data 53 representing the position of the ruled line and ruled line shape data 54 representing the shape of the ruled line.

(ハ)全セル属性データ43: 全セル属性データ43は、表を構成するセル56それぞれ
の属性を表わす第1のセル属性データ57−1、第2のセ
ル属性データ57−2、……から構成されている。これら
のセル属性データ57−1、57−2、……は各セル56の左
上隅に関して、辞書式の順序で並べたものである。
(C) All-cell attribute data 43: The all-cell attribute data 43 is obtained from first cell attribute data 57-1, second cell attribute data 57-2,... It is configured. The cell attribute data 57-1, 57-2,... Are arranged in a lexicographic order with respect to the upper left corner of each cell 56.

第5図は、これを説明するためのものである。まず同
一y軸上のセルについてはx軸上の値が小さい順にセル
が配置される。このため、同一のy軸上に配置された2
つのセルc1、c2については、x1≦x2であればc1≦c2とな
る。次に同一x軸上のセルについてはy軸上の値が小さ
い順にセルが配置される。このため、y2≦y3であればc2
≦c3となる。この結果、第5図のようのセル配置では、
3つのセルc1、c2、c3はこの順に配置されることにな
る。
FIG. 5 explains this. First, cells on the same y-axis are arranged in ascending order of the value on the x-axis. For this reason, 2 arranged on the same y-axis
Regarding the two cells c 1 and c 2 , if x 1 ≦ x 2 , then c 1 ≦ c 2 . Next, the cells on the same x-axis are arranged in ascending order of the value on the y-axis. Therefore, if y 2 ≦ y 3 , c 2
A ≦ c 3. As a result, in the cell arrangement as shown in FIG.
The three cells c 1 , c 2 and c 3 are arranged in this order.

ところでセル属性データ57は、セル56中に存在するテ
キスト等の内容を示すデータ61と、セル56内にどの程度
のマージンをとって内容を配置するかを表わすマージン
値のデータ62や網かけ等のシェードに関するデータ63等
から構成されている。セル属性データ57には、セル56を
形作る罫線に関するデータやセル56の幅や高さに関する
データは含まれていない。本発明の表作成処理装置で
は、後に説明する関係式を使用してセル56を形作る4本
の罫線に関するデータを求め、セル56の大きさを決定す
ることができるからである。
By the way, the cell attribute data 57 includes data 61 indicating the contents such as text existing in the cell 56, data 62 of a margin value indicating how much margin is to be arranged in the cell 56, shading and the like. And data 63 relating to the shade. The cell attribute data 57 does not include data on the ruled lines forming the cell 56 and data on the width and height of the cell 56. This is because the table creation processing device of the present invention can determine the size of the cell 56 by obtaining data on the four ruled lines forming the cell 56 using the relational expression described later.

以上述べたように、本発明では罫線データとセルデー
タを分離して記憶するので、表内の1点の座標(x,y)
とセル属性データとの対応をとる必要がある。次の
(1)式は、これらの対応関係を表わした関係式であ
る。
As described above, in the present invention, the ruled line data and the cell data are stored separately, so that the coordinates (x, y) of one point in the table are stored.
And cell attribute data. The following equation (1) is a relational expression representing these correspondences.

k=Σ(v(x)*h(y))+Σ(v(X)*uppe
r) ……(1) この関係式で、v(x)は、座標xを通る縦罫線を表
わす縦罫線データを、またh(Y)は座標yを通る縦罫
線を表わす横罫線データを示している。v(x)*h
(Y)は、縦罫線データv(x)が表わす縦罫線と横罫
線データh(Y)が表わす横罫線とが交わって、セル56
の左上隅をなすときに“1"とし、それ以外は“0"とす
る。
k = Σ (v (x) * h (y)) + Σ (v (X) * uppe
r) (1) In this relational expression, v (x) represents vertical ruled line data representing a vertical ruled line passing through coordinates x, and h (Y) represents horizontal ruled line data representing a vertical ruled line passing through coordinates y. ing. v (x) * h
(Y) is a cell 56 in which a vertical ruled line represented by vertical ruled line data v (x) and a horizontal ruled line represented by horizontal ruled line data h (Y) intersect.
Is set to “1” when forming the upper left corner, and to “0” otherwise.

第6図を基にしてこれを詳しく説明する。この第6図
で座標(x1,y1)を含んだセル561のセル属性データが、
全セル属性データの中でk番目に存在するものとする。
“upper"を座標(x1,y1)を含んだセル561を形作る4本
の罫線71〜74のうちのY座標値の小さい横罫線71を表わ
した罫線データであるとする。
This will be described in detail with reference to FIG. In FIG. 6, the cell attribute data of the cell 56 1 including the coordinates (x 1 , y 1 ) is
It is assumed that it exists at the k-th among all cell attribute data.
And the "upper" is a ruled line data representing a smaller horizontal rule 71 of Y-coordinate values of the coordinates (x 1, y 1) 4 ruled lines 71 to 74 forming the cell 56 1 which contains.

この場合、(1)式における最初の項Σ(v(x)*
h(y))中の“v(x)”は、表のすべての縦罫線デ
ータにわたるものであり、第6図の範囲Aに相当する。
“h(y)”は、“upper"よりY座標の小さなすべての
横罫線データにわたっており、第6図の範囲Bに相当す
る。
In this case, the first term 式 (v (x) * in equation (1)
“v (x)” in h (y)) extends over all the vertical ruled line data in the table, and corresponds to the range A in FIG.
"H (y)" extends over all the horizontal ruled line data having a smaller Y coordinate than "upper", and corresponds to the range B in FIG.

(1)式における2番目の項Σ(v(X)*upper)
中の“v(x)”は、x≦x1なるすべての罫線データに
わたっており、第6図の範囲Cに相当している。
The second term in equation (1) Σ (v (X) * upper)
"V (x)" in is over all borders data comprising x ≦ x 1, corresponds to a range C of Figure 6.

したがって、(1)式の関係式を使用すれば、座標
(x,y)を使って示された表の編集操作すなわち罫線の
削除や追加等の操作から、修正の必要なセル属性データ
を探し、このセル属性データを分割したり合成するとい
った操作を行うことができる。
Therefore, if the relational expression of the expression (1) is used, the cell attribute data that needs to be corrected is searched for from the editing operation of the table indicated using the coordinates (x, y), that is, the operation of deleting or adding the ruled line. An operation such as dividing or combining the cell attribute data can be performed.

次に表の追加と削除についてそれぞれの具体例を示す
ことにする。
Next, specific examples of adding and deleting tables will be described.

第7図は罫線の追加操作を説明するためのものであ
る。同図(a)に示すような表が存在するものとし、同
図(B)に示したように点Aと点Bの間に罫線81を追加
するものとする。この場合、同図(a)に示した第1の
セル821が、同図(b)に示したように第3のセル823
第4のセル824の2つに分割され、また同図(a)に示
した第2のセル822が同図(b)に示したように第5の
セル825と第6のセル826の2つに分割されることにな
る。
FIG. 7 is for explaining the ruled line addition operation. Assume that a table as shown in FIG. 9A exists, and a ruled line 81 is added between points A and B as shown in FIG. In this case, the first cell 82 1 shown in FIG. (A) is divided into the third cell 82 3 and two of the fourth cell 82 4 As shown in FIG. (B), also so that the 2 second cell 82 shown in FIG. (a) is divided into the fifth cell 82 5 and two cells 82 6 sixth, as shown in FIG. (b).

そこで、表作成処理装置ではまず罫線81が横切る第1
および第2のセル821、822のセル属性データを全セル属
性データの中から探し出す。そして、これらセル属性デ
ータを基にして、罫線81の追加によって生じる第3〜第
6のセル823〜826のセル属性データを作成する。そし
て、分割前の第1および第2のセル821、822のセル属性
データを全セル属性データの中から削除し、分割によっ
て生じた第3〜第6のセル823〜826のセル属性データを
追加する。更に、全縦罫線データに点Aから点Bに至る
縦罫線81を表わした縦罫線データを追加する。
Therefore, in the table creation processing device, first, the first
Then, the cell attribute data of the second cells 82 1 and 82 2 are searched for from all the cell attribute data. Then, based on the cell attribute data, the cell attribute data of the third to sixth cells 82 3 to 826 generated by adding the ruled line 81 is created. The first and second cells 82 1 before the division, 82 2 of the cell attribution data deleted from among all cell attribution data, the third to sixth cells 82 3-82 6 cells produced by the division Add attribute data. Further, vertical ruled line data representing a vertical ruled line 81 from point A to point B is added to all the vertical ruled line data.

以上の処理によって、表への罫線の追加指示に対応し
て、表を表わすメモリ内におけるデータの変更が行われ
る。
Through the above processing, the data in the memory representing the table is changed in response to the instruction to add a ruled line to the table.

第8図は、表へ縦罫線を追加する際の表作成処理装置
の制御の流れを表わしたものである。第6図で説明した
ように点Aから点Bまでの縦罫線の追加指示が行われた
ら(第8図ステップ;Y)、CPU11は端点の座標すなわ
ち点Aと点Bの座標から、これらの端点を結ぶ罫線(こ
こでは点Aから点Bまでの罫線)を横切るセル(ここで
は第1および第2のセル821、822)のセル属性データを
全セル属性データの中から探す(ステップ)。次に、
求まったセル属性データを使用して、罫線を追加するこ
とによって分割されてできるセル(ここでは第3〜第6
のセル823〜826)のセル属性データを作成する(ステッ
プ)。そして、分割前のセル属性データを全セル属性
データから削除し、分割してできるセル属性データを全
セル属性データに追加する(ステップ)。最後に、全
縦罫線データに点Aから点Bまで縦罫線を表わす縦罫線
データを追加して(ステップ)、縦罫線を追加するた
めの全作業を終了させる(エンド)。
FIG. 8 shows the control flow of the table creation processing device when adding a vertical ruled line to a table. As described with reference to FIG. 6, when an instruction to add a vertical ruled line from point A to point B is given (step Y in FIG. 8), the CPU 11 determines the coordinates of the end points, that is, the coordinates of point A and point B, from these coordinates. Cell attribute data of cells (here, first and second cells 82 1 , 82 2 ) crossing a ruled line connecting end points (here, a ruled line from point A to point B) is searched from all cell attribute data (step). ). next,
Using the obtained cell attribute data, cells formed by adding a ruled line (here, the third to sixth cells)
To create a cell attribute data of the cell 82 3 to 82 6) of the (step). Then, cell attribute data before division is deleted from all cell attribute data, and cell attribute data obtained by division is added to all cell attribute data (step). Finally, vertical ruled line data representing a vertical ruled line from point A to point B is added to all the vertical ruled line data (step), and all operations for adding the vertical ruled line are completed (end).

第9図は、表の罫線を削除する場合を説明するための
ものである。同図(a)に示すような表が存在するもの
とし、点Aと点Bの間に罫線84が存在している。このと
き、この罫線84と隣接する4つのセルを第1〜第4のセ
ル851〜854とする。
FIG. 9 is for explaining the case where the ruled line of the table is deleted. It is assumed that a table as shown in FIG. 9A exists, and a ruled line 84 exists between points A and B. At this time, the four cells adjacent to the borders 84 and first to fourth cell 85 1 to 85 4.

第9図(b)は、この罫線84が削除された場合を表わ
したものである。この場合、同図(a)に示した第1お
よび第2のセル851、852が合成されて第5のセル855
なり、第3および第4のセル853、854が合成されて第6
のセル856になる。
FIG. 9 (b) shows a case where the ruled line 84 has been deleted. In this case, the figure the first and second cell 85 shown in (a) 1, 85 2 are combined with the fifth cell 85 5 next to the third and fourth cell 85 3, 85 4 are combined 6th
It consists of the cell 85 6.

第10図は、表から縦罫線を1本削除する際の表作成処
理装置の制御の流れを表わしたものである。点Aから点
Bまでの縦罫線の削除指示が行われたら(第10図ステッ
プ;Y)、CPU11は端点の座標すなわち点Aと点Bの座
標から、これらの端点を結ぶ罫線84に隣接するセル(こ
こでは第1〜第4のセル851〜854)のセル属性データを
探す(ステップ)。そして、求まったセル属性データ
を使用して、罫線84を削除することによって合成されて
できるセル(ここでは第1および第2のセル851、852
のセル属性データを作成する(ステップ)。次に、合
成前のセル属性データを全セル属性データから削除し、
合成によってできたセル属性データを全セル属性データ
に追加する(ステップ)。最後に、全罫線データから
縦罫線84までを表わした縦罫線データを削除して(ステ
ップ)、縦罫線を削除するための全作業を終了させる
(エンド)。
FIG. 10 shows a control flow of the table creation processing device when deleting one vertical ruled line from the table. When an instruction to delete the vertical ruled line from point A to point B is issued (step Y in FIG. 10), the CPU 11 uses the coordinates of the end points, that is, the coordinates of point A and point B, to adjoin the ruled line 84 connecting these end points. Cell attribute data of cells (here, first to fourth cells 85 1 to 85 4 ) are searched (step). Then, using the obtained cell attribute data, cells formed by deleting the ruled line 84 are combined (here, the first and second cells 85 1 and 85 2 ).
Create cell attribute data (step). Next, cell attribute data before synthesis is deleted from all cell attribute data,
The cell attribute data generated by the synthesis is added to all the cell attribute data (step). Finally, the vertical ruled line data from the entire ruled line data to the vertical ruled line 84 is deleted (step), and all operations for deleting the vertical ruled line are ended (END).

以上説明した表の変更に伴うディスプレイ22上に対す
る表の表示に際しては、該当するセルをキーとして
(1)式の関係式を解き、そのセルを形作る4本の罫線
についての罫線データを求め、変更後のセルの大きさを
決定する。そして、この決定したセルの大きさを使っ
て、テキスト等からなるセルの表示内容を描画して表示
することになる。
When the table is displayed on the display 22 in accordance with the change of the table described above, the relational expression of the equation (1) is solved using the corresponding cell as a key, and ruled line data for the four ruled lines forming the cell is obtained. Determine the size of the cell after. Then, using the determined cell size, the display contents of the cell composed of text or the like are drawn and displayed.

「発明の効果」 このように請求項1および請求項2記載の発明によれ
ば、罫線データとセル属性データを別々に保存すること
にしたので、表の追加や削除を行っても文字等の表示内
容が消えてしまったり、表が崩れる等の従来発生した不
都合を解消することができる。また、文字等の表示内容
を他の箇所に単独でコピーしたり移動することができ、
文書の編集が容易になるという効果がある。
[Effect of the Invention] According to the first and second aspects of the present invention, ruled line data and cell attribute data are separately stored. Inconveniences that have conventionally occurred, such as disappearance of display contents and collapse of a table, can be solved. In addition, the display contents such as characters can be copied or moved independently to other places,
There is an effect that editing of a document becomes easy.

また、請求項3記載の発明では、罫線データとセル属
性データを分離し、更に罫線の追加の指示があったとき
その表に関するセル属性データの入れ換えと罫線データ
の追加を行うことにしたので、罫線の追加を自在に行う
ことができるという利点がある。
According to the third aspect of the present invention, the ruled line data and the cell attribute data are separated, and when a ruled line addition instruction is given, the cell attribute data relating to the table is replaced and the ruled line data is added. There is an advantage that ruled lines can be added freely.

更に、請求項4記載の発明では、罫線データとセル属
性データを分離し、罫線の削除の指示があったときその
表に関するセル属性データの入れ換えと罫線データの削
除を行うことにしたので、罫線の削除を自在に行うこと
ができるという利点がある。
Further, in the invention according to claim 4, the ruled line data and the cell attribute data are separated, and when an instruction to delete the ruled line is issued, the cell attribute data relating to the table is replaced and the ruled line data is deleted. There is an advantage that can be freely deleted.

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

図面は本発明の一実施例を説明するためのせので、この
うち第1図は表作成処理装置の回路構成の概要を示すブ
ロック図、第2図はディスプレイに表示された文書の一
例を表わした平面図、第3図は表を表わすためのデータ
の構成を示した説明図、第4図は表の座標系を表わした
説明図、第5図は各セルの配置の順序を説明するための
説明図、第6図は表のあるセルと関係式との関係を説明
するための説明図、第7図は罫線の追加の操作を表わし
た説明図、第8図は罫線の追加の操作の制御の流れを示
す流れ図、第9図は罫線の削除の操作を表わした説明
図、第10図は罫線の削除の操作の制御の流れを示す流れ
図である。 11……CPU、 13……RAM、 15……磁気ディスク、 22……ディスプレイ、 33……、 41……全縦罫線データ、 43……全セル属性データ、 47……縦罫線データ、 52……横罫線データ、 56、82、85……セル、 57……セル属性データ、 71〜74……罫線、 81……(追加した)罫線、 84……(削除する)罫線。
1 is a block diagram showing an outline of a circuit configuration of a table creation processing device, and FIG. 2 is an example of a document displayed on a display. FIG. 3 is a plan view, FIG. 3 is an explanatory view showing the structure of data for representing a table, FIG. 4 is an explanatory view showing a coordinate system of the table, and FIG. 5 is a view for explaining the arrangement order of each cell. FIG. 6 is an explanatory diagram for explaining the relationship between a cell in a table and a relational expression, FIG. 7 is an explanatory diagram showing an operation for adding a ruled line, and FIG. FIG. 9 is a flowchart showing a control flow, FIG. 9 is an explanatory diagram showing a ruled line deletion operation, and FIG. 10 is a flowchart showing a ruled line deletion operation control flow. 11 ... CPU, 13 ... RAM, 15 ... Magnetic disk, 22 ... Display, 33 ..., 41 ... All vertical ruled line data, 43 ... All cell attribute data, 47 ... Vertical ruled line data, 52 ... ... horizontal ruled line data, 56, 82, 85 ... cell, 57 ... cell attribute data, 71-74 ... ruled line, 81 ... (added) ruled line, 84 ... (deleted) ruled line.

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.6,DB名) G06F 17/21──────────────────────────────────────────────────続 き Continued on front page (58) Field surveyed (Int.Cl. 6 , DB name) G06F 17/21

Claims (5)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】表を構成する縦の罫線と横の罫線のそれぞ
れの位置を表わす罫線データを保持する罫線データ保持
手段と、 前記罫線データに基づいて縦の罫線と横の罫線の交点を
所定の順序で調べることで、縦の罫線と横の罫線の組み
合わせによって形成されるセルを順次認識し、これら認
識したセルの順に複数のセルを順序付ける順序付手段
と、 前記縦の罫線と横の罫線の組み合わせによって形成され
るセルのそれぞれについて、これらのセル中に存在する
テキスト等の表示すべき内容やその表示態様を表わした
セル属性データを前記順序付手段によって順序付けられ
た順に保持するセル属性データ保持手段と、 前記罫線データ保持手段に保持された罫線データによっ
て複数の罫線を表示するとともに、罫線によって形成さ
れる複数のセルのそれぞれに対して前記セル属性データ
保持手段に保持されたセル属性データのうちの対応する
ものを用いてセル単位でテキスト等の内容表示を行うこ
とでこれらのセル全体として表を表示する表表示手段 とを具備することを特徴とする表作成処理装置。
1. A ruled line data holding means for holding ruled line data indicating respective positions of a vertical ruled line and a horizontal ruled line constituting a table; and determining an intersection of a vertical ruled line and a horizontal ruled line based on the ruled line data. The ordering means for sequentially recognizing the cells formed by the combination of the vertical ruled lines and the horizontal ruled lines, and ordering a plurality of cells in the order of the recognized cells, For each of the cells formed by the combination of the ruled lines, a cell attribute which holds the contents to be displayed such as text present in these cells and the cell attribute data representing the display mode in the order in which the cells are arranged by the ordering means. A data holding unit, a plurality of ruled lines are displayed by the ruled line data held by the ruled line data holding unit, and a plurality of cells formed by the ruled lines are displayed. Table display means for displaying a table as a whole of these cells by displaying the contents such as text on a cell-by-cell basis using the corresponding one of the cell attribute data held in the cell attribute data holding means for each of them. And a table creation processing device.
【請求項2】表を構成する縦の罫線と横の罫線のそれぞ
れの位置を表わす罫線データを保持する罫線データ保持
手段と、 前記縦の罫線と横の罫線の組み合わせによって形成され
るセルのそれぞれについて、これらのセル中に存在する
テキスト等の表示すべき内容やその表示態様を表わした
セル属性データを、これらのセルの位置を基準として順
序付けされた所定の順序で保持するセル属性データ保持
手段と、 前記罫線データ保持手段に保持された罫線データによっ
て複数の罫線を表示するとともに、これらの罫線の組み
合わせによって形成される複数のセルのそれぞれに対し
て前記セル属性データ保持手段に保持されたセル属性デ
ータのうちの対応するものを用いてセル単位でテキスト
等の内容表示を行うことでこれらのセル全体として表を
表示する表表示手段と、 この表表示手段で表示された表における編集対象を指定
して編集処理内容を指示する編集指示手段と、 前記罫線データに基づいて縦の罫線と横の罫線の交点を
所定の順序で調べることで、縦の罫線と横の罫線の組み
合わせによって形成されるセルを順次認識し、前記編集
指示手段によって指示された編集対象の位置までに存在
するセルを計数する計数手段と、 この計数手段が計数した値に基づいて前記セル属性デー
タ保持手段に保持されたセル属性データを特定し、前記
編集処理内容に応じた編集を行う編集手段 とを具備することを特徴とする表作成処理装置。
2. A ruled line data holding means for holding ruled line data indicating respective positions of a vertical ruled line and a horizontal ruled line constituting a table; and a cell formed by a combination of the vertical ruled line and the horizontal ruled line. Cell attribute data holding means for holding cell attribute data representing the contents to be displayed such as texts present in these cells and the display form thereof in a predetermined order ordered with reference to the positions of these cells. A plurality of ruled lines are displayed by the ruled line data held in the ruled line data holding means, and a plurality of cells formed by a combination of these ruled lines are held in the cell attribute data holding means. By displaying the contents such as text on a cell-by-cell basis using the corresponding attribute data, the entire cell is displayed. Table display means to be displayed; edit instructing means for designating an edit target in the table displayed by the table display means and instructing the content of editing processing; and determining an intersection of a vertical ruled line and a horizontal ruled line based on the ruled line data. By examining in a predetermined order, a cell formed by a combination of a vertical ruled line and a horizontal ruled line is sequentially recognized, and counting means for counting cells existing up to a position to be edited designated by the edit designating means, and An editing unit for specifying the cell attribute data held in the cell attribute data holding unit based on the value counted by the counting unit, and performing editing in accordance with the content of the editing process. Creation processing device.
【請求項3】表を構成する縦の罫線と横の罫線のそれぞ
れの位置を表わす罫線データを保持する罫線データ保持
手段と、 前記縦の罫線と横の罫線の組み合わせによって形成され
るセルのそれぞれについて、これらのセル中に存在する
テキスト等の表示すべき内容やその表示態様を表わした
セル属性データをこれらのセルの位置を基準として順序
付けされた所定の順序で保持するセル属性データ保持手
段と、 罫線の追加を指示する罫線追加指示手段と、 前記罫線データに基づいて縦の罫線と横の罫線の交点を
所定の順序で調べることで、縦の罫線と横の罫線の組み
合わせによって形成されるセルを順次認識し、前記罫線
追加指示手段によって追加を指示された罫線の位置まで
に存在するセルを計数することで罫線の追加によって分
割されるセルを検索する検索手段と、 この検索手段が検索した罫線の追加によって分割される
セルのセル属性データを前記セル属性データ保持手段か
ら削除するとともに、前記罫線追加指示手段によって追
加を指示された罫線についての罫線データを追加し、罫
線追加指示手段によって追加された罫線データを含めた
罫線データに基づいて縦の罫線と横の罫線の交点を所定
の順序で調べることで、縦の罫線と横の罫線の組み合わ
せによって形成されるセルをそれぞれ認識し、追加され
た罫線により新たに生成されたセルのセル属性データを
も含めたセル属性データをこれらのセルの位置を基準と
して前記所定の順序で並べ替えるセル属性データ更新手
段 とを具備することを特徴とする表作成処理装置。
3. A ruled line data holding means for holding ruled line data indicating respective positions of a vertical ruled line and a horizontal ruled line constituting a table; and each of cells formed by a combination of the vertical ruled line and the horizontal ruled line. Cell attribute data holding means for holding cell attribute data indicating the contents to be displayed such as texts present in these cells and the display mode thereof in a predetermined order ordered with reference to the positions of these cells. A ruled line addition instructing means for instructing the addition of a ruled line; and forming an intersection of a vertical ruled line and a horizontal ruled line in a predetermined order based on the ruled line data, thereby forming a combination of the vertical ruled line and the horizontal ruled line. Cells are sequentially recognized, and cells existing up to the position of the ruled line instructed to be added by the ruled line addition instructing means are counted, thereby dividing cells by adding ruled lines. Searching means for searching for the ruled line, and deleting the cell attribute data of the cell divided by the addition of the ruled line searched by the searching means from the cell attribute data holding means, and for the ruled line designated to be added by the ruled line addition instructing means. The ruled line data is added, and the intersection between the vertical ruled line and the horizontal ruled line is checked in a predetermined order based on the ruled line data including the ruled line data added by the ruled line addition instructing means. And the cell attribute data including the cell attribute data of the cell newly generated by the added ruled line is rearranged in the predetermined order based on the positions of these cells. A table creation processing device comprising: cell attribute data updating means.
【請求項4】表を構成する縦の罫線と横の罫線のそれぞ
れの位置を表わす罫線データを保持する罫線データ保持
手段と、 前記縦の罫線と横の罫線の組み合わせによって形成され
るセルのそれぞれについて、これらのセル中に存在する
テキスト等の表示すべき内容やその表示態様を表わした
セル属性データをこれらのセルの位置を基準として順序
付けされた所定の順序で保持するセル属性データ保持手
段と、 罫線の削除を指示する罫線削除指示手段と、 前記罫線データに基づいて縦の罫線と横の罫線の交点を
所定の順序で調べることで、縦の罫線と横の罫線の組み
合わせによって形成されるセルを順次認識し、前記罫線
削除指示手段によって削除を指示された罫線の位置まで
の存在するセルを計数することで罫線の削除によって合
併されるセルのセル属性データを検索する検索手段と、 この検索手段が検索した合併されるセルのセル属性デー
タを前記セル属性データ保持手段から削除するととも
に、前記罫線削除指示手段によって指示された罫線の罫
線データを削除し、この後に残った罫線データに基づい
て縦の罫線と横の罫線の交点を所定の順序で調べること
で、縦の罫線と横の罫線の組み合わせによって形成され
るセルをそれぞれ認識し、罫線の削除により新たに生成
されたセルのセル属性データをも含めたセル属性データ
をこれらのセルの位置を基準として前記所定の順序で並
べ替えるセル属性データ更新手段 とを具備することを特徴とする表作成処理装置。
4. A ruled line data holding means for holding ruled line data indicating respective positions of a vertical ruled line and a horizontal ruled line constituting a table; and each of cells formed by a combination of the vertical ruled line and the horizontal ruled line. Cell attribute data holding means for holding cell attribute data indicating the contents to be displayed such as texts present in these cells and the display mode thereof in a predetermined order ordered with reference to the positions of these cells. A ruled line deletion instructing means for instructing the deletion of a ruled line; and checking the intersection of a vertical ruled line and a horizontal ruled line in a predetermined order based on the ruled line data to form a combination of a vertical ruled line and a horizontal ruled line. Cells are sequentially recognized, and cells existing up to the position of the ruled line instructed to be deleted by the ruled line delete instructing means are counted, whereby cells merged by deleting the ruled line are counted. Searching means for searching for the cell attribute data of the cell, and deleting the cell attribute data of the merged cell searched by the searching means from the cell attribute data holding means, and the ruled line data of the ruled line designated by the ruled line deletion instructing means. Is deleted, and the intersection of the vertical ruled line and the horizontal ruled line is checked in a predetermined order based on the ruled line data remaining thereafter, thereby recognizing the cells formed by the combination of the vertical ruled line and the horizontal ruled line, Cell attribute data updating means for rearranging cell attribute data including cell attribute data of cells newly generated by deleting ruled lines in the predetermined order based on the positions of these cells. Table creation processing device.
【請求項5】前記罫線データ保持手段に保持された罫線
データに基づいて複数の罫線を表示するとともに、これ
らの罫線の組み合わせによって形成される複数のセルの
それぞれに対して前記セル属性データ保持手段に保持さ
れたセル属性データのうちの対応するものを用いてセル
単位でテキスト等の内容表示を行うことでこれらのセル
全体として表を表示する表表示手段と、 罫線の追加あるいは削除による変更によって新たに生成
されるセルの縦の罫線と横の罫線の組み合わせによって
形成される矩形領域を前記罫線データに基づいて求める
矩形領域特定手段と、 前記変更によって新たに生成されたセルについての前記
特定された矩形領域についての表示を、前記セル属性デ
ータ更新手段によって更新された前記セル属性データ保
持手段に保持された当該セルのセル属性データに基づい
て更新する表表示更新手段 とを具備することを特徴とする請求項3または請求項4
記載の表作成処理装置。
5. A plurality of ruled lines are displayed based on ruled line data held in said ruled line data holding means, and said cell attribute data holding means is provided for each of a plurality of cells formed by a combination of these ruled lines. Table display means for displaying a table as a whole of these cells by displaying the contents such as text in a cell unit using the corresponding one of the cell attribute data held in the table, and changing by adding or deleting ruled lines. A rectangular area specifying means for obtaining a rectangular area formed by a combination of a vertical ruled line and a horizontal ruled line of a newly generated cell based on the ruled line data; and the rectangular area specifying means for a cell newly generated by the change. The display of the rectangular area is displayed on the cell attribute data holding unit updated by the cell attribute data updating unit. Claim, characterized by comprising a table display updating means for updating based on the cell attribute data of the lifting has been the cell 3 or claim 4
Table creation processing device as described.
JP2320701A 1990-11-27 1990-11-27 Table creation processing device Expired - Fee Related JP2833203B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2320701A JP2833203B2 (en) 1990-11-27 1990-11-27 Table creation processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2320701A JP2833203B2 (en) 1990-11-27 1990-11-27 Table creation processing device

Publications (2)

Publication Number Publication Date
JPH04191965A JPH04191965A (en) 1992-07-10
JP2833203B2 true JP2833203B2 (en) 1998-12-09

Family

ID=18124374

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2320701A Expired - Fee Related JP2833203B2 (en) 1990-11-27 1990-11-27 Table creation processing device

Country Status (1)

Country Link
JP (1) JP2833203B2 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59174935A (en) * 1983-03-25 1984-10-03 Toshiba Corp Table element group producing system of word processor
JP2810368B2 (en) * 1987-11-16 1998-10-15 キヤノン株式会社 Image processing method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
「日本語ワードプロセッサ マックライト▲II▼ ユーザーズマニュアル」(1990年),(株)システムソフト発行,第3−3〜3−9頁

Also Published As

Publication number Publication date
JPH04191965A (en) 1992-07-10

Similar Documents

Publication Publication Date Title
US4912669A (en) Document-editing system
US5809266A (en) Method and apparatus for generating reports using declarative tools
JP2835791B2 (en) Graphic processing unit
JPH02240782A (en) Graphic processor
JPH0541997B2 (en)
JPH06251007A (en) Table data input device
JP2833203B2 (en) Table creation processing device
JP3032225B2 (en) Document editing device using three-dimensional display
JPS60178581A (en) Ruled line editing system
JPS6215670A (en) Editing system for intra-graphic character string
JP2001005985A (en) Processor for allocating characters
JP2723109B2 (en) Image processing method
JPH07282074A (en) Index character string output device for two-dimensional graphic
JPS60167059A (en) System for using chart and data in document
JPH0573545A (en) Document editing device
JPS63155260A (en) Editing method for table by computer
JP2842511B2 (en) Form creation device
JP3235404B2 (en) Layout correction device
JP3395372B2 (en) Table processing equipment
JPH1031752A (en) Device for modifying recognition result of drawing input device
JP3977874B2 (en) Document output method and apparatus
JP3978173B2 (en) Form creation method
JPH025176A (en) Document logical structure editor
JPH0573546A (en) Document editing device
JPH08314990A (en) Method for preparing ruled line table on cad drawing

Legal Events

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