JPH03157757A - Document preparing device - Google Patents

Document preparing device

Info

Publication number
JPH03157757A
JPH03157757A JP1298624A JP29862489A JPH03157757A JP H03157757 A JPH03157757 A JP H03157757A JP 1298624 A JP1298624 A JP 1298624A JP 29862489 A JP29862489 A JP 29862489A JP H03157757 A JPH03157757 A JP H03157757A
Authority
JP
Japan
Prior art keywords
item
line
items
buffer
order
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
JP1298624A
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 JP1298624A priority Critical patent/JPH03157757A/en
Publication of JPH03157757A publication Critical patent/JPH03157757A/en
Pending legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

PURPOSE:To simplify the inter-plural items change procedure and to improve the operability of the device by constituting the device so that positions of plural items are changed in order of the designated arrangement by only designating a object to be exchange item and an arrangement order. 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 by only designating plural items of objects to be exchange and their arrangement order, positions of each item are changed in the designated arrangement order between these plural items. In such a way, the exchange 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 exchanging items between a plurality of adjacent items in a table.

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

本発明はこのような問題点を解決するためになされたも
のであって、入れ替え対象項目と配置順を指定するのみ
で複数項目の位置を指定配置順に入れ替える構成とする
ことにより、複数項目間での入れ替え手順が簡便であっ
て装置の操作性が高い文書作成装置の提供を目的とする
The present invention has been made to solve such problems, and by simply specifying the item to be replaced and the arrangement order, the positions of multiple items can be replaced in the specified arrangement order, thereby making it possible to exchange the positions of multiple items in the specified arrangement order. An object of the present invention is to provide a document creation device in which a replacement procedure is simple and the device has high operability.

〔課題を解決するための手段〕[Means to solve the problem]

本発明の文書作成装置は、表内の隣接する複数項目間で
項目の位置を入れ替え得る文書作成装置において、入れ
替え対象の項目を指定する手段と、項目の配置順を指定
する手段と、入れ替え対象及び配置順を指定したあとで
、指定された配置順に入れ替え対象の項目の位置を入れ
替える手段とを備えたことを特徴とする。
A document creation device of the present invention is a document creation device capable of swapping the positions of items between a plurality of adjacent items in a table, and includes a means for specifying an item to be replaced, a means for specifying an arrangement order of items, and a means for specifying an item to be replaced. and means for changing the positions of the items to be replaced in the specified placement order after specifying the placement order.

〔作用〕[Effect]

本発明の文書作成装置は、入れ替え対象の複数項目及び
これらの配置順を指定したあとで、指定した配置順に従
って複数項目の位置を入れ替える。
After specifying a plurality of items to be replaced and their arrangement order, the document creation device of the present invention replaces the positions of the plurality of items according to the specified arrangement order.

〔実施例〕〔Example〕

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

第1図は本発明の文書作成装置の一実施例構成を示すブ
ロック図である。図中1は表内の複数項目入れ替えを指
示するキー、入れ替え対象の項目を指定するキー、実行
キー、取消キー等を備えたキーボードであって、キーボ
ード1から入力された指令は制御部4に人力される。制
御部4は人力された指令に従って装置各部のデータ授受
を制御する0行カウンタ2は文書の行数をカウントし、
カーソルカウンタ3は1行内の文字数をカウントする。
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 replacement of multiple items in a table, a key for specifying the item to be replaced, an execution key, a cancel key, etc. Commands input from the keyboard 1 are sent to the control unit 4. Man-powered. The control unit 4 controls the data transfer between each part of the device according to instructions given manually.The zero line counter 2 counts the number of lines in the document.
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に書き込む。CRT
等からなる表示部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. The item replacement unit 10 replaces multiple items of a maximum of one line of documents stored in the 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 unit 8 is a work buffer. 11 is written into the text buffer 5. CRT
A display unit 12 consisting of a display unit 12 displays the document in the text buffer 5.

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

まず、表内複数項目入れ替え指示キーが押されたかどう
かを判定する。キーが押されていた場合、カーソルの位
置が入れ替え可能な項目内に存在するか否かを判定する
。カーソルが項目内に存在する場合、カーソル位置を変
数X、xの直近にある左の罫線位置を変数XS及び変数
xr、w、右の罫線位置を変数XE及び変数XRWにセ
ットする。
First, it is determined whether or not the multiple item exchange instruction key in the table has been pressed. If a key has been pressed, it is determined whether the cursor position is within a swappable item. If the cursor exists within the item, the cursor position is set to variable X, the position of the left ruled line nearest to x is set to variable XS and variables xr, w, and the position of the right ruled line is set to variable XE and variable XRW.

