JPH0754516B2 - Table ruled line moving method - Google Patents
Table ruled line moving methodInfo
- Publication number
- JPH0754516B2 JPH0754516B2 JP1270014A JP27001489A JPH0754516B2 JP H0754516 B2 JPH0754516 B2 JP H0754516B2 JP 1270014 A JP1270014 A JP 1270014A JP 27001489 A JP27001489 A JP 27001489A JP H0754516 B2 JPH0754516 B2 JP H0754516B2
- Authority
- JP
- Japan
- Prior art keywords
- block
- ruled line
- pointer
- information memory
- memory
- 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
Links
Landscapes
- Document Processing Apparatus (AREA)
Description
【発明の詳細な説明】 <産業上の利用分野> 本発明は、コンピュータやワードプロセッサなどの情報
処理装置の画面に表示された表中の罫線を効率良く移動
するための方式に関する。The present invention relates to a method for efficiently moving ruled lines in a table displayed on the screen of an information processing device such as a computer or a word processor.
<従来の技術> 従来、例えばワードプロセッサによって、文字や図形を
含み、格子状でない縦,横の罫線で区切られた複雑な表
を編集する場合、表の枠には罫線編集機能を用い、各枠
内の文字や図形には文字,図形編集機能を用いて表全体
を構築している。<Prior Art> Conventionally, when editing a complicated table that includes characters and figures and is separated by vertical and horizontal ruled lines that are not in a grid pattern by a word processor, for example, the ruled line editing function is used for the frame of the table and each frame is edited. The entire table is constructed using the character and figure editing functions for the letters and figures inside.
<発明が解決しようとする課題> ところが、上記従来の編集方法で表中の罫線を移動する
場合、罫線作成モードを指定してこのモードに入った
後、移動したい罫線やカーソルやマウスにより領域指定
で選択し、移動先の位置を指定して罫線を移動させた
後、罫線からはみ出したり罫線にまたがったりした表中
の文字や図形を再編集しなければならない。そのため、
一直線上にある複数の罫線を同じように移動させようと
すると、移動に長時間を要したり、移動や文字,図形の
再編集に伴ってカーソル等の操作が煩雑になるという欠
点がある。<Problems to be solved by the invention> However, when moving the ruled lines in the table by the above-mentioned conventional editing method, after specifying the ruled line creation mode and entering this mode, the area is specified by the desired ruled line or cursor or mouse. After moving the ruled line by selecting with, and specifying the position of the move destination, you must re-edit the characters and figures in the table that protrude from the ruled line or straddle the ruled line. for that reason,
If a plurality of ruled lines on a straight line are to be moved in the same way, there are disadvantages that it takes a long time to move and the operation of a cursor or the like becomes complicated due to movement and re-editing of characters and figures.
そこで、本発明の目的は、罫線で区切られる各ブロック
内の文字,図形データとは別に、各ブロックの座標,寸
法およびブロック相互の幾何学的関連性をブロック毎に
記憶する矩形情報メモリを用いることによって、表の全
範囲あるいは選択したブロックの範囲内で指定された複
数の罫線を種々のモードで容易かつ効率的に移動するこ
とができる表の罫線移動方式を提供することにある。Therefore, an object of the present invention is to use a rectangular information memory that stores, for each block, the coordinates, dimensions, and mutual geometrical relation of each block, in addition to the character and graphic data in each block separated by ruled lines. Thus, it is possible to provide a table ruled line moving method capable of easily and efficiently moving a plurality of ruled lines designated in the entire range of the table or within the range of the selected block in various modes.
<課題を解決するための手段> 上記目的を達成するため、本発明の表の罫線移動方式
は、入力部から入力される情報に基づいて、CPUにより
プログラムにしたがってメモリの内容を参照,変更しつ
つ表示データを生成し、この表示データを表示部に文字
や図形を含む表として表示する情報処理装置において、
上記表中の縦,横の罫線で区切られる各ブロックの文
字,図形データをブロック毎に格納する内容情報メモリ
と、上記各ブロックのデータ種別,始点座標,幅,高
さ、隣接するブロックの矩形情報メモリへのポインタ、
移動に関係するブロックの矩形情報メモリへのチェーン
ポインタ、上記内容情報メモリの対応するエリアへのデ
ータポインタをブロック毎に格納する矩形情報メモリ
と、上記表の原点からx,y座標値を夫々漸増したとき、
次々最初に現われるブロックの矩形情報メモリへのポイ
ンタを順次格納するブロックインデックスメモリと、上
記表の全範囲あるいは選択したブロックの範囲内で一直
線上にある移動すべき罫線を指定し、指定した罫線の移
動モードを第1乃至第3モードのいずれかに選択した
後、移動量を決定する座標入力手段と、この座標入力手
段で第1モードが選択されたとき、指定された罫線をそ
の両側の最寄りの罫線の範囲内で、第2モードが選択さ
れたとき、指定された罫線およびこの罫線より前側にあ
る総ての罫線を指定された罫線の後側の最寄りの罫線の
範囲内で、第3モードが選択されたとき、指定された罫
線およびこの罫線より後側にある総ての罫線を指定され
た罫線の前側の最寄りの罫線の範囲内で夫々移動可能に
する移動範囲設定手段と、上記座標入力手段で指定され
た罫線を挾む前,後のブロックおよび指定された罫線に
またがる中間のブロックの矩形情報メモリの夫々を、前
ブロック,後ブロック,中間ブロックの各ポインタチェ
ーンでつなぐべく上記矩形情報メモリにチェーンポイン
タを設定するポインタ設定手段と、第1モード選択時
に、座標入力手段で決定された移動量に基づいて、前ブ
ロック,後ブロックポインタチェーンで夫々互いにつな
がれた矩形情報メモリ中の始点座標,幅,高さのデータ
および内容情報メモリの対応するエリアへのデータポイ
ンタを更新して再描画した後、後ブロックポインタチェ
ーンで互いにつながれた矩形情報メモリ中のポインタお
よびブロックインデックスメモリのポインタを、罫線移
動後の各ブロック相互の位置関係に基づいて更新し、第
2または第3モード選択時に、前ブロック,後ブロッ
ク,中間ブロックポインタチェーンで夫々互いにつなが
れた矩形情報メモリ中の始点座標,幅,高さのデータお
よび内容情報メモリの対応するエリアへのデータポイン
タを更新して再描画するメモリ更新手段を備えて、座標
入力手段によって罫線を所望の移動モードと移動量で移
動させることを特徴とする。<Means for Solving the Problems> In order to achieve the above object, the ruled line moving method of the table of the present invention refers to and changes the contents of the memory according to the program by the CPU based on the information input from the input unit. While generating display data while displaying the display data as a table including characters and graphics on the display unit,
A content information memory that stores the character and graphic data of each block delimited by the vertical and horizontal ruled lines in the above table for each block, the data type of each block, the starting point coordinates, the width, the height, and the rectangle of the adjacent block. Pointer to information memory,
Chain pointer to the rectangular information memory of the block related to movement, rectangular information memory that stores the data pointer to the corresponding area of the above content information memory for each block, and the x and y coordinate values from the origin of the above table are gradually increased When I did
Specify the block index memory that sequentially stores the pointer to the rectangular information memory of the first block that appears next, and the ruled lines that should be moved in a straight line within the entire range of the above table or the range of the selected block, and specify the specified ruled line. After selecting the movement mode from one of the first to third modes, the coordinate input means for determining the movement amount, and when the first mode is selected by this coordinate input means, the designated ruled line is closest to both sides thereof. When the second mode is selected within the range of the ruled line of, the specified ruled line and all the ruled lines before this ruled line are set to the third ruler within the range of the nearest ruled line behind the specified ruled line. When the mode is selected, the movement range setting procedure that makes it possible to move the specified ruled line and all the ruled lines behind this ruled line within the range of the nearest ruled line in front of the specified ruled line. And the rectangular information memory of the block before and after the ruled line specified by the coordinate input means and the intermediate block straddling the specified ruled line by the pointer chain of the front block, the back block, and the intermediate block, respectively. Pointer setting means for setting a chain pointer in the rectangular information memory to be connected, and rectangular information connected to each other by the front block and rear block pointer chains based on the movement amount determined by the coordinate input means when the first mode is selected. Pointer and block index in rectangular information memory that is connected to each other in the subsequent block pointer chain after updating and redrawing the data pointer of the start point coordinate, width and height in memory and the corresponding information memory area Move the memory pointer based on the positional relationship between the blocks after moving the ruled lines. When the second or third mode is selected, the starting point coordinates, width, and height data in the rectangular information memory connected to each other by the front block, rear block, and intermediate block pointer chain, and the corresponding area of the content information memory It is characterized in that it is provided with a memory updating means for updating and redrawing the data pointer to, and moving the ruled line in a desired movement mode and movement amount by the coordinate input means.
<作用> 表示部の画面上に表示された表中の各ブロックの文字,
図形データは、内容情報メモリに、各ブロックの始点座
標,幅,高さおよび上記内容情報メモリへのデータポイ
ンタは、矩形情報メモリに夫々ブロック毎に格納されて
いる。<Operation> Characters of each block in the table displayed on the screen of the display,
The graphic data is stored in the content information memory, and the starting point coordinates, width, and height of each block and the data pointer to the content information memory are stored in the rectangular information memory for each block.
いま、座標入力手段によって、上記表の全範囲あるいは
選択したブロックの範囲内で一直線上にある移動すべき
罫線が指定され、移動モードが選択されると、移動範囲
設定手段は、第1モード選択時に指定された罫線をその
両側の最寄り罫線の範囲内で、第2モードまたはその第
3モード選択時に指定された罫線およびこの罫線より前
側または後側にある総ての罫線を指定された罫線の後側
または前側の最寄りの罫線の範囲内で夫々移動可能にす
る一方、ポインタ設定手段は、指定された罫線を挾む
前,後のブロックおよびこの罫線にまたがる中間のブロ
ックの矩形情報メモリの夫々を、前ブロック,後ブロッ
ク,中間ブロックの各ポインタチェーンでつなぐべく上
記矩形情報メモリにチェーンポインタを設定する。Now, when the coordinate input means specifies a ruled line to be moved on a straight line within the entire range of the above table or the range of the selected block, and the movement mode is selected, the movement range setting means causes the movement range setting means to select the first mode. The ruled line specified at that time is within the range of the nearest ruled lines on both sides of the ruled line specified when the second mode or the third mode is selected, and all ruled lines before or after this ruled line are specified. While allowing movement within the range of the nearest ruled line on the rear side or the front side, the pointer setting means respectively sets the rectangular information memories of blocks before and after the specified ruled line and an intermediate block straddling the ruled line. Is set in the rectangular information memory in order to connect with the pointer chains of the front block, the rear block, and the intermediate block.
次に、上記範囲内で移動可能にされた罫線の移動量が座
標入力手段により決定されると、メモリ更新手段は、上
記移動量に基づいて、第1モード選択時に、前ブロッ
ク,後ブロックポインタチェーンで夫々互いにつながれ
た矩形情報メモリ中の始点座標,幅,高さのデータおよ
び内容情報メモリの対応するエリアへのデータポインタ
を更新して再描画した後、後ブロックポインタチェーン
で互いにつながれた矩形情報メモリ中のポインタおよび
ブロックインデックスメモリのポインタを、罫線移動後
の各ブロック相互の位置関係に基づいて更新し、第2ま
たは第3モード選択時に、前ブロック,後ブロック,中
間ブロックポインタチェーンで夫々互いにつながれた矩
形情報メモリ中の始点座標,幅,高さのデータおよび内
容情報メモリの対応するエリアへのデータポインタを更
新して再描画する。こうして、座標入力手段により画面
上で指定された罫線が、選択された移動モードと所望の
移動量で迅速に移動せしめられ、移動に関係するブロッ
ク内の文字や図形も自動的に再編集される。Next, when the amount of movement of the ruled line which is movable within the above range is determined by the coordinate input means, the memory updating means, based on the above movement amount, selects the previous block and the subsequent block pointers when the first mode is selected. Rectangle connected to each other by a chain. After starting point coordinates, width, and height data in the information memory and the data pointer to the corresponding area of the content information memory are updated and redrawn, a rectangle connected to each other by the post block pointer chain. The pointer in the information memory and the pointer in the block index memory are updated based on the positional relationship between the blocks after the ruled line is moved, and when the second or third mode is selected, the previous block, the subsequent block, and the intermediate block pointer chain are respectively updated. Correspondence of start point coordinates, width, height data and content information memory in rectangular information memory connected to each other To update the data pointer to that area to re-draw. Thus, the ruled line designated on the screen by the coordinate input means is quickly moved in the selected movement mode and the desired movement amount, and the characters and figures in the block related to the movement are also automatically edited. .
<実施例> 以下、本発明を図示の実施例により詳細に説明する。<Examples> Hereinafter, the present invention will be described in detail with reference to illustrated examples.
第1図は、本発明の表の罫線移動方式を採用したワード
プロセッサの一実施例を示すブロック図である。このワ
ードプロセッサは、キー入力装置2から入力される情報
に基づいてCPU1によって、プログラムメモリ6の表ブロ
ック生成プログラム6aにしたがい、データメモリ7の表
ブロック情報メモリ7aを参照,変更しつつ表ブロック情
報を生成し、これを縦横の罫線で区切られた複数のブロ
ックからなる表として、表示メモリ4を介して表示装置
5に表示する一方、プログラムメモリ6の文字,図形生
成プログラム6bにしたがって文字,図形データを生成
し、これをデータメモリ7の内容情報メモリ7bに格納す
るとともに、表示装置5の画面上の上記複数のブロック
中に表示メモリ4を介して表示するようになっている。
また、上記ワードプロセッサには、表示装置5の画面上
に表示された表の全範囲あるいは選択したブロックの範
囲内で一直線上にある移動すべき罫線を指定し、指定し
た罫線の移動モードを第1〜第3モードのいずれかに選
択した後、移動量を決定するためのマウス等の座標入力
装置3を設けている。FIG. 1 is a block diagram showing an embodiment of a word processor adopting the ruled line moving method of the table of the present invention. According to the table block generation program 6a of the program memory 6 by the CPU 1 based on the information input from the key input device 2, this word processor refers to the table block information memory 7a of the data memory 7 and changes the table block information while changing the table block information memory 7a. The generated data is displayed as a table composed of a plurality of blocks separated by vertical and horizontal ruled lines on the display device 5 through the display memory 4, while the characters in the program memory 6 and the character and graphic data are generated according to the graphic generation program 6b. Is generated, stored in the content information memory 7b of the data memory 7, and displayed via the display memory 4 in the plurality of blocks on the screen of the display device 5.
Further, in the word processor, a ruled line to be moved on a straight line within the entire range of the table displayed on the screen of the display device 5 or the range of the selected block is designated, and the designated ruled line movement mode is set to the first mode. A coordinate input device 3 such as a mouse for determining the amount of movement after selecting one of the third modes is provided.
第3図は、上記データメモリ7の詳細を示しており、上
記表ブロック情報メモリ7aは、画面上に例えば第2図の
如く表示されるa〜dの各ブロックの構造情報をブロッ
ク毎に格納する矩形情報メモリ11a〜11dと、第2図の表
の原点(x1,y1)に関する各ブロックの配置順序をその
矩形情報メモリへのポインタの序列として格納するブロ
ックインデックスメモリ12と、上記座標入力装置3で指
定された移動すべき罫線を挾む前側(縦罫線なら左側,
横罫線なら上側)のブロックの矩形情報メモリへのポイ
ンタ(c)を格納するブロック選択情報メモリ13からな
り、一方、上記内容情報メモリ7bは、各ブロックの内容
たる文字,図形データをブロック毎に格納する。FIG. 3 shows the details of the data memory 7, and the table block information memory 7a stores the structural information of each block of a to d displayed on the screen as shown in FIG. 2 for each block. Rectangular information memories 11a to 11d, a block index memory 12 for storing the arrangement order of blocks with respect to the origin (x1, y1) in the table of FIG. 2 as an order of pointers to the rectangular information memory, and the coordinate input device. Front side of the ruled line specified by 3 to move (left side if vertical ruled line,
A block selection information memory 13 for storing a pointer (c) to a rectangular information memory of a block in the case of a horizontal ruled line) is provided. On the other hand, the content information memory 7b is provided with the character and graphic data as the content of each block for each block. Store.
上記各矩形情報メモリ11には、上から順に対応するブロ
ックのデータ種別(文字または図形)、始点座標(左上
隅部のx,y座標)、幅,高さ、下および右に連なるブロ
ックの矩形情報メモリへのポインタ、後述するチェーン
ポインタ,内容情報メモリ7bの対応するエリアへのデー
タポインタが格納される。矩形情報メモリ11中のnil
は、ポインタがないことを示している。また、上記イン
デックスメモリ12は、xパートとyパートに分かれてお
り、第2図の表の原点(x1,y1)からx,y座標値を夫々漸
増したとき次々最初に現われるブロックの矩形情報メモ
リへのポインタが夫々上記xパート,yパートに順次格納
されている。なお、図示の矩形情報メモリ11a,11b,11c,
11dのデータ種別は11bを除いて文字(TEXT)であるの
で、内容情報メモリ7bの11a,11c,11dに対応するエリア
には例えば図示の如く片仮名文字データが格納され、デ
ータ種別が図形(GRAPHIC)であるメモリ11bに対応する
エリアには図形データが格納される。In each of the above rectangular information memories 11, the data type (character or graphic) of the corresponding block in order from the top, the starting point coordinates (x, y coordinates of the upper left corner), the width, the height, and the rectangle of the blocks connected to the bottom and the right. A pointer to the information memory, a chain pointer described later, and a data pointer to the corresponding area of the content information memory 7b are stored. Nil in rectangle information memory 11
Indicates that there is no pointer. The index memory 12 is divided into an x-part and a y-part, and the rectangular information memory of the block that appears first when the x, y coordinate values are gradually increased from the origin (x1, y1) in the table of FIG. Pointers to are stored in the x-part and the y-part, respectively. The rectangular information memory 11a, 11b, 11c,
Since the data type of 11d is character (TEXT) except 11b, katakana character data is stored in the area corresponding to 11a, 11c, 11d of the content information memory 7b as shown in the figure, and the data type is graphic (GRAPHIC The graphic data is stored in the area corresponding to the memory 11b.
また、上記ブロック選択情報メモリ13には、上から順に
は、罫線移動に関係するブロック群の開始位置を示すブ
ロックインデックスメモリ12へのポインタ、ブロック群
(c,d)の始点座標(x2,y2)、ブロック群の幅と高さ
(w3,h3+h4)、ブロック群の終点座標(x2+w3,y3+h
4)、ブロック群中のブロックの総数(2)、前側のブ
ロックの矩形情報メモリへのポインタ(c)が格納され
る。Further, in the block selection information memory 13, in order from the top, a pointer to the block index memory 12 indicating the start position of the block group related to ruled line movement, and the starting point coordinates (x2, y2) of the block group (c, d). ), Block group width and height (w3, h3 + h4), block group end point coordinates (x2 + w3, y3 + h)
4) The total number of blocks in the block group (2) and the pointer (c) to the rectangular information memory of the preceding block are stored.
一方ワードプロセッサのCPU1は、移動範囲設定手段,ポ
インタ設定手段およびメモリ更新手段を兼ねる。即ち、
移動範囲設定手段としてのCPU1は、座標入力装置3によ
る第1モード選択時に、指定された罫線をその両側の最
寄りの罫線の範囲内で、第2モードまたは第3モード選
択時に、指定された罫線およびこの罫線より前側または
後側にある総ての罫線を指定された罫線の後側または前
側の最寄りの罫線の範囲内で夫々移動可能にする(第7
図のステップS5〜S8参照)。ポインタ設定手段としての
CPU1は、例えば座標入力装置3で第2図に示す罫線Lが
指定されると、この罫線を挾む前,後のブロックc,dお
よびこの罫線にまたがる中間のブロックbの矩形情報メ
モリ11c,11d,11bの夫々を、前ブロック,後ブロック,
中間ブロックの各ポインタチェーンでつなぐべく上記矩
形情報メモリ11c,11d,11bにチェーンポインタを設定す
る。この例では、第4,6図の例と異なり指定された罫線
が1本なので、上記各ポインタチェーンで互いにつなが
れる前,後,中間のブロックはなく、矩形情報メモリの
最下位左側にはチェーンポインタは設定されない。On the other hand, the CPU 1 of the word processor also serves as a moving range setting means, a pointer setting means, and a memory updating means. That is,
When the first mode is selected by the coordinate input device 3, the CPU 1 as the movement range setting means sets the specified ruled line within the range of the nearest ruled lines on both sides of the specified ruled line when selecting the second mode or the third mode. And all the ruled lines on the front side or the rear side of this ruled line can be moved within the range of the nearest ruled line on the rear side or the front side of the specified ruled line, respectively.
(See steps S5 to S8 in the figure). As a pointer setting means
When the ruled line L shown in FIG. 2 is designated by the coordinate input device 3, for example, the CPU 1 receives the rectangular information memory 11c of blocks c and d before and after the ruled line and an intermediate block b straddling the ruled line. Each of 11d and 11b is a front block, a rear block,
Chain pointers are set in the rectangular information memories 11c, 11d, 11b so as to be connected by the pointer chains of the intermediate blocks. In this example, unlike the examples in FIGS. 4 and 6, since there is one designated ruled line, there are no blocks before, after, and in the middle that are connected to each other by the above pointer chains, and there is no chain on the bottom left side of the rectangular information memory. The pointer is not set.
また、メモリ更新手段としてのCPU1は、選択された第1
〜第3の移動モードに応じた範囲内で移動可能にされた
罫線の移動量が座標入力装置3によって決定されると
(第7図のステップS13参照)、第4図(a)の如く表
の全範囲で一直線上にある縦罫線L1,L2を指定した第1
モードの場合、前ブロック,後ブロックポインタチェー
ンで夫々互いにつながれた矩形情報メモリ(11b,11f;11
c,11g)中の始点座標,幅,高さのデータおよび内容情
報メモリ7bの対応するエリアへのデータポインタを上記
移動量に基づいて更新して再描画した後(第7図のステ
ップS14参照)、後ブロックポインタチェーンで互いに
つながれた矩形情報メモリ(11c,11g)中のポインタお
よびブロックインデックス12のポインタを、罫線移動後
の各ブロック相互の位置関係(第4図(b)参照)に基
づいて更新し(第7図のステップS15参照)、第2モー
ドまたは第6図(b)の如く縦罫線L1,L2を指定した第
3モードの場合、前ブロック,後ブロック,中間ブロッ
クポインタチェーンで夫々互いにつながれた矩形情報メ
モリ(11b,11f;11c,11g;11d;11e)中の始点座標,幅,
高さのデータおよび内容情報メモリ7bの対応するエリア
へのデータポインタを上記移動量に基づいて更新して再
描画する(第7図のステップS16,17参照)。なお、第5
図(a)は、ブロックb,cを選択して罫線L1を指定し、
移動モードに第1モードを選んだ場合を示している。Further, the CPU1 as the memory updating means is the first selected
-When the coordinate input device 3 determines the movement amount of the ruled line that is movable within the range corresponding to the third movement mode (see step S13 in FIG. 7), the table shown in FIG. The first with vertical ruled lines L 1 and L 2 that are on a straight line in the entire range of
In the case of the mode, a rectangular information memory (11b, 11f; 11
(c, 11g) After starting point coordinates, width, height data and the data pointer to the corresponding area of the content information memory 7b are updated based on the movement amount and redrawn (see step S14 in FIG. 7). ), The pointer in the rectangular information memory (11c, 11g) connected to each other in the rear block pointer chain and the pointer of the block index 12 are based on the positional relationship between the blocks after the ruled line movement (see FIG. 4 (b)). Updated (see step S15 in FIG. 7) and in the second mode or the third mode in which vertical ruled lines L 1 and L 2 are designated as in FIG. 6 (b), the previous block, the next block, the intermediate block pointer Starting point coordinates, width, in rectangular information memory (11b, 11f; 11c, 11g; 11d; 11e) connected to each other by a chain,
The height data and the data pointer to the corresponding area of the content information memory 7b are updated based on the movement amount and redrawn (see steps S16 and 17 in FIG. 7). The fifth
In the figure (a), select blocks b and c and specify ruled line L 1 ,
The case where the first mode is selected as the movement mode is shown.
上記構成のワードプロセッサによる表の罫線移動方式に
ついて、第7図のフローチャートを参照しつつ次に述べ
る。A table ruled line moving method by the word processor having the above configuration will be described below with reference to the flowchart of FIG.
いま、表示装置5の画面上に表示された表中で座標入力
装置3により、移動すべき罫線を指定し、移動モードを
選択したとする。すると、CPU1は、ステップS1でまず移
動モードを調べ、移動モードが第1モードならば、ステ
ップS2に進んで指定された罫線が選択されたブロックの
領域内にあるか否かを調べる。ステップS1で移動モード
が第2,第3モードである場合およびステップS2で指定さ
れた罫線が選択されたブロックの領域外である場合は、
ステップS3に進んで表全体を選択領域に設定する。次
に、ステップS4で上記選択領域内の矩形情報メモリを調
べ、指定された罫線の直前にあるブロックの矩形情報メ
モリを互いに前ブロックポインタチェーン(prev)で、
罫線の直後にあるブロックの矩形情報メモリを互いに後
ブロックポインタチェーン(post)で、罫線にまたがっ
ているブロックの矩形情報メモリを互いに中間ブロック
ポインタチェーン(midd)で夫々つなぐ。Now, it is assumed that the coordinate input device 3 specifies a ruled line to be moved in the table displayed on the screen of the display device 5 and selects the movement mode. Then, the CPU 1 first checks the moving mode in step S1, and if the moving mode is the first mode, proceeds to step S2 to check whether the specified ruled line is within the selected block area. If the movement mode is the second or third mode in step S1 and the ruled line specified in step S2 is outside the area of the selected block,
In step S3, the entire table is set as the selection area. Next, in step S4, the rectangular information memory in the selected area is checked, and the rectangular information memories of the blocks immediately before the specified ruled line are mutually preceded by the block pointer chain (prev),
The rectangular information memories of the blocks immediately after the ruled lines are connected to each other by the subsequent block pointer chain (post), and the rectangular information memories of the blocks straddling the ruled lines are connected to each other by the intermediate block pointer chain (midd).
そして、ステップS5で再び移動モードを調べ、第1,第2,
第3モードに応じて夫々ステップS6,S7,S8に進み、指定
された罫線等がその前側と後側に夫々どこまで移動でき
るかを調べる。即ち、ステップS6では指定された罫線の
前後に最も近い罫線までの範囲が設定されるのに対し
て、ステップS7では指定された罫線の後側に最も近い罫
線までの範囲が、ステップS8では上記罫線の前側に最も
近い罫線までの範囲が夫々設定される。Then, in step S5, the movement mode is checked again, and the first, second,
According to the third mode, the process proceeds to steps S6, S7 and S8, respectively, and examines how far the designated ruled line and the like can move to the front side and the rear side, respectively. That is, in step S6, the range up to the closest ruled line before and after the specified ruled line is set, whereas in step S7 the range up to the ruled line closest to the rear side of the specified ruled line is set, and in step S8 the above The range up to the ruled line closest to the front side of the ruled line is set respectively.
次に、上記ステップS6に続くステップS9で座標入力装置
3によって入力を行い、移動範囲のチェックをして、ス
テップS10でキャンセル入力なら処理を中止し、移動先
つまり移動量がステップS11で決定されるまで、入力し
た値をステップS12で画面に表示する。そして、ステッ
プS11で移動先が決定されれば、ステップS13で初めの位
置と比較し、実際に移動していなければ処理を終了す
る。一方、実際に移動していれば、ステップS14におい
て先のステップS4で求めた前ブロックポインタチェーン
および後ブロックポインタチェーンにつながれている各
矩形情報メモリ中の構造情報を上記移動量だけ更新して
再描画する。最後に、ステップS15で後ブロックポイン
タチェーンにつながれている矩形情報メモリのもってい
るポインタを他の矩形情報との位置関係から修正する。
また、上記ステップS7およびS8に続く処理も上述のステ
ップS9〜S13の処理と同じであり、最後のステップS16お
よびS17においては、中間ブロックポインタチェーンに
つながれている矩形情報メモリ中の構造情報をも上記移
動量だけ更新して再描画し、この場合は各ブロックの位
置関係は移動前と変わらないからそのまま処理を終了す
る。なお、横方向の罫線移動についての処理も上述と同
様に行われる。Next, in step S9 following step S6, input is performed by the coordinate input device 3, the moving range is checked, and if the cancel input is made in step S10, the process is stopped, and the moving destination, that is, the moving amount is determined in step S11. Until then, the input value is displayed on the screen in step S12. Then, if the movement destination is determined in step S11, it is compared with the initial position in step S13, and if it is not actually moved, the process ends. On the other hand, if it is actually moved, in step S14, the structure information in each rectangular information memory connected to the previous block pointer chain and the subsequent block pointer chain obtained in the previous step S4 is updated by the above movement amount and re-created. draw. Finally, in step S15, the pointer held in the rectangular information memory connected to the rear block pointer chain is corrected from the positional relationship with other rectangular information.
Further, the processing following the steps S7 and S8 is also the same as the processing of the above steps S9 to S13, and in the final steps S16 and S17, the structure information in the rectangular information memory connected to the intermediate block pointer chain is also stored. Only the above movement amount is updated and redrawing is performed. In this case, the positional relationship of each block is the same as that before the movement, and therefore the process is ended as it is. The process for moving the ruled line in the horizontal direction is also performed in the same manner as described above.
以上の罫線移動処理を画面上で図示すれば、第4図
(a)の如き表中でブロックを選択せず罫線L1を指定
し、第1モードを選択すると、罫線L1の延長線上にある
罫線L2も同時に指定され、両罫線L1,L2をその左右の最
寄りの罫線L3,L4の範囲内で左右に平行移動でき、所望
の移動先を決定すれば、第4図(b)に示すように両罫
線L1,L2が同時に右に移動して表示され、ブロックb,fの
幅が広がってブロックb′,f′となり、逆にブロックc,
gの幅が挟まってブロックc′,g′となる。また、第5
図(a)の如き表中でブロックb,cを選択して罫線L1を
指定し、第1モードを選択すると、罫線L1のみをその左
右の最寄りの罫線L3,L4の範囲内で左右に平行移動で
き、所望の移動先を決定すれば、第5図(b)に示すよ
うに罫線L1のみが右に移動して表示され、ブロックbの
幅が広がってブロックb′となる。さらに、第6図
(a)の如き表中でブロックを選択せず罫線L1を指定
し、第3モードを選択すると、罫線L2も同時に指定さ
れ、罫線L1,L2およびそれより右側にある罫線L3,L4を、
それらをその左側の最寄りの罫線L5の範囲内で左右に平
行移動でき、所望の移動先を決定すれば、第6図(b)
に示すように決定L1,L2,L3,L4が同時に右に移動して表
示され、ブロックb,d,fの幅は広がってブロックb′,
d′,f′となり、更にブロックc,e,gの開始位置が右に移
動してブロックc′,e′,g′になることがわかる。同様
のことが、横罫線を移動する場合についてもいえる。If the above ruled line moving process is illustrated on the screen, if the ruled line L 1 is specified without selecting a block in the table as shown in FIG. 4A and the first mode is selected, the ruled line L 1 is extended. A certain ruled line L 2 is also designated at the same time, and both ruled lines L 1 and L 2 can be moved in parallel to the left and right within the range of the nearest ruled lines L 3 and L 4 on the left and right of the ruled line. As shown in (b), both ruled lines L 1 and L 2 are moved and displayed at the same time to the right, and the widths of the blocks b and f are widened to blocks b ′ and f ′.
The width of g is sandwiched to form blocks c ′ and g ′. Also, the fifth
When blocks b and c are selected in the table as shown in Fig. (A), ruled line L 1 is specified, and the first mode is selected, only ruled line L 1 is within the range of the nearest ruled lines L 3 and L 4 on the left and right thereof. When the desired destination is determined, only the ruled line L 1 is moved to the right and displayed as shown in FIG. 5B, and the width of the block b is widened to block b ′. Become. Furthermore, if the ruled line L 1 is specified without selecting a block in the table as shown in FIG. 6A and the third mode is selected, the ruled line L 2 is also specified at the same time, and the ruled lines L 1 and L 2 and the right side thereof are also specified. The ruled lines L 3 and L 4 in
If they can be moved in parallel to the left and right within the range of the nearest ruled line L 5 on the left side and the desired destination is determined, FIG. 6 (b)
As shown in, the determinations L 1 , L 2 , L 3 , L 4 are simultaneously moved to the right and displayed, and the widths of the blocks b, d, and f are expanded and the block b ′,
It can be seen that d ', f'becomes, and the start positions of the blocks c, e, g are further moved to the right to become blocks c', e ', g'. The same applies to the case of moving the horizontal ruled line.
これらの例において、罫線の移動でブロックが拡大,縮
小すると、そのブロックの内容(文字,図形)は矩形情
報メモリ中のデータポインタを更新することによって内
容情報メモリ7bの新たなエリアに対応づけられるので、
画面上の文字や図形は移動後の罫線にまたがったり、は
み出したりすることがない。従って、従来のように罫線
の移動に関係するブロックの内容を再編集する必要がな
くなり、罫線移動が効率化するという利点がある。In these examples, when a block is enlarged or reduced by moving a ruled line, the content (character, figure) of the block is associated with a new area of the content information memory 7b by updating the data pointer in the rectangular information memory. So
Characters and figures on the screen do not straddle the ruled lines after moving or stick out. Therefore, it is not necessary to re-edit the contents of the block related to the movement of the ruled line as in the conventional case, and there is an advantage that the movement of the ruled line becomes efficient.
このように、上記実施例によれば、表示装置5の画面上
に表示された表中で座標入力装置3によって移動すべき
罫線を必要に応じてブロックと共に指定し、移動モード
を選択するだけで、CPU1が、指定された罫線等をブロッ
クの内容を再編集しつつ自動的に一括して移動させるの
で、カーソルやマウスによる煩雑な移動操作やブロック
内容の再編集を要した従来の方式に比べて、はるかに容
易かつ効率的に罫線移動を行うことができる。As described above, according to the above-described embodiment, the ruled line to be moved by the coordinate input device 3 in the table displayed on the screen of the display device 5 is designated together with the block as necessary, and the movement mode is simply selected. , CPU1 automatically moves the specified ruled lines etc. all at once while re-editing the contents of the block, so compared to the conventional method that requires complicated moving operation with the cursor or mouse and re-editing of the block contents. Thus, ruled line movement can be performed much easier and more efficiently.
なお、本発明が図示の実施例に限られないのはいうまで
もない。Needless to say, the present invention is not limited to the illustrated embodiment.
<発明の効果> 以上の説明で明らかなように、本発明の表の罫線移動方
式は、情報処理装置の内容情報メモリに表中の各ブロッ
クの文字,図形データを格納し、矩形情報メモリに各ブ
ロックの幾何学的相互関連性を含む構造情報を格納する
一方、座標入力手段で移動すべき罫線と移動モードと移
動量を指定し、移動範囲設定手段で移動モードに応じて
罫線の移動範囲を設定し、ポインタ設定手段で指定罫線
の前,後および中間のブロックの矩形情報メモリの夫々
を各ポインタチェーンでつなぐとともに、メモリ更新手
段によって移動モードに応じて適宜前,後,中間ポイン
タチェーンに夫々つながる矩形情報メモリ中の構造情報
を上記移動量に基づいて更新して再描画するようにして
いるので、指定された罫線等をブロックの内容を再編集
しつつ自動的に一括して移動でき、カーソル等による煩
雑な移動操作やブロック内容の再編集を要した従来の方
式に比べて、はるかに容易かつ効率的に罫線移動を行う
ことができる。<Effects of the Invention> As is clear from the above description, according to the ruled line moving method of the table of the present invention, the character and graphic data of each block in the table is stored in the content information memory of the information processing apparatus, and the rectangular information memory is stored. While storing the structural information including the geometrical correlation of each block, the coordinate input means specifies the ruled line to be moved, the movement mode and the movement amount, and the movement range setting means determines the movement range of the ruled line according to the movement mode. The pointer setting means connects the rectangular information memories of the front, rear, and middle blocks of the specified ruled line with each pointer chain, and the memory updating means appropriately sets the front, rear, and intermediate pointer chains according to the movement mode. Since the structure information in each connected rectangular information memory is updated and redrawn based on the above movement amount, the contents of the block are reedited such as the specified ruled lines. However, the ruled lines can be moved much more easily and efficiently than in the conventional method that requires a complicated moving operation using a cursor or the like and the re-editing of the block contents.
第1図は本発明の表の罫線移動方式を採用したワードプ
ロセッサの一実施例を示すブロック図、第2図は画面に
表示された表の一例を示す図、第3図は第1図のデータ
メモリの詳細図、第4,5,6図は表における罫線移動の具
体例を示す図、第7図は罫線移動処理の流れを示すフロ
ーチャートである。 1……CPU、3……座標入力装置、 5……表示装置、7……データメモリ、 7a……表ブロック情報メモリ、 7b……内容情報メモリ、 11a〜11d……矩形情報メモリ、 12……ブロックインデックスメモリ、 13……ブロック選択情報メモリ。FIG. 1 is a block diagram showing an embodiment of a word processor adopting a ruled line moving method of a table of the present invention, FIG. 2 is a diagram showing an example of a table displayed on a screen, and FIG. 3 is data of FIG. A detailed view of the memory, FIGS. 4, 5 and 6 are diagrams showing a concrete example of ruled line movement in the table, and FIG. 7 is a flowchart showing a flow of ruled line movement processing. 1 ... CPU, 3 ... coordinate input device, 5 ... display device, 7 ... data memory, 7a ... table block information memory, 7b ... content information memory, 11a to 11d ... rectangle information memory, 12 ... … Block index memory, 13… Block selection information memory.
Claims (1)
Uによりプログラムにしたがってメモリの内容を参照,
変更しつつ表示データを作成し、この表示データを表示
部に文字や図形を含む表として表示する情報処理装置に
おいて、 上記表中の縦,横の罫線で区切られる各ブロックの文
字,図形データをブロック毎に格納する内容情報メモリ
と、 上記各ブロックのデータ種別,始点座標,幅,高さ、隣
接するブロックの矩形情報メモリへのポインタ、移動に
関係するブロックの矩形情報メモリへのチェーンポイン
タ、上記内容情報メモリの対応するエリアへのデータポ
インタをブロック毎に格納する矩形情報メモリと、 上記表の原点からx,y座標値を夫々漸増したとき、次々
最初に現われるブロックの矩形情報メモリへのポインタ
を順次格納するブロックインデックスメモリと、 上記表の全範囲あるいは選択したブロックの範囲内で一
直線上にある移動すべき罫線を指定し、指定した罫線の
移動モードを第1乃至第3モードのいずれかに選択した
後、移動量を決定する座標入力手段と、 この座標入力手段で第1モードが選択されたとき、指定
された罫線をその両側の最寄りの罫線の範囲内で、第2
モードが選択されたとき、指定された罫線およびこの罫
線より前側にある総ての罫線を指定された罫線の後側の
最寄りの罫線の範囲内で、第3モードが選択されたと
き、指定された罫線およびこの罫線より後側にある総て
の罫線を指定された罫線の前側の最寄りの罫線の範囲内
で夫々移動可能にする移動範囲設定手段と、 上記座標入力手段で指定された罫線を挾む前,後のブロ
ックおよび指定された罫線にまたがる中間のブロックの
矩形情報メモリの夫々を、前ブロック,後ブロック,中
間ブロックの各ポインタチェーンでつなくべく上記矩形
情報メモリにチェーンポインタを設定するポインタ設定
手段と、 第1モード選択時に、座標入力手段で決定された移動量
に基づいて、前ブロック,後ブロックポインタチェーン
で夫々互いにつながれた矩形情報メモリ中の始点座標,
幅,高さのデータおよび内容情報メモリの対応するエリ
アへのデータポインタを更新して再描画した後、後ブロ
ックポインタチェーンで互いにつながれた矩形情報メモ
リ中のポインタおよびブロックインデックスメモリのポ
インタを、罫線移動後の各ブロック相互の位置関係に基
づいて更新し、第2または第3モード選択時に、前ブロ
ック,後ブロック,後ブロック,中間ブロックポインタ
チェーンで夫々互いにつながれた矩形情報メモリ中の始
点座標,幅,高さのデータおよび内容情報メモリの対応
するエリアへのデータポインタを更新して再描画するメ
モリ更新手段を備えて、座標入力手段によって罫線を所
望の移動モードと移動量で移動させることを特徴とする
表の罫線移動方式。1. A CP based on information input from an input unit.
U refers to the contents of memory according to the program,
In an information processing device that creates display data while changing and displays this display data as a table containing characters and figures on the display unit, the character and figure data of each block delimited by vertical and horizontal ruled lines in the above table is displayed. Content information memory to be stored for each block, data type of each block, starting point coordinates, width, height, pointer to rectangular information memory of adjacent block, chain pointer to rectangular information memory of block related to movement, A rectangular information memory that stores a data pointer to the corresponding area of the above content information memory for each block, and a rectangular information memory of the block that appears first when the x and y coordinate values are gradually increased from the origin of the above table. Block index memory that stores pointers in sequence, and movement in a straight line within the range of the above table or the range of the selected block After designating a ruled line to be selected and selecting one of the first to third modes as the movement mode of the specified ruled line, coordinate input means for determining the amount of movement, and the first mode is selected by this coordinate input means. When the specified ruled line is within the range of the nearest ruled lines on both sides,
When the mode is selected, the specified ruled line and all the ruled lines before this ruled line are specified when the third mode is selected within the range of the nearest ruled line behind the specified ruled line. The ruled line and all the ruled lines behind this ruled line can be moved within the range of the nearest ruled line in front of the specified ruled line, and the ruled line specified by the above coordinate input means. A chain pointer is set in the rectangular information memory to connect the rectangular information memories of the front block, the rear block, and the intermediate block straddling the specified ruled line with the pointer chains of the front block, the rear block, and the intermediate block. The pointer setting means and the pointer setting chain connected to each other by the front block and the rear block pointer chains based on the movement amount determined by the coordinate input means when the first mode is selected. The starting point coordinates in the rectangle information memory was,
After updating and redrawing the data pointer for the width and height data and the corresponding area of the content information memory, the pointer in the rectangular information memory and the pointer in the block index memory that are connected to each other by the subsequent block pointer chain are set to the ruled line. Updating based on the positional relationship between the blocks after the movement, and when the second or third mode is selected, the starting point coordinates in the rectangular information memory connected to each other by the preceding block, the following block, the following block, and the intermediate block pointer chain, A memory updating unit that updates and redraws the data pointer to the corresponding area of the width and height data and the content information memory is provided, and the ruled line is moved by the coordinate input unit in a desired movement mode and movement amount. Characteristic table ruled line moving method.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1270014A JPH0754516B2 (en) | 1989-10-16 | 1989-10-16 | Table ruled line moving method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1270014A JPH0754516B2 (en) | 1989-10-16 | 1989-10-16 | Table ruled line moving method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH03130867A JPH03130867A (en) | 1991-06-04 |
| JPH0754516B2 true JPH0754516B2 (en) | 1995-06-07 |
Family
ID=17480347
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP1270014A Expired - Fee Related JPH0754516B2 (en) | 1989-10-16 | 1989-10-16 | Table ruled line moving method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0754516B2 (en) |
-
1989
- 1989-10-16 JP JP1270014A patent/JPH0754516B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPH03130867A (en) | 1991-06-04 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP2609744B2 (en) | Image display method and image display device | |
| JPH08235162A (en) | Document preparation device | |
| JPH0363756A (en) | Document editor | |
| JPH0754516B2 (en) | Table ruled line moving method | |
| JPH09259295A (en) | Cad system | |
| JPH0357079A (en) | Graphic register control system | |
| JP2674647B2 (en) | Graphic processing system | |
| JPH0776960B2 (en) | Table ruled line creation method | |
| JP2643617B2 (en) | Method and apparatus for drawing walls or beams in architectural drawings, etc. | |
| JPH0376491B2 (en) | ||
| JPH05314269A (en) | Graph making device | |
| JPH01246673A (en) | Graphic processor | |
| JPS61180283A (en) | Word processor | |
| JP3425771B2 (en) | Figure creation method and apparatus | |
| JPH03194649A (en) | Table structure control system | |
| JPS62115578A (en) | graphic display device | |
| JP2753015B2 (en) | Attribute input method | |
| JPH02143325A (en) | Window displaying system | |
| JPH03141466A (en) | Document control method and document preparing device | |
| JPH0962678A (en) | Handwritten character selection device and handwritten character selection method | |
| JPH01108674A (en) | Document editing device | |
| JPS60172089A (en) | Display unit | |
| JPS62115579A (en) | Graphic figure display control device | |
| JPH04326476A (en) | Graphic preparing device | |
| JPH05173544A (en) | Character and graphic editing device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |