JPH0793324A - Document editing device - Google Patents

Document editing device

Info

Publication number
JPH0793324A
JPH0793324A JP5235093A JP23509393A JPH0793324A JP H0793324 A JPH0793324 A JP H0793324A JP 5235093 A JP5235093 A JP 5235093A JP 23509393 A JP23509393 A JP 23509393A JP H0793324 A JPH0793324 A JP H0793324A
Authority
JP
Japan
Prior art keywords
paragraph
pointer
paragraphs
list
child
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
JP5235093A
Other languages
Japanese (ja)
Inventor
Hiroo Sonehara
博夫 曽根原
Toshiya Matsuyama
俊哉 松山
Miyuki Iwadare
美由紀 岩垂
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP5235093A priority Critical patent/JPH0793324A/en
Publication of JPH0793324A publication Critical patent/JPH0793324A/en
Pending legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

PURPOSE:To provide the document editing device which can specify plural paragraphs, perform editing operation as to those paragraphs, and rearrange the paragraphs fast when the paragraph composition is altered. CONSTITUTION:A selection flag for discriminating a election state is added to the data structure of paragraphs and the editing operation regarding the paragraphs can be performed over a look at the selection state. Further, a paragraph list 99 which linearly manages the paragraphs is used to rearrange the paragraphs fast.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、パラグラフ構造の文書
編集装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a document editing apparatus having a paragraph structure.

【0002】[0002]

【従来の技術】従来の文書編集装置は、文書の構造を編
集するのに、1つのパラグラフを対象に行なっていた。
ここでいうパラグラフとは、文章において章・節・項に
相当する。各パラグラフは、親子関係が成り立ってお
り、図2においてパラグラフ 2かきく 34を選択す
ると、その子パラグラフ 2−1カキク 36と、2−
2ガギグ 38も同時に選択される。また、このパラグ
ラフ 2かきく 34を削除すると、この子パラグラフ
2−1カキク 36と、2−2ガギグ 38も同時に削
除される。
2. Description of the Related Art A conventional document editing apparatus edits the structure of a document for one paragraph.
The paragraph mentioned here corresponds to a chapter / section / section in the text. Each paragraph has a parent-child relationship, and when paragraph 2 Kakiku 34 is selected in FIG. 2, its paragraphs 2-1 Kakiku 36 and 2-
2 Gig 38 is also selected at the same time. Also, when this paragraph 2 Kakiku 34 is deleted, this child paragraph 2-1 Kakig 36 and 2-2 Gagig 38 are also deleted at the same time.

【0003】このように、パラグラフはツリー構造とな
っているため、親に対して何らかの操作を行なうと、こ
の子に対しても同じ操作をしたように、効果が得られ
る。つまり、一つの親パラグラフを対象に行なった編集
操作は、その子パラグラフが5つあったとしたら、実質
6つのパラグラフを対象にしたことになる。ただし、こ
の場合は概念的には親子を含めた家族のパラグラフがひ
とつの単位として扱われる(家族1つが選択されたこと
になる。)。
As described above, since the paragraph has a tree structure, when an operation is performed on the parent, the same effect is obtained as when the same operation is performed on the child. In other words, the editing operation performed on one parent paragraph is, if there are five child paragraphs, substantially six paragraphs. However, in this case, conceptually, the paragraph of the family including the parent and child is treated as one unit (one family is selected).

【0004】それに対して、同レベルのパラグラフをみ
てみると、同レベル、つまり兄弟パラグラフは、別々の
パラグラフとして扱われる。例えば、同レベルのパラグ
ラフが5つあった場合に、その中のひとつのパラグラフ
を対象に、削除を行なったとしても他のパラグラフは影
響を受けない。兄弟間では、1つのパラグラフしか編集
の対象にならなかった。
On the other hand, looking at the same level paragraphs, the same level, that is, sibling paragraphs, are treated as separate paragraphs. For example, if there are five paragraphs at the same level, deleting one paragraph will not affect the other paragraphs. Between siblings, only one paragraph was the subject of editing.

【0005】またパラグラフの移動等によって、全体の
パラグラフ構造を書き換える場合、パラグラフの実体と
なる全情報を対象とすると、書き換えに多くの時間を要
するという問題があった。
Further, when rewriting the entire paragraph structure by moving a paragraph or the like, there is a problem that it takes a lot of time for rewriting if all the information that is the substance of the paragraph is targeted.

【0006】[0006]

【発明が解決しようとする課題】しかし、同レベルある
いは、異なるレベル間で複数のパラグラフを対象とした
編集操作を行ないたい場合があり、従来の文書編集装置
は、1つのパラグラフを編集の対象としていたため、こ
のような場合は、1つずつ同じ編集操作を繰り返し行な
っていた。
However, there are cases where it is desired to perform an editing operation for a plurality of paragraphs at the same level or between different levels, and the conventional document editing apparatus sets one paragraph as an editing target. Therefore, in such a case, the same editing operation is repeatedly performed one by one.

【0007】本発明は、複数のパラグラフを同時に選択
することができ、それらを対象とした編集操作が、一度
に行なえる文書編集装置を提供することを目的とする。
SUMMARY OF THE INVENTION It is an object of the present invention to provide a document editing apparatus capable of selecting a plurality of paragraphs at the same time and performing editing operations targeting them at one time.

【0008】またパラグラフの全体構造を短い時間で書
き換える、パラグラフ構造を有する文書編集装置を提供
することを目的とする。
It is another object of the present invention to provide a document editing device having a paragraph structure, which rewrites the entire structure of a paragraph in a short time.