次に、入れ替えの第1項目を明示するためにXLWより
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 or the like.

さらに項目数変数BKに“l”をセットする。Furthermore, the number of items variable BK is set to "l".

次に、項目指定キーが入力されると、キーが入力されて
いる間、第2項目以降の指定処理を繰り返す。まず、第
1項目に対する第2項目の方向を判定し、第2項目が右
方向ならフラグ変数5IDE$FGに“In、左方向な
ら“2nをセットする。
Next, when the item designation key is input, the process of designating the second and subsequent items is repeated while the key is being input. First, the direction of the second item with respect to the first item is determined, and if the second item is to the right, "In" is set to the flag variable 5IDE$FG, and if it is to the left, "2n" is set.

XSとXLWとが一致し、かつ5IDE$FGが゛2パ
で左方向へ項目を指定していく場合、XSにXRWをセ
ットする。
If XS and XLW match and 5IDE$FG specifies items to the left with 2 passes, set XRW to XS.

5IDE$FGが“1”であればXRWの位置より半角
1字右の位置をカーソル位置変数Xにセットし、BKに
“l”をプラスする。5rDE$FGが“2”ならば、
XLWの位置より半角1学友の位置をカーソル位置変数
Xにセットし、BKに1″をプラスする。
5If IDE$FG is "1", set the position one half-width character to the right of the XRW position to the cursor position variable X, and add "l" to BK. If 5rDE$FG is “2”,
Set the position of one half-width alumni from the position of XLW to the cursor position variable X, and add 1'' to BK.

次に、5IDE$FGが“1″ならば、カーソル位置X
より直近の左の罫線位置を変数XLWに、右の罫線位置
を変数XRWにセットし、XEにXRWをセットしてX
LWの位置からXRWの位置までの表示を変更し、指定
項目であることを示す。
Next, if 5IDE$FG is “1”, the cursor position
Set the most recent left ruled line position to variable XLW, the right ruled line position to variable XRW, set XRW to XE, and
The display from the LW position to the XRW position is changed to indicate that it is a designated item.

また、5IDE$FCが“2”ならば、カーソル位fx
より直近の左の罫線位置を変数XLWに、右の罫線位置
を変数XRWにセットし、XEにXLWをセットしてX
LWの位置からXRWの位置までの表示を変更し、指定
項目であることを示す。
Also, if 5IDE$FC is “2”, the cursor position fx
Set the most recent left ruled line position to variable XLW, the right ruled line position to variable XRW, set XLW to XE, and
The display from the LW position to the XRW position is changed to indicate that it is a designated item.

これを繰り返して2項目以降を指定する。Repeat this to specify the second and subsequent items.

以上のようにして、複数項目を決定したときのみ実行キ
ーが入力可能となる。表枠判定部6はXS−XEの間が
完全な表枠であるか否かを判定する。表枠が完全である
場合、カーソルのある行の上の横罫線行である入れ替え
開始行を変数SLに、完全な表枠の最も下の横罫線行で
ある終了行を変数ELにセットする。
As described above, the execution key can be input only when a plurality of items have been determined. The table frame determining unit 6 determines whether or not the space between XS and XE 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 SL, and the end line, which is the lowest horizontal ruled line of the complete table frame, is set to variable EL.

次に、PO3$FGが2の場合、XSとXEとを入れ替
え、XS及びXt?、を含むXSの位置からXEの位置
までの縦罫線の位置を罫線位置テーブルPO3にPO5
(0)からPO3(BK)まで(B K+1 )ケ所セ
ットする。PO3(0)の位置からPO3(1)の位置
までを第1項目、PO3(1)からPO3(2)までを
第2項目、PO3(BK−1)からPO3(BK)まで
を第BK項目とする。メツセージ行に[1,2,・・・
BK]と項目数変数をBKまで表示する。表示した右側
に入れ替え順番号を入力するために〔コを表示し、この
中にカーソルを表示する。オペレータによって入れ替え
順が入力されると、人力された番号を入れ替え順番号テ
ーブルJtJNのJUN(0)からJUN (BK−1
)までBKケ所にセットする。
Next, if PO3$FG is 2, replace XS and XE, and XS and Xt? , and the position of the vertical ruled line from the position of XS to the position of XE in the ruled line position table PO3 PO5
Set (B K+1) locations from (0) to PO3 (BK). The first item is from the position of PO3(0) to the position of PO3(1), the second item is from PO3(1) to PO3(2), and the BK item is from PO3(BK-1) to PO3(BK). shall be. In the message line [1, 2,...
BK] and the item number variable is displayed up to BK. In order to enter the replacement order number on the right side of the screen, a cursor will be displayed. When the replacement order is input by the operator, the manually entered numbers are transferred from JUN (0) to JUN (BK-1) in the replacement order number table JtJN.
) in the BK place.

