JPH05216881A - Document processor - Google Patents

Document processor

Info

Publication number
JPH05216881A
JPH05216881A JP4054191A JP5419192A JPH05216881A JP H05216881 A JPH05216881 A JP H05216881A JP 4054191 A JP4054191 A JP 4054191A JP 5419192 A JP5419192 A JP 5419192A JP H05216881 A JPH05216881 A JP H05216881A
Authority
JP
Japan
Prior art keywords
cell
row
data
line
table set
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
JP4054191A
Other languages
Japanese (ja)
Inventor
Hirofumi Tsuruta
裕文 鶴田
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP4054191A priority Critical patent/JPH05216881A/en
Publication of JPH05216881A publication Critical patent/JPH05216881A/en
Pending legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

PURPOSE:To compress the specified objective data by compressing idle lines while shifting the objective data specified from the inputted data in the lower lines of the idle line upwards. CONSTITUTION:When the required objective data moving from the data inputted to each cell on the right side is specified by a specification means (pointing device) 9, a compression means (of function processing of a microprocessor MPU 4) moves the objective data specified by the device 9 from among data inputted in the lower lines of the idle line upwards to compress the idle lines acquired by an acquisition means (of function processing of the MPU 4). Thus, the operation is executed by moving only the specified objective data in the data inputted to each cell on the right side to compress the idle lines.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、文書処理装置、特に文
書の組版・編集等において表組の行圧縮,行挿入処理を
実行可能な文書処理装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a document processing apparatus, and more particularly to a document processing apparatus capable of executing line compression and line insertion processing of a table set in document typesetting / editing.

【0002】[0002]

【従来の技術】従来この種の装置においては、図27,
図28に示すように表組されたデータを修正する、すな
わち行数を減らしたり増やしたりする行編集処理(行挿
入,行削除)を行えるように構成されている。
2. Description of the Related Art Conventionally, in this type of apparatus, as shown in FIG.
As shown in FIG. 28, the tabulated data is modified, that is, line editing processing (row insertion, row deletion) for reducing or increasing the number of rows can be performed.

【0003】特に、図27は全てのデータを移動すると
して、表組圧縮(文字列の存在しないセルのみの行を下
行の文字列の存在する行で詰める機能)を指定された時
に、1つの表組内で処理を終了する場合の、表組圧縮実
行前の表組((a)参照)と実行後の表組((b)参
照)の状態を示す図である。
In particular, in FIG. 27, when all the data is moved, table set compression (a function of filling a row of only cells having no character string with a row of a lower character string) is specified, It is a figure which shows the state of the table group (refer to (a)) before table group compression execution, and the table group after execution (refer to (b)) at the time of finishing a process in a table group.

【0004】同様に、図28は全てのデータを移動する
として空行(文字列の存在しないセルのみの行)挿入を
指定された時に、1つの表組内で処理を終了する場合
の、挿入実行前の表組((a)参照)と実行後の表組
((b)参照)の状態を示す図である。
Similarly, in FIG. 28, when a blank line (row of only cells where no character string exists) is specified to move all data, the insertion when the processing is completed within one table set. It is a figure which shows the state of the table group before execution (refer to (a)) and the table group after execution (refer to (b)).

【0005】[0005]

【発明が解決しようとする課題】このような処理を実行
する場合、各行に対して何らかの修飾、例えばハッチン
グパターンが指定行おきに設定されるような表組である
場合、上記行挿入,行削除によりその配列がずれてしま
うので、再度配列がずれた行に対してハッチングパター
ン等の属性指定を再設定するといった操作を行う必要が
ある。
When such processing is executed, the above-mentioned row insertion and row deletion are performed in the case of a table set in which each row has some modification, for example, a hatching pattern is set every specified row. As a result, the array is displaced, so that it is necessary to perform an operation such as resetting the attribute designation such as a hatching pattern for the row in which the array is displaced again.

【0006】[0006]

【発明が解決しようとする課題】このように空き行を挿
入した後、属性を変更する場合は、下記(1) ・(2) に示
す問題があった。
Problems to be Solved by the Invention When an attribute is changed after inserting a blank line in this way, there are problems shown in (1) and (2) below.

【0007】(1) 一定行毎に属性を変更してある表組等
の、属性が表の中のその位置に存在することが有用な表
組では、挿入行以降のすべての属性を変更する必要があ
り、操作性が悪い。
(1) In a table set in which it is useful that the attribute exists at that position in the table, such as a table set in which the attribute is changed every fixed row, all the attributes after the inserted row are changed. It is necessary and the operability is poor.

【0008】(2) しかしながら、セル内の文字列に対し
て属性が結びついているような表組もあり、上記のよう
な行挿入処理が極めて有効な場合もあった。
(2) However, there are also table sets in which the attributes are associated with the character strings in the cells, and in some cases the above-described row insertion processing is extremely effective.

【0009】一方、空き行を圧縮した後、属性を変更す
る場合は、下記(1) ・(2) に示す問題があった。
On the other hand, when the attribute is changed after compressing the empty line, there are the following problems (1) and (2).

【0010】(1) 一定行毎に属性を変更してある表組等
の、属性が表の中のその位置に存在するようことが有用
な表組では、圧縮処理のために移動した行の全ての属性
を設定し直す必要があり、操作性が悪い。
(1) In a table set in which it is useful that the attribute exists at that position in the table, such as a table set in which the attribute is changed for each fixed row, the row moved for compression processing It is necessary to reset all attributes, and operability is poor.

【0011】(2) しかしながら、セル内の文字列に対し
て属性が結びついているような表組もあり、上記のよう
な行圧縮処理が極めて有効な場合もあった。
(2) However, there are some table sets in which the attributes are associated with the character strings in the cells, and in some cases the above-described row compression processing is extremely effective.

【0012】このように操作者は処理後の表組の行に対
する属性指定有無に応じて行編集操作負担が重くなる等
の問題点があった。
As described above, there is a problem in that the operator has a heavy line editing operation load depending on whether or not an attribute is designated for the row of the table set after processing.

【0013】本発明は、上記の問題点を解決するために
なされたもので、表組み圧縮処理を指定し、必要であれ
ば編集対象にしたいデータの種別を指定するだけで、表
組みの属性等の移動させたくないデータが移動せずに表
組の途中に存在する文字列のない行を下行の文字列行で
圧縮でき、かつ複数の表組間でも表組圧縮することがで
きる。
The present invention has been made in order to solve the above-mentioned problems, and it is only necessary to specify the table compression process and, if necessary, the type of data to be edited, and to set the attributes of the table. It is possible to compress a line without a character string existing in the middle of a table set without moving data that is not to be moved, such as a character string line below, and also to compress a table set between a plurality of table sets.

【0014】さらには、移動したいデータの種別を指定
するだけで、表組の属性等の移動させたくないデータが
移動せずに空行を挿入することができ、また、複数の表
組を編集している場合でも、不要なデータの移動が起こ
らずに空行を挿入できる文書処理装置を得ることを目的
とする。
Further, by designating the type of data to be moved, a blank line can be inserted without moving the data such as attributes of the table set which is not desired to be moved, and a plurality of table sets can be edited. An object of the present invention is to obtain a document processing device that can insert a blank line without unnecessary data movement even when the document processing device is being used.

【0015】[0015]

【課題を解決するための手段】本発明に係る文書処理装
置は、表組内同一行の各セルに文字列のない空行を取得
する取得手段と、前記表組の各セルに入力されているデ
ータ中から移動すべき所望の対象データを指定する指定
手段と、前記空行の下方行に入力されているデータ中か
ら前記指定手段で指定された対象データを上方行へ移動
して前記取得手段により取得された空行を圧縮する圧縮
手段とを設けたものである。
A document processing apparatus according to the present invention includes an acquisition unit for acquiring an empty line having no character string in each cell of the same row in a table set, and an inputting unit for inputting to each cell of the table set. Specifying means for specifying desired target data to be moved from the existing data, and moving the target data specified by the specifying means from the data input in the lower row of the blank line to the upper row and acquiring the data. And a compression means for compressing the blank line acquired by the means.

【0016】また、圧縮手段は、空行の下方行に入力さ
れているデータ中から指定手段で指定された対象データ
を複数表組間において上方行へ移動して取得手段により
取得された空行を圧縮するように構成したものである。
Further, the compressing means moves the target data designated by the designating means from the data inputted in the lower row of the blank row to the upper row between the plurality of table sets and obtains the blank row obtained by the obtaining means. Is configured to be compressed.

【0017】さらに、指定手段は、表組の各セルに入力
された文字列データまたは表組の各セルのデータを対象
データとするように構成したものである。
Further, the designating means is configured so that the character string data input to each cell of the table set or the data of each cell of the table set is the target data.

【0018】また、表組内同一行の各セルに文字列のな
い空行を挿入する位置を指定する第1の指定手段と、前
記表組の各セルに入力されているデータ中から移動すべ
き所望の対象データを指定する第2の指定手段と、第1
の指定手段により指定された位置から下方行へ前記第2
の指定手段で指定された対象データを移動して前記空行
を挿入する挿入手段とを設けたものである。
Further, the first designating means for designating a position for inserting a blank line having no character string in each cell of the same row in the table set, and the data inputted in each cell of the table set are moved. Second specifying means for specifying desired target data to be
From the position designated by the designation means to the second line
Inserting means for moving the target data specified by the specifying means and inserting the blank line.

【0019】さらに、挿入手段は、第1の指定手段によ
り指定された位置から複数の表組間で対象データを下方
行へ移動して空行を挿入するように構成したものであ
る。
Further, the inserting means is configured to move the target data to a lower row between a plurality of table sets from the position designated by the first designating means and insert a blank row.

【0020】また、第2の指定手段は、表組の各セルに
入力された文字列データまたは表組の各セルのデータを
対象データとするように構成したものである。
The second designating means is configured so that the character string data input to each cell of the table set or the data of each cell of the table set is the target data.

【0021】[0021]

【作用】本発明においては、指定手段により表組の各セ
ルに入力されているデータ中から移動すべき所望の対象
データが指定されると、圧縮手段が空行の下方行に入力
されているデータ中から指定手段で指定された対象デー
タを上方行へ移動して取得手段により取得された空行を
圧縮することにより、表組の各セルに入力されているデ
ータ中の指定した対象データのみを移動して空行を圧縮
することを可能とする。
According to the present invention, when the desired data to be moved is designated by the designating means out of the data inputted in each cell of the table set, the compressing means is inputted in the lower row of the blank line. By moving the target data specified by the specifying means from the data to the upper row and compressing the blank line acquired by the acquisition means, only the specified target data in the data input to each cell of the table group To allow to compress blank lines.

【0022】また、圧縮手段は、複数表組間において、
前にある表組の空行数に応じて後ろの表組のデータ中か
らできた空行を再度圧縮することにより、複数表組間に
おいても表組の各セルに入力されているデータ中の指定
した対象データのみを移動して空行を圧縮することを可
能とする。
Further, the compression means is provided between a plurality of table sets.
Depending on the number of blank lines in the preceding table set, the blank lines created from the data in the following table set are compressed again, so that the data in each cell of the table set can be It is possible to move only specified target data and compress blank lines.

【0023】さらに、指定手段は、表組の各セルに入力
された文字列データまたは表組の各セルのデータを対象
データとすることにより、表組の各セルに入力されてい
るデータ中の指定した文字列データまたは表組の各セル
のデータを選択しながら移動して空行を圧縮することを
可能とする。
Further, the designating means sets the character string data input to each cell of the table set or the data of each cell of the table set as the target data, so that the data in each cell of the table set The blank line can be compressed by moving while selecting the specified character string data or the data of each cell of the table.

