JPH03157756A - Document preparing device - Google Patents

Document preparing device

Info

Publication number
JPH03157756A
JPH03157756A JP1298623A JP29862389A JPH03157756A JP H03157756 A JPH03157756 A JP H03157756A JP 1298623 A JP1298623 A JP 1298623A JP 29862389 A JP29862389 A JP 29862389A JP H03157756 A JPH03157756 A JP H03157756A
Authority
JP
Japan
Prior art keywords
item
items
line
buffer
variable
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
JP1298623A
Other languages
Japanese (ja)
Inventor
Tsutomu Tanaka
努 田中
Masanori Ito
昌典 伊藤
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.)
Sanyo Electric Co Ltd
Original Assignee
Sanyo Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sanyo Electric Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to JP1298623A priority Critical patent/JPH03157756A/en
Publication of JPH03157756A publication Critical patent/JPH03157756A/en
Pending legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

PURPOSE:To improve the operability of the device by constituting the device so that two items are changed by only designating a first item and a second item, and also, in the case other item exists between the items, the position of this item is moved by allowing it to conform with the position of the changed two items. CONSTITUTION:The device is constituted of a keyboard 1, a line counter 2, a cursor counter 3, a control part 4, a text buffer 5, a table frame deciding part 6, a one-line data reading-out part 7, a one-line data writing part 8, a one-line buffer 9, an item changing part 10, a work buffer 11, and a display part 12. Also, it is constituted so that with only designating a first item and a second item, the position of its item is moved by allowing it to conform with the position of the two items after the two items are exchanged even in the case other item exists between two items. In such a way, the change procedure is simplified, and the operability of the device is enhanced.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、文書中に作成された表内の項目入れ替えが可
能なワードプロセッサ等の文書作成装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a document creation device such as a word processor that is capable of replacing items in a table created in a document.

〔従来の技術及び発明が解決しようとする課題]従来の
ワードプロセッサ等の文書作成装置は、複数項目からな
る表内の2つの項目の位置を入れ替える場合、第1の項
目をブロック指定してメモリに記憶させ、第2の項目を
ブロック指定してメモリに記憶させ、さらに第1.第2
の項目間に他の項目がある場合はその項目をブロック指
定してメモリに記憶させた後、それぞれの移動先を指定
して入れ替え、さらに表枠を修正しなくてはならず、項
目入れ替えの手順が繁雑であって装置の操作性が低いと
いう問題があった。
[Prior Art and Problems to be Solved by the Invention] Conventional document creation devices such as word processors, when exchanging the positions of two items in a table consisting of multiple items, block designate the first item and store it in memory. The second item is designated as a block and stored in memory, and the first item is stored in the memory. Second
If there are other items between items, you must specify a block for that item and store it in memory, specify the destination for each item and swap them, and then modify the table frame. There was a problem that the procedure was complicated and the operability of the device was low.

本発明はこのような問題点を解決するためになされたも
のであって、第1の項目と第2の項目とを指定するのみ
で2つの項目を入れ替えるとともに2つの項目間に他の
項目がある場合は、この項目の位置を入れ替え後の2つ
の項目の位置に適合させて移動する構成とすることによ
り、2つの項目入れ替えの手順が簡便であって装置の操
作性が高い文書作成装置の提供を目的とする。
The present invention has been made to solve these problems, and by simply specifying the first item and the second item, the two items can be exchanged and other items can be inserted between the two items. In some cases, by configuring the position of this item to match the position of the two items after swapping and moving it, the procedure for exchanging the two items is simple and the document creation device has high operability. For the purpose of providing.