入れ替え開始行SLを行カウンタ変数MLにセットする
。1行データ読み出し部7は、変数MLが指定する1行
を、テキストバッファ5から1行バッファ9へ読み出す
。1行バッファ9と同じサイズの作業バッファ11を設
け、1行バッファ9の内容を作業バッファ11に読み出
すみ作業バッファ!lの位置WPO3にPO3(0)を
セットする。
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. A work buffer 11 of 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! Set PO3(0) to position WPO3 of l.

1行バッファ9の項目幅サイズWIDEに“0”をセッ
トする。変数1に′0′をセットし、IがBKを超える
まで次の処理を繰り返す。
Set the item width size WIDE of the one-line buffer 9 to “0”. Set variable 1 to '0' and repeat the following process until I exceeds BK.

wposにWIDEをプラスする。1行バッファ9の位
置LPO3に(JUN (1)−1)をセットする。W
IDEにPO3(JUN (+))からPO3(JUN
 (+)−1)を引いた第1項目の幅サイズをセットす
る。1行バッファ9のLP01を開始位置とするWID
Eのサイズ分の内容を作業バッファ■1のwposを開
始位置として書き移し、■に“1”をプラスする。
Add WIDE to wpos. Set (JUN (1)-1) in position LPO3 of the one-line buffer 9. W
From PO3(JUN (+)) to PO3(JUN
Set the width size of the first item minus (+)-1). WID starting from LP01 of 1-line buffer 9
Transfer the contents of the size of E to the work buffer ■1 with wpos as the starting position, and add "1" to ■.

項目入れ替え部10は、以上のようにしてJUN(0)
からJUN (BK−1)までの順番号に従い、1行バ
ッファ9のテーブルPO3の位置を開始位置とする項目
の内容を作業バッファ11のXSの位置を開始位置とし
て書き移す。
The item replacement unit 10 executes JUN(0) as described above.
According to the sequential numbers from JUN (BK-1) to JUN (BK-1), the contents of the items starting from the position of table PO3 in the one-line buffer 9 are written starting from the position of XS in the work buffer 11.

1行を書き移した後、1行データ書き込み部8が作業バ
ッファ11の内容をテキストバッファ5に書き込む。表
示部12はMLが指定するテキストバッファ5内の行を
表示部12に表示する。行カウンタ2の変数MLに“1
”をプラスして1行の複数項目入れ替えが終了する。
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 unit 12 displays the line in the text buffer 5 specified by the ML. “1” is set in the variable ML of row counter 2.
” is added to complete the replacement of multiple items in one line.

以上の動作をMLが最終行ELを越すまでMLを1行ず
つ移動して複数項目の入れ替えを完了する。
The above operations are performed to move the ML line by line until the ML passes the last line EL, thereby completing the replacement of the plurality of items.

第2図は項目移動の画面表示例であって、第2図(a)
に示すような「会員番号」 「氏名」 「年齢」「住所
」 [性別、r置、r血液型」の項目からなる表内で第
1項目「年齢」を指定した後、第2図(b)のように右
方向へ第2項目「住所」、第3項目「性別」、第4項目
装置、を指定し、これらの入れ替え順を’2,4.1.
3Jと指定すると、これら複数項目が、指定した入れ替
え順に従って入れ替わり第2図(C)のようになる。
Figure 2 is an example of screen display for moving items, and Figure 2 (a)
After specifying the first item ``Age'' in the table consisting of ``Membership Number'', ``Name'', ``Age'', ``Address'', [Gender, RA, Blood Type] as shown in Figure 2 (b) ), specify the second item ``Address'', the third item ``Gender'', and the fourth item Device in the right direction, and set the order of their replacement as '2, 4.1.
When 3J is specified, these multiple items are exchanged according to the specified exchange order, as shown in FIG. 2(C).