【0009】[0009]

【課題を解決するための手段】本発明の文書編集装置
は、パラグラフ単位で文書データを管理する文書編集装
置において、前記パラグラフ毎に設けられ、親パラグラ
フへのポインタ、子パラグラフへのポインタ等から全パ
ラグラフの中での自パラグラフの位置を示すパラグラフ
レベル情報と、前記パラグラフ毎に設けられ、選択され
たパラグラフであることを示すフラグと、前記選択され
たパラグラフを他のパラグラフと異なるように表示する
手段と、前記選択されたパラグラフの移動、複写先等の
位置が指定されると該位置にもとづいて全パラグラフの
各々の前記パラグラフレベル情報を書き換える手段とを
有することを特徴とする。
The document editing device of the present invention is a document editing device for managing document data in paragraph units, and is provided for each paragraph, and includes a pointer to a parent paragraph, a pointer to a child paragraph, and the like. Paragraph level information indicating the position of its own paragraph in all paragraphs, a flag provided for each paragraph and indicating that it is a selected paragraph, and displaying the selected paragraph differently from other paragraphs And a means for rewriting the paragraph level information of all the paragraphs based on the position when the position such as the movement or copy destination of the selected paragraph is designated.

【0010】また本発明の他の文書編集装置は、パラグ
ラフ単位で文書データを管理する文書編集装置におい
て、親パラグラフへのポインタ、子パラグラフへのポイ
ンタ等から全パラグラフの中での自パラグラフの位置を
示すパラグラフレベル情報と、テキストデータとを少な
くとも含んで構成されているパラグラフ実体と、前記パ
ラグラフレベル情報内の各々のポインタの格納された位
置を示すポインタと、前記パラグラフ実体の位置を示す
ポインタと、前記パラグラフ実体の位置を直線的に示し
た順序情報とから少なくとも構成されるパラグラフリス
トと、前記文書データのパラグラフ構造を変更するよう
指示された際は、前記パラグラフリスト内の、前記パラ
グラフレベル情報内の各々のポインタの格納された位置
を示すポインタと前記パラグラフ実体の位置を直線的に
示した順序情報を書き換えることによって、パラグラフ
構造を変更する手段とを有することを特徴とする。
Another document editing apparatus of the present invention is a document editing apparatus that manages document data in paragraph units, and uses the pointer to a parent paragraph, the pointer to a child paragraph and the like to determine the position of its own paragraph in all paragraphs. Paragraph level information indicating, and a paragraph entity including at least text data, a pointer indicating the stored position of each pointer in the paragraph level information, and a pointer indicating the position of the paragraph entity. The paragraph level information in the paragraph list when instructed to change the paragraph structure of the document data and at least the paragraph list that is linearly indicating the position of the paragraph entity. A pointer to the stored position of each pointer in and the previous By rewriting the sequence information shown linearly positions paragraph entities, characterized by having a means for changing the paragraph structure.

【0011】[0011]

【実施例】以下に図面に従って、本発明の一実施例を説
明する。図1は、本発明の文書編集装置1のハードウェ
ア構成を示す図である。文書編集装置1は、主に4つの
部分から構成されており、入力部8からデータを入力
し、制御部2で文書全体の管理をする。制御部2は、更
に2つの特徴的な部分を有し、ファイルを管理するファ
イル部12と、パラグラフ構造を管理しているパラグラ
フ管理部10で構成される。更にディスプレイなどの表
示部4と、ファイルを保存しておくための外部記憶部6
で文書編集装置1は構成されている。
An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a diagram showing a hardware configuration of a document editing apparatus 1 of the present invention. The document editing apparatus 1 is mainly composed of four parts. Data is input from the input unit 8 and the control unit 2 manages the entire document. The control unit 2 further has two characteristic parts, and includes a file unit 12 that manages files and a paragraph management unit 10 that manages a paragraph structure. Further, a display unit 4 such as a display, and an external storage unit 6 for storing files
The document editing apparatus 1 is configured with.

【0012】図2は、本発明の文書編集装置が扱うデー
タである。このようなパラグラフを単位に編集を行うの
がアイデアプロセッサの特徴であり、アイデアプロセッ
サとは、一連の文書(アイデア)をひとつひとつの構造
体(パラグラフ)を組み立てていくことによって、文書
を完成させることを目的とした文書編集装置である。本
実施例は、アイデアプロセッサを基に書いている。ここ
の例ではパラグラフ1あいう 30と、その子パラグラ
フ 1−1アイウ 32、パラグラフ 1あいうと同レ
ベルのパラグラフ 2かきく 34と、その子パラグラ
フ 2−1カキク 36、それと同レベルのパラグラフ
2−2ガギグ 38、パラグラフ1あいう 30と同
レベルのパラグラフ 3さしす 40から構成されてい
る。
FIG. 2 shows data handled by the document editing apparatus of the present invention. The feature of the idea processor is to edit each paragraph like this. The idea processor is to complete a document by assembling a series of documents (ideas) into individual structures (paragraphs). It is a document editing device for the purpose. This embodiment is written based on the idea processor. In this example, paragraph 1 is 30 and its paragraphs are 1-1 aiu 32, paragraph 1 is so that it is at the same level as paragraph 2 Kakiku 34, its paragraphs are 2-1 Kakik 36 and it is at the same level as paragraph 2-2 Gaguig 38. , Paragraph 1 and paragraph 3 are the same level as paragraph 3 and 40.

