JPH0628342A - Word processor - Google Patents
Word processorInfo
- Publication number
- JPH0628342A JPH0628342A JP4180099A JP18009992A JPH0628342A JP H0628342 A JPH0628342 A JP H0628342A JP 4180099 A JP4180099 A JP 4180099A JP 18009992 A JP18009992 A JP 18009992A JP H0628342 A JPH0628342 A JP H0628342A
- Authority
- JP
- Japan
- Prior art keywords
- data
- document
- text
- editing
- graph
- 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
Links
Landscapes
- Document Processing Apparatus (AREA)
Abstract
(57)【要約】
【目的】 一つの文章の文書データを他の文章に取込む
場合、その文書データの位置情報を文書データに付加し
た形で他の文章に取込ませるようにして、あとで、取込
んだ文書データに変更があるときは自動的に一方の文章
も変更されるようにする。
【構成】 表形態および/またはグラフ形態のデータが
格納可能な記憶手段と、そのデータの変更があると、そ
のデータの上記記憶手段中に位置情報を記憶する変更履
歴記憶手段とを具備し、その履歴を参照して、上記デー
タを取込む方の文章および取込まれる例の文章のデータ
を自動的に修正可能とする。
(57) [Summary] [Purpose] When importing the document data of one sentence into another sentence, the position information of the document data is added to the document data so that it is incorporated into another sentence. Then, when the captured document data is changed, one of the sentences is automatically changed. A storage unit capable of storing data in a tabular form and / or a graph form, and a change history storage unit for storing position information in the storage unit of the data when the data is changed, By referring to the history, it is possible to automatically correct the data of the sentence in which the above data is taken and the sentence of the example in which it is taken.
Description
【0001】[0001]
【産業上の利用分野】本発明は、文書処理装置に関し、
特に文章記憶、表記憶、グラフ記憶等の複数種類の記憶
手段と共にこれらに基づいて文書作成および編集機能を
備えた文書処理装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a document processing device,
In particular, the present invention relates to a plurality of types of storage means such as text storage, table storage, graph storage, and the like, and a document processing device having a document creating and editing function based on these storage means.
【0002】[0002]
【従来の技術】ワードプロセッサ等の文書処理装置で取
り扱われる文書の形態では、一連の言語の連なりからな
る文章の入力を主な目的としたテキスト記憶、ひとつの
対象となる情報につき複数の事項が項目別に羅別された
ものの集まりであるデータベースの記憶、表形態の文書
中に数値や計算式等を入力することによりデータを解析
することを目的とするスプレッドシート記憶、などが主
な記憶手段として用いられる。これら各種の文書記憶は
その使用目的により使い分けされ、それぞれの目的に適
応した操作を行うことで文書処理の向上が図られてき
た。2. Description of the Related Art In the form of a document handled by a document processing device such as a word processor, a text memory mainly for inputting a sentence consisting of a series of languages, and a plurality of items per item of information are items. The main storage means is the storage of a database, which is a collection of separated items, the storage of a spreadsheet for the purpose of analyzing data by inputting numerical values or calculation formulas in a tabular document. To be These various types of document storage are properly used depending on the purpose of use, and the document processing has been improved by performing an operation adapted to each purpose.
【0003】そして特に近年では、文書の多様化が要求
される中で、ひとつの文書処理中に他の文章を入力した
り、データベースを参照、あるいはデータの解析を同時
に実行することが望まれてきており、このようなテーマ
に応じて、現在の文書処理装置では次のような二通りの
方式が用いられている。In recent years, in particular, with the demand for document diversification, it has been desired to input another sentence during one document processing, refer to a database, or simultaneously analyze data. According to such a theme, the current document processing apparatus uses the following two methods.
【0004】(1)ひとつの文書格納中にその不特定の
範囲を擬似的に他種の文書記憶イメージで取り扱うこと
により、複数種の文書処理に対応する。(1) A plurality of types of document processing can be handled by artificially handling the unspecified range of another type of document storage image during storage of one document.
【0005】(2)メモリ上に複数種の文書記憶を同時
に展開し、各文書記憶中の一部のデータを互いに取り込
むことにより、複数種の文書記憶の特性を活かしたひと
つの文書記憶を生成する。(2) A plurality of types of document storage are simultaneously developed on a memory, and a part of the data stored in each document storage is mutually fetched to generate one document storage utilizing the characteristics of the plurality of types of document storage. To do.
【0006】[0006]
【発明が解決しようとする課題】しかしながら、上述し
たような従来の方式によるものでは、それぞれ次のよう
な欠点がある。However, each of the conventional methods as described above has the following drawbacks.
【0007】(1)の場合、一部の限定された範囲のデ
ータを一義的に変更する必要があり、データのイメ−ジ
が捕らえにくく、また機能的に制約を受けやすい。In the case of (1), it is necessary to uniquely change a part of the data in a limited range, so that the image of the data is hard to catch and the function is easily restricted.
【0008】(2)の場合は、各々の文書記憶が互いに
独立しているため、ある文書記憶の一部に他の文書記憶
を一旦取り込んでしまったあとは各文書記憶間では関連
がなくなってしまう。そのために、取り込まれた文書の
一部に修正を行なうような場合には、その部分を取り込
んだ先の文書に対しても修正を行いたいことが多いが、
このような時には、まずその取り込んだ部分を探し出し
て削除し、さらに修正のためにあらたに取り込む部分を
指定してその取り込みを実行しなければならず、非常に
煩雑である。また一方、他の文書の一部を参照するとい
うコマンドを文書に挿入する手段もあるが、コマンドで
は文書全体のイメージがつかみにくい。In the case of (2), since the respective document memories are independent of each other, once the other document memories are temporarily taken in as a part of a certain document memory, there is no relation between the respective document memories. I will end up. For this reason, if you make a correction to a part of the imported document, you often want to make corrections to the document that you imported that part.
In such a case, it is very troublesome to first find and delete the fetched portion and then specify the newly fetched portion for correction and execute the fetching. On the other hand, although there is a means for inserting a command to refer to a part of another document into a document, the command is difficult to grasp the image of the entire document.
【0009】本発明の目的は、上述した(2)の方法に
よる処理装置の欠点を補うべく、ある文書記憶による文
章(A)の一部の文書データを他の文書記憶による文章
(B)の中に取り込もうとする場合に、取り込まれる文
書データの文章(A)中での位置を記憶し、その位置情
報を、取り込まれる文書データに付加してから文章
(B)に取り込ませるとともに、一方、文章(A)の編
集時においてその変更する箇所を記憶しておくことによ
り、編集の終了後、文章(B)の編集画面への切り替え
にあたり、上記の変更箇所と取り込まれた文書の位置と
を比較して、取り込まれた文書の一部を内容が変更され
ている場合には文章(B)中に取り込まれた文書の内容
を自動的に更新可能な文書処理装置を提供することにあ
る。An object of the present invention is to make up for some of the document data (A) stored in one document and to replace the document (B) stored in another document in order to compensate for the drawbacks of the processing apparatus according to the method (2). When the document data to be captured is to be stored in the document (A), the position of the captured document data in the sentence (A) is stored, and the position information is added to the captured document data and then captured in the sentence (B). By storing the changed portion when the sentence (A) is edited, the above changed portion and the position of the captured document are stored when the sentence (B) is switched to the edit screen after the editing is completed. In comparison, it is an object of the present invention to provide a document processing apparatus capable of automatically updating the content of a document captured in a sentence (B) when the content of the captured document has been changed.
【0010】[0010]
【課題を解決するための手段】かかる目的を達成するた
めに、本発明は、文書情報をデータとして入力する入力
手段と、該入力手段により入力されたデ−タの格納が可
能な第1記憶手段と、前記入力手段により入力されたデ
ータに基づいて連続した文章の編集が可能な文章編集手
段と、該文章編集手段により編集された文章の格納が可
能な第2記憶手段と、該第2記憶手段に格納された文章
および前記第1記憶手段に格納されたデータの表示が可
能な表示手段とを有し、前記入力手段は表形態および/
またはグラフ形態に対してデータの入力が可能であり、
前記表形態および/またはグラフ形態のデータの格納が
可能な第3記憶手段と、該第3記憶手段に格納されてい
るデータの内容が前記文章編集手段による編集中変更さ
れると、変更された表形態および/またはグラフ形態の
前記第3記憶手段中の位置情報を記憶する表および/ま
たはグラフ変更履歴記憶手段とを具備したことを特徴と
するものである。To achieve the above object, the present invention provides an input means for inputting document information as data, and a first storage capable of storing data input by the input means. Means, text editing means capable of editing a continuous text based on the data input by the input means, second storage means capable of storing the text edited by the text editing means, and the second storage means Display means capable of displaying the text stored in the storage means and the data stored in the first storage means, and the input means has a tabular form and / or
Or you can enter data in graph form,
Third storage means capable of storing the data in the tabular form and / or the graph form, and the contents of the data stored in the third storage means are changed while being edited by the text editing means. Table and / or graph change history storage means for storing the position information in the third storage means in the form of a table and / or a graph are provided.
【0011】[0011]
【作用】本発明によれば、文章編集手段による文章の編
集中に、その表形態および/またはグラフ形態のデータ
に変更があると、その変更された個所の位置情報がその
都度、変更履歴記憶手段に格納されるもので、編集終了
後上記の変更を読み出して、文章編集手段に取込まれた
変更すべき情報を自動的に変更することができる。According to the present invention, when the data in the tabular form and / or the graph form is changed while the text is being edited by the text editing means, the position information of the changed part is stored in the change history each time. The information stored in the text editing means can be read out after the editing is completed, and the information to be changed taken in by the text editing means can be automatically changed.
【0012】[0012]
【実施例】以下に、図面に基づいて本発明の実施例を詳
細かつ具体的に説明する。Embodiments of the present invention will be described in detail and specifically below with reference to the drawings.
【0013】図1は、本発明を実施するための文書処理
装置の基本的構成を示すブロック図である。ここで、1
はキーボード等で構成される入力部で、図示しない文字
キー,命令キーが所定位置に配列されており、これらの
各種のキーを押下することによりキーコードデータが入
力される。2はフロッピーディスクドライブ(FD)ユ
ニットであり、過去に作成されたテキスト文書や表デー
タ等がファイルとして記憶されている。3はプリンタで
あり、印字用ヘッドやインクリボンまたはインクカセッ
ト等をキャリアに搭載し、RAM7に記憶された作成文
書を出力する。4はRAM7に記憶された作成文書等の
表示を行なう表示装置である。5はキーボード1から入
力されたキーコードデータにより文書データの処理を行
なう中央演算処理装置(CPU)、6はCPU5により
制御するための各種プログラム6A等を有するリードオ
ンリーメモリ(ROM)でありCPU5ではROM6中
に存在する制御プログラム6Aに従って、各ユニットの
動作の制御を行なう。FIG. 1 is a block diagram showing the basic configuration of a document processing apparatus for carrying out the present invention. Where 1
Is an input unit composed of a keyboard or the like, in which character keys and command keys (not shown) are arranged at predetermined positions, and key code data is input by pressing these various keys. A floppy disk drive (FD) unit 2 stores text documents, table data, etc. created in the past as files. A printer 3 has a print head, an ink ribbon, an ink cassette, or the like mounted on a carrier, and outputs a created document stored in the RAM 7. Reference numeral 4 denotes a display device for displaying the created document or the like stored in the RAM 7. Reference numeral 5 denotes a central processing unit (CPU) that processes document data according to key code data input from the keyboard 1, and 6 denotes a read-only memory (ROM) having various programs 6A for controlling by the CPU 5. The operation of each unit is controlled according to the control program 6A existing in the ROM 6.
【0014】なお、ランダムアクセスメモリ(RAM)
7は、入力文書の記憶場所を格納するデータポインタ領
域7A、文章形態の文書を記憶するテキストメモリ領域
7B、表形態の文書を記憶するスプレッドシートメモリ
領域7C、グラフ文書を記憶するグラフメモリ領域7
D、制御プログラム6Aの実行時にCPU5で処理する
一時変数を記憶するワークメモリ7E等を有している。A random access memory (RAM)
Reference numeral 7 denotes a data pointer area 7A for storing a storage location of an input document, a text memory area 7B for storing a document in a text format, a spreadsheet memory area 7C for storing a document in a tabular format, and a graph memory area 7 for storing a graph document.
D, a work memory 7E for storing temporary variables processed by the CPU 5 when the control program 6A is executed, and the like.
【0015】ついで、以下に、本発明の実施例としてテ
キスト文書格納中に、スプレッドシート記憶の入力機能
を用いて作成した表データをマージ(取り込み)する段
階の処理と、さらにその後、テキスト文書中にマージさ
れた部分を編集して、スプレッドシート記憶の編集を終
了し、テキスト文書の編集に切り替える際に、マージさ
れている表データの編集された部分について更新を行な
う場合の処理とについて述べる。In the following, as an embodiment of the present invention, a process of merging (capturing) table data created by using the input function of the spreadsheet storage during the storage of the text document, and further after that, in the text document The processing for updating the edited portion of the merged table data when editing the merged portion of the table, ending the editing of the spreadsheet storage, and switching to editing the text document will be described.
【0016】図2は、上述したRAM7に設定される記
憶領域の分布例としてテキストファイル用メモリの構成
を示す。なお、1つのメモリRAM7上にはテキスト文
書とスプレッドシート文書とグラフ文書とが同時に、そ
れぞれ独立して格納されるものである。ここで、7.1
データポインタ領域で、テキストファイルに含まれるテ
キスト文書データ領域の開始アドレスをファイルの先頭
からのオフセット値として保有する。7.2はスプレッ
ドシートデータポインタ領域で、テキストファイルに含
まれるスプレッドシートデータ領域の開始アドレスをフ
ァイルの先頭からのオフセット値として保有する。7.
3はグラフデータ用ポインタ領域で、テキストファイル
に含まれるグラフデータ領域の開始アドレスをファイル
の先頭からのオフセット値として保有する。また、7.
4はテキスト文書データ領域であり、キーボード1等の
入力機器から入力された文章データを記憶すると共に、
他種の文書記憶の一部から取り込んだ表データ7.41
やグラフデータ7.42などを記憶している。FIG. 2 shows the configuration of a text file memory as an example of distribution of the storage areas set in the RAM 7 described above. A text document, a spreadsheet document, and a graph document are simultaneously and independently stored in one memory RAM 7. Where 7.1
The data pointer area holds the start address of the text document data area included in the text file as an offset value from the beginning of the file. A spreadsheet data pointer area 7.2 holds the start address of the spreadsheet data area included in the text file as an offset value from the beginning of the file. 7.
A graph data pointer area 3 holds the start address of the graph data area included in the text file as an offset value from the beginning of the file. Also, 7.
A text document data area 4 stores text data input from an input device such as the keyboard 1, and
Table data 7.41 imported from part of other types of document storage
And graph data 7.42 are stored.
【0017】7.5はスプレッドシートデータ領域であ
り、キーボード1等の入力機器から入力された表の項目
データを格納する文書データ領域7.53、テキスト文
書データに書込まれたデータの情報を記憶するマージテ
ーブル領域7.54と、それらのデータ領域7.53お
よび7.54の開始アドレスをスプレッドシートデータ
領域7.5の先頭からのオフセット値として保有する文
書データポインタ領域7.51、マージテーブルデータ
ポインタ領域7.52などが設けられている。Reference numeral 7.5 denotes a spreadsheet data area, which is a document data area 7.53 for storing item data of a table input from an input device such as the keyboard 1 and information of data written in text document data. A merge table area 7.54 to be stored, a document data pointer area 7.51 that holds the start addresses of those data areas 7.53 and 7.54 as offset values from the beginning of the spreadsheet data area 7.5, and a merge A table data pointer area 7.52 and the like are provided.
【0018】7.6はグラフデータ領域であり、この領
域7.6にはキーボード1等の入力機器から入力された
グラフの項目データを記憶するグラフデータ領域7.6
3、テキスト文書データに書込まれたグラフデータの情
報を記憶するマージテーブル7.64と、それらのデー
タ領域7.63および7.64の開始アドレスをグラフ
データ領域7.6の先頭からのオフセット値として保有
するグラフデータポインタ領域7.61、マージテーブ
ルデータポインタ領域7.62などが設けられている。Reference numeral 7.6 is a graph data area. In this area 7.6, a graph data area 7.6 for storing item data of a graph input from an input device such as the keyboard 1 is stored.
3. The merge table 7.64 that stores the information of the graph data written in the text document data, and the start addresses of those data areas 7.63 and 7.64 are offset from the beginning of the graph data area 7.6. A graph data pointer area 7.61, a merge table data pointer area 7.62, and the like, which are held as values, are provided.
【0019】また図3は、図2に示すメモリにおけるマ
ージテーブル7.54の構成の詳細を示すもので、ここ
で、マージテーブル7.54は1つのマージカウンタ
8、複数個のマージ文書位置情報9.1,9.2…から
構成されている。なお、マージカウンタ8はマージ文書
位置情報の個数nを示すもので、スプレッドシートの文
書データ領域7.53では文書用メモリがセルと呼ばれ
る小さなブロックに分けられており、そのセルが格子状
に組み合わされて表形態の文書を構築している。また、
9.1および9.2で示すマージ文書位置情報はその格
子状に組み合わされた文書データブロックの左上端のセ
ルの位置および右下端のセルの位置の2種類の情報から
なり、マージされた文書データ7.53内の表データ
9.4のスプレッドシートデータ領域7.5内での位置
を示している。一方、文書データ領域7.4中にマージ
された表データ9.4は表データ9.5に変換される
と、マージテーブル7.54を参照するためにタグ9.
3が付加される。タグ9.3ではマージされた表のマー
ジテーブル7.54中での順位が保存され、スプレッド
シートデータ領域7.5中での表データ9.4の位置が
参照できるようになっている。また、その他スプレッド
シートの文書データ領域7.53での編集時のためにテ
キストファイル外のメモリにセル変更フラグテーブル1
0が設けられていて、マージテーブル7.54の各マー
ジ文書位置情報に一対一に対応したフラグが設定され
る。FIG. 3 shows the details of the configuration of the merge table 7.54 in the memory shown in FIG. 2, in which the merge table 7.54 is one merge counter 8 and a plurality of merge document position information. It is composed of 9.1, 9.2 ... The merge counter 8 indicates the number n of merged document position information. In the document data area 7.53 of the spreadsheet, the document memory is divided into small blocks called cells, and the cells are combined in a grid pattern. In this way, a tabular document is constructed. Also,
The merged document position information shown in 9.1 and 9.2 consists of two types of information, that is, the position of the cell at the upper left corner and the position of the cell at the lower right corner of the document data blocks combined in the grid pattern, and the merged document The position of the tabular data 9.4 in the data 7.53 in the spreadsheet data area 7.5 is shown. On the other hand, when the table data 9.4 merged in the document data area 7.4 is converted into the table data 9.5, the tag 9.
3 is added. The tag 9.3 stores the rank of the merged table in the merge table 7.54, and the position of the table data 9.4 in the spreadsheet data area 7.5 can be referred to. In addition, the cell change flag table 1 is stored in the memory outside the text file for editing in the other spreadsheet document data area 7.53.
0 is provided and a flag corresponding to each merged document position information in the merge table 7.54 is set.
【0020】図4は、本発明の文書処理装置によりデー
タをマージする時の制御手順を示すフローチャートであ
る。いま、テキスト文書の文章をキーボード1等の入力
機器から入力中にスプレッドシート記憶中の表のマージ
を行おうとする場合、操作者は入力機器によりスプレッ
ドシート文書のマージを実行するためのコマンドを入力
することによって図4に示すフローチャートに従い動作
が開始される。すなわち、ステップS1では現在編集中
のテキスト文書データのために領域7.4に確保されて
いる空き領域の後方にある全ての文書データを空き領域
の前方へ移動して、クローズし空き領域をメモリ全体の
末尾に設定する。ついで、ステップS2で、スプレッド
シートデータポインタ7.2を参照して、スプレッドシ
ートデータ領域7.5の文書データ領域7.53中に空
き領域を確保するようにデータを移動してオープンとな
し、以降の操作に備える。そして、ステップS3では操
作者によりオープンされた文書データ領域7.53でマ
ージを実行するデータの部分範囲を指定する。指定方法
には各種の方法があるが、例えばマージを実行するデー
タの部分の左上端のセルの位置と右下端のセルの位置を
カーソル移動キーで指定して決定キーの押下によりその
位置を決定し、双方のセルで囲まれた矩形状の領域を指
定範囲とする等の方法がある。次に、ステップS4で、
マージテーブル領域7.54に新しくマージされる文書
データを格納するために、図4に示すように、テーブル
領域7.54のマージカウンタ位置8の値(n)を1増
やす。ついで、ステップS5で、ステップS3において
操作者により設定されたマージを実行するデータの範囲
の左上端のセルの位置L1および右下端のセルの位置R
1を、マージテーブル領域7.54に位置9.1および
9.2として追加し書き込む。次にステップS6で、ス
プレッドシート文書をクローズするため、スプレッドシ
ートデータ領域7.5の文書データのために確保されて
いる領域7.53の空き領域の後方にある全ての文書デ
ータを空き領域の前方へ移動してクローズし、空き領域
をメモリ全体の末尾に設定する。そして、ステップS7
でテキスト文書データ領域7.4中に空き領域を確保す
るようにデータを移動してオープンになし、テキスト文
書の編集状態に復帰する。そして、ステップS8におい
てテキスト文書データ領域7.4中にマージ開始コマン
ドおよび、ステップS5でマージテーブル領域7.54
に追加して書き込んだマージ文書位置情報の順位を示す
タグ9.3を付加する。そして、ステップS9で、ステ
ップS3で指定したマージする範囲のデータをテキスト
文書用に変換し、先にステップS8で付加したタグ9.
3のコードの後に展開し、ステップS10で、マージ終
了コマンドをステップS9で展開したテキスト文書領域
7.4のデータの後に付加し、テキスト編集用の変数を
更新して操作を終了する。FIG. 4 is a flow chart showing a control procedure when data is merged by the document processing apparatus of the present invention. Now, when attempting to merge the tables stored in the spreadsheet while the text of the text document is being input from the input device such as the keyboard 1, the operator inputs a command for executing the merge of the spreadsheet document using the input device. By doing so, the operation is started according to the flowchart shown in FIG. That is, in step S1, all the document data behind the empty area secured in the area 7.4 for the text document data currently being edited is moved to the front of the empty area, and the empty area is closed. Set at the end of the whole. Then, in step S2, referring to the spreadsheet data pointer 7.2, the data is moved and opened so as to secure an empty area in the document data area 7.53 of the spreadsheet data area 7.5. Prepare for subsequent operations. Then, in step S3, a partial range of data to be merged is designated in the document data area 7.53 opened by the operator. There are various methods to specify, for example, specify the position of the cell at the upper left corner and the position of the cell at the lower right corner of the data part to be merged with the cursor movement keys and press the Enter key to determine the position. However, there is a method of setting a rectangular area surrounded by both cells as a specified range. Next, in step S4,
In order to store the newly merged document data in the merge table area 7.54, the value (n) at the merge counter position 8 in the table area 7.54 is incremented by 1, as shown in FIG. Then, in step S5, the position L1 of the cell at the upper left end and the position R of the cell at the lower right end of the range of data to be merged set by the operator in step S3.
1 is added and written to the merge table area 7.54 as positions 9.1 and 9.2. Next, in step S6, to close the spreadsheet document, all the document data behind the empty area 7.53 reserved for the document data in the spreadsheet data area 7.5 is set to the empty area. Move forward and close, setting free space to end of entire memory. Then, step S7
Then, the data is moved so as to secure an empty area in the text document data area 7.4, the data is not opened, and the edit state of the text document is restored. Then, a merge start command is entered in the text document data area 7.4 in step S8, and a merge table area 7.54 is entered in step S5.
A tag 9.3 indicating the order of the merged document position information additionally written in is added. Then, in step S9, the data in the range to be merged designated in step S3 is converted into a text document, and the tag 9.
It is expanded after the code of No. 3, and in step S10, a merge end command is added after the data of the text document area 7.4 expanded in step S9, the variable for text editing is updated, and the operation ends.
【0021】図5は、本発明の文書処理装置にによるス
プレッドシート文書の文書データ編集およびその終了時
の制御手段を示すフローチャートである。FIG. 5 is a flow chart showing the control means at the time of editing the document data of the spreadsheet document by the document processing apparatus of the present invention and at the end thereof.
【0022】スプレッドシート記憶の入力機能を用いて
作成した表の編集を行おうとする場合、操作者は入力機
器からスプレッドシート文書の編集を実行するためのコ
マンドを入力することにより、図5のフローチャートに
従って動作が開始される。すなわち、ステップS11
で、スプレッドシートデータポインタ領域7.2を参照
することにより、スプレッドシートデータ領域7.5の
文書データ領域7.53中に空き領域を確保するように
データを移動して以降の操作に備える。次に、ステップ
S12で、テキストファイル外のメモリに図4に示すよ
うに変更フラグテーブル10を確保し、マージテーブル
領域7.54の各マージ文書位置情報9.1,9.2,
…に一対一に対応したフラグを全てオフに初期化する。
そして、ステップS13において、スプレッドシート文
書の各種の編集機能を実行する。ステップS14ではス
テップS13で実行されたスプレッドシート文書の編集
機能が終了したか否かを判断し、終了したとの判断であ
ればステップS21に進み、そうでなければステップS
15に進む。When attempting to edit a table created using the input function of the spreadsheet storage, the operator inputs a command for executing the edit of the spreadsheet document from the input device, and the flowchart of FIG. The operation is started according to. That is, step S11
Then, by referring to the spreadsheet data pointer area 7.2, the data is moved so as to secure a free area in the document data area 7.53 of the spreadsheet data area 7.5, and the subsequent operation is prepared. Next, in step S12, the change flag table 10 is secured in the memory outside the text file as shown in FIG. 4, and each merged document position information 9.1, 9.2 in the merge table area 7.54 is secured.
All flags corresponding to one-to-one with ... are initialized to off.
Then, in step S13, various editing functions of the spreadsheet document are executed. In step S14, it is determined whether or not the editing function of the spreadsheet document executed in step S13 is completed. If it is determined that the editing function is completed, the process proceeds to step S21.
Proceed to 15.
【0023】ステップS15ではマージテーブル領域
7.54から一つのマージ文書位置情報を読み出し、次
のステップS16で、ステップS15においてマージ文
書位置情報が読み出せたか否かを判定し、読み出せたな
らばステップS17に進み、そうでなければステップS
13に戻ってスプレッドシート文書の各種の編集機能を
続行する。ステップS17に進んだ場合は、ステップS
13で実行された機能により内容の変更されたセルの位
置がステップS15で読み出されたマージ文書位置情報
により指定されている範囲の中に含まれているか否かを
判断し、含まれているならばステップS18に進み、そ
うでなければステップS19に進む。ステップS18に
進んだ場合は、S17で他の文書に取り込まれた文書に
含まれるセルの内容が変更されたと判定したことに基づ
いて、セル変更フラグテーブル10のうちのステップS
15で読み出したマージ文書位置情報に対応する更新フ
ラグをオンにする。また、ステップS19ではさらにス
テップS13で実行された編集機能により文書中での位
置が変更されたセルが、ステップS15で読み出された
マージ文書位置情報により指定されている範囲の中に含
まれているかどうかを判断し、含まれているならばステ
ップS20に進み、そうでなければステップS15に戻
って次のマージ文書位置情報を読み出す。In step S15, one merged document position information is read from the merge table area 7.54, and in the next step S16, it is judged whether or not the merged document position information was read in step S15. If not, go to step S17.
Return to 13 to continue the various editing functions of the spreadsheet document. If the process proceeds to step S17, then step S
It is determined whether or not the position of the cell whose content has been changed by the function executed in step 13 is included in the range specified by the merged document position information read in step S15. If so, the process proceeds to step S18, and if not, the process proceeds to step S19. If the process proceeds to step S18, it is determined in step S17 of the cell change flag table 10 that the content of the cell included in the document captured in another document is changed in step S17.
The update flag corresponding to the merged document position information read in 15 is turned on. In step S19, the cell whose position in the document is changed by the editing function executed in step S13 is included in the range specified by the merged document position information read in step S15. If it is included, the process proceeds to step S20. If not included, the process returns to step S15 to read the next merged document position information.
【0024】そしてステップS20では、ステップS1
9での他の文書に取り込まれた文書に含まれるセルの位
置が変更されたとの判断に基づいて、マージテーブル領
域7.54中のマージ文書位置情報として左上端のセル
の位置9.1と右下端のセルの位置9.2の2種類の情
報による内容を、変更された度合いに従って更新し、ス
テップS15に戻って再び次のマージ文書位置情報を読
み出す。Then, in step S20, step S1
On the basis of the judgment that the position of the cell included in the document captured in another document in 9 has been changed, the position 9.1 of the cell at the upper left end is set as the merged document position information in the merge table area 7.54. The contents of the two types of information at the cell position 9.2 at the lower right corner are updated according to the changed degree, and the process returns to step S15 to read the next merged document position information again.
【0025】ステップS21では、ステップS14で編
集が終了したと判断した場合に、スプレッドシート文書
をクローズする。そのために、スプレッドシート領域
7.5の文書データ領域7.53に文書データのために
確保されている空き領域の後方にある全ての文書データ
を空き領域の前方に移動し、空き領域をメモリ全体の末
尾に設定する。そしてステップS22ではテキスト文書
データ領域7.4中に空き領域を確保するようにデータ
を移動してテキスト文書の編集状態へ復帰する。そし
て、ステップS23で、セル変更フラグテーブル10か
ら一つの更新フラグを読み出し、次のステップS24
で、ステップS23においてセル変更フラグテーブル1
0から更新フラグが読み出せたか否かを判断し、読み出
せたならばステップS25に進み、そうでなければ通常
のテキスト文書の各種に編集機能を実施する。In step S21, if it is determined in step S14 that the editing is completed, the spreadsheet document is closed. Therefore, in the document data area 7.53 of the spreadsheet area 7.5, move all the document data behind the empty area reserved for the document data to the front of the empty area, and move the empty area to the entire memory. Set at the end of. Then, in step S22, the data is moved so as to secure an empty area in the text document data area 7.4, and the state of editing the text document is restored. Then, in step S23, one update flag is read from the cell change flag table 10, and the next step S24.
Then, in step S23, the cell change flag table 1
It is determined from 0 whether or not the update flag can be read. If the update flag can be read, the process proceeds to step S25. If not, the editing function is performed on various types of ordinary text documents.
【0026】ステップS25ではステップS23で読み
出された更新フラグの有無を判断し、肯定の判断ならば
ステップS26に進み、そうでなければステップS23
に戻って次の更新フラグを読み出す。そして、ステップ
S26で、先に読み出された更新フラグのセル変更フラ
グテーブル10における順位に相当するタグ9.3をテ
キスト文書データ領域7.4から探し、ステップS27
において、ステップS26で探しだされたタグ9.3よ
り前に存在するマージ開始コマンドからマージ終了コマ
ンドまでのマージされている表データを全て削除する。
ステップS28では現在調べている更新フラグのセル変
更フラグテーブル10内での順位に対応するマージテー
ブル領域7.54中の位置のマージ文書位置情報を読み
出し、そのデータが示すスプレッドシート文書のデータ
領域7.53内の表データ9.4のデータをテキスト文
書用に変換する。そして、ステップS27で削除したコ
ードの位置に展開し、テキストの編集用の変数を更新す
る。その後はステップS23に戻り全ての更新フラグに
ついてステップS23〜S28を繰り返す。In step S25, it is determined whether or not the update flag read in step S23 is present. If the determination is affirmative, the process proceeds to step S26, and if not, step S23.
Return to and read the next update flag. Then, in step S26, the tag 9.3 corresponding to the rank in the cell change flag table 10 of the previously read update flag is searched from the text document data area 7.4, and step S27
In step S26, all the merged table data from the merge start command to the merge end command existing before the tag 9.3 found in step S26 are deleted.
In step S28, the merged document position information of the position in the merge table area 7.54 corresponding to the rank in the cell change flag table 10 of the update flag currently being examined is read out, and the data area 7 of the spreadsheet document indicated by the data is read. Convert the table data 9.4 in 0.53 for text documents. Then, the code is expanded to the position of the code deleted in step S27, and the variable for editing the text is updated. After that, the process returns to step S23 and steps S23 to S28 are repeated for all update flags.
【0027】図6は、データのマージに関連するデータ
記憶手段の領域にかかわる他の構成例を示す。本例は、
先に図2に示した文書データポインタ7.51,マージ
テーブルポインタ7.52や、マージテーブル7.54
などマージ関連の記憶領域が存在しない例であり、文書
データ領域7.4においてテキスト文書中にマージされ
ている表データ5.3に図3の例での左上端のセルの位
置9.1と右下端のセルの位置9.2とにそれぞれ相当
する左上端のセルの位置5.1と右下端のセルの位置
5.2との2種類の情報が付加されている。これら2つ
の位置情報は、上記のマージされている表データ5.3
に対応する表データ5.4のスプレッドシート内の文書
データ領域7.53内での相対位置を示すもので、図3
の例に比べ、スプレッドシートデータ領域7.5中での
表データ5.4の位置が直接参照できる構成になってい
る。その他、スプレッドシートの文書データ領域7.5
3での編集時には、テキストファイル外に設けたセル変
更フラグテーブル5.5により、テキスト文書内の角マ
ージ文書位置情報に一体一に対応したフラグを設定する
ことができ、これらにより図3に示したセル変更フラグ
テーブル10と同様の処理を行なうことができる。FIG. 6 shows another example of the configuration related to the area of the data storage means related to the data merging. In this example,
The document data pointer 7.51, the merge table pointer 7.52, and the merge table 7.54 shown in FIG.
This is an example in which there is no merge-related storage area, and the table data 5.3 merged into the text document in the document data area 7.4 has the cell position 9.1 at the upper left corner in the example of FIG. Two types of information are added: an upper left cell position 5.1 and a lower right cell position 5.2, which respectively correspond to the lower right cell position 9.2. These two pieces of position information are the merged table data 5.3 described above.
3 shows the relative position in the document data area 7.53 in the spreadsheet of the table data 5.4 corresponding to FIG.
Compared to the example of 1, the position of the table data 5.4 in the spreadsheet data area 7.5 can be directly referenced. Other, spreadsheet document data area 7.5
When editing with 3, the cell change flag table 5.5 provided outside the text file can set a flag that corresponds to the corner merge document position information in the text document all together. The same processing as the cell change flag table 10 can be performed.
【0028】[0028]
【発明の効果】以上説明したように、本発明によれば、
ある文章(A)の一部の文書データを他の文章(B)の
中に取り込もうとするデータの文書中での位置を変更履
歴記憶手段中に記憶し、その位置の情報を取り込もうと
する文書データに付加してから文章(B)に取り込ませ
るとともに、文章(A)の編集時にその変更箇所を上記
記憶手段に記憶し、編集の終了後文章(B)の編集画面
に切り替えるごとに変更箇所と取り込まれた文書データ
の位置とを比較することにより取り込まれた文書データ
の一部が変更されている場合には文章(B)中に取り込
まれたデータの内容を自動的に更新するもので、これに
より文章(A)の文書データを修正するだけで一旦文章
(B)に取り込んだ文書データを改めて変更する手間が
省かれる。As described above, according to the present invention,
A document in which part of the document data of a certain sentence (A) is taken into another sentence (B), the position in the document of the data is stored in the change history storage means, and the information of the position is taken in. It is added to the data and then taken into the sentence (B), and when the sentence (A) is edited, the changed portion is stored in the storage means, and the changed portion is changed every time the editing screen of the sentence (B) is changed after the editing. When a part of the captured document data is changed by comparing the position of the captured document data with that of the captured document data, the content of the captured data in the sentence (B) is automatically updated. As a result, the trouble of changing the document data once captured in the sentence (B) only by correcting the document data of the sentence (A) is saved.
【0029】また、上述の実施例ではテキスト文書中に
スプレッドシートの入力手段を用いて作成した表データ
のマージを実行し、その後、表データのマージされた部
分を編集した後、テキスト文書に復帰するにあたってテ
キスト文書にマージされた部分を修正する場合について
の例を挙げたが、図3や図6に示したようなデータ格納
手段を用いることにより、グラフデータについてマージ
する場合でも同様の処理を施すことにより同様の効果が
得られるのはいうまでもない。In the above-described embodiment, the table data created by using the input means of the spreadsheet is merged in the text document, and the merged portion of the table data is edited and then the text document is restored. In this case, an example of correcting a part merged with a text document has been given. However, by using the data storage means shown in FIG. 3 and FIG. It goes without saying that the same effect can be obtained by applying it.
【図1】本発明の基本的な構成を示すブロック図であ
る。FIG. 1 is a block diagram showing a basic configuration of the present invention.
【図2】本発明による記憶手段の具体的な構成を示す説
明図である。FIG. 2 is an explanatory diagram showing a specific configuration of a storage unit according to the present invention.
【図3】図2のさらに詳細な構成を示す説明図である。3 is an explanatory diagram showing a more detailed configuration of FIG. 2. FIG.
【図4】本発明によるデータのマージ実行時の制御手順
を示すフローチャートである。FIG. 4 is a flowchart showing a control procedure at the time of executing data merge according to the present invention.
【図5】本発明によるスプレッドシート文書の文書デー
タの編集実行時から終了時にかけての制御手順を示すフ
ローチャートである。FIG. 5 is a flow chart showing a control procedure from the execution of editing of document data of a spreadsheet document to the end thereof according to the present invention.
【図6】本発明の第2実施例による記憶手段の詳細な構
成を示す説明図である。FIG. 6 is an explanatory diagram showing a detailed configuration of a storage unit according to a second exemplary embodiment of the present invention.
1 キーボード 4 ディスプレイ 5 CPU 6 ROM 6A 制御プログラム 7 RAM 7A データポインタ領域 7B テキスト領域 7C スプレッドシート領域 7D グラフ領域 7E ワークメモリ 7.4 文書データ領域 7.5 スプレッドシートデータ領域 7.54 マージテーブル 7.6 グラフデータ領域 8 マージカウンタ 9.1,9.2 セルの位置 10 フラグテーブル 1 Keyboard 4 Display 5 CPU 6 ROM 6A Control Program 7 RAM 7A Data Pointer Area 7B Text Area 7C Spreadsheet Area 7D Graph Area 7E Work Memory 7.4 Document Data Area 7.5 Spreadsheet Data Area 7.54 Merge Table 7. 6 Graph Data Area 8 Merge Counter 9.1, 9.2 Cell Position 10 Flag Table
Claims (2)
段と、 該入力手段により入力されたデ−タの格納が可能な第1
記憶手段と、 前記入力手段により入力されたデータに基づいて連続し
た文章の編集が可能な文章編集手段と、 該文章編集手段により編集された文章の格納が可能な第
2記憶手段と、 該第2記憶手段に格納された文章および前記第1記憶手
段に格納されたデータの表示が可能な表示手段とを有
し、 前記入力手段は表形態および/またはグラフ形態に対し
てデータの入力が可能であり、 前記表形態および/またはグラフ形態のデータの格納が
可能な第3記憶手段と、 該第3記憶手段に格納されているデータの内容が前記文
章編集手段による編集中変更されると、変更された表形
態および/またはグラフ形態の前記第3記憶手段中の位
置情報を記憶する表および/またはグラフ変更履歴記憶
手段とを具備したことを特徴とする文書処理装置。1. An input unit for inputting document information as data, and a first unit capable of storing data input by the input unit.
Storage means, text editing means capable of editing a continuous text based on the data input by the input means, second storage means capable of storing the text edited by the text editing means, 2 a display means capable of displaying the text stored in the storage means and the data stored in the first storage means, wherein the input means is capable of inputting data in a tabular form and / or a graph form And a third storage unit capable of storing the tabular and / or graph data, and the contents of the data stored in the third storage unit being changed during editing by the text editing unit, A document processing apparatus, comprising: a table and / or a graph change history storage unit for storing the position information in the third storage unit in a changed table form and / or graph form.
入力手段により前記第3記憶手段に格納されている前記
表形態および/またはグラフ形態のデータの一部を取り
込む機能を具え、 該機能の実行ごとに取り込んだデータを記憶する連結文
書情報記憶手段を有し、 該連結文書情報記憶手段における前期取り込んだデータ
の位置を示す位置指示情報を前期取り込んだ形態および
/またはグラフ形態のデータに付加することにより、 前記第3記憶手段に格納されているデータの編集を実行
後、前記文章編集手段による編集に切り替えるときに、
前記連結文書情報記憶手段と前記表および/またはグラ
フ変更履歴記憶手段とを参照して、前記文章編集手段に
取り込まれた経歴のある前記表形態および/またはグラ
フ形態のデータの一部が変更されている場合には前記文
章編集手段に取り込まれている前記データの内容を自動
的に更新することを特徴とする請求項1に記載の文書処
理装置。2. A function for fetching a part of the tabular data and / or the graph data stored in the third storage means by the input means while the text is stored in the second storage means, Data having a concatenated document information storage unit that stores the captured data each time the function is executed, and data in a form and / or graph form in which the position indicating information indicating the position of the previously captured data in the concatenated document information storage unit is previously captured By adding to the third storage means, after editing the data stored in the third storage means, when switching to the editing by the text editing means,
With reference to the linked document information storage means and the table and / or graph change history storage means, a part of the table-type and / or graph-type data having a history captured by the text editing means is changed. The document processing apparatus according to claim 1, wherein the content of the data taken in by the text editing means is automatically updated when the text editing means.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP4180099A JPH0628342A (en) | 1992-07-07 | 1992-07-07 | Word processor |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP4180099A JPH0628342A (en) | 1992-07-07 | 1992-07-07 | Word processor |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0628342A true JPH0628342A (en) | 1994-02-04 |
Family
ID=16077416
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP4180099A Pending JPH0628342A (en) | 1992-07-07 | 1992-07-07 | Word processor |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0628342A (en) |
-
1992
- 1992-07-07 JP JP4180099A patent/JPH0628342A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5408599A (en) | Editing apparatus for simultaneously editing two different types of data with a single edit command | |
| JPH0541997B2 (en) | ||
| JPH07219754A (en) | Requirement definition support device using screen transition diagram | |
| JPS59132029A (en) | Kana-kanji converting device | |
| JPS62177654A (en) | Document producer | |
| JP3595925B2 (en) | Editing support method using database and recording medium storing the program | |
| JPS6365988B2 (en) | ||
| JPH0944580A (en) | Record creation method | |
| JPH06282543A (en) | Document editing device | |
| JP2978178B2 (en) | Document creation apparatus and control method thereof | |
| JP3213455B2 (en) | Document processing device rearrangement method | |
| JPH0628348A (en) | Document processor | |
| JP3347322B2 (en) | Document processing apparatus and document processing method in the apparatus | |
| JPH04216975A (en) | Form registration device | |
| JPH06214789A (en) | Fuzzy rule development support device | |
| JPH05242080A (en) | Character processor | |
| JPH0644237A (en) | Document shaping device | |
| JPH01209566A (en) | document creation device | |
| JPH04299451A (en) | System and device for supporting document correction | |
| JPH03269665A (en) | Original character drawing/character font control system | |
| JP2001101048A (en) | Document creation device | |
| JPH0821036B2 (en) | Document editing device | |
| JPH08221551A (en) | How to display data on the screen | |
| JPH05257931A (en) | Sentence editor | |
| JPH0664574B2 (en) | Indent control method for document processor |