(課題を解決するための手段) 本発明の文書作成装置は、複数の項目を有する表内の2
つの項目の位置を入れ替え得る文書作成装置において、
入れ替え対象の第1の項目を指定する手段と、入れ替え
対象の第2の項目を指定する手段と、第1の項目及び第
2の項目を指定したあとで、第1の項目と第2の項目と
を入れ替える手段と、第1の項目と第2の項目とを入れ
替える際、2つの項目の間に他の項目がある場合は、入
れ替え後の2つの項目の位置に適合させて他の項目の位
置を移動する手段とを備えたことを特徴とする。
(Means for Solving the Problems) The document creation device of the present invention has two items in a table having a plurality of items.
In a document creation device in which the positions of two items can be swapped,
a means for specifying a first item to be replaced; a means for specifying a second item to be replaced; and a means for specifying a first item and a second item to be replaced; When exchanging the first item and the second item, if there is another item between the two items, the position of the other item is adjusted to fit the position of the two items after the exchange. The apparatus is characterized by comprising a means for moving the position.

〔作用] 本発明の文書作成装置は、第1の項目及び第2の項目を
指定したあとで、第1の項目と第2の項目を入れ替え、
第1.第2の項目間に他の項目がある場合は、入れ替え
後の2つの項目の位置に適合させて他の項目の位置を移
動する。
[Operation] After specifying the first item and the second item, the document creation device of the present invention replaces the first item and the second item,
1st. If there is another item between the second item, the position of the other item is moved to match the position of the two replaced items.

〔実施例) 以下、本発明をその実施例を示す図面に基づき説明する
[Examples] Hereinafter, the present invention will be explained based on drawings showing examples thereof.

第1図は本発明の文書作成装置の一実施例構成を示すブ
ロック図である。図中1は表内の2つの項目入れ替えを
指示するキー、入れ替え対象の項目を指定するキー、実
行キー、取消キー等を備えたキーボードであって、キー
ボードLから入力された指令は制御部4に人力される。
FIG. 1 is a block diagram showing the configuration of an embodiment of the document creation device of the present invention. 1 in the figure is a keyboard equipped with a key for instructing the exchange of two items in the table, a key for specifying the item to be exchanged, an execution key, a cancel key, etc. Commands input from the keyboard L are sent to the control unit 4. is man-powered.

制御部4は入力された指令に従って装置各部のデータ授
受を制御する。行カウンタ2は文書の行数をカウントし
、カーソルカウンタ3は1行内の文字数をカウントする
The control unit 4 controls data exchange between each part of the device according to input commands. A line counter 2 counts the number of lines in a document, and a cursor counter 3 counts the number of characters in one line.

テキストバッファ5は文書を記憶し、表枠判定部6は入
れ替え開始位置から入れ替え先まで又は入れ替え開始行
から入れ替え終了行までの表枠が完全であるか否かを判
定する。1行データ読み出し部7は最大1行分の文書を
テキストバッファ5から読み出して1行バッファ9に格
納する。項目入れ替え部10は1行バッファ9に格納さ
れた最大1行分の文書の複数項目を入れ替えて1行バッ
ファ9と同じサイズに設けた作業バッファ11に書き込
む。1行データ書き込み部8は作業バッファ11に書き
込まれた文書をテキストバッファ5に書き込む。CI’
?T等からなる表示部12はテキストバッファ5の文書
を表示する。
The text buffer 5 stores the document, and the table frame determination unit 6 determines whether the table frame from the replacement start position to the replacement destination or from the replacement start line to the replacement end line is complete. The one-line data reading unit 7 reads a maximum of one line of the document from the text buffer 5 and stores it in the one-line buffer 9. An item replacement unit 10 replaces a plurality of items of a maximum of one line of a document stored in a one-line buffer 9 and writes them into a work buffer 11 provided with the same size as the one-line buffer 9. The one-line data writing section 8 writes the document written in the work buffer 11 into the text buffer 5. CI'
? A display unit 12 consisting of a T or the like displays the document in the text buffer 5.

次に、以上のような構成の文書作成装置による2つの項
目入れ替えの手順を第3図に示すフローチャートに基づ
いて説明する。
Next, a procedure for exchanging two items using the document creation apparatus configured as described above will be explained based on the flowchart shown in FIG.