【0013】図3は、本発明の文書編集装置1が実際に
扱うファイル構造図を示している。通常ファイル54
は、データ部50と、リソース部52からなり、データ
部50にはテキストデータのみを入れ、それ以外のデー
タはすべてリソース部52に置くようにしている。
FIG. 3 shows a file structure diagram actually handled by the document editing apparatus 1 of the present invention. Normal file 54
Is composed of a data section 50 and a resource section 52. Only the text data is put in the data section 50 and all other data is put in the resource section 52.

【0014】図4は文書編集装置1がプログラム上で扱
うデータ構造を示す図である。これは、パラグラフ構造
部とテキスト部に分かれており、パラグラフ構造部に
は、パラグラフ構造を表す親パラグラフへのポインタ7
0、子パラグラフへのポインタ72、子パラグラフの個
数74、同レベルパラグラフへのポインタ76と、テキ
スト部へのポインタ78である。このテキスト部へのポ
インタ78が、テキストデータとアトリビュートデータ
を連結する役目をしている。更に選択状態をみる選択フ
ラグ80には、パラグラフが選択されたときに「TRU
E」が、選択されていないときには「FALSE」が入
る。その他文字修飾、設定情報などの情報82がある。
これらは、図3のファイル構造においてリソース部52
に入る情報である。テキスト部にはテキストデータ84
があり、これはデータ部50に入る。
FIG. 4 is a diagram showing a data structure handled by the document editing apparatus 1 on a program. This is divided into a paragraph structure part and a text part. In the paragraph structure part, a pointer 7 to the parent paragraph that represents the paragraph structure.
0, a pointer 72 to a child paragraph, a number 74 of child paragraphs, a pointer 76 to a same-level paragraph, and a pointer 78 to a text portion. The pointer 78 to the text portion serves to connect the text data and the attribute data. When the paragraph is selected, the selection flag 80 for further checking the selection state indicates "TRU
If "E" is not selected, "FALSE" is entered. There is information 82 such as character modification and setting information.
These are the resource part 52 in the file structure of FIG.
It is information to enter. Text data 84 in the text section
, Which enters the data section 50.

【0015】図5では、図2で例にあげたパラグラフ構
造のパラグラフ 1あいう 30とパラグラフ 1−1
アイウ 32、パラグラフ 2−1カキク 36を例に
とり上記図4で説明したデータ構造図に具体的に数値を
入れて表した図である。パラグラフ 1あいう 30を
みてみると、このパラグラフは、親のパラグラフがない
ため、親パラグラフへのポインタ70には、「NUL」
が入る。次に子パラグラフへのポインタ72には、子パ
ラグラフ1−1アイウ 32のある場所の番地が入る。
(ここではわかりやすいように、子パラグラフのパラグ
ラフ番号を入れておく。)子パラグラフが複数ある場合
には、順位が上の子パラグラフのポインタが入る。例え
ば、2かきく 34の子パラグラフのポインタ72には
2ー1カキク 36を指すポインタが入る。子パラグラ
フの個数74は、パラグラフ 1あいう 30の子供の
個数「1」が入る。同レベルパラグラフへのポインタ7
6には、同レベルで順位が一つ下のパラグラフ 2かき
く 34のある場所の番地が入る。(ここではわかりや
すいように、同レベルのパラグラフのパラグラフ番号を
入れておく。)このようなポインタの構成にしておくこ
とにより、すべてのパラグラフの相対位置を把握するこ
とができる。
In FIG. 5, paragraph 30 and paragraph 1-1 of the paragraph structure exemplified in FIG.
FIG. 5 is a diagram in which numerical values are specifically entered in the data structure diagram described in FIG. 4 above using Ai 32 and Paragraph 2-1 Kaki 36 as an example. Paragraph 1 Looking at 30, this paragraph does not have a parent paragraph, so the pointer 70 to the parent paragraph has “NUL”.
Goes in. Next, the pointer 72 to the child paragraph contains the address of the place where the child paragraph 1-1 aiu 32 is located.
(Here, the paragraph number of the child paragraph is entered for easy understanding.) If there are multiple child paragraphs, the pointer of the child paragraph with the higher rank is entered. For example, the pointer 72 of the child paragraph of the 2nd character 34 contains a pointer to the 2-1 oyster 36. As the number 74 of child paragraphs, the number “1” of 30 children in paragraph 1 is entered. Pointer to the same level paragraph 7
In 6 is the address of the place at the same level where there is a second lower paragraph 34. (Here, for the sake of clarity, the paragraph numbers of paragraphs at the same level are entered.) With such a pointer configuration, the relative positions of all paragraphs can be grasped.

【0016】テキスト部へのポインタ78は、テキスト
の場所の番地が入る。(ここでは、テキストデータ84
「あいう」の番地を「a」とし、テキスト部へのポイン
タ78に「a」を入れる。)選択状態をみる選択フラグ
80には、選択されていないことを表わす「FALS
E」が入る。その他文字修飾、設定情報などの情報82
は、ここでは特に必要ではないため省略する。テキスト
データ84には、テキストデータ「あいう」が入る(3
2、36は省略)。
The pointer 78 to the text portion stores the address of the text location. (Here, the text data 84
The address of "ai" is set to "a", and "a" is entered in the pointer 78 to the text portion. ) The selection flag 80 for checking the selection state indicates “FALS” indicating that the selection is not made.
"E" is entered. Information 82 such as other character decoration and setting information
Is omitted here because it is not particularly necessary here. In the text data 84, the text data “Ai” is entered (3
2 and 36 are omitted).