【0024】また、第1の指定手段により表組内同一行
の各セルに文字列のない空行を挿入する位置が指定さ
れ、第2の指定手段により表組の各セルに入力されてい
るデータ中から移動すべき所望の対象データが指定され
ると、挿入手段が第1の指定手段により指定された位置
から下方行へ前記第2の指定手段で指定された対象デー
タを移動して空行を挿入することにより、表組の各セル
に入力されているデータ中の指定した対象データのみを
移動して指定位置に空行を挿入することを可能とする。
Further, the position for inserting a blank line without a character string is designated in each cell in the same row in the table set by the first designating means, and the position is entered in each cell in the table set by the second designating means. When the desired target data to be moved is designated from the data, the inserting means moves the target data designated by the second designating means to the lower row from the position designated by the first designating means and leaves it empty. By inserting a row, it is possible to move only the designated target data in the data input to each cell of the table set and insert a blank row at the designated position.

【0025】さらに、挿入手段は、第1の指定手段によ
り指定された位置から複数の表組間で対象データを下方
行へ移動して空行を挿入することにより、表組の各セル
に入力されているデータ中の指定した対象データのみを
複数の表組間において移動して指定位置に空行を挿入す
ることを可能とする。
Further, the inserting means moves the target data from the position designated by the first designating means to a lower row among a plurality of table sets and inserts a blank line, thereby inputting to each cell of the table set. It is possible to move only the specified target data in the stored data between a plurality of table sets and insert a blank line at the specified position.

【0026】また、第2の指定手段は、表組の各セルに
入力された文字列データまたは表組の各セルのデータを
対象データとすることにより、表組の各セルに入力され
ているデータ中の指定した文字列データまたは表組の各
セルのデータを選択しながら移動して指定位置に空行を
挿入することを可能とする。
Further, the second designating means sets the character string data input to each cell of the table set or the data of each cell of the table set as the target data, thereby inputting to each cell of the table set. It is possible to move while selecting the specified character string data or the data of each cell of the table set in the data and insert a blank line at the specified position.

【0027】[0027]

【実施例】【Example】

〔実施例1〕図1は本発明の第1実施例を示す文書処理
装置の構成を説明するブロック図であり、本発明の機能
が実行されるのであれば、単体の機器であっても、複数
の機器からなるシステムであっても、LAN等のネット
ワークを介して処理が行われるシステムであっても本発
明を適用できることは言うまでもない。
[Embodiment 1] FIG. 1 is a block diagram for explaining the configuration of a document processing apparatus showing a first embodiment of the present invention. As long as the functions of the present invention are executed, even a single device, It goes without saying that the present invention can be applied to a system including a plurality of devices or a system in which processing is performed via a network such as a LAN.

【0028】図において、1はラスタスキャン方式で使
用されるCRT表示部、2は1画面分の表示パターン情
報を記憶するビデオRAM(VRAM)、3は表示制御
部で、前記VRAM2に対するパターン情報の書込み,
CRT表示部1への読出しを制御する。4はマイクロプ
ロセッサ(MPU)で、後述する文書データ(表組デー
タ)および後述するフローチャートに示す制御手順を格
納する主メモリの内容に基づいてI/Oバス7に接続さ
れる各デバイスを制御する。当該MPU4には、文字デ
ータ等の入力を行うキーボード8,CRT表示部1上の
任意の位置指定等を行い図形データの入力編集等を行う
ポインティングデバイス9が接続されている。6はハー
ドディスク装置で、この中に文書ファイルや文字フォン
トが格納されている。10は作成された文書を出力する
ためのプリンタ、11は文書ファイル等の保存等を行う
ためのフロッピーディスク装置である。
In the figure, 1 is a CRT display unit used in a raster scan system, 2 is a video RAM (VRAM) which stores display pattern information for one screen, and 3 is a display control unit which stores pattern information for the VRAM 2. writing,
The reading to the CRT display unit 1 is controlled. A microprocessor (MPU) 4 controls each device connected to the I / O bus 7 based on the content of a main memory that stores document data (table data) described later and a control procedure shown in a flowchart described later. .. The MPU 4 is connected to a keyboard 8 for inputting character data and the like, and a pointing device 9 for inputting and editing graphic data by designating an arbitrary position on the CRT display unit 1. A hard disk device 6 stores document files and character fonts therein. Reference numeral 10 is a printer for outputting the created document, and 11 is a floppy disk device for storing a document file and the like.

【0029】なお、本実施例において選択指定可能なデ
ータとは、各セルに対して指定された属性(本実施例で
は各セル内のハッチングパターン等の網指定された場合
を示すが、これに限らず任意指定可能な書体,文字サイ
ズ,左右/上下の揃え,余白,字間,強調,回転,字下
げ等であっても良く、またはこれらの結合であっても良
い)を含むセル内データと各セル内の文字列データが対
応する。
In the present embodiment, the data that can be selected and designated means the attribute designated for each cell (in this embodiment, the case where a mesh such as a hatching pattern in each cell is designated. In-cell data including any typeface, character size, left / right / upper / right alignment, margins, character spacing, emphasis, rotation, indentation, etc., or combinations of these) And the character string data in each cell correspond.

【0030】なお、本システムのCRT表示部1におい
て表示処理されるイメージの解像度は100DPIで構
成され、プリンタ10のイメージの解像度は400DP
Iで構成され、表組の各セルに設定された属性、例えば
ハッチングパターンの解像度は200DPIで構成され
ている。
The resolution of the image displayed on the CRT display unit 1 of this system is 100 DPI, and the resolution of the image of the printer 10 is 400 DP.
The attribute set in each cell of the table group, for example, the resolution of the hatching pattern is 200 DPI.

【0031】このように構成された文書処理装置におい
て、指定手段(ポインティングデバイス9)により表組
の各セルに入力されているデータ中から移動すべき所望
の対象データが指定されると、圧縮手段(MPU4の機
能処理による)が空行の下方行に入力されているデータ
中から指定手段で指定された対象データを上方行へ移動
して取得手段(MPU4の機能処理による)により取得
された空行を圧縮することにより、表組の各セルに入力
されているデータ中の指定した対象データのみを移動し
て空行を圧縮することを可能とする。
In the thus configured document processing apparatus, when the designation means (pointing device 9) designates desired target data to be moved from the data input to each cell of the table set, the compression means. Empty obtained by the obtaining means (by the functional processing of the MPU4) by moving the target data designated by the designating means to the upper row from the data input in the lower row of the empty row (by the functional processing of the MPU4) By compressing the rows, it is possible to move only the designated target data in the data input to each cell of the table set and compress the blank rows.

【0032】また、圧縮手段は、複数表組において前に
ある空行に見合ったデータを後ろの表組のデータ中から
指定された対象データを前の表組の下方の空行に移動し
て、このことにより生じた後ろの表組の上方の空行を圧
縮することにより、複数表組間においても表組の各セル
に入力されているデータ中の指定した対象データのみを
移動して空行を圧縮することを可能とする。
Further, the compression means moves the data corresponding to the preceding blank line in the plural table sets to the designated target data from the data of the following table set to the blank line below the previous table set. , By compressing the blank line above the subsequent table set, the specified target data in the data input to each cell of the table set is moved and empty even between multiple table sets. Allows you to compress rows.

【0033】さらに、指定手段は、表組の各セルに入力
された文字列データまたは表組の各セルのデータを対象
データとすることにより、表組の各セルに入力されてい
るデータ中の指定した文字列データまたは表組の各セル
のデータを選択しながら移動して空行を圧縮することを
可能とする。
Further, the designating means sets the character string data input to each cell of the table set or the data of each cell of the table set as the target data, so that the data in each cell of the table set The blank line can be compressed by moving while selecting the specified character string data or the data of each cell of the table.

【0034】図2は文字列データのみを移動対象として
表組圧縮を指定された時に、セル属性(本実施例の場合
は1行おきにハッチングパターンの異なる表組を設定し
た場合に対応する)を移動せず、1つの表組内で表組圧
縮処理を終了する場合の、表組圧縮実行前威の表組と実
行後の表組を示す図である。図3は全てのデータを移動
するとして表組圧縮を指定された時に、複数の表組内で
処理を行う場合の、表組圧縮実行前の表組と実行後の表
組を示す図である。図4は文字列データのみを移動対象
として表組圧縮を指定された時に、セル属性を移動せ
ず、複数の表組内で表組圧縮処理を行う場合の表組圧縮
実行前の表組((a)参照)と実行後の表組(b)参
照)との状態を示す図である。図5は表組圧縮を指定さ
れた時、結果的に空行(文字列の存在しないセルのみの
行)のみの表組(見出し固定指定されたセルを除く)が
できてしまうこともある状態を示す図である。図6は1
つの行の形状を保存する場合の保存データを示す図であ
る。
FIG. 2 shows a cell attribute when the table set compression is specified with only the character string data as the movement target (in the present embodiment, it corresponds to the case where the table sets having different hatching patterns are set every other line). FIG. 9 is a diagram showing a table set before execution of table set compression and a table set after execution when table set compression processing is ended within one table set without moving the table set. FIG. 3 is a diagram showing a table set before execution of table set compression and a table set after execution when processing is performed in a plurality of table sets when table set compression is designated to move all data. .. FIG. 4 shows a table set before executing the table set compression when the table set compression is specified by moving only the character string data and the cell attributes are not moved and the table set compression processing is performed in a plurality of table sets. It is a figure which shows the state of (refer to (a)) and the table set after execution (refer to (b)). Fig. 5 shows that when table set compression is specified, a table set (excluding cells with fixed heading fixed) may only result in blank lines (rows containing only cells with no character strings). FIG. 6 is 1
It is a figure which shows the preservation | save data at the time of saving the shape of one line.

【0035】以下、図7〜図15に示すフローチャート
に従って本発明に係る文書処理装置における表圧縮処理
動作について説明する。なお、各図中の(1) ,(2) …は
各ステップを示す。
The table compression processing operation in the document processing apparatus according to the present invention will be described below with reference to the flow charts shown in FIGS. It should be noted that (1), (2), ... In each figure indicate each step.

【0036】図示しないシステムメニュー等で新規ある
いは既存の文書が開かれ、表組編集モードにおいて、表
組圧縮が指定されると、MPU4は図7に示す「表組圧
縮メイン処理」を読出して起動する。
When a new or existing document is opened by a system menu or the like (not shown) and table compression is specified in the table edit mode, the MPU 4 reads and starts "table compression main processing" shown in FIG. To do.

【0037】ステップ(1) において、移動する対象とす
るデータを選択する入力と実行指定の入力を受け付ける
ウインドウを表示し、ステップ(2) で入力を受け付け
る。キーボード8からのキー入力、若しくはポインティ
ングデバイス9による入力が行われると、ステップ(3)
において入力データを判断し、移動対象データ種別の指
定操作であった場合、ステップ(4) で移動対象データ種
別を読み込み、主メモリ5内のテーブルに保存し、ステ
ップ(3) で移動対象データ種別の指定操作でないと判断
された時は、ステップ(5) で実行が指定されたかどうか
を判断する。この判断で実行指定でないと判定された場
合はステップ(2) に戻り、実行指定であると判定された
場合は、ステップ(6) において、現在編集されている表
組を対象とする図8に示す「表組空行圧縮処理」を呼び
出して起動する。
In step (1), a window for accepting an input for selecting data to be moved and an input for execution designation is displayed, and the input is accepted in step (2). When a key input from the keyboard 8 or an input from the pointing device 9 is made, step (3)
If the input data is judged in step 3 and it is a move target data type specification operation, the move target data type is read in step (4) and saved in the table in main memory 5, and the move target data type is read in step (3). If it is determined that the operation is not specified, it is determined in step (5) whether execution is specified. If it is determined that the execution is not specified in this determination, the process returns to step (2). If it is determined that the execution is specified, in step (6), the table currently edited is displayed in FIG. Start by calling the "table group blank line compression process" shown.