まず、表内2項目入れ替え指示キーが押されたかどうか
を判定する。キーが押されていた場合、カーソルの位置
が入れ替え可能な項目内に存在するか否かを判定する。
First, it is determined whether the key for instructing the replacement of two items in the table has been pressed. If a key has been pressed, it is determined whether the cursor position is within a swappable item.

カーソルが項目内に存在する場合、カーソル位置を変数
X、Xの直近にある左の罫線位置を変数XL1及び変数
XLW、右の罫線位置を変数XRI及び変数XRWにセ
ットする。次に、入れ替えの第1の項目を明示するため
にXLWよりXRWまでの表示を、例えば点滅等によっ
て変更する。
If the cursor is in the item, the cursor position is set to variable X, the left ruled line position immediately adjacent to X is set to variable XL1 and variable XLW, and the right ruled line position is set to variable XRI and variable XRW. Next, in order to clearly indicate the first item to be replaced, the display from XLW to XRW is changed, for example, by blinking.

次に、項目指定キーが人力されると、キーが人力されて
いる間、第2の項目の指定処理を繰り返す。まず、第1
の項目に対する第2の項目の方向を判定し、第2の項目
が右方向ならフラグ変数5IDE$FGに°1”、左方
向なら“2″°をセットする。
Next, when the item designation key is pressed manually, the second item designation process is repeated while the key is pressed manually. First, the first
The direction of the second item with respect to the item is determined, and if the second item is to the right, the flag variable 5IDE$FG is set to ``1'', and if the second item is to the left, ``2'' is set.

5IDE$FC;が“1゛であればXRWの位置より半
角1字右の位置をカーソル位置変数Xにセットする。5
IDE$FC;が“2′°ならば、XLWの位置より半
角1学友の位置をカーソル位置変数Xにセットする。第
1の項目を指定した時点ではXLWの位置とXLlの位
置とが一致しているので、カーソル位置Xより直近の左
の罫線位置を変数X L 2及び変数XLWに、右の罫
線位置を変数XR2及び変数XRWにセットしてXLW
の位置からXRWの位置までの表示を変更するが、XL
Wの位置とXLIの位置が一致しなければ、XLWの位
置からXRWの位置までの表示を元に戻し、第2の項目
でないことを示す。これを繰り返すと表示を変更しては
元に戻しながら第2の項目の候補が隣の項目へと順次移
行する。
5 If IDE$FC; is "1", set the position one half-width character to the right of the XRW position to the cursor position variable X.5
If IDE$FC; is "2'°, set the position of one half-width alumni from the position of XLW to the cursor position variable X. When the first item is specified, the position of XLW and the position of XLl match. Therefore, set the left ruled line position nearest to the cursor position X to variable X L 2 and variable XLW, set the right ruled line position to variable XR2 and variable XRW, and write XLW.
The display from the position to the XRW position is changed, but the XL
If the W position and the XLI position do not match, the display from the XLW position to the XRW position is returned to its original state, indicating that it is not the second item. When this is repeated, the display is changed and restored, and the candidates for the second item are sequentially shifted to the next item.

以上のようにして、第2の項目候補が決定すると実行キ
ーの入力が可能となり、第1の項目と第2の項目との入
れ替えを行う。表枠判定部6はXL1〜XR2の間が完
全な表枠であるか否かを判定する。表枠が完全である場
合、カーソルのある行の上の横罫線行である入れ替え開
始行を変数S17に、完全な表枠の最も下の横罫線行で
ある終了行を変数ELにセットする。
As described above, when the second item candidate is determined, the execution key can be input, and the first item and the second item are exchanged. The table frame determining unit 6 determines whether or not the area between XL1 and XR2 is a complete table frame. If the table frame is complete, the replacement start line, which is the horizontal ruled line above the row where the cursor is located, is set to variable S17, and the end line, which is the lowest horizontal ruled line of the complete table frame, is set to variable EL.

入れ替え開始行SLを行カウンタ変数MLにセットする
。1行データ読み出し部7は変数MLが指定する1行を
、テキストバッファ5から1行バッファ9へ読み出す。
Set the replacement start row SL to the row counter variable ML. The one-line data reading unit 7 reads one line specified by the variable ML from the text buffer 5 to the one-line buffer 9.