【0017】図6は、パラグラフをクリックして選択し
たときのフローチャートである。選択状態を表す方法と
して、折込み記号(図7)を反転させる。ここで折込み
記号とは、表示画面上で各パラグラフの先頭に表示され
る絵記号である。S1で、パラグラフ 1−1アイウ
32をクリックする。同時にこのパラグラフの選択フラ
グ80には「TRUE」が入る。次にS2、パラグラフ
1−1アイウ 32の子パラグラフがあるかどうか判
定する。なぜ子パラグラフがあるか判定するかという
と、親パラグラフが選択されていて折込み記号が反転し
ていると、その子パラグラフは同じように選択はされて
いるが、折込み記号は反転させないようにしている。こ
れは単なる見かけの問題で、パラグラフの階層が深く折
込み記号がたくさん表示されているときに、親パラグラ
フが選択されていて、子パラグラフまで同じように折込
み記号が反転していると見にくくなるためである。
FIG. 6 is a flow chart when a paragraph is clicked and selected. As a method of indicating the selection state, the folding symbol (FIG. 7) is reversed. Here, the folding symbol is a pictorial symbol displayed at the beginning of each paragraph on the display screen. In S1, paragraph 1-1 Aiu
Click 32. At the same time, "TRUE" is entered in the selection flag 80 of this paragraph. Next, S2, it is determined whether there is a child paragraph of paragraph 1-1 aiu 32. The reason for determining whether there is a child paragraph is that if the parent paragraph is selected and the fold symbol is reversed, the child paragraph is selected in the same way, but the fold symbol is not reversed. . This is just an appearance problem, because when the paragraph hierarchy is deep and many fold symbols are displayed, it is difficult to see if the parent paragraph is selected and the fold symbols are similarly inverted up to the child paragraph. is there.

【0018】ここで、パラグラフ 1−1アイウ 32
のデータ構造図5の子パラグラフへのポインタ72を見
てみると「NUL」で子パラグラフはないのでS5に飛
ぶ。S2で子パラグラフがある場合は、S3でその子パ
ラグラフの選択フラグ80を見る。そこで「TRUE」
選択されていた場合は、S4子パラグラフの折込み記号
を反転解除する。S3で「FALSE」選択されていな
い場合には、S5に飛ぶ。次にS5では、親パラグラフ
があるか判定する。上記説明した理由より、選択パラグ
ラフの親パラグラフが選択されていたら、選択パラグラ
フの折込み記号を反転させないためである。パラグラフ
1−1アイウ 32は、親パラグラフがあるのでS6
に行く。ここでない場合はS8に飛ぶ。S6で親パラグ
ラフ 1あいう 30の選択フラグ80を見ると「FA
LSE」で選択されていないので、S8パラグラフ 1
−1アイウ 32の折込み記号を反転させる。S6で親
パラグラフが「TRUE」選択された場合は、S7で折
込み記号は反転させない。
Here, paragraph 1-1 aiu 32
Data structure of the pointer 72 to the child paragraph of FIG. 5 is "NUL", and since there is no child paragraph, the process jumps to S5. If there is a child paragraph in S2, the selection flag 80 of the child paragraph is checked in S3. Then "TRUE"
If it has been selected, the inversion symbol of the S4 subparagraph is canceled. If "FALSE" is not selected in S3, the process jumps to S5. Next, in S5, it is determined whether there is a parent paragraph. For the reason described above, if the parent paragraph of the selection paragraph is selected, the folding symbol of the selection paragraph is not inverted. Paragraph 1-1 Aiu 32 has a parent paragraph, so S6
go to. If not, jump to S8. Looking at the selection flag 80 of the parent paragraph 1 30 in S6, "FA
LSE ”is not selected, so S8 paragraph 1
-1 Aiu 32 Reverse the fold sign. When the parent paragraph is selected as "TRUE" in S6, the folding symbol is not inverted in S7.

【0019】図7は、上記説明に出てきた折込み記号の
形状とそれを表す意味を示した図である。折込み記号が
反転しているときは、選択。反転していないときは、選
択されていないことを表す。次に、折込み記号の本が閉
じているときは、子パラグラフが折込まれて見えなくな
っていることを表し、開いているときは、折り込みされ
ていない通常の状態を表す。本にしおりが付いている場
合は、本来複数行あるパラグラフの本文が折り込まれて
1行で表示されていることを表し、しおりが付いていな
い場合は、通常の状態を表す。
FIG. 7 is a diagram showing the shapes of the folding symbols and their meanings shown in the above description. Select when the fold sign is highlighted. When it is not highlighted, it means that it is not selected. Next, when the folding sign book is closed, it means that the child paragraph is folded and disappears, and when it is open, it means the normal state in which it is not folded. If the book has a bookmark, it means that the text of the paragraph, which originally has multiple lines, is folded and displayed in one line, and if the book does not have a bookmark, it means a normal state.

【0020】次に図8を参照しながら本発明の実施例を
動作を詳しく説明する。図8は、複数パラグラフ選択時
の移動の概要を示す。このように、いとこ関係のパラグ
ラフの同時指定の他に、レベルが異なるパラグラフ間の
同時指定もできる。複数パラグラフの移動は、選択パラ
グラフが切り取られ、挿入位置でまとまって挿入され
る。
The operation of the embodiment of the present invention will be described in detail with reference to FIG. FIG. 8 shows an outline of movement when a plurality of paragraphs are selected. As described above, in addition to the simultaneous specification of the cousin-related paragraphs, the simultaneous specification of paragraphs having different levels can be performed. When moving a plurality of paragraphs, the selected paragraphs are cut off and the paragraphs are inserted together at the insertion position.