【0038】図8に示す「表組空行圧縮処理」では、ス
テップ(1) において、表組の行No.を示す、図1に示し
た主メモリ5に確保してある”行カウンタ”に「1」
(先頭行)をセットする。そして、ステップ(2) で、”
行カウンタ”にセットした行の形状を取得するために、
図12に示す「指定行形状取得処理」を呼出して起動す
る。なお、行の形状とは、図6に示すようにその行の先
頭セルの左上点を始点とした時に、行を構成する各セル
の左上点を始点からの相対X座標値(X)、各セルの幅
(W)および各セルの高さ(H)で表わすものとする。
In the "table group blank line compression process" shown in FIG. 8, in the step (1), the table group row number. "1" in the "row counter" secured in the main memory 5 shown in FIG.
Set (first line). Then, in step (2),
To get the shape of the row set in the "row counter",
The "specified line shape acquisition process" shown in FIG. 12 is called and activated. It should be noted that the shape of a row refers to the relative X coordinate value (X) from the starting point at the upper left point of each cell forming the row, when the starting point is the upper left point of the head cell of the row, as shown in FIG. The width (W) of each cell and the height (H) of each cell shall be used.

【0039】図12に示す「指定行形状取得処理」では
ステップ(1) において、指定行の先頭セルの左上点(始
点)以下のY座標値で、かつ先頭セルの高さ(H)に含
まれるセルを右方向へサーチする。そのようなセルが存
在した場合、ステップ(3) において、そのセルが見出し
固定(見出し固定指定とは、各編集処理を行ってもその
セル内に存在する文字列をそのセル内に固持するという
指定で、セル単位に指定できる)されていないかを判断
する。見出し固定指定されていた場合、そのセルは対象
外と判断し、ステップ(1) に戻り、再び次のセルのサー
チを行う。見出し固定指定されていなかった場合、ステ
ップ(4) において、そのセルの左上点の始点から相対X
座標地(X),そのセルの幅(W),高さ(H)を保存
する。そして、ステップ(6) で、図1に示した主メモリ
6に確保してある”非見出し固定指定セル発見フラグ”
をONにし、ステップ(1) に戻り、再び次のセルのサー
チを行う。ステップ(2) において、その行内の右端のセ
ルまで処理したかどうかを判断し、右端のセルまで到達
したと判断した場合「指定行形状取得処理」を終了す
る。次に、図8のステップ(4) において、「指定行形状
取得処理」の結果を判断し、指定された行のすべてのセ
ルが見出し固定指定されていた場合、ステップ(3)
で、”行カウンタ”をプラス「1」して、再び「指定行
形状取得処理」を呼出し、次の行の形状を取得しに行
く。表組内のすべてのセルが見出し固定指定されていた
場合、結局はステップ(13)において、”行カウンタ”が
表組の最終行を越えることとなり、ステップ(14)で、図
1に示した主メモリ5に確保してある”全見出し固定フ
ラグ”をONし、処理を終了する。ステップ(4) におい
て、指定された行内に1つでも見出し固定指定されてい
ないセルが存在すると判断した場合、ステップ(5)
で、”行カウンタ”を引数として「空行のサーチ処理」
を呼び出して起動する。例えば図4の(a)に示した表
組が対象であった場合は、先頭行内のすべてのセルが見
出し固定指定されているので、2番目の行のNo.、すな
わち「2」が引数値となる。図10に示す「空行のサー
チ処理」では、ステップK1において、引数”行カウン
タ”にセットしてある行No.からサーチし、ステップ
(3) 、図12に示す「指定行形状取得処理」で取得した
指定行の形状と同一形状の行か(その行を構成する各セ
ルの左上点の始点からの相対X座標地(X),そのセル
の幅(W),高さ(H)が同じか)を判断する。形状が
異なった行を発見した場合、ステップ(4) で、図1に示
した主メモリ5に確保してある”異形行発見フラグ1”
をONにして、「空行のサーチ処理」を終了する。同一
行と判断した場合、ステップ(5) において、その行を構
成する各セル内に文字列が存在するかどうかをチェック
し、ステップ(6) において、その行を構成するセルすべ
てに文字列が存在しないと判断した場合、ステップ(7)
でその行の行No.を図1に示した主メモリ5に確保して
ある”空行No.テーブル”にセットして「空行のサーチ
処理」を終了する。従って、例えば図4の(a)に示す
表組では、”空行No.テーブル”に「5」がセットされ
る。1つでもセル内に文字列が存在した場合、ステップ
(1) に戻り、再び行をサーチする。
In the "specified line shape acquisition process" shown in FIG. 12, in step (1), the Y coordinate value is equal to or lower than the upper left point (start point) of the head cell of the specified line, and included in the height (H) of the head cell. Cell to be searched to the right. If such a cell exists, in step (3) that cell is fixed to the heading (fixed heading designation means that the character string existing in that cell is retained in that cell even after each editing process). If specified, it can be specified in cell units). If the heading is fixed, it is determined that the cell is not the target, the process returns to step (1), and the next cell is searched again. If the fixed heading is not specified, in step (4), relative X from the start point of the upper left point of the cell
The coordinate place (X), the width (W) and the height (H) of the cell are saved. Then, in step (6), the "non-header fixed designated cell discovery flag" secured in the main memory 6 shown in FIG.
Is turned on, the process returns to step (1), and the next cell is searched again. In step (2), it is determined whether the rightmost cell in the row has been processed. If it is determined that the rightmost cell has been reached, the "specified row shape acquisition processing" ends. Next, in step (4) of FIG. 8, the result of the "specified row shape acquisition process" is judged, and if all the cells in the specified row are fixedly designated as a heading, step (3)
Then, the "row counter" is incremented by "1", the "designated row shape acquisition process" is called again, and the shape of the next row is acquired. If all the cells in the table group are designated as fixed headings, the "row counter" will eventually exceed the last row of the table group in step (13), and as shown in Fig. 1 in step (14). The "all heading fixed flag" secured in the main memory 5 is turned on, and the processing is ended. If it is judged in the step (4) that there is at least one cell in which the fixed heading is not specified in the specified row, the step (5)
So, "blank line search process" with "line counter" as an argument
To start it. For example, when the table set shown in FIG. 4A is the target, all cells in the first row are fixedly designated as headings, and thus the No. of the second row is set. That is, "2" becomes the argument value. In the "blank line search process" shown in FIG. 10, in step K1, the line number set in the argument "line counter" is set. Search from and step
(3) is a row having the same shape as the shape of the designated row acquired by the “designated row shape acquisition processing” shown in FIG. 12 (relative X coordinate place (X) from the starting point of the upper left point of each cell forming the row, The width (W) and the height (H) of the cell are the same). When a line having a different shape is found, in step (4), "anomalous line found flag 1" secured in the main memory 5 shown in FIG.
Is turned on and the "blank line search process" is completed. If it is determined that they are in the same row, in step (5) it is checked whether or not there is a character string in each of the cells that make up that row, and in step (6) all the cells that make up that row have a character string. If not, step (7)
And the line number of that line. Is set in the "blank line No. table" secured in the main memory 5 shown in FIG. 1 and the "blank line search process" is completed. Therefore, for example, in the table set shown in FIG. 4A, "5" is set in the "blank line number table". If there is even one string in the cell, step
Return to (1) and search the line again.

【0040】次に、図8に示すステップ(6) において、
「空行のサーチ処理」の結果を判断し、ステップ(2) に
保存した行の形状とは異なった行が存在すると判断した
場合、そのまま終了する。「空行のサーチ処理」で処理
した行内に異形行が存在しなかった場合は、ステップ
(7) において、”空行No.テーブル”をチェックし、空
行No.が存在した(空行が存在する)場合、ステップ
(8) において、「文字列行のサーチ処理」を呼び出して
起動する。図11に示す「文字列行のサーチ処理」で
は、ステップ(1) において、”空行No.テーブル”にセ
ットしてあるNo.の行からサーチを行い、ステップ(3)
で、図12の「指定行形状取得処理」で取得した指定行
の形状と同一形状の行かどうかを判断する。形状が異な
った行を発見した場合、ステップ(4) において、図1に
示した主メモリ5に確保してある異形行発見フラグ2”
をONして、「文字列行のサーチ処理」を終了する。同
一行と判断した場合、ステップ(5) において、その行を
構成するセル内に文字列が存在するかどうかをチェック
し、ステップ(6) において、文字列を保持するセルが1
つでも存在すると判断した場合、ステップ(8) におい
て、図1に示した主メモリ5に確保してある”文字列行
数テーブル”が「0」かどうかを判断する。この判断
で、”文字列行数テーブル”が「0」の場合は、行をサ
ーチし始めてから初めての文字列行であるので、ステッ
プ(9) でその行の行No.を図1に示した主メモリ5に確
保してある”文字列行No.テーブル”にセットする。例
えば図4に示す(a)に示す表組では、5行目から文字
列行をサーチし始めたので、6行目が初めての文字列行
となり、”文字列行数テーブル”には「6」がセットさ
れる。そして、ステップ(10)で”文字列行No.テーブ
ル”内の値をプラス1し、再びステップ(1) に戻り、行
をサーチする。ステップ(6) において、すべてのセル内
に文字列が存在しない(空行)場合、ステップ(7) で”
文字列行数テーブル”の内容をチャックし、「0」であ
れば、まだ文字列行をサーチしていないと判断し、再び
ステップ(1) に戻り、行をサーチする。
Next, in step (6) shown in FIG.
When the result of the "blank line search process" is judged and it is judged that there is a line different from the shape of the line saved in step (2), the process is ended. If there is no variant line in the line processed in "Blank line search process", step
In (7), check "Blank line No. table" and check the blank line No. If exists (blank line exists), step
In (8), call up the "character string line search process" and start it. In the "character string row search processing" shown in FIG. 11, in step (1), the number set in the "blank row number table" is set. Search from the line, and step (3)
Then, it is determined whether or not the line has the same shape as the shape of the designated row acquired in the "designated row shape acquisition processing" of FIG. When a line having a different shape is found, in step (4), the variant line found flag 2 ″ reserved in the main memory 5 shown in FIG. 1 is found.
Is turned on, and the "character string row search process" is completed. If it is determined that they are in the same row, in step (5) it is checked whether or not a character string exists in the cells that make up the row, and in step (6) the cell that holds the character string is 1
When it is determined that there is even one, it is determined in step (8) whether the "character string row number table" secured in the main memory 5 shown in FIG. 1 is "0". In this judgment, when the "character string row number table" is "0", it is the first character string row since the search of the row is started, so the row number of that row is determined in step (9). Is set in the "character string row number table" secured in the main memory 5 shown in FIG. For example, in the table set shown in FIG. 4A, since the search for the character string row is started from the 5th row, the 6th row is the first character string row, and "6" is added to the "character string row number table". Is set. Then, in step (10), the value in the "character string row No. table" is incremented by 1, and the process returns to step (1) again to search for a row. In step (6), if there is no character string in all cells (blank line), in step (7) ”
The contents of the "character string row number table" are checked, and if it is "0", it is determined that the character string row has not been searched yet, the process returns to step (1) again and the line is searched.