XLIがML2より小さい場合、即ち第2の項目が第1
の項目に対して右方向である場合、XLlからXRIの
間の項目を第1グループ、XRIからML2の間の項目
を第2グループ″、ML2からXR2の間の項目を第3
グループとする。XLlがML2より大きい場合、即ち
第2の項目が第1の項目に対して左方向である場合はX
LIとXL 2とを入れ替え、XRIとXR2とを入れ
替える。
If XLI is smaller than ML2, i.e. the second item is
, the items between XLl and XRI are placed in the first group, the items between XRI and ML2 are placed in the second group, and the items between ML2 and XR2 are placed in the third group.
group. If XLl is greater than ML2, that is, if the second item is to the left with respect to the first item, then
Interchange LI and XL 2, and exchange XRI and XR2.

1行バッファ9と同じサイズの作業バッファIIを設け
、1行バッファ9の内容を作業バッファ11に読み出す
。作業バッファ11の位置を示す変数WPO3にXLI
をセットする。1行バッファ9の項目幅サイズを示す変
数WIDEに“°0”をセットする。
A work buffer II having the same size as the one-row buffer 9 is provided, and the contents of the one-row buffer 9 are read into the work buffer 11. XLI to variable WPO3 indicating the position of work buffer 11
Set. The variable WIDE indicating the item width size of the one-line buffer 9 is set to "°0".

まず、第3グループを移動する。wposにWIDEを
プラスする。1行バッファ9が読み出した行の位置LP
O3にML2をセットする。WIDEにXR2からML
2を引いた第3グループの幅サイズをセットする。1行
バッファ9のLP01を開始位置とするWED巳のサイ
ズ分の内容を作業バッファ11のwposを開始位置と
して書き移す。第3グループの移動が終了すると、CN
Tに“1”をプラスする。
First, move the third group. Add WIDE to wpos. Position LP of the line read by the one-line buffer 9
Set ML2 to O3. ML from XR2 to WIDE
Set the width size of the third group by subtracting 2. The contents corresponding to the size of the WED ring are written starting from LP01 of the one-line buffer 9 and starting from wpos of the work buffer 11. When the movement of the third group is completed, CN
Add “1” to T.