【0021】この移動の動きを詳しく説明する。本発明
の文書編集装置1は、移動を始め、コピー、カット、ペ
ーストなどの編集操作を管理するのに、図10で示すよ
うな直線型パラグラフリスト99を使用する。直線型パ
ラグラフリスト99(以下、パラグラフリストという)
のデータ構造図を図9に示す。このパラグラフリスト9
9とは、パラグラフの順番とパラグラフレベル情報を持
たせたテーブルである。図9で、パラグラフへのポイン
タ88は、図4で示したパラグラフの実体のある番地で
ある。次に親パラグラフへのポインタへのポインタ98
は、図4で示した親パラグラフへのポインタ70の格納
されている場所の番地である。子パラグラフへのポイン
タへのポインタ100も同様に、子パラグラフへのポイ
ンタ72の格納されている場所の番地である。次に、子
パラグラフの個数へのポインタ102は、子パラグラフ
の個数74が格納されている場所の番地である。最後に
同レベルパラグラフへのポインタへのポインタも、同レ
ベルパラグラフへのポインタ76が格納されている場所
の番地である。以上で、パラグラフリスト99は構成さ
れている。
The movement of this movement will be described in detail. The document editing apparatus 1 of the present invention uses a linear paragraph list 99 as shown in FIG. 10 to manage editing operations such as moving, copying, cutting, and pasting. Linear paragraph list 99 (hereinafter referred to as paragraph list)
FIG. 9 shows a data structure diagram of the above. This paragraph list 9
Reference numeral 9 is a table having paragraph order and paragraph level information. In FIG. 9, the pointer 88 to the paragraph is an address where the paragraph shown in FIG. 4 has substance. Then a pointer 98 to a pointer to the parent paragraph
Is the address of the location where the pointer 70 to the parent paragraph shown in FIG. 4 is stored. Similarly, the pointer 100 to the pointer to the child paragraph is the address of the location where the pointer 72 to the child paragraph is stored. Next, the pointer 102 to the number of child paragraphs is the address where the number 74 of child paragraphs is stored. Finally, the pointer to the pointer to the same level paragraph is also the address where the pointer 76 to the same level paragraph is stored. The paragraph list 99 is configured as described above.

【0022】図10は、パラグラフリスト99を用いた
移動の流れを示した図である。ここで例にあげているパ
ラグラフ群は、図2で示したパラグラフと対応してい
る。このように、存在するパラグラフ全部が、パラグラ
フリスト99に登録されている。パラグラフリスト99
とパラグラフの実体はポインタでつながれているため、
パラグラフリスト99が示すパラグラフ構造とパラグラ
フの実体のパラグラフレベル構造は、実質同じものを指
している。図10のパラグラフリスト99では分かりや
すいように、パラグラフ群の場所をA・B・C・D・E
・Fとし、リスト上では「A+レベル」のように表して
いる。
FIG. 10 is a diagram showing a flow of movement using the paragraph list 99. The paragraph group given as an example here corresponds to the paragraph shown in FIG. In this way, all existing paragraphs are registered in the paragraph list 99. Paragraph list 99
Since the entities of and are connected by a pointer,
The paragraph structure indicated by the paragraph list 99 and the paragraph level structure of the substance of the paragraph are substantially the same. In the paragraph list 99 in FIG. 10, the locations of the paragraph groups are A, B, C, D, and E so that it is easy to understand.
・ F, which is indicated as "A + level" on the list.

【0023】では、パラグラフ 1−1アイウ 32と
パラグラフ 2−1カキク 36をパラグラフ 3さし
す 40の下に移動する場合を例にとる。図10と、図
10の動きをフローチャートで表した図11を合せて説
明する。
In the following, the case where the paragraph 1-1 aiu 32 and the paragraph 2-1 oyster 36 are moved below the paragraph 3 mark 40 will be taken as an example. A description will be given with reference to FIG. 10 and FIG. 11 which is a flowchart showing the movement of FIG.

【0024】パラグラフ 1−1アイウ 32とパラグ
ラフ 2−1カキク 36を選択し、S30カットコマ
ンドを実行する。この時取り消しコマンドの実行に備え
て、S31パラグラフリスト99のコピー92を取る。
S32で選択フラグをみて選択されているものを拾いだ
す。選択パラグラフを見つけると、S33でパラグラフ
リスト99から「B」を削除し、S34待避領域に格納
する。この時S35パラグラフリスト99の並べ変え
と、パラグラフレベル構造部分の書き換えが行われる。
上記説明のように、リスト内のパラグラフレベル構造
と、パラグラフ実体のパラグラフレベル構造は同じもの
を指しているので、パラグラフの実体のレベルを書き換
えたことになる。S36で、パラグラフの終わりになる
まで、選択パラグラフを探し、選択されたものを見つけ
ると、S33、S34、S35を繰り返す。ここで
「D」も拾いだされ、待避領域に格納される。
Select paragraph 1-1 ai 32 and paragraph 2-1 click 36 and execute the S30 cut command. At this time, a copy 92 of the S31 paragraph list 99 is taken in preparation for execution of the cancel command.
In S32, the selection flag is checked to pick up the selected one. When the selected paragraph is found, "B" is deleted from the paragraph list 99 in S33 and stored in the save area of S34. At this time, the S35 paragraph list 99 is rearranged and the paragraph level structure portion is rewritten.
As described above, since the paragraph level structure in the list and the paragraph level structure of the paragraph entity refer to the same thing, the paragraph entity level is rewritten. In S36, the selection paragraph is searched until the end of the paragraph is reached, and when the selected paragraph is found, S33, S34, and S35 are repeated. Here, "D" is also picked up and stored in the save area.