なお、本実施例では表の横方向に項目を入れ替える場合
につき説明したが、縦方向に入れ替える場合に適用する
ことも可能であって、同様の効果が得られる。
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.

〔発明の効果] 本発明の文書作成装置は、入れ替え対象の複数項目及び
これらの配置順を指定するのみでこれら複数項目間で項
目同士の位置を指定された配置順に入れ替える構成であ
るので、入れ替え手順が簡便であって装置の操作性が高
いという優れた効果を奏する。
[Effects of the Invention] The document creation device of the present invention is configured to swap the positions of items among the multiple items in the specified placement order by simply specifying the multiple items to be replaced and the order in which they are placed. The procedure is simple and the device has excellent operability.

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

第1図は本発明の文書作成装置の構成を示すブロック図
、第2図は画面表示例、第3図は2項目入れ替えの手順
を示すフローチャートである。 1・・・キーボード 2・・・行カウンタ 3・・・カ
ーソルカウンタ 4・・・制御部 5・・・テキストバ
ッファ6・・・表枠判定部 7・・・1行データ読み出
し部8・・弓行データ書き込み部 9・・・1行バッフ
ァ10・・・項目入れ替え部 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. 1... Keyboard 2... Line counter 3... Cursor counter 4... Control section 5... Text buffer 6... Table frame determination section 7... Single line data reading section 8... Bow Line data writing section 9...1 line buffer 10...Item replacement section 11...Work buffer 12...Display section Patent Applicant: Sanyo Electric Co., Ltd.

Claims (1)

【特許請求の範囲】 1、表内の隣接する複数項目間で項目の位置を入れ替え
得る文書作成装置において、 入れ替え対象の項目を指定する手段と、 項目の配置順を指定する手段と、 入れ替え対象及び配置順を指定したあとで、指定された
配置順に入れ替え対象の項目の位置を入れ替える手段と を備えたことを特徴とする文書作成装置。
[Scope of Claims] 1. In a document creation device capable of exchanging the positions of items between a plurality of adjacent items in a table, there are the following: means for specifying an item to be exchanged; means for specifying the arrangement order of items; and an item to be exchanged. and a means for changing the positions of the items to be replaced in the specified placement order after specifying the placement order.
JP1298624A 1989-11-16 1989-11-16 Document preparing device Pending JPH03157757A (en)

Priority Applications (1)

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

Applications Claiming Priority (1)

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

Publications (1)

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

Family

ID=17862142

Family Applications (1)

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

Country Status (1)

Country Link
JP (1) JPH03157757A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58178443A (en) * 1982-04-13 1983-10-19 Toshiba Corp Screen display switching system during tabulation
JPS62179048A (en) * 1986-02-03 1987-08-06 Sord Comput Corp Simple language processor

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58178443A (en) * 1982-04-13 1983-10-19 Toshiba Corp Screen display switching system during tabulation
JPS62179048A (en) * 1986-02-03 1987-08-06 Sord Comput Corp Simple language processor

Similar Documents

Publication Publication Date Title
CA1289263C (en) Apparatus and process for creating variably sized block diagrams to accommodate variable text contents while yet retaining overall block shape
JPH03206552A (en) Display processing system
JPS63306054A (en) Printing system
JPS6049425A (en) Display system for sentence processor
JPH03157757A (en) Document preparing device
JPH03157756A (en) Document preparing device
JPS61135270A (en) Picture display system
JP3178001B2 (en) Data processing device
JPH03157755A (en) Document preparing device
JPH02281328A (en) Picture controller
JPS58146982A (en) Device for editing document
JP2555606B2 (en) Electronic manual display system
JPH01100662A (en) Display device
JPH01113857A (en) Ruled line copy processing system for document processor
JPS63109577A (en) Goods allocation device on screen
JPS641036B2 (en)
JPH081549B2 (en) Character processor
JPH03161863A (en) Document preparing device
JPS6151264A (en) Document processing device
JPH0466994A (en) Multiwindow display device
JPS61211769A (en) Integrally forming system for external character
JPH0476667A (en) Information processor
JPH06236369A (en) Word processor and replacing method for page
JPH0495124A (en) Picture control mechanism
JPH0581392A (en) Graphic moving and copying method