次に、第2グループを移動する。wposに第3グルー
プの項目幅サイズがセットされたWIDEをプラスする
。[、PO5にXRIをセットする。
Next, move the second group. Add WIDE, in which the item width size of the third group is set, to wpos. [, Set XRI to PO5.

WIDEにML2からXRIを引いた第2グループの幅
サイズをセットする。1行バッファ9の[2PoSを開
始位置とするWIDEのサイズ分の内容を作業バッファ
11のwposを開始位置として書き移す。第2グルー
プの移動が終了すると、CNTに“L IIをプラスす
る。
Set the width size of the second group, which is ML2 minus XRI, to WIDE. Transfer the contents of the one-line buffer 9 for the size of WIDE starting from [2PoS] to the work buffer 11 starting from wpos. When the movement of the second group is completed, "L II" is added to CNT.

次に、第1グループを移動する。wposに第2グルー
プの項目幅サイズがセットされたWIDEをプラスする
。LP01にXLIをセットする。
Next, move the first group. WIDE, in which the item width size of the second group is set, is added to wpos. Set XLI to LP01.

WIDEにXRIからXLIを引いた第1グループの幅
サイズをセットする。1行バッファ9のLP01を開始
位置とするWIDEのサイズ分の内容を作業バッファ1
1のwposを開始位置として書き移す。第2グループ
の移動が終了すると、CNTに°′1゛′をプラスする
Set the width size of the first group obtained by subtracting XLI from XRI to WIDE. The contents of WIDE size starting from LP01 of 1-line buffer 9 are transferred to work buffer 1.
Transfer 1 wpos as the starting position. When the movement of the second group is completed, °'1' is added to CNT.

即ち、項目入れ替え部10は1行バッファ9の内容を作
業バッファ11に書き移す際、第1の項目と第2の項目
と第1の項目及び第2の項目間の項目との3つのグルー
プに分け、3つのグループを入れ替えて作業バッファ1
1に書き移すことにより2つの項目を入れ替え、2つの
項目間にある項目を移動後の2つの項目の位置に即した
位置に配する。
That is, when the item replacement unit 10 writes the contents of the one-line buffer 9 to the work buffer 11, it divides the contents into three groups: the first item, the second item, and the item between the first item and the second item. Divide and swap the three groups to work buffer 1.
1, the two items are exchanged and the item between the two items is placed in a position that corresponds to the position of the two items after the move.

1行を書き移した後、1行データ書き込み部8が作業バ
ッファ11の内容をテキストバッファ5に書き込む。表
示部12はMしが指定するテキストバッファ5内の行を
表示部12に表示する。行カウンタ2の変数MLに“1
”をプラスして1行の2つの項目入れ替えが終了する。
After writing one line, the one-line data writing unit 8 writes the contents of the work buffer 11 to the text buffer 5. The display section 12 displays the line in the text buffer 5 specified by M. “1” is set in the variable ML of row counter 2.
” is added to complete the swapping of two items in one line.

以上の動作をMLが最終行ELを越すまでM+、を1行
ずつ移動して2つの項目の入れ替えを完了する。
The above operation is performed until M+ is moved line by line until ML passes the last line EL, completing the replacement of the two items.

第2図は項目移動の画面表示例であって、第2回(a)
に示すような「氏名」 「生年月日」 「趣味」「性別
」 「年齢」の項目からなる表内で第1の項目「趣味」
を指定した後、第2図(b)のように第2の項目「年齢
」を指定するとこれら2つの項目が入れ替わって第2図
(C)のようになる。この場合、「趣味」が前記第1グ
ループに相当し、「性別」が前記第2グループに相当し
、「年齢」が前記第3グループ 第2の項目が第1の項目の左方向である場合、第2の項
目が前記第1グループ、第1の項目が前記第2グループ
に相当する。
Figure 2 is an example of screen display for item movement, and shows the second (a)
The first item ``Hobby'' in the table consisting of ``Name,'' ``Date of Birth,''``Hobbies,''``Gender,'' and ``Age,'' as shown in
After specifying , if you specify the second item "age" as shown in FIG. 2(b), these two items will be swapped and the result will be as shown in FIG. 2(C). In this case, "hobbies" corresponds to the first group, "gender" corresponds to the second group, and "age" corresponds to the third group, and the second item is to the left of the first item. , the second item corresponds to the first group, and the first item corresponds to the second group.

なお、本実施例では表の横方向に項目を入れ替える場合
につき説明したが、縦方向に入れ替える場合に適用する
ことも可能であって、同様の効果が得られる。
Although this embodiment has been described with reference to the case where items are transposed in the horizontal direction of the table, it is also possible to apply this to the case where the items are transposed in the vertical direction, and the same effect can be obtained.

〔発明の効果〕〔Effect of the invention〕

本発明の文書作成装置は、第1の項目と第2の項目とを
指定するのみで、2つの項目間に他の項目がある場合で
あってもその項目の位置を入れ替え後の2つの項目の位
置に適合させて移動して2つの項目を入れ替える構成で
あるので、入れ替え手順が筒便であって装置の操作性が
高いという優れた効果を奏する。
The document creation device of the present invention only specifies the first item and the second item, and even if there is another item between the two items, the position of the item is swapped and the two items are changed. Since the configuration is such that the two items are replaced by moving the device according to the position of the device, the replacement procedure is simple and the device has excellent operability.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の・文書作成装置の構成を示すブロック
図、第2図は画面表示例、第3図は2つの項目入れ替え
の手順を示すフローチャートである。 ■・・・キーボード 2・・・行カウンタ 3・・・カ
ーソルカウンタ 4・・・制御部 5・・・テキストバ
ッファ6・・・表枠判定部 7・・・1行データ読み出
し部8・・・1行データ書き込み部 9・・・1行バッ
ファIO・・・項目入れ替え部 11・・・作業バッフ
ァ12・・・表示部 特 許 出願人
FIG. 1 is a block diagram showing the configuration of the document creation apparatus of the present invention, FIG. 2 is a screen display example, and FIG. 3 is a flowchart showing the procedure for exchanging two items. ■...Keyboard 2...Line counter 3...Cursor counter 4...Control unit 5...Text buffer 6...Table frame determination unit 7...1 line data reading unit 8... 1-line data writing unit 9...1-line buffer IO...Item replacement unit 11...Work buffer 12...Display unit Patent Applicant

Claims (1)

【特許請求の範囲】 1、複数の項目を有する表内の2つの項目の位置を入れ
替え得る文書作成装置において、 入れ替え対象の第1の項目を指定する手段 と、 入れ替え対象の第2の項目を指定する手段 と、 第1の項目及び第2の項目を指定したあと で、第1の項目と第2の項目とを入れ替える手段と、 第1の項目と第2の項目とを入れ替える際、2つの項目
の間に他の項目がある場合は、入れ替え後の2つの項目
の位置に適合させて他の項目の位置を移動する手段と を備えたことを特徴とする文書作成装置。
[Claims] 1. In a document creation device capable of exchanging the positions of two items in a table having a plurality of items, means for specifying a first item to be exchanged; and a means for specifying a second item to be exchanged. a means for specifying; a means for exchanging the first item and the second item after specifying the first item and the second item; and a means for exchanging the first item and the second item; If there is another item between two items, a document creation device comprising: means for moving the position of the other item to match the position of the two replaced items.
JP1298623A 1989-11-16 1989-11-16 Document preparing device Pending JPH03157756A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1298623A JPH03157756A (en) 1989-11-16 1989-11-16 Document preparing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1298623A JPH03157756A (en) 1989-11-16 1989-11-16 Document preparing device

Publications (1)

Publication Number Publication Date
JPH03157756A true JPH03157756A (en) 1991-07-05

Family

ID=17862128

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1298623A Pending JPH03157756A (en) 1989-11-16 1989-11-16 Document preparing device

Country Status (1)

Country Link
JP (1) JPH03157756A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009146334A (en) * 2007-12-18 2009-07-02 Ecs:Kk Editing method of article information selection screen in electronic commerce, electronic commerce system, and editing program for article information selection screen in electronic commerce

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63241654A (en) * 1987-03-30 1988-10-06 Hitachi Ltd Table preparation system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63241654A (en) * 1987-03-30 1988-10-06 Hitachi Ltd Table preparation system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009146334A (en) * 2007-12-18 2009-07-02 Ecs:Kk Editing method of article information selection screen in electronic commerce, electronic commerce system, and editing program for article information selection screen in electronic commerce

Similar Documents

Publication Publication Date Title
JPH04142661A (en) Information processor
JPH03157756A (en) Document preparing device
JP3268029B2 (en) Handwriting input device
JPS61135270A (en) Picture display system
JPH05197470A (en) Keyboard device
JPH03157757A (en) Document preparing device
CN110110291A (en) A kind of document display control method, device, equipment and medium
JPH03157755A (en) Document preparing device
KR900006874A (en) Image processing device
JPH0540465A (en) Word processor
JPH067307B2 (en) Cursor display method
JPH02178726A (en) Display device
JPH02281328A (en) Picture controller
JPH04205678A (en) Image information processor
JPH02153392A (en) Vector figure display method
JPS6151264A (en) Document processing device
JPH01156795A (en) Letter picture display method
JPH05250369A (en) Word processor
JPS63249216A (en) Registering and displaying system for command information
JPH0636181B2 (en) Image display device
JPH02297164A (en) Document processor with one row copying function
JPH04128969A (en) Copy and transfer method
JPS61211769A (en) Integrally forming system for external character
JPH0581392A (en) Graphic moving and copying method
JPH11195017A (en) Data processing method and data processor