【0025】次に移動場所に、マウスポイントを移動
し、S37ペーストコマンドを実行する。S38で待避
領域の「B・D」をパラグラフリスト99に挿入する。
ここでまた、リストの構造が変わるので、S39パラグ
ラフリスト99の並べ変えとレベル構造部分の書き換え
を行なう。これで移動が完了する。
Next, the mouse point is moved to the moving position and the S37 paste command is executed. In step S38, "BD" of the save area is inserted into the paragraph list 99.
Here, since the structure of the list changes again, the rearrangement of the S39 paragraph list 99 and the rewriting of the level structure portion are performed. This completes the move.

【0026】このようにパラグラフのデータ構造に選択
フラグを持たせて、選択状態を判断させることにより複
数のパラグラフを一度に移動できる。また、直線型パラ
グラフリストを使って管理することにより、深い階層の
パラグラフの編集も素早く対応できるようになってい
る。
As described above, a plurality of paragraphs can be moved at once by giving the selection flag to the data structure of the paragraph and judging the selection state. In addition, by managing using a linear paragraph list, it is possible to quickly respond to paragraph editing in a deep hierarchy.

【0027】その他の実施例として、階層型パラグラフ
リスト90を使う方法がある。階層型パラグラフリスト
90のデータ構造図を図12に示す。階層型パラグラフ
リスト90の場合は、パラグラフ実体へのポインタ88
のみで構成されており、このポインタをパラグラフの順
番に並べてある。直線型パラグラフリスト99と違う点
は、リスト上にパラグラフレベルに関する情報を持たな
いことと、第1レベルのパラグラフ、図2でいうパラグ
ラフ 1あいう 30、2かきく 34、3さしす 4
0のレベルのデータしか持たないという点である。図1
3で示すとおり、第1パラグラフの番地をそれぞれ、
「a・b・c」とし、階層型パラグラフリスト90を構
成する。
Another embodiment is to use a hierarchical paragraph list 90. A data structure diagram of the hierarchical paragraph list 90 is shown in FIG. In the case of the hierarchical paragraph list 90, a pointer 88 to the paragraph entity
The pointers are arranged in paragraph order. The difference from the linear paragraph list 99 is that there is no information about the paragraph level on the list, and the paragraph of the first level, paragraph 1 in FIG.
The point is that it has only 0 level data. Figure 1
As shown in 3, each address in the first paragraph,
Hierarchical paragraph list 90 is constructed with “a, b, c”.

【0028】階層型の移動の動作を示したのが図13で
ある。これのフローチャートを表したのが図14であ
る。図13と図14を合せて、移動を説明する。
FIG. 13 shows the operation of hierarchical movement. FIG. 14 shows a flowchart of this. The movement will be described with reference to FIGS. 13 and 14.

【0029】階層型の移動の概念は、階層型パラグラフ
リスト90は親パラグラフの情報しか持たないため、子
パラグラフが編集の対象となった場合は、親パラグラフ
から次々に子パラグラフをたどって見ていき、対象のパ
ラグラフを見つけるという形である。親パラグラフが対
象となった場合は、その子パラグラフは親と一緒に対象
となる。
The concept of hierarchical movement is that the hierarchical paragraph list 90 has only parent paragraph information. Therefore, when a child paragraph is the object of editing, the child paragraphs are traced one after another from the parent paragraph. It is a form of going and finding the target paragraph. If a parent paragraph is targeted, its child paragraphs are targeted along with the parent.

【0030】では、「b」を「a」の上に移動する場合
を見てみると、bパラグラフ 2かきく 34を選択
し、S11カットコマンドを実行する。ここで取り消し
コマンドの実行に備えて、S13階層型パラグラフリス
ト90と全体のパラグラフのパラグラフ構造部のコピー
95をとる。もし、選択パラグラフが1つだった場合
は、S13そのパラグラフ構造部を記録する。ここでな
ぜ単数と複数を分けているかというと、選択パラグラフ
がひとつだった場合は、そのパラグラフの位置を覚えて
おけばいいため、全体のコピーを取るという無駄を省く
ということからである。
Now, looking at the case where "b" is moved to above "a", b paragraph 2 scratch 34 is selected and the S11 cut command is executed. Here, in preparation for the execution of the cancel command, a copy 95 of the S13 hierarchical paragraph list 90 and the paragraph structure portion of the entire paragraph is taken. If there is only one selected paragraph, S13, the paragraph structure part is recorded. The reason why we separate singular and plural here is that if there is only one selection paragraph, we only have to remember the position of that paragraph, so we avoid the waste of copying the whole.

【0031】S15で選択パラグラフの状態をみて、選
択されている場合は、S16階層型パラグラフリスト9
0から「b」を削除し、S17待避させる。S18で階
層型パラグラフリスト90の並べ変えを行なう。S19
でパラグラフの終わりまで選択パラグラフを探し、S1
5、S16、S17、S18を繰り返す。
The state of the selected paragraph is checked in S15, and if it is selected, S16 hierarchical paragraph list 9
"B" is deleted from 0 and S17 is saved. The hierarchical paragraph list 90 is rearranged in S18. S19
Find the selection paragraph until the end of the paragraph with and press S1
5, S16, S17 and S18 are repeated.