【0041】一度文字列をサーチすると、文字列を含ま
ない行(空行)を発見するか、あるいはステップ(2) で
行の最終行を越えたと判断するまで、前記処理を続ける
ので、最終的に”文字列行数テーブル”には、続いた文
字列行の行数がセットされていることになる。例えば図
4に示した(a)に示す表組では、6行目,7行目と2
行続けて文字列行が存在するので、”文字列行数テーブ
ル”には「2」がセットされる。次に、ステップ(9) に
おいて、「文字列行のサーチ処理」の結果を判断し、文
字列行が存在した場合、ステップ(10)で「セルデータ移
動処理」を呼び出して起動する。図13に示す「セルデ
ータ移動処理」では、ステップ(1) で、”文字列No.テ
ーブル”内にセットしてある値を、図1に示した主メモ
リ5に確保してある”移動元No.テーブル”にセット
し、続けてステップ(2) で”空行No.テーブル”内にセ
ットしてある値を、図1に示した主メモリ5に確保して
ある”移動先No.テーブル”にセットする。そして、ス
テップ(3) で図1に示した主メモリ5に確保してある”
移動カウンタ”に「0」をセットし、初期設定は終了す
る。ステップ(4) において、移動対象データが文字列の
みに設定されている判断した場合、ステップ(5) におい
て、”移動元No.テーブル”内の行No.が示す行から”
移動先No.テーブル”内の行No.が示す行に、見出し固
定指定されているセルを除いて、セル同士で文字列デー
タの移動を行う。ステップ(4) において、移動対象デー
タが文字列のみでない時には、”移動元No.テーブル”
内の行No.が示す行から”移動先No.テーブル”内の行
No.が示す行に、見出し固定指定されているセルを除い
て、セル同士でセルデータ(文字列データと属性デー
タ)の移動を行う。そして、ステップ(7) で”移動先N
o.テーブル”,”移動元No.テーブル”,”移動カウ
ンタ”内の値をプラス1し、ステップ(8) でインクリメ
ントした”移動カウンタ”と”文字列行数テーブル”と
を比べ、”文字列行数テーブル”内の値が小さい限り、
ステップ(1) に戻り、文字列の移動処理を行う。従っ
て、図4の(a)の表組が対象であった場合、6行目の
文字列行が移動され、7行目の文字列行が6行目に移動
されて処理を終了する。そして、文字列の移動ループか
ら抜けると、ステップ(9) で”空行No.テーブル”に”
文字列行数テーブル”内の値を加えて「セルデータ移動
処理」を終了する。従って、図5の(a)の表組が対象
であった場合、この時点では”空行No.テーブル”に
は、「7」がセットされている。次に、図8に示すステ
ップ(11)において、「セルデータ移動処理」の結果を判
断し、図9のステップ(2) で保存した行の形状とは異な
った行が存在すると判断した場合、そのまま終了する。
異形行が存在しなかった場合、図9のステップ(12)で最
終行まで処理を行ったと判断されないかぎり、再び「文
字列のサーチ処理」を呼び出す。従って、「表組空行圧
縮処理」終了後は、1つの表組内で表組の圧縮が行わ
れ、例えば図2に示す(a)の表組が(b)に示す表組
の状態になる。
Once the character string is searched, the above processing is continued until a line not containing the character string (blank line) is found or it is judged in step (2) that the last line of the line has been exceeded. In the "character string row number table", the row number of the succeeding character string rows is set. For example, in the table set shown in FIG. 4A, the sixth line, the seventh line, and the second line
Since there are character string rows following the row, "2" is set in the "character string row number table". Next, in step (9), the result of the "character string row search processing" is determined, and if the character string row exists, the "cell data movement processing" is called and activated in step (10). In the "cell data move processing" shown in FIG. 13, the value set in the "character string No. table" in step (1) is set in the main memory 5 shown in FIG. No. table ”, followed by the value set in the“ blank line No. table ”in step (2), which is secured in the main memory 5 shown in FIG. Set to "". Then, in step (3), it is secured in the main memory 5 shown in FIG.
The movement counter "is set to" 0 ", and the initial setting is completed. If it is determined in step (4) that the data to be moved is set only to the character string, in step (5), the line number in the "source number table" is moved. From the line indicated by
Destination No. In the row indicated by the row number in "Table", the character string data is moved between the cells except for the cells for which the fixed heading is specified. In step (4), when the data to be moved is not only the character string, "Source No. table"
Line No. in From the line indicated by to the line in the "destination No. table"
No. The cell data (character string data and attribute data) is moved from cell to cell in the row indicated by, except for cells for which the fixed heading is specified. Then, in step (7), "Destination N
o. Table ”,“ Movement source No. Add 1 to the values in "Table" and "Movement counter" and compare the "Movement counter" incremented in step (8) with the "Character string line number table", and the value in "Character string line number table" is smaller limit,
Return to step (1) and move the character string. Therefore, when the table set of FIG. 4A is the target, the sixth character string line is moved, the seventh character string line is moved to the sixth line, and the process is ended. Then, after exiting the character string movement loop, in step (9), enter "blank line No. table"
The value in the "character string row number table" is added and the "cell data moving process" is ended. Therefore, when the table set in FIG. 5A is the target, "7" is set in the "blank line No. table" at this point. Next, in step (11) shown in FIG. 8, when the result of the “cell data moving process” is judged and it is judged that there is a row different from the shape of the row saved in step (2) of FIG. 9, It ends as it is.
If there is no variant line, the "character string search process" is called again unless it is determined in step (12) in FIG. 9 that the process has been performed up to the last line. Therefore, after the "table set blank compression process" is finished, the table set is compressed in one table set, and for example, the table set of (a) shown in FIG. 2 is changed to the state of the table set shown in (b). Become.

【0042】次に、図7のステップ(7) で、”全見出し
固定フラグ”をチェックし、ONであった場合(すなわ
ち表組内のすべてのセルが見出し固定されていた場
合)、「全てのセルが見出し固定指定されているので表
組圧縮処理はできません。」とメッセージを表示し「表
組圧縮処理」を終了する。また、図7のステップ(9)
で”異形行発見フラグ1”または”異形行発見フラグ
2”をチェックし、ONであった場合「表組内に異なっ
た形状の行が存在するので圧縮処理はできません。」と
メッセージを表示し「表組圧縮処理」を終了する。
Next, in step (7) of FIG. 7, the "all heading fixed flag" is checked, and when it is ON (that is, when all cells in the table set are heading fixed), "all Since the cell of is fixed to the heading, the table group compression processing cannot be performed. "Is displayed and the" table group compression processing "ends. Also, step (9) in FIG.
Check "Abnormal line detection flag 1" or "Abnormal line detection flag 2", and if it is ON, a message "Compressing processing cannot be performed because there are rows with different shapes in the table group" is displayed. The "table compression process" is ended.

【0043】次に、複数表組間の表組圧縮処理の流れに
ついて説明する。
Next, the flow of table set compression processing between a plurality of table sets will be described.

【0044】現在編集されている表組の表組圧縮処理終
了後、図7に示すステップ(6) で、「複数表組間空行圧
縮処理」を呼び出して起動する。図9に示す「複数表組
間空行圧縮処理」では、現在編集対象となっている表組
を含む浮動ブロックの次からテキストをサーチし、浮動
ブロックが存在した場合、図9のステップ(2) におい
て、そのブロックのタイプ(ブロックのサイズおよび浮
動する方向)をチェックし同一であった場合、ステップ
(3) でその中に表組が存在したら、その表組の形状をチ
ェックする。その表組が、現在編集されている表組と同
一であった場合、ステップ(4) において、「表組空行圧
縮処理」を呼び出して起動する。「表組空行圧縮処理」
終了後、ステップ(5) で1つ前に「表組圧縮処理」を行
った表組の空行数を「空行数カウント処理」(詳細は後
述する)を呼び出して起動することにより取得し、最後
に「表組空行圧縮処理」を行った表組の文字列行数と今
取得した空行数とをステップ(5) で比べる。この比較
で、空行数の方が大きかった場合、ステップ(7) で最後
に「表組空行圧縮処理」を行った表組の文字列行全てを
図1の主メモリ5に保存する。文字列行数の方が大きか
った場合、ステップ(8)で最後に「表組空行圧縮処理」
を行った表組の文字列行のうち、今得た空行数分を図1
に示した主メモリ5に保存する。そして、ステップ(9)
で、保存データを前表組の空行部分にコピーし、図1の
主メモリ5に確保されている”表組編集フラグ1”(ル
ープする度に、すなわち次の表組,次の表組と移り変わ
る度に、当該表組編集フラグのNo.も”表組編集フラグ
2”,”表組編集フラグ3”,…と移り変わって行く)
をONし、再びステップ(11)で「表組空行圧縮処理」を
呼び出す。再び、「表組空行圧縮処理」を行うことで、
前表組内に移動した文字列行が空行になってしまってい
たのが、全て表組圧縮されることになる。そして、ステ
ップ(1) に戻り、次の浮動ブロックをサーチする。浮動
ブロックが同一タイプでなかった場合、あるいはサーチ
した浮動ブロック内に含まれている表組が同一タイプで
なかった場合、ステップ(13)において、ステップ(10)で
ONにした”表組編集フラグ群”をチェックし、全て
の”表組編集フラグ”がOFFになるまで、そのフラグ
の示す表組(図5の(a)に示すように表組が3つある
場合、上の表組と真ん中の表組間で文字列行移動が行わ
れた場合、”表組編集フラグ1”がONになり、真ん中
と下の表組間で文字列移動が行われた場合、”表組編集
フラグ2”がONになっているので、例えば”表組編集
フラグ2”がONであった場合、下の表組を再び対象と
して文字列行の移動処理が行われる)を対象とした文字
列行の移動処理を行う。従って、ステップ(15)で得対象
表組の空行数をチェックし、空行数が存在するのであれ
ば、ステップ(1) に戻り、再び文字列行の移動処理を行
う。上記処理を全ての”表組編集フラグ”がOFFにな
るまで、再帰的に行うことで、徐々に前の表組へ前の表
組へと文字列行が移動して行くことになる。すなわち、
図6の(a)に示す表組が、(b)に示す表組へと徐々
に変化して行くのである。
After the table set compression processing for the table set currently being edited is completed, in step (6) shown in FIG. 7, "blank space compression processing between plural table sets" is called and activated. In the "blank compression process between multiple table sets" shown in FIG. 9, the text is searched from the next of the floating block including the table set currently being edited. If a floating block exists, the step (2 ), Check the block type (block size and floating direction), and if they are the same, step
If there is a table in it in (3), check the shape of the table. If the table set is the same as the currently edited table set, in step (4), the "table set blank line compression process" is called and activated. "Table group blank line compression process"
After completion, in step (5), obtain the number of blank lines in the table that was previously "table-compressed" by calling "blank-line count process" (details will be described later) and activating it. Finally, in step (5), compare the number of character string rows in the table set that has been subjected to "table group blank line compression processing" with the number of empty lines just acquired. If the number of blank lines is larger in this comparison, all the character string lines of the table set that has been subjected to the "table set blank line compression process" at the end in step (7) are saved in the main memory 5. If the number of character string rows is larger, at the end of step (8) "Table group blank line compression processing"
Of the character string rows of the table set for which the
It is stored in the main memory 5 shown in FIG. And step (9)
Then, the stored data is copied to the blank line portion of the previous table group, and the "table group edit flag 1" (which is reserved for the main memory 5 in FIG. Every time it changes to, the No. of the relevant table group edit flag also changes to "Table group edit flag 2", "Table group edit flag 3", ...
Is turned on and the "table group blank line compression process" is called again in step (11). By performing "table group blank line compression processing" again,
The character string lines moved to the previous table set became blank lines, but all of them are compressed in the table set. Then, returning to step (1), the next floating block is searched. If the floating blocks are not of the same type, or if the tables contained in the searched floating blocks are not of the same type, in step (13), the "table group edit flag turned on in step (10)" Check the "groups" until all the "table group editing flags" are turned off (if there are three table groups as shown in (a) of FIG. When the character string row is moved between the middle table groups, "Table group edit flag 1" is turned on, and when the character string is moved between the middle table group and the lower table group, "Table group edit flag" 2 "is ON, so if, for example," table group edit flag 2 "is ON, the character string row for the lower table group will be processed again." Move processing. Therefore, in step (15), the number of blank lines in the target table set is checked, and if there is a blank line number, the process returns to step (1) and the character string line moving process is performed again. By performing the above processing recursively until all "table group edit flags" are turned off, the character string line gradually moves to the previous table group to the previous table group. That is,
The table set shown in (a) of FIG. 6 gradually changes to the table set shown in (b).

【0045】ここで、図14に示す「空行数カウント処
理」を説明する。
The "blank line count processing" shown in FIG. 14 will be described.

【0046】ステップ(1) において、図1に示した主メ
モリ5に確保してある”空行カウンタ”に「0」をセッ
トし、ステップ(2) において、指定表組の先頭行からサ
ーチする。ステップ(4) において、その行を構成するセ
ル内に文字列が存在するかをチェックし、ステップ(5)
において、その行を構成するセル全てに文字列が存在し
ないと判断した場合、ステップ(6) で”空行カウンタ”
内の値をプラス1して、再びステップ(2) に戻り、次行
のサーチを行う。1つでも文字列を含むセルがあった場
合、”空行カウンタ”はインクリメントされない。この
処理をステップ(3) で指定表組の最終行を越えたと判断
するまで続けるので、「空行数カウント処理」終了後に
は、”空行カウンタ”にはその表組内に存在する空行の
総数がセットされることになる。
In step (1), "0" is set in the "blank line counter" secured in the main memory 5 shown in FIG. 1, and in step (2), the search starts from the first row of the designated table set. .. In step (4), check whether there is a character string in the cells that make up the row, and in step (5)
When it is determined that the character string does not exist in all the cells that make up the row, in step (6), "Blank line counter"
Add 1 to the value in and return to step (2) again to search for the next line. If there is a cell containing at least one character string, the "blank line counter" is not incremented. This process is continued until it is judged in step (3) that the last line of the specified table group has been exceeded. Therefore, after the "blank line count process" is completed, the "blank line counter" shows blank lines existing in the table group. Will be set.

【0047】なお、上記実施例では表組内に文字列のな
い行を圧縮表組圧縮処理は、浮動ブロック内の表組以外
にも、固定ブロック内の表組に対しても同様に適用可能
である。
In the above embodiment, the rows having no character strings in the table set are compressed. The table set compression processing can be applied to not only the table set in the floating block but also the table set in the fixed block. Is.

【0048】また、浮動ブロック内の表組と固定ブロッ
ク内の表組を連動させ、表組圧縮を行うことも可能であ
る。 〔実施例2〕以下、表組の行挿入動作について説明す
る。なお、システム構成は図1と同様であるので説明は
省略する。
It is also possible to perform table set compression by interlocking the table set in the floating block and the table set in the fixed block. [Embodiment 2] A row insertion operation for a table group will be described below. The system configuration is the same as that shown in FIG.

【0049】このように構成された文書処理装置におい
て、第1の指定手段(ポインティングデバイス9)によ
り表組内同一行の各セルに文字列のない空行を挿入する
位置が指定され、第2の指定手段(ポインティングデバ
イス9)により表組の各セルに入力されているデータ中
から移動すべき所望の対象データが指定されると、挿入
手段(MPU4の機能処理による)が第1の指定手段に
より指定された位置から下方行へ前記第2の指定手段で
指定された対象データを移動して空行を挿入するように
構成したので、表組の各セルに入力されているデータ中
の指定した対象データのみを移動して指定位置に空行を
挿入することができる。
In the thus configured document processing apparatus, the first designating means (pointing device 9) designates the position where a blank line without a character string is inserted in each cell of the same row in the table set, and the second designation When the desired target data to be moved is designated from the data input to each cell of the table set by the designation unit (pointing device 9) of No. 1, the insertion unit (by the functional processing of MPU 4) makes the first designation unit. Since the target data designated by the second designating means is moved to the lower row from the position designated by, and a blank row is inserted, the designation in the data entered in each cell of the table set is performed. It is possible to move only the specified target data and insert a blank line at the specified position.

【0050】さらに、挿入手段は、第1の指定手段によ
り指定された位置から複数の表組間で対象データを下方
行へ移動して空行を挿入するように構成したので、表組
の各セルに入力されているデータ中の指定した対象デー
タのみを複数の表組間において移動して指定位置に空行
を挿入することができる。
Further, since the inserting means is configured to move the target data to the lower row between the plurality of table sets from the position designated by the first designating means and insert a blank row, each table set is inserted. Only the specified target data in the data input in the cell can be moved between a plurality of table sets to insert a blank line at the specified position.

【0051】また、第2の指定手段は、表組の各セルに
入力された文字列データまたは表組の各セルのデータを
対象データとするように構成したので、表組の各セルに
入力されているデータ中の指定した文字列データまたは
表組の各セルのデータを選択しながら移動して指定位置
に空行を挿入することができる。図15は本発明に係る
文書処理装置における表組の空行挿入状態を示す図であ
り、空行挿入を指定された時に、セル属性(本実施例で
は1行おきにハッチングパターンの異なる表組を例とし
ている)を移動せず、1つの表組内で空行挿入処理を終
了する場合の挿入実行前の表組と実行後の表組の状態を
示す。
Further, since the second designating means is constituted so that the character string data inputted to each cell of the table set or the data of each cell of the table set is the target data, the second designating means inputs it to each cell of the table set. It is possible to move while selecting the specified character string data or the data of each cell of the table set in the stored data and insert a blank line at the specified position. FIG. 15 is a diagram showing a blank line insertion state of a table set in the document processing apparatus according to the present invention. When a blank line insertion is designated, a cell attribute (in this embodiment, a table set having different hatching patterns every other line) is displayed. Shows a state of the table set before the insertion execution and the table set after the execution when the blank row insertion processing is ended in one table set.

【0052】図16は全てのデータを移動するとして
(図27参照)空行挿入を指定された時に、複数の表組
内で処理を行う場合の挿入実行前の表組と実行後の表組
の状態を示す図である。図17は空行挿入を指定された
時に、セル属性を移動せず、複数の表組内で空行挿入処
理を行う場合の挿入実行前の表組と実行後の表組の状態
を示す図である。図18は空行挿入を指定された時に、
新たな表組を作成し空行挿入処理を行う場合の挿入実行
前の表組と実行後の表組の状態を示す図である。
FIG. 16 shows a table set before execution of insertion and a table set after execution when processing is performed in a plurality of table sets when blank line insertion is designated as moving all data (see FIG. 27). It is a figure which shows the state of. FIG. 17 is a diagram showing the states of the table set before the insertion and the table set after the execution when blank line insertion processing is performed in a plurality of table sets when the blank line insertion is specified and the cell attribute is not moved. Is. Figure 18 shows that when blank line insertion is specified,
It is a figure which shows the state of the table set before insertion execution, and the table set after execution in the case of creating a new table set and performing a blank row insertion process.

【0053】次に図19〜図26に従って、図28の
(a)に示すような表組に空行を挿入する場合について
説明する。
Next, referring to FIGS. 19 to 26, the case of inserting a blank line into the table set as shown in FIG. 28A will be described.

【0054】新規あるいは既存文書が開かれ表組編集モ
ードにおいて、空行挿入が指定されると、図19に示す
「空行挿入処理」が呼び出されて起動される。「空行挿
入処理」では、ステップ(1) において移動する対象とす
るデータを選択する入力を受け付けるウインドウと、例
えば「空行を挿入したい行をポインティングデバイスで
指定して下さい。」というメッセージを表示し、ステッ
プ(2) で入力を受け付ける。ポインティングデバイス9
による入力が行われると、ステップ(3) で入力データを
判断し、表組が存在する編集領域であった場合、ステッ
プ(4) で移動する対象となるデータの指定の操作である
かどうかを判断し、移動対象データ指定操作の時には、
ステップ(5) により移動対象データの状態を読み込み、
保存した後ステップ(2) に戻る。ステップ(4) で移動対
象データ指定操作でないと判断された時には、ステップ
(6) でさらに表組のセル内が指定されたかを判断する。
表組のセル外であった場合、再びステップ(2) に戻り入
力を受け付けるのだが、表組のセル内であった場合、指
定された行の形状を取得し保存する「指定行の形状取得
処理」を呼び出して起動する。図20に示す「指定行の
形状取得処理」では、ステップ(1) において、指定され
たセルの存在する行の先頭のセルを表組の中の多くのセ
ルから選び出す。例えば図6(a)に示すような行のセ
ル7ー1がポインティングデバイス9で指定された場
合、そのセル”左上点”と同じY方向値(ポジション
Y)で、かつ最も左に存在するセルがその行の先頭セル
であるという定義に基づいて先頭セルを選び出す。従っ
て、図6の(b)に示すやや複雑な表組の場合の行にお
いても、セル7ー2に示すセルが指定された場合、同方
法で先頭セルが選出できる。また、図6の(c)に示す
セルのように、セル同士が接していない場合でも、同方
法で先頭セルが選出できる。次に、図20のステップ
(2) において、先頭セルの左上点(視点)と同じY方向
値(ポジション)でかつ先頭セルの高さ(H)以下の高
さであるセルを今度は逆に右方向へサーチする。そのよ
うなセルが存在した場合、ステップ(4) において、その
セルが見出し固定指定(見出し固定指定とは、各編集処
理を行ってもそのセル内に存在する文字列をそのセル内
に固持するという指定で、セル単位に指定できる)され
ていないかを判断する。見出し固定指定されていた場
合、そのセルは対象外と判断し、ステップ(2) に戻り、
再び次のセルのサーチを行う。見出し固定指定されてい
なかった場合、ステップ(5) において、そのセルの左上
点の視点からのX方向の相対ポジション値(相対値
X),そのセルの幅(W),高さ(H)を保存する。そ
して、ステップ(6) で”非見出し固定指定セル発見フラ
グ”をONにし、ステップ(2) に戻り、再び次のセルの
サーチを行う。ステップ(3) において、その行内の右端
のセルまで処理したかを判断し、処理した場合「指定行
の形状取得処理」を終了する。次に、ステップ(8) にお
いて、「指定行の形状所得処理」の結果を判断し、空行
挿入指定されたセルの存在する行内の全てのセルが見出
し固定されていた場合、そのまま終了する。1つでも見
出し固定されていないセルが存在した場合、ステップ
(9) において、「文字列行のサーチ処理」を呼び出す。
図21に示す「文字列行のサーチ処理」では、ステップ
(1) において空行挿入指定された次の行(Y方向で下側
の行)をサーチし、ステップ(3) で図20の「指定行の
形状取得処理」で取得したして行の形状と同一形状の行
か(その行を構成する各セルの左上点の視点からのX方
向の相対ポジション値(相対値X)、そのセルの幅
(W),高さ(H)が同じか)を判断する。形状が異な
った行を発見した場合、ステップ(4) において、”異形
行発見フラグ1”をONにし、「文字列行のサーチ処
理」を終了する。同一行と判断した場合、ステップ(5)
において、その行を構成する各セル内に文字列が存在す
るかをチェックし、ステップ(6) において、文字列を保
持するセルが1つでも存在すると判断した場合、その行
の行No.を”文字列行No.テーブル”にセットして「文
字列行のサーチ処理」を終了する。全てのセル内に文字
列が存在しない場合、ステップ(1) に戻り再びサーチす
る。この処理は、文字列を含む行を発見しないと、ステ
ップ(2) で表の最終行を越えたと判断されるまで続け
る。次に、ステップ(10)において、「文字列行のサーチ
処理」の結果を判断し、空行挿入指定された行と異なっ
た行が存在すると判断した場合、そのまま終了する。空
行挿入指定された行以降から”文字列行No.テーブル
1”に保存した行No.まで、あるいは空行挿入指定され
た行以降の全ての行が、同一形状であった場合、図19
のステップ(11)において、”文字列行No.テーブル”を
チェックし、文字列行No.が存在した(文字列行が存
在)場合、ステップ(12)において、「空行のサーチ処
理」を呼び出して起動する。図22に示す「空行のサー
チ処理」では、ステップ(1) において、”文字列行No.
テーブル”に保存した行No.の次の行(Y方向で下側の
行)からサーチし、ステップ(3) で、図20の「指定行
の形状取得処理」で取得した指定行の形状と同一形状の
行かどうか(その行を構成する各セルの左上点の視点か
らX方向の相対ポジション値(相対値X)、そのセルの
幅(W),高さ(H)が同じか)を判断する。形状が異
なった行を発見した場合、ステップ(4) において、”異
形行発見フラグ2”をONにして、「空行のサーチ処
理」を終了する。同一行と判断した場合、ステップ(5)
において、その行を構成する各セル内に文字列が存在す
るかどうかをチェックし、ステップ(6) において、その
行を構成するセル全てに文字列が存在しないと判断した
場合、その行の行No.を”空行No.テーブル”にセット
して「空行のサーチ処理」を終了する。1つでもセル内
に文字列が存在した場合、ステップ(1)に戻り、再び行
をサーチする。次に、図19に示したステップ(13)にお
いて、「空行のサーチ処理」の結果を判断し、空行挿入
指定された行と異なった行が存在すると判断した場合
は、そのまま処理を終了する。
When a new or existing document is opened and blank line insertion is designated in the table group editing mode, the "blank line insertion process" shown in FIG. 19 is called and activated. In "Blank line insertion processing", a window that accepts input to select the data to be moved in step (1) and a message such as "Please specify the line where you want to insert a blank line with a pointing device." Are displayed. And accept the input in step (2). Pointing device 9
When the input is performed by, the input data is judged in step (3), and if it is the edit area where the table group exists, it is confirmed whether it is the specified operation of the data to be moved in step (4). Judgment, at the time of the operation to specify the data to be moved,
In step (5), read the status of the data to be moved,
After saving, return to step (2). If it is determined in step (4) that it is not the movement target data specification operation, step
In (6), it is determined whether the inside of the table cell is further designated.
If it is outside the cell of the table group, it returns to step (2) again and accepts input, but if it is inside the cell of the table group, the shape of the specified row is acquired and saved. Call "Process" to start. In the "shape acquisition process for designated row" shown in FIG. 20, in step (1), the head cell of the row in which the designated cell exists is selected from many cells in the table set. For example, when the cell 7-1 in the row as shown in FIG. 6A is designated by the pointing device 9, the cell having the same Y-direction value (position Y) as the cell "upper left point" and located on the leftmost side. Selects the first cell based on the definition that is the first cell in the row. Therefore, even in the case of the slightly complicated table set shown in FIG. 6B, when the cell shown in the cell 7-2 is designated, the head cell can be selected by the same method. Further, even when the cells are not in contact with each other like the cell shown in FIG. 6C, the head cell can be selected by the same method. Next, the steps of FIG.
In (2), the cell having the same Y-direction value (position) as the upper left point (viewpoint) of the head cell and having a height equal to or lower than the height (H) of the head cell is searched in the right direction in reverse. If such a cell exists, in step (4), the cell has a fixed heading designation (fixed heading designation means that the character string existing in that cell is retained in that cell even after each editing process is performed). It can be specified for each cell). If the heading is fixed, it is judged that the cell is out of scope, return to step (2),
The next cell is searched again. If the fixed heading is not specified, in step (5), the relative position value (relative value X) in the X direction from the viewpoint of the upper left point of the cell, the width (W), and the height (H) of the cell are set. save. Then, in step (6), the "non-header fixed designated cell discovery flag" is turned on, the process returns to step (2), and the next cell is searched again. In step (3), it is determined whether the rightmost cell in the row has been processed, and if so, the "shape acquisition processing for the specified row" ends. Next, in step (8), the result of the "shape income processing of the designated row" is judged, and if all the cells in the row in which the cell for which the blank row insertion designation is present are fixed, the processing is terminated. If there is any cell whose heading is not fixed, step
In (9), call the "character string line search process".
In the "character string row search process" shown in FIG.
Search the next row (row on the lower side in the Y direction) for which blank line insertion is specified in (1), and in step (3), acquire the shape of the row acquired in the "specified row shape acquisition processing" in Fig. 20. Or a row of the same shape (whether the relative position value (relative value X) in the X direction from the viewpoint of the upper left point of each cell forming the row, the width (W), and the height (H) of the cell are the same) to decide. When a line having a different shape is found, in step (4), the "variant line finding flag 1" is turned on, and the "character string line search process" is completed. If judged to be in the same row, step (5)
In step (6), it is checked whether or not a character string exists in each cell forming the row, and if it is determined in step (6) that there is even one cell holding the character string, the row number of that row is determined. Is set in the "character string line No. table" and the "character string line search process" is completed. If the character string does not exist in all cells, return to step (1) and search again. If the process does not find the line containing the character string, it continues until it is determined in step (2) that the last line of the table has been exceeded. Next, in step (10), when the result of the "character string line search process" is judged and it is judged that there is a line different from the line for which blank line insertion is designated, the process is terminated. Insert blank line From the specified line onward, the line number saved in "Character string line No. table 1". If all the lines up to or after the line for which blank line insertion is specified have the same shape,
In step (11), check "Character string row No. table" and check the character string row No. table. Is present (the character string line is present), the "blank line search process" is called and activated in step (12). In the "blank line search process" shown in FIG. 22, in step (1), "character string line number.
Search from the line next to the line No. saved in the table "(the line on the lower side in the Y direction), and in step (3), specify the shape of the specified line acquired in the" shape acquisition process of specified line "in FIG. Judge whether the rows are the same shape (whether the relative position value (relative value X) in the X direction from the viewpoint of the upper left point of each cell forming the row, the width (W), and the height (H) of the cell are the same) To do. When a line having a different shape is found, in step (4), the "variant line finding flag 2" is turned on and the "blank line search process" is completed. If judged to be in the same row, step (5)
In step (6), if it is determined that there is no character string in all the cells that make up the row, it is checked if there is a character string in each cell that makes up the row. No. Is set in the "blank line No. table" and the "blank line search process" ends. If at least one character string exists in the cell, the process returns to step (1) and the row is searched again. Next, in step (13) shown in FIG. 19, when the result of the "blank line search process" is judged and it is judged that there is a line different from the line for which blank line insertion is designated, the process is terminated. To do.

【0055】”文字列行No.テーブル”に保存した行N
o.から”空行No.テーブル”に保存した行No.まで、
あるいは”文字列行No.テーブル”に保存した行No.以
降の全ての行が同一形状データであった場合、ステップ
(14)において、”空行No.テーブル”をチェックし、空
行No.が存在した(空行が存在)場合、ステップ(15)に
おいて、「空行の挿入実行処理」を呼び出す。図23に
示す「空行の挿入実行処理」では、ステップ(1) におい
て、”空行No.テーブル”をループカウンタにセット
し、ステップ(2) で移動対象データの指定状態を判断
し、移動対象データが文字列のみの時には、ステップ
(3) でループカウンタの示す行の上行(Y方向で上側の
行)からループカウンタの示す行へと、見出し固定され
ていないセルのみ文字列の移動を行う(図15参照)。
ステップ(2) で移動対象データが文字列のみでない時に
は、ステップ(4) でループカウンタの示す行の上行(Y
方向で上側の行)からループカウンタの示す行へと、見
出し固定されていないセルのみデータの移動を行う(図
16参照)。そして、ステップ(5) でループカウンタを
ディクリメントし、ステップ(6) において、ループカウ
ンタが”文字列行No.テーブル”内の行No.より小さい
かどうかを判別し、小さいかぎりステップ(2) に戻り、
再び文字列の移動処理を行う。ループカウンタが”文字
列行No.テーブル”内の行No.以下になった時点で、ス
テップ(6) での判断でループから抜け、「空行の挿入実
行処理」を終了する。ステップ(14)において、”空行N
o.テーブル”をチェックし、空行No.が存在しなかっ
た(空行が存在しない)場合、ステップ(16)おいて、
「複数表組空行挿入処理」を呼び出して起動する。図2
4に示す「複数表組空行挿入処理」では、ステップ(1)
で、カウンタに「0」をセットし、ステップ(2) で、文
書データにアクセスするためのテキストポインタに、空
行挿入指定された表組の存在する浮動ブロックの次のテ
キストのアドレスをセットする。従って、以降のその
頁、あるいは次頁に浮動ブロックが存在するか、そのテ
キストポインタの指し示すテキストを判別することで探
しに行く。次に、ステップ(3) において、カウンタをチ
ェックし、「1」以下の場合(すなわち次頁まで)、ス
テップ(4) でテキストポインタが現頁内のテキストを指
しているかを判別し、現頁内のテキストアドレスを越え
ていた場合、ステップ(7) でカウンタをインクリメント
して、ステップ(5) において、テキストポインタに次頁
の先頭テキストアドレスをセットし、再び浮動ブロック
の存在するかどうかを判断する処理を繰り返す。ステッ
プ(4) でテキストポインタ指すテキストが浮動ブロック
かをチェックし、浮動ブロックでなかった場合、浮動ブ
ロックの存在チェックを行う。浮動ブロックであった場
合、その浮動ブロックが空行挿入指定された表組の存在
する浮動ブロックと同タイプのブロック(ブロックのサ
イズが同じで、かつ浮動する方向が同じもの)かを識別
する。同タイプであった場合、その浮動ブロック内に表
組が含まれているかどうかを判断し、表組が含まれてい
たら、ステップ(10)において、その表組が空行挿入指定
された表組と同じものかを識別し同じであった場合、ス
テップ(11)で発見した浮動ブロック内の表組を対象とし
た「空行のサーチ処理」を呼び出して起動する。ステッ
プ(12)で「空行のサーチ処理」の結果を判断し、空行が
その表組内に存在した場合、ステップ(13)で「複数表組
挿入実行処理」を呼び出して起動する。図26に示す
「複数表組挿入実行処理」では、ステップ(1) で、空行
挿入指定された表組の最終行を、図24のステップ(11)
で対象となった表組の先頭空行(ステップ(11)にて、”
空行No.テーブル”にセットされている)に見出し固定
されていないセル毎に文字列を移動する。そして、ステ
ップ(2) において、”空行No.テーブル”に空行挿入指
定された表組の最終行No.をセットし、「空行の挿入実
行処理」を呼び出して起動し、指定された行に挿入し、
「複数表組挿入実行処理」を終了する。ステップ(12)で
「空行のサーチ処理」の結果を判断し、空行がその表
組内に存在しなかった場合(図18参照)、ステップ(1
4)で「同一表組作成処理」を呼び出して起動し、図25
に示す「同一表組作成処理」では、ステップ(1) で、空
行挿入指定された表組を含む浮動ブロックを”テキスト
入力テーブル”に複写する。そして、ステップ(2) にお
いて、複写した浮動ブロック内の表組の先頭セルからチ
ェックを開始し、ステップ(4) において、そのセルが見
出し固定されているかどうかを判断し、見出し固定され
ていれば、再びステップ(2) に戻り、次のセルをチェッ
クする。ステップ(4) で、見出し固定されていないセル
であった場合、ステップ(5) において、セル内に文字列
が存在するかを識別し、文字列が存在した場合、その文
字列を消去し、再びステップ(2) に戻り、次のセルをチ
ェックする。このようにして、見出し固定されたセル以
外のセル内の文字列を消去した表組をステップ(7) で、
現浮動ブロック(空行挿入指定された表組を含むブロッ
ク)の次に挿入し、「同一表組作成処理」を終了する。
そして、ステップ(15)において、「複数表組から行挿入
実行処理」を呼び出して起動し、「複数表組空行挿入処
理」を終了する。
Line N saved in "Character string line No. table"
o. To the "blank line number." Until,
Alternatively, the line number saved in the "character string line number table". If all subsequent lines have the same shape data, step
In (14), check "Blank line No. table" to check the blank line No. Is present (there is a blank line), the "blank line insertion execution process" is called in step (15). In the "blank line insertion execution process" shown in Fig. 23, in step (1), the "blank line No. table" is set in the loop counter, and in step (2) the specified state of the data to be moved is judged When the target data is only a character string, step
In (3), the character string is moved only from the cell above the row indicated by the loop counter (upper row in the Y direction) to the row indicated by the loop counter only for cells whose heading is not fixed (see FIG. 15).
If the data to be moved is not only a character string in step (2), in step (4) the line above the line indicated by the loop counter (Y
From the upper row in the direction) to the row indicated by the loop counter, data is moved only to the cells whose heading is not fixed (see FIG. 16). Then, in step (5), the loop counter is decremented, and in step (6), the loop counter indicates the line number in the "character string line number table". Determine if it is less than, return to step (2) as long as it is less,
The process of moving the character string is performed again. The loop counter shows the line number in the “character string line number table”. When the following occurs, the loop is exited by the judgment in step (6), and the "empty line insertion execution process" is ended. In step (14), "blank line N
o. Check "Table" and if the blank line number does not exist (blank line does not exist), in step (16),
Start by calling "Multiple table group blank line insertion process". Figure 2
In the "Multiple table group blank line insertion process" shown in 4, the step (1)
In step (2), the counter is set to "0", and in step (2), the text pointer for accessing the document data is set to the address of the text next to the floating block in the table set specified to insert the blank line. .. Therefore, whether or not there is a floating block on the subsequent page or on the next page is determined by determining the text pointed to by the text pointer. Next, in step (3), the counter is checked, and if it is "1" or less (that is, to the next page), it is determined in step (4) whether the text pointer points to the text in the current page, and the current page is determined. If it exceeds the text address in, the counter is incremented in step (7), the first text address of the next page is set in the text pointer in step (5), and it is determined again whether a floating block exists. Repeat the process. In step (4), it is checked whether the text pointed to by the text pointer is a floating block, and if it is not a floating block, the existence of the floating block is checked. If it is a floating block, it is identified whether the floating block is of the same type (the block size is the same and the floating direction is the same) as the existing floating block of the table set for which blank row insertion is specified. If it is the same type, it is judged whether or not a table set is included in the floating block, and if the table set is included, in step (10), the table set for which blank line insertion is specified is specified. If it is the same, the "blank line search process" for the table set in the floating block found in step (11) is called and activated. In step (12), the result of the "blank line search process" is judged. If a blank line exists in the table set, in step (13), the "plural table set insertion execution process" is called and activated. In the "plural table group insertion execution process" shown in FIG. 26, the last row of the table group for which blank line insertion is designated in step (1) is changed to step (11) in FIG.
The first blank line of the table set that was targeted at (in step (11),
Blank line No. Move the character string for each cell whose heading is not fixed to the table "set in the table." Then, in step (2), "blank line No." Insert the blank line into the table "Set the last line number of the specified table group, call" Blank line insertion execution process "and start it, insert into the specified line,
The "plural table group insertion execution process" is ended. When the result of the "blank line search process" is determined in step (12) and the blank line does not exist in the table group (see FIG. 18), step (1
In step 4), call the "same table group creation process" and start it.
In the "same table group creation process" shown in (1), in step (1), the floating block including the table group for which blank line insertion is designated is copied to the "text input table". Then, in step (2), the check is started from the first cell of the table set in the copied floating block, and in step (4) it is judged whether or not the cell has a fixed heading. , Go back to step (2) again and check the next cell. If the cell is not fixed in step (4), it is identified in step (5) whether a character string exists in the cell, and if the character string exists, the character string is erased. Return to step (2) again and check the next cell. In this way, the table set in which the character strings in the cells other than the heading fixed cell are erased is set in step (7),
The block is inserted after the current floating block (the block including the table set for which blank line insertion is designated), and the "same table set creation process" ends.
Then, in step (15), the "row insertion execution process from plural tables" is called and activated, and the "blank row insertion process for plural tables" ends.

【0056】なお、上記実施例では表組内の行を挿入す
る空行挿入処理は、浮動ブロック内の表組以外にも、固
定ブロック内の表組に対しても、また固定ブロック内の
表組に対しても同様に適用することができる。
In the above embodiment, the blank row insertion processing for inserting a row in the table set is performed not only for the table set in the floating block but also for the table set in the fixed block and the table in the fixed block. The same can be applied to the set.

【0057】また、浮動ブロック内の表組と固定ブロッ
ク内の表組を連動させ、空行挿入を行うことも可能であ
る。
It is also possible to interlock the table set in the floating block and the table set in the fixed block to perform blank line insertion.

【0058】[0058]

【発明の効果】以上説明したように、本発明は指定手段
により表組の各セルに入力されているデータ中から移動
すべき所望の対象データが指定されると、圧縮手段が空
行の下方行に入力されているデータ中から指定手段で指
定された対象データを上方行へ移動して取得手段により
取得された空行を圧縮するように構成したので、表組の
各セルに入力されているデータ中の指定した対象データ
のみを移動して空行を圧縮することを可能とする。
As described above, according to the present invention, when desired target data to be moved is designated by the designating means out of the data input to each cell of the table set, the compressing means is arranged below the blank line. Since the target data specified by the specifying means is moved to the upper row from the data input in the row and the blank row acquired by the acquiring means is compressed, the data is input to each cell of the table group. It is possible to move only the specified target data in the existing data and compress the blank line.

【0059】また、圧縮手段は、複数表組間において、
前にある表組の空行数に見合ったデータを後ろの表組の
データから移動して、このことにより生じた後ろの表組
の空白を圧縮するように構成したので、複数表組間にお
いても表組の各セルに入力されているデータ中の指定し
た対象データのみを移動して空行を圧縮することができ
る。
Further, the compressing means is arranged between a plurality of table sets.
Since the data corresponding to the number of blank lines in the preceding table set is moved from the data in the following table set, and the resulting blanks in the subsequent table set are compressed, it is possible to Also, it is possible to move only the specified target data in the data input to each cell of the table set to compress the blank line.

【0060】さらに、指定手段は、表組の各セルに入力
された文字列データまたは表組の各セルのデータを対象
データとするように構成したので、表組の各セルに入力
されているデータ中の指定した文字列データまたは表組
の各セルのデータを選択しながら移動して空行を圧縮す
ることができる。
Further, since the designating means is constructed so that the character string data input to each cell of the table set or the data of each cell of the table set is the target data, it is input to each cell of the table set. The blank line can be compressed by moving while selecting the specified character string data in the data or the data of each cell of the table set.

【0061】また、第1の指定手段により表組内同一行
の各セルに文字列のない空行を挿入する位置が指定さ
れ、第2の指定手段により表組の各セルに入力されてい
るデータ中から移動すべき所望の対象データが指定され
ると、挿入手段が第1の指定手段により指定された位置
から下方行へ前記第2の指定手段で指定された対象デー
タを移動して空行を挿入するように構成したので、表組
の各セルに入力されているデータ中の指定した対象デー
タのみを移動して指定位置に空行を挿入することができ
る。
Further, the first designating means designates a position for inserting a blank line without a character string into each cell of the same row in the table set, and the second designating means inputs the position to each cell of the table set. When the desired target data to be moved is designated from the data, the inserting means moves the target data designated by the second designating means to the lower row from the position designated by the first designating means and leaves it empty. Since it is configured to insert a row, it is possible to move only the specified target data in the data input to each cell of the table set and insert a blank line at the specified position.

【0062】さらに、挿入手段は、第1の指定手段によ
り指定された位置から複数の表組間で対象データを下方
行へ移動して空行を挿入するように構成したので、表組
の各セルに入力されているデータ中の指定した対象デー
タのみを複数の表組間において移動して指定位置に空行
を挿入することができる。
Further, since the inserting means is configured to move the target data to the lower row between the plurality of table sets from the position designated by the first designating means and insert the blank row, each table set is inserted. Only the specified target data in the data input in the cell can be moved between a plurality of table sets to insert a blank line at the specified position.

【0063】また、第2の指定手段は、表組の各セルに
入力された文字列データまたは表組の各セルのデータを
対象データとするように構成したので、表組の各セルに
入力されているデータ中の指定した文字列データまたは
表組の各セルのデータを選択しながら移動して指定位置
に空行を挿入することができる。
Further, since the second designating means is constituted so that the character string data input to each cell of the table set or the data of each cell of the table set is the target data, it is input to each cell of the table set. It is possible to move while selecting the specified character string data or the data of each cell of the table set in the stored data and insert a blank line at the specified position.

【0064】従って、表組内に文字列のない行を圧縮す
る場合、移動対象とするデータ種別を選択し、表組圧縮
を指定するだけで、任意のデータの移動によりスムーズ
に文字列のない行が圧縮できるとともに、表組内に文字
列のない行を挿入する場合、移動対象となるデータを選
択し、挿入する位置を指定するだけで、任意のデータの
移動によりスムーズに文字列のない行挿入編集を行える
等の効果を奏する。
Therefore, when compressing a row having no character string in the table set, by selecting the data type to be moved and designating the table set compression, it is possible to smoothly move the data without any character string. When you insert a row that can compress rows and does not have a character string in the table group, simply select the data to be moved and specify the insertion position, and the data will move smoothly without any character string. An effect such as line insertion editing can be achieved.

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

【図1】本発明の第1実施例を示す文書処理装置の構成
を説明するブロック図である。
FIG. 1 is a block diagram illustrating a configuration of a document processing device according to a first embodiment of the present invention.

【図2】本発明に係る文書処理装置における空行の圧縮
処理における圧縮前後の状態を示す図である。
FIG. 2 is a diagram showing states before and after compression in blank line compression processing in the document processing apparatus according to the present invention.

【図3】本発明に係る文書処理装置における空行の圧縮
処理における圧縮前後の状態を示す図である。
FIG. 3 is a diagram showing states before and after compression in blank line compression processing in the document processing apparatus according to the present invention.

【図4】本発明に係る文書処理装置における空行の圧縮
処理における圧縮前後の状態を示す図である。
FIG. 4 is a diagram showing states before and after compression in blank line compression processing in the document processing apparatus according to the present invention.

【図5】本発明に係る文書処理装置における空行の圧縮
処理における圧縮前後の状態を示す図である。
FIG. 5 is a diagram showing states before and after compression in blank line compression processing in the document processing apparatus according to the present invention.

【図6】本発明に係る文書処理装置における行を構成す
るセルの基本データ構造を示す図である。
FIG. 6 is a diagram showing a basic data structure of cells forming a row in the document processing apparatus according to the present invention.

【図7】本発明に係る文書処理装置における表組圧縮メ
イン処理手順の一例を示すフローチャートである。
FIG. 7 is a flowchart showing an example of a table group compression main processing procedure in the document processing apparatus according to the present invention.

【図8】本発明に係る文書処理装置における表組空行圧
縮処理手順の一例を示すフローチャートである。
FIG. 8 is a flowchart showing an example of a table group blank line compression processing procedure in the document processing apparatus according to the present invention.

【図9】本発明に係る文書処理装置における複数表組間
空行圧縮処理手順の一例を示すフローチャートである。
FIG. 9 is a flowchart showing an example of a blank line compression processing procedure between a plurality of table groups in the document processing apparatus according to the present invention.

【図10】本発明に係る文書処理装置における空行のサ
ーチ処理手順の一例を示すフローチャートである。
FIG. 10 is a flowchart showing an example of a blank line search processing procedure in the document processing apparatus according to the present invention.

【図11】本発明に係る文書処理装置における文字列行
のサーチ処理手順の一例を示すフローチャートである。
FIG. 11 is a flowchart showing an example of a character string row search processing procedure in the document processing apparatus according to the present invention.

【図12】本発明に係る文書処理装置における指定行形
序取得処理手順の一例を示すフローチャートである。
FIG. 12 is a flowchart showing an example of a specified line pattern acquisition processing procedure in the document processing apparatus according to the present invention.

【図13】本発明に係る文書処理装置におけるセルデー
タ移動処理手順の一例を示すフローチャートである。
FIG. 13 is a flowchart showing an example of a cell data movement processing procedure in the document processing apparatus according to the present invention.

【図14】本発明に係る文書処理装置における空行数カ
ウント処理手順の一例を示すフローチャートである。
FIG. 14 is a flowchart showing an example of a blank line count processing procedure in the document processing apparatus according to the present invention.

【図15】本発明に係る文書処理装置における空行の挿
入処理における挿入前後の状態を示す図である。
FIG. 15 is a diagram showing states before and after insertion in a blank line insertion process in the document processing apparatus according to the present invention.

【図16】本発明に係る文書処理装置における空行の挿
入処理における挿入前後の状態を示す図である。
FIG. 16 is a diagram showing states before and after insertion in a blank line insertion process in the document processing apparatus according to the present invention.

【図17】本発明に係る文書処理装置における空行の挿
入処理における挿入前後の状態を示す図である。
FIG. 17 is a diagram showing states before and after insertion in a blank line insertion process in the document processing apparatus according to the present invention.

【図18】本発明に係る文書処理装置における空行の挿
入処理における挿入前後の状態を示す図である。
FIG. 18 is a diagram showing states before and after insertion in blank line insertion processing in the document processing apparatus according to the present invention.

【図19】本発明に係る文書処理装置における空行挿入
処理手順の一例を示すフローチャートである。
FIG. 19 is a flowchart showing an example of a blank line insertion processing procedure in the document processing apparatus according to the present invention.

【図20】本発明に係る文書処理装置における指定行の
形状取得処理の一例を示すフローチャートである。
FIG. 20 is a flowchart showing an example of shape acquisition processing of a designated line in the document processing apparatus according to the present invention.

【図21】本発明に係る文書処理装置における文字列行
のサーチ処理手順の一例を示すフローチャートである。
FIG. 21 is a flowchart showing an example of a character string row search processing procedure in the document processing apparatus according to the present invention.

【図22】本発明に係る文書処理装置における空行のサ
ーチ処理手順の一例を示すフローチャートである。
FIG. 22 is a flowchart showing an example of a blank line search processing procedure in the document processing apparatus according to the present invention.

【図23】本発明に係る文書処理装置における空行の挿
入実行処理手順の一例を示すフローチャートである。
FIG. 23 is a flowchart showing an example of a blank line insertion execution processing procedure in the document processing apparatus according to the present invention.

【図24】本発明に係る文書処理装置における複数表組
空行挿入処理手順の一例を示すフローチャートである。
FIG. 24 is a flow chart showing an example of a multiple table group blank line insertion processing procedure in the document processing apparatus according to the present invention.

【図25】本発明に係る文書処理装置における同一表組
作成処理手順の一例を示すフローチャートである。
FIG. 25 is a flowchart showing an example of the same table group creation processing procedure in the document processing apparatus according to the present invention.

【図26】本発明に係る文書処理装置における複数表組
空行挿入実行処理手順の一例を示すフローチャートであ
る。
FIG. 26 is a flowchart showing an example of a multiple table group blank line insertion execution processing procedure in the document processing apparatus according to the present invention.

【図27】この種の文書処理装置における表組の圧縮処
理における圧縮前後の状態を示す図である。
FIG. 27 is a diagram showing states before and after compression in a table group compression process in this type of document processing apparatus.

【図28】この種の文書処理装置における表組の空行挿
入処理における空行挿入前後の状態を示す図である。
FIG. 28 is a diagram showing states before and after blank line insertion in a blank line insertion process of a table set in this type of document processing apparatus.

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

1 CRT表示部 2 VRAM 3 表示制御部 4 MPU 5 主メモリ 6 ハードディスク 8 キーボード 9 ポインティングデバイス 1 CRT display section 2 VRAM 3 display control section 4 MPU 5 main memory 6 hard disk 8 keyboard 9 pointing device

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 表示手段に表示された表組の各セルに所
望の文字列入力編集を行う文書処理装置において、表組
内同一行の各セルに文字列のない空行を取得する取得手
段と、前記表組の各セルに入力されているデータ中から
移動すべき所望の対象データを指定する指定手段と、前
記空行の下方行に入力されているデータ中から前記指定
手段で指定された対象データを上方行へ移動して前記取
得手段により取得された空行を圧縮する圧縮手段とを具
備したことを特徴とする文書処理装置。
1. A document processing apparatus for inputting and editing a desired character string to each cell of a table set displayed on a display means, and acquiring means for acquiring an empty line having no character string in each cell of the same row in the table set. And a designating means for designating desired target data to be moved from the data entered in each cell of the table set, and a designating means designated by the designating means from the data input in the lower row of the blank line. And a compressing unit that compresses the blank line acquired by the acquiring unit by moving the target data to an upper line.
【請求項2】 圧縮手段は、空行の下方行に入力されて
いるデータ中から指定手段で指定された対象データを複
数表組間において上方行へ移動して取得手段により取得
された空行を圧縮することを特徴とする請求項1記載の
文書処理装置。
2. The blank means obtained by the obtaining means by moving the target data designated by the designating means from the data inputted in the lower row of the blank row to the upper row between the plurality of table sets, by the obtaining means. The document processing apparatus according to claim 1, wherein the document is compressed.
【請求項3】 指定手段は、表組の各セルに入力された
文字列データまたは表組の各セルのデータを対象データ
とすることを特徴とする請求項1または請求項2記載の
文書処理装置。
3. The document processing according to claim 1, wherein the designating means sets the character string data input to each cell of the table set or the data of each cell of the table set as the target data. apparatus.
【請求項4】 表示手段に表示された表組の各セルに所
望の属性を指定しながら文字列入力編集を行う文書処理
装置において、前記表組内同一行の各セルに文字列のな
い空行を挿入する位置を指定する第1の指定手段と、前
記表組の各セルに入力されているデータ中から移動すべ
き所望の対象データを指定する第2の指定手段と、第1
の指定手段により指定された位置から下方行へ前記第2
の指定手段で指定された対象データを移動して前記空行
を挿入する挿入手段を具備したことを特徴とする文書処
理装置。
4. A document processing apparatus for inputting and editing a character string while designating a desired attribute to each cell of the table set displayed on the display means, wherein each cell in the same row in the table set has no character string. First designating means for designating a position to insert a row, second designating means for designating desired target data to be moved from the data inputted in each cell of the table set,
From the position designated by the designation means to the second line
A document processing apparatus comprising: an inserting unit for moving the target data designated by the designating unit to insert the blank line.
【請求項5】 挿入手段は、第1の指定手段により指定
された位置から複数の表組間で対象データを下方行へ移
動して空行を挿入することを特徴とする請求項4記載の
文書処理装置。
5. The inserting means inserts a blank line by moving the target data to a lower row between a plurality of table sets from the position designated by the first designating means. Document processing device.
【請求項6】 第2の指定手段は、表組の各セルに入力
された文字列データまたは表組の各セルのデータを対象
データとすることを特徴とする請求項3または請求項4
記載の文書処理装置。
6. The method according to claim 3, wherein the second designating means sets the character string data input to each cell of the table set or the data of each cell of the table set as the target data.
Document processing device described.
JP4054191A 1992-02-06 1992-02-06 Document processor Pending JPH05216881A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4054191A JPH05216881A (en) 1992-02-06 1992-02-06 Document processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4054191A JPH05216881A (en) 1992-02-06 1992-02-06 Document processor

Publications (1)

Publication Number Publication Date
JPH05216881A true JPH05216881A (en) 1993-08-27

Family

ID=12963660

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4054191A Pending JPH05216881A (en) 1992-02-06 1992-02-06 Document processor

Country Status (1)

Country Link
JP (1) JPH05216881A (en)

Similar Documents

Publication Publication Date Title
EP0051857B1 (en) Method for editing document
US6963672B1 (en) Image processing apparatus, image processing method and storage medium
US5878198A (en) Information processing apparatus and method and memory medium storing information processing program
US5867159A (en) Document processing apparatus for displaying a plurality of ruled lines at regular intervals
JP2005044279A (en) Method, program and apparatus for business form processing
US5493639A (en) Drawing processing with flexible accomodation of character strings
JPH0812663B2 (en) Image processing system and method thereof
JP3083314B2 (en) Document processing method and apparatus
JPH0541997B2 (en)
JPH05216881A (en) Document processor
US5890179A (en) Figure editing apparatus and method for displaying edited objects in a form different from objects not yet edited
JP3471818B2 (en) Document processing method and apparatus
JPH0816575A (en) Document processing method
JPH0567096A (en) Document processing method and device
JP2851840B2 (en) Document processing device
JPH09167110A (en) Method and device for managing file
JP3467318B2 (en) Document information processing apparatus and document information processing method
JPH08137853A (en) Document processor
JP2547797B2 (en) Document processing method
JPH08202695A (en) Device and method for ruled-line processing
JPH0664597B2 (en) Display control method
JPH08137976A (en) Document processor
JPH08292992A (en) Device and method for document processing
JPH0644251A (en) Menu display method
JPH05135050A (en) Line segment attribute display method

Legal Events

Date Code Title Description
FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20071213

Year of fee payment: 12

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081213

Year of fee payment: 13

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081213

Year of fee payment: 13

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091213

Year of fee payment: 14

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 14

Free format text: PAYMENT UNTIL: 20091213

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101213

Year of fee payment: 15

LAPS Cancellation because of no payment of annual fees