【0032】移動場所にマウスポイントを移動してペー
ストコマンドを実行する。S21階層型パラグラフリス
ト90に「b」を挿入する。S22でリストの並べ替
え、S23でパラグラフの実体のパラグラフ構造部を書
き替え、移動を終了する。
Move the mouse point to the moving position and execute the paste command. "B" is inserted into the S21 hierarchical paragraph list 90. The list is rearranged in S22, the paragraph structure portion of the paragraph body is rewritten in S23, and the movement is completed.

【0033】直線型移動との違いは、ペーストコマンド
を行なう前のパラグラフの実体のパラグラフ構造部が、
直線型では書き替えられていて、階層型ではペーストを
行なって初めてパラグラフの実体のパラグラフ構造部が
書き替えられるので、ステップ数が少なくてすむ。ま
た、階層型移動の場合は、親パラグラフの情報しか管理
しないため、子パラグラフの情報はその親パラグラフが
管理する。これに対して、直線型移動の場合は、すべて
のパラグラフの情報を管理しなければならない。このこ
とから、階層型の場合は、プログラム上構造が非常に簡
単になるという効果を有する。
The difference from the linear movement is that the paragraph structure part of the paragraph body before the paste command is
In the linear type, the rewriting is performed, and in the hierarchical type, the paragraph structure portion of the actual substance of the paragraph is rewritten only after pasting, so the number of steps can be reduced. In the case of hierarchical movement, only the information of the parent paragraph is managed, so the information of the child paragraph is managed by the parent paragraph. On the other hand, in the case of linear movement, the information in all paragraphs must be managed. Therefore, the hierarchical structure has an effect that the structure on the program becomes very simple.

【0034】[0034]

【発明の効果】以上述べた如く、文書編集装置で複数パ
ラグラフの選択を可能にし、一度に編集操作が行なえる
という効果を有する。またパラグラフ構造の高速な書き
換えが可能になるという効果を有する。
As described above, the document editing apparatus can select a plurality of paragraphs, and the editing operation can be performed at one time. In addition, the paragraph structure can be rewritten at high speed.

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

【図1】本発明のハードウェア構成図。FIG. 1 is a hardware configuration diagram of the present invention.

【図2】パラグラフ構造のデータを示す図。FIG. 2 is a diagram showing data having a paragraph structure.

【図3】ファイル構造を示す図。FIG. 3 is a diagram showing a file structure.

【図4】各パラグラフのデータ構造を示す図。FIG. 4 is a diagram showing a data structure of each paragraph.

【図5】各パラグラフの具体的なポインタを示す図。FIG. 5 is a diagram showing a specific pointer for each paragraph.

【図6】選択時のフローチャート。FIG. 6 is a flowchart when selecting.

【図7】折込み記号の形状と意味を示す図。FIG. 7 is a diagram showing shapes and meanings of folding symbols.

【図8】移動の概要を示す図。FIG. 8 is a diagram showing an outline of movement.

【図9】直線型パラグラフリストのデータ構造図。FIG. 9 is a data structure diagram of a linear paragraph list.

【図10】直線型管理の移動の動作を示す図。FIG. 10 is a diagram showing a movement of a linear management movement.

【図11】直線型移動のフローチャート。FIG. 11 is a flowchart of linear movement.

【図12】階層型パラグラフリストのデータ構造図。FIG. 12 is a data structure diagram of a hierarchical paragraph list.

【図13】階層型移動の動作を示す図。FIG. 13 is a diagram showing an operation of hierarchical movement.

【図14】階層型移動のフローチャート。FIG. 14 is a flowchart of hierarchical transfer.

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

1:文書編集装置 2:制御部 4:表示部 6:外部記憶部 8:入力部 10:パラグラフ管理部 12:ファイル部 30:パラグラフ 1あいう 32:パラグラフ 1−1アイウ 34:パラグラフ 2かきく 36:パラグラフ 2−1カキク 38:パラグラフ 2−2ガギグ 40:パラグラフ 3さしす 50:データ部 52:リソース部 54:通常ファイル 70:親パラグラフへのポインタ 72:子パラグラフへのポインタ 74:子パラグラフの個数 76:同レベルパラグラフへのポインタ 78:テキスト部へのポインタ 80:選択フラグ 82:その他の情報 84:テキストデータ 88:パラグラフへのポインタ 90:階層型パラグラフリスト 92:直線型パラグラフリストのコピー 95:階層型パラグラフリストとパラグラフの構造部の
コピー 98:親パラグラフへのポインタへのポインタ 99:直線型パラグラフリスト 100:子パラグラフへのポインタへのポインタ 102:子パラグラフの個数へのポインタ 104:同レベルパラグラフへのポインタへのポインタ
1: Document editing device 2: Control part 4: Display part 6: External storage part 8: Input part 10: Paragraph management part 12: File part 30: Paragraph 1 Ie 32: Paragraph 1-1 Aiu 34: Paragraph 2 Kakiku 36 : Paragraph 2-1 Kakiku 38: Paragraph 2-2 Gagging 40: Paragraph 3 Proper 50: Data section 52: Resource section 54: Regular file 70: Pointer to parent paragraph 72: Pointer to child paragraph 74: Child paragraph 76: Pointer to the same level paragraph 78: Pointer to the text part 80: Selection flag 82: Other information 84: Text data 88: Pointer to the paragraph 90: Hierarchical paragraph list 92: Copy of the linear paragraph list 95: Hierarchical paragraph list and paragraph structure Copy 98: pointer to a pointer to the parent Paragraph 99: linear-paragraph list 100: pointer to a pointer to a child paragraph 102: Pointer to the number of child paragraph 104: pointer to a pointer to the same level paragraph

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】パラグラフ単位で文書データを管理する文
書編集装置において、 前記パラグラフ毎に設けられ、親パラグラフへのポイン
タ、子パラグラフへのポインタ等から全パラグラフの中
での自パラグラフの位置を示すパラグラフレベル情報
と、 前記パラグラフ毎に設けられ、選択されたパラグラフで
あることを示すフラグと、 前記選択されたパラグラフを他のパラグラフと異なるよ
うに表示する手段と、 前記選択されたパラグラフの移動、複写先等の位置が指
定されると、該位置にもとづいて全パラグラフの各々の
前記パラグラフレベル情報を書き換える手段と、を有す
ることを特徴とする文書編集装置。
1. A document editing device for managing document data in paragraph units, which is provided for each paragraph and indicates the position of its own paragraph in all paragraphs from a pointer to a parent paragraph, a pointer to a child paragraph, and the like. Paragraph level information, provided for each paragraph, a flag indicating that it is a selected paragraph, means for displaying the selected paragraph differently from other paragraphs, movement of the selected paragraph, And a unit for rewriting the paragraph level information of each paragraph based on the position when a position such as a copy destination is designated.
【請求項2】パラグラフ単位で文書データを管理する文
書編集装置において、 親パラグラフへのポインタ、子パラグラフへのポインタ
等から全パラグラフの中での自パラグラフの位置を示す
パラグラフレベル情報と、テキストデータとを少なくと
も含んで構成されているパラグラフ実体と、 前記パラグラフレベル情報内の各々のポインタの格納さ
れた位置を示すポインタと、前記パラグラフ実体の位置
を示すポインタと、前記パラグラフ実体の位置を直線的
に示した順序情報とから少なくとも構成されるパラグラ
フリストと、 前記文書データのパラグラフ構造を変更するよう指示さ
れた際は、前記パラグラフリスト内の、前記パラグラフ
レベル情報内の各々のポインタの格納された位置を示す
ポインタと前記パラグラフ実体の位置を直線的に示した
順序情報を書き換えることによって、パラグラフ構造を
変更する手段と、を有することを特徴とする文書編集装
置。
2. In a document editing device for managing document data in paragraph units, paragraph level information indicating the position of its own paragraph in all paragraphs from a pointer to a parent paragraph, a pointer to a child paragraph, and text data. A paragraph entity configured to include at least, a pointer indicating the stored position of each pointer in the paragraph level information, a pointer indicating the position of the paragraph entity, and a linear position of the paragraph entity. When a command is given to change the paragraph structure of the document data, the paragraph list is composed of at least the order information shown in FIG. 1, and each pointer in the paragraph level information in the paragraph list is stored. The position pointer and the position of the paragraph entity are linear By rewriting the sequence information shown, document editing apparatus characterized by comprising means for changing the paragraph structure.
JP5235093A 1993-09-21 1993-09-21 Document editing device Pending JPH0793324A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5235093A JPH0793324A (en) 1993-09-21 1993-09-21 Document editing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5235093A JPH0793324A (en) 1993-09-21 1993-09-21 Document editing device

Publications (1)

Publication Number Publication Date
JPH0793324A true JPH0793324A (en) 1995-04-07

Family

ID=16980966

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5235093A Pending JPH0793324A (en) 1993-09-21 1993-09-21 Document editing device

Country Status (1)

Country Link
JP (1) JPH0793324A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005317024A (en) * 2004-04-30 2005-11-10 Matsushita Electric Ind Co Ltd Method of sorting elements in list of graphical user interface
CN112784537A (en) * 2019-11-05 2021-05-11 珠海金山办公软件有限公司 Method, device, storage medium and equipment for processing paragraph sequence in electronic document

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005317024A (en) * 2004-04-30 2005-11-10 Matsushita Electric Ind Co Ltd Method of sorting elements in list of graphical user interface
CN112784537A (en) * 2019-11-05 2021-05-11 珠海金山办公软件有限公司 Method, device, storage medium and equipment for processing paragraph sequence in electronic document

Similar Documents

Publication Publication Date Title
CA2036859C (en) System and method for editing a structured document to modify emphasis characteristics
KR101083533B1 (en) System and method for user modification of metadata in a shell browser
JPWO2004023310A1 (en) File management method based on network structure, operation target display restriction program, and recording medium
WO1994002903A1 (en) Method and apparatus for displaying and updating structured information
US7519617B2 (en) Dynamic personalized information organizer
US9842094B2 (en) Undo, redo, and state switching using content-addressable data structures
JPH07239850A (en) Structured document preparation supporting system
JPH0793324A (en) Document editing device
JPH05265834A (en) Managing system for memo information
JPH02287730A (en) History control system
JP3444620B2 (en) Filing system equipment
JP3545190B2 (en) CAD system and recording medium
JPH0836578A (en) Tree structure data processing method and device therefor
JPS63298429A (en) Input device
JPH0785079A (en) Device for managing information file
JPH04348468A (en) Data base device
JPH0749757A (en) Data list display device
JPH04288593A (en) Image display device
JP2785966B2 (en) Foreign key dynamic resolution processing method
JPH0465756A (en) Method for relating document
JPH0744446A (en) Relating method for grouped information
JPS63153673A (en) Procedure of automatic synthesization for logic circuit construction and data base structure
KR0183915B1 (en) A variable long text editing method in database
Hernandez Scrivener for Dummies
JP2894264B2 (en) Data representation reference method and construction method of hypertext structure