JP2013097587A - Document processing device and method - Google Patents
Document processing device and method Download PDFInfo
- Publication number
- JP2013097587A JP2013097587A JP2011239904A JP2011239904A JP2013097587A JP 2013097587 A JP2013097587 A JP 2013097587A JP 2011239904 A JP2011239904 A JP 2011239904A JP 2011239904 A JP2011239904 A JP 2011239904A JP 2013097587 A JP2013097587 A JP 2013097587A
- Authority
- JP
- Japan
- Prior art keywords
- chapter
- document
- paste
- data
- attribute
- 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.)
- Granted
Links
Images
Abstract
Description
本発明は文書処理装置及び方法に関するものである。特に様々なアプリケーションによって生成される出力データを1つの文書としてまとめ、その文書に対する編集機能を提供する文書処理方法及びその装置に関するものである。 The present invention relates to a document processing apparatus and method. In particular, the present invention relates to a document processing method and apparatus for collecting output data generated by various applications as one document and providing an editing function for the document.
従来、文字、表、図形など、データ種類別に文書を生成する様々なアプリケーションプログラムが提供されている。しかし、利用者が所望する文書は、複数種類のデータから構成される複合文書の方が一般的であるため、利用者は各種アプリケーションが備えている印刷機能を利用してアプリケーションごとにデータを印刷させ、印刷物を所望の順序に組み合わせる必要があった。そこで、そのような手間を削減するためには、各種アプリケーションで作成された複数の文書を1つの文書に結合し、印刷設定やページ順序を編集操作する必要がある。 Conventionally, various application programs for generating a document for each data type such as a character, a table, and a graphic are provided. However, since the document desired by the user is generally a compound document composed of a plurality of types of data, the user prints data for each application using the print function provided by various applications. And the prints had to be combined in the desired order. Therefore, in order to reduce such time and effort, it is necessary to combine a plurality of documents created by various applications into one document and edit the print settings and the page order.
特許文献1には、編集操作として、複数の文書を1つの文書に結合するために、特定の印刷設定のページ群を章として管理し、章やページ単位の移動や複製等を行う文書処理方法が開示されている。この文書処理方法は、移動先又は複製先の印刷設定を反映させるか、移動元又は複製元の印刷設定を維持するかのどちらが指示されているかを判定し、対象となっている複数ページのページごとに印刷設定を設定する。
しかし、特許文献1に開示される文書処理方法において、文書データの部分データの移動や複製を行う場合、文書データの移動先や複製先における既存章とのマージなどの文書処理工程まで考慮されていなかった。このような文書処理工程を考慮しない文書処理方法では、章単位の文書データの移動や複製においては、常に既存章の構成とは別の新しい章が常に生成されてしまう。一方で、移動元や複製元でページデータを選択した場合は、常に移動先や複製先の章の中に挿入されてしまう。そのため、移動後や複製後に、新章から既存の章内にページを移動して不要になった空の章を削除したり、あるいは逆に、新しい章を作成して既存章からページの移動をするなどのさらなる操作をしなければならず、作業効率が低下してしまう。
However, in the document processing method disclosed in
そこで、本発明は、文書データの部分データの移動や複製において、既存章とマージする工程を考慮し、オペレータの手動操作を削減し、作業効率を向上させることを目的とする。 In view of this, an object of the present invention is to reduce the manual operation of the operator and improve the work efficiency in consideration of the process of merging with an existing chapter in the movement or duplication of partial data of document data.
上述の課題を解決するため、本発明は、文書データを複製先の文書データに複製または移動する際にペースト位置を特定し、特定したペースト位置によりペースト方法を判定するペースト方法判定手段と、ペーストした文書データの属性の設定方法を、前記ペースト方法判定手段で判定したペースト方法に応じて判定する属性設定方法判定手段と、前記ペースト方法判定手段および前記属性設定方法判定手段の判定結果に応じて、ペースト方法および属性設定方法を自動的に切り替える切り替え手段を有する文書処理装置を提供する。 In order to solve the above-described problem, the present invention specifies a paste position when copying or moving document data to copy destination document data, and determines a paste method based on the specified paste position, and a paste method Attribute setting method determination means for determining the attribute data attribute setting method according to the paste method determined by the paste method determination means, and according to the determination results of the paste method determination means and the attribute setting method determination means. A document processing apparatus having switching means for automatically switching between a paste method and an attribute setting method is provided.
本発明によれば、文書データの部分データの移動や複製において、カーソル位置に応じてペースト処理、すなわち文書構造に関するペースト方法と属性設定方法を自動的に切り替えることにより、既存章とマージする場合に不要な章の作成が不要となる。その結果、作業効率を向上させることが可能になる。 According to the present invention, in the case of merging with an existing chapter by automatically switching between a paste process, that is, a paste method related to a document structure and an attribute setting method, according to the cursor position in moving or copying partial data of document data. Unnecessary chapter creation becomes unnecessary. As a result, work efficiency can be improved.
以下、本発明を実施するための最良の形態について図面を用いて説明する。 The best mode for carrying out the present invention will be described below with reference to the drawings.
[実施例1]
図1は本実施例にかかる文書処理制御を実行するハードウェア構成図である。コンピュータモジュール101には、キーボード132やマウス133のようなポインティングデバイスなどの入力装置がI/Oインタフェース143を介して接続され、また、ディスプレイ装置144も接続されている。ネットワークインタフェース138は、コンピュータモジュール101を、ネットワーク接続107を介して他のコンピュータ装置に接続することができる。ネットワーク接続107の典型はローカルエリアネットワーク(LAN)、あるいはワイドエリアネットワーク(WAN)である。
[Example 1]
FIG. 1 is a hardware configuration diagram for executing document processing control according to the present embodiment. An input device such as a pointing device such as a
コンピュータモジュール101は典型的な構成として、プロセッサーユニット(CPU)135、ランダムアクセスメモリ(RAM) やリードオンリーメモリ(ROM)から構成されるメモリユニット136を有する。また、コンピュータモジュール101は、ビデオインタフェース137を含むI/Oインタフェース、キーボード132やマウス133のためのI/Oインタフェース143、記憶装置139を有する。記憶装置139は典型的にはハードディスクドライブ(HDD)140であるが、磁気テープドライブなどの装置でも良い。
As a typical configuration, the
コンピュータモジュール101は、CD/DVD−ROMドライブ142を有する。CD/DVD−ROMドライブ142は、不図示の不揮発性のコンピュータ読み取り可能な記憶媒体であるCD/DVD−ROMに格納されたプログラムや各データを読み込む。また、コンピュータモジュール101は相互接続バス134を有する。CPU135は、相互接続バス134を介して通信を行うI/Oインタフェース143を利用する。
The
本実施例で説明されるフローチャート(後述)で示される手順を実現するためのソフトウェアプログラムは例えば記憶装置139に格納される。このソフトウェアプログラムを記憶装置139からメモリユニット136にロードし、CPU135によって実行することでこのフローチャートの処理を実現する。または、CD/DVD−ROMドライブ142でCD/DVD−ROM内に格納されたソフトウェアプログラムを読み出して、CPU135によって実行することで、本実施例のフローチャート(後述)の処理を実現しても良い。
A software program for realizing a procedure shown in a flowchart (described later) described in the present embodiment is stored in the
図2に、記憶装置139に格納された文書処理装置の各機能を実現するためのソフトウェアプログラムを、CPU135が実行することによって実現される本実施例の文書処理装置の機能構成の一例を示す。この文書処理装置は、後述する各処理を実行するソフトウェアモジュールを有する。なお、以下において、上述のソフトウェアプログラムがCPU135によって実行されたコンピュータモジュール101を文書処理装置 101とする。
FIG. 2 shows an example of a functional configuration of the document processing apparatus according to the present exemplary embodiment realized by the
文書処理装置101は、文書処理制御部201を始めとするソフトウェアモジュール202〜207を有する。文書処理制御部201は、各ソフトウェアモジュールの処理やデータフローを制御する。
The
UI部202は、オペレータからの入力や出力を処理する。カーソル管理部203は、カーソル位置の抽出、判定、ならびにカーソル形状の管理を行う。文書操作管理部204は、文書の一部分の選択検知や、マウスによる文書に対するドラッグ&ドロップ操作の検知等を処理する。ペースト方法判定部205は、複製先の文書構造におけるペースト位置を特定し、ペースト位置に応じて文書データのペースト方法を判断する。属性設定方法判定部206は、文書データの属性の設定方法をペースト方法に応じて判断する。文書データ管理部207は、文書データの複製、移動、分割、削除等の処理や、文書データの属性の管理を行う。
The UI unit 202 processes input and output from the operator. The
図3に、文書データの構造ならびに属性情報の内容の一例を模式的に示す。図3(a)は、文書構造を文書、章、ページの3層の木(ツリー)構造で示している。1つの文書は、文書全体属性と章リストを有し、章リストには、複数の章情報へのリンクが保持される。各章情報は、章ID、章属性、ページリストを有し、ページリストには、複数のページ情報へのリンクが保持される。各ページ情報は、ページID、ページデータリンクを有し、ページデータリンクには、ページデータの実体データへのリンクが保持される。 FIG. 3 schematically shows an example of the structure of document data and the contents of attribute information. FIG. 3A shows the document structure as a three-layer tree structure of documents, chapters, and pages. One document has a whole document attribute and a chapter list, and the chapter list holds links to a plurality of chapter information. Each chapter information has a chapter ID, a chapter attribute, and a page list, and the page list holds links to a plurality of page information. Each page information has a page ID and a page data link, and the page data link holds a link to the actual data of the page data.
図3(b)および図3(c)は、文書全体属性および章属性の例を示すリストである。文書全体属性に設定されたパラメータは文書全体を通して有効となる。一方、章属性に設定されたパラメータは該当する章のみに有効となり、文書全体属性と重複する場合においても、章属性が優先される。章属性に章固有の属性が有る場合は、章固有設定フラグがONにセットされ、各設定項目に章固有となるパラメータが設定される。章属性に章固有の属性が無い場合は、章固有設定フラグがOFFにセットされ、各設定項目にはNULLが設定される。 FIGS. 3B and 3C are lists showing examples of the entire document attribute and the chapter attribute. Parameters set in the entire document attribute are valid throughout the entire document. On the other hand, the parameters set in the chapter attributes are valid only for the corresponding chapter, and the chapter attributes are given priority even when they overlap with the entire document attributes. If the chapter attribute has a chapter-specific attribute, the chapter-specific setting flag is set to ON, and a chapter-specific parameter is set to each setting item. If there is no chapter-specific attribute in the chapter attribute, the chapter-specific setting flag is set to OFF and each setting item is set to NULL.
以下で、本実施例における文書処理装置101の処理について図4から図8のフローチャートを用いて説明する。本実施例の各処理フローは、記憶装置139に記憶されたソフトウェアプログラムがCPU135により実行され、CPU135が各ソフトウェアモジュールとして機能することで実現される。なお、このソフトウェアプログラムをメモリユニット136に格納し、プログラムをCPU135が実行することで本実施例のフローを実行しても良い。なお、本実施例は、文書中の部分データを他の文書に複製する場合の説明であり、文書中の部分データを他の文書へ移動する場合においても後述のフローは同様であるため、部分データの移動についての説明は省略する。
Hereinafter, the processing of the
まず、図4を用いて、文書中の部分データの選択の検出から部分データのペーストおよび属性の設定までの処理フローを説明する。初めに、S401にて、文書操作管理部204は、文書の一部分が選択され、かつ、部分データが選択されたままマウスによってドラッグされているか否かを判断する。S401にて、文書操作管理部204が文書の部分選択およびドラッグ処理を検出したならば、ペースト方法判定部205は、部分データを複製先の文書データにどのようにペーストするかを判断する(S402)。ペースト方法判定処理(S402)の詳細については、図5のフローチャートを用いて後述する。また、S401にて、文書操作管理部204が文書の部分選択やドラッグ処理を検出しなければ、文書処理制御部201は、S402以降の処理を実施しない。
First, a processing flow from detection of partial data selection in a document to partial data paste and attribute setting will be described with reference to FIG. First, in S401, the document
次に、属性設定方法判定部206は、S402で選択したペースト方法に応じて、複製後の部分データの属性をどのように設定するかを判断する(S403)。属性設定方法判定処理(S403)の詳細については、図6のフローチャートを用いて後述する。 Next, the attribute setting method determination unit 206 determines how to set the attribute of the partial data after copying according to the paste method selected in S402 (S403). Details of the attribute setting method determination process (S403) will be described later with reference to the flowchart of FIG.
次に、文書処理制御部201は、S402およびS403にてペースト方法および属性設定方法がどのように決定されているかを判断する(S404)。S404で、ペースト方法として「新章を作成」が選択され、属性設定方法として「複製元の章の章固有属性を反映する」が選択されていると判断される場合は、文書処理制御部201は、第1のペースト処理(S405)を実行する。第1のペースト処理(S405)の詳細については、図7(a)のフローチャートを用いて後述する。
Next, the document
S404で、ペースト方法として「新章を作成」が選択され、属性設定方法として「章固有属性を持たない」が選択されていると判断される場合は、文書処理制御部201は、第2のペースト処理(S406)を実行する。第2のペースト処理(S406)の詳細については、図7(b)のフローチャートを用いて後述する。
If it is determined in S404 that “create new chapter” is selected as the paste method and “no chapter-specific attribute” is selected as the attribute setting method, the document
S404で、ペースト方法として「既存章にマージ」が選択され、属性設定方法として「既存章の章属性は変更しない」が選択されていると判断される場合は、文書処理制御部201は、第3のペースト処理(S407)を実行する。第3のペースト処理(S407)の詳細については、図8のフローチャートを用いて後述する。
If it is determined in step S404 that “Merge into existing chapter” is selected as the paste method and “Do not change chapter attributes of existing chapter” is selected as the attribute setting method, the document
<ペースト方法判定処理(S402)の詳細>
文書データの文書構造におけるペースト位置に応じてどのようにペーストするかを判断するペースト方法判定処理(S402)の詳細を、図5のフローチャートを用いて説明する。
<Details of Paste Method Determination Process (S402)>
Details of the paste method determination process (S402) for determining how to paste according to the paste position in the document structure of the document data will be described with reference to the flowchart of FIG.
まず、文書操作管理部204は、マウス操作を検出し、検出したマウス操作がドロップ処理か否かを判断する(S501)。S501で、文書操作管理部204が検出したマウス操作がドロップ処理ではないと判断される場合は、文書操作管理部204はキャンセル指示の検出処理を行う(S502)。S502にて、文書操作管理部204がキャンセル指示を検出しなければ、文書操作管理部204によるマウス操作の検出およびドロップ処理か否かの判定処理が続行される。また、S502にて、文書操作管理部204がキャンセル指示を検出した場合は、文書処理制御部201は処理を図4の(1)に進めて終了する。
First, the document
S501で、文書操作管理部204が検出したマウス操作がドロップ処理であると判断される場合は、カーソル管理部203はドロップされたカーソル位置を抽出する(S503)。次に、カーソル管理部203は、S503で抽出したカーソル位置をチェックし、カーソル位置が章判定領域内にあるのか、ページ判定領域内にあるのか、ペースト領域外にあるのかを判断する(S504)。図13に、本実施例における領域設定の例を示す。本例では、章判定領域を1303、ページ判定領域を1304、それ以外の領域をペースト領域外のように定める。
If it is determined in S501 that the mouse operation detected by the document
S504で、カーソル管理部203が章判定領域内にカーソル(図13の1305)があると判定した場合は、ペースト方法判定部205は、複製先の文書構造におけるペースト位置を特定する(S505)。複製先の文書構造におけるペースト位置の特定とは、ペースト対象となる章の特定および前後のページの特定を意味する。
If the
次に、UI部202は、ペースト方法の選択肢を表示して、オペレータの入力を受け付け、受け付けた情報を記憶装置139に登録する(S506)。この情報の入力は、UI部202が図13の1306のようなダイアログを表示することで実現される。 Next, the UI unit 202 displays paste method options, receives an operator input, and registers the received information in the storage device 139 (S506). The input of this information is realized by the UI unit 202 displaying a dialog like 1306 in FIG.
次に、ペースト方法判定部205は、取得した入力情報を記憶装置139から読み取り(S507)、複製先の文書へ部分データをペーストする際のペースト方法を判断する(S508)。本実施例では、「新章を作成」というペースト方法は、複製先に新章を作成し、選択されている部分データをその新章のページデータとすることを意味する。また、「既存章にマージ」というペースト方法は、複製元で選択した部分データを複製先の既存章のページデータにマージすることを意味する。
Next, the paste
S508にて、ペースト方法判定部205が新章を作成すると判断した場合は、文書処理制御部201は、ペースト方法として「新章を作成」という選択を記憶装置139に登録する(S509)。また、S508にて、ペースト方法判定部205が新章を作成しないと判断した場合は、文書処理制御部201は、ペースト方法として「既存章にマージ」という選択を記憶装置139に登録する(S511)。
If the paste
S504で、カーソル管理部203がページ判定領域内にカーソルがあると判定した場合は、ペースト方法判定部205は、複製先の文書構造におけるペースト位置を特定する(S510)。そして、文書処理制御部201部は、ペースト方法として「既存章にマージ」という選択を記憶装置139に登録する(S511)。また、S504で、カーソル管理部203がペースト領域外にカーソルがあると判定した場合は、文書処理制御部201は、ペースト処理自体がキャンセルされたと判定し、処理を図4の(1)に進めて終了する。
If the
<属性設定方法判定処理(S403)の詳細>
選択したペースト方法に応じてどのように複製先の章属性を設定するかを判断する属性設定方法判定処理(S403)の詳細を、図6のフローチャートを用いて説明する。
<Details of attribute setting method determination process (S403)>
Details of the attribute setting method determination process (S403) for determining how to set the copy destination chapter attribute according to the selected paste method will be described with reference to the flowchart of FIG.
まず、文書処理制御部201は、選択されているペースト方法を記憶装置139から読み取り、「新章を作成」というペースト方法が選択されているか否かを判断する(S601)。S601で、「新章を作成」というペースト方法が選択されていると判断される場合は、文書データ管理部207は、複製元で選択された部分データが複製元の文書構造において章かページかを判断する(S602)。
First, the document
S602で、複製元で選択された部分データが複製元の文書構造において章であると判断される場合は、文書データ管理部207は章属性の章固有設定フラグを取得し、章固有設定の有無を判断する(S603)。S603で、複製元の章に章固有設定が有ると判断される場合は、UI部202は、属性設定方法選択肢を表示し、オペレータからの入力を受け付け、受け付けた情報を記憶装置139に登録する(S604)。この情報の入力は、UI部202が図13の1307のようなダイアログを表示することで実現される。
If it is determined in S602 that the partial data selected at the copy source is a chapter in the document structure of the copy source, the document
次に、属性設定方法判定部206は、取得した入力情報を記憶装置139から読み取り(S605)、文章の属性の設定方法をペースト方法に応じて判断する(S606)。S606にて、属性設定方法判定部206が、属性設定方法として、複製元の章の章固有設定を維持すると判断した場合は、新章を作成する際に複製元の章固有設定を転写することになる。そのため、文書処理制御部201は、属性設定方法として「複製元の章の章固有属性を反映する」という選択を記憶装置139に登録する(S607)。
Next, the attribute setting method determination unit 206 reads the acquired input information from the storage device 139 (S605), and determines a sentence attribute setting method according to the paste method (S606). If the attribute setting method determination unit 206 determines in S606 that the chapter-specific setting of the source chapter is maintained as the attribute setting method, the source-specific chapter setting is transferred when creating a new chapter. become. Therefore, the document
また、S606にて、属性設定方法判定部206が、属性設定方法として、複製元の章の章固有設定を維持しないと判断した場合は、新章を作成する際に複製元の章固有設定は転写せず、ページデータのみを複製することになる。そのため、文書処理制御部201は、属性設定方法として「章固有属性を持たない」という選択を記憶装置139に登録する(S608)。
In S606, if the attribute setting method determination unit 206 determines that the chapter-specific setting of the source chapter is not maintained as the attribute setting method, the source-specific chapter-specific setting is determined when the new chapter is created. Only the page data is copied without being transferred. Therefore, the document
S603で、複製元の章に章固有設定が無いと判断される場合、新章を作成する際に複製元の章固有設定は転写せず、ページデータのみを複製する。そのため、文書処理制御部201は、属性設定方法として「章固有属性を持たない」という選択を記憶装置139に登録する(S608)。
If it is determined in S603 that there is no chapter-specific setting in the copy source chapter, when creating a new chapter, only the page data is copied without transferring the copy-source chapter specific setting. Therefore, the document
S602で、複製元で選択された部分データが複製元の文書構造において章でないと判断される場合、すなわちページが選択されている場合も、新章を作成する際に複製元のページデータが属していた章の属性を転写せず、ページデータのみを複製する。そのため、文書処理制御部201は、属性設定方法として「章固有属性を持たない」という選択を記憶装置139に登録する(S608)。
If it is determined in S602 that the partial data selected at the copy source is not a chapter in the document structure of the copy source, that is, even if a page is selected, the page data of the copy source belongs when creating a new chapter. Only the page data is copied, without transferring the attributes of the chapters that had been used. Therefore, the document
S601で、「新章を作成」というペースト方法が選択されていないと判断される場合は、「既存章にマージ」というペースト方法が選択されていることを意味するため、複製元で選択した部分データを既存章にページデータとしてマージを行なう。そのため、文書処理制御部201は、属性設定方法として「既存章の章属性は変更しない」という選択を記憶装置139に登録する(S609)。
If it is determined in S601 that the paste method "Create new chapter" is not selected, this means that the paste method "Merge to existing chapter" is selected. Merge the data into the existing chapter as page data. Therefore, the document
<第1のペースト処理(S405)の詳細>
第1のペースト処理(S405)の詳細を図7(a)に示す。本処理では、まず、ペースト方法判定処理(図5)でペースト方法判定部205が特定したペースト位置を、文書データ管理部207は、複製先の文書データの章リストにおける新章を追加する位置とする(S7001)。
<Details of First Paste Processing (S405)>
Details of the first paste process (S405) are shown in FIG. In this process, first, the paste position determined by the paste
次に、文書データ管理部207は、章属性やページリストが空の状態の新章の章情報を作成し、S7001で決定した位置に追加する(S7002)。次に、文書データ管理部207は、複製元で選択した章に属するすべてのページデータを抽出して(S7003)、抽出したページデータのページ情報を新章の章情報のページリストに追加する(S7004)。ここで、抽出したページデータのページ情報とは、抽出したページデータへのリンク情報であるページデータリンクならびにページIDを意味する。
Next, the document
次に、文書データ管理部207は、複製元の章の章属性を新章の章属性に転写し(S7005)、新章の章属性の章固有設定フラグをON(章固有設定有り)にする(S7006)。その結果、複製元の章の章固有属性を反映した新章としてペーストされる(図13の1308)。
Next, the document
<第2のペースト処理(S406)の詳細>
第2のペースト処理(S406)の詳細を図7(b)に示す。本処理では、まず、ペースト方法判定処理(図5)でペースト方法判定部(205)が特定したペースト位置を、文書データ管理部207は複製先の文書データの章リストにおける新章を追加する位置とする(S7101)。
<Details of Second Paste Processing (S406)>
Details of the second paste process (S406) are shown in FIG. In this process, first, the paste position determined by the paste method determination unit (205) in the paste method determination process (FIG. 5), and the document
次に、文書データ管理部207は章属性やページリストが空の状態の新章の章情報を作成して、S7101で決定した位置に追加する(S7102)。次に、文書データ管理部207は、複製元で選択された部分データが複製元の文書構造において章かページかを判断する(S7103)。S7103で、複製元で選択された部分データが複製元の文書構造において章であると判断される場合は、文書データ管理部207は、その章に属するすべてのページデータを抽出する(S7104)。また、S7103で、複製元で選択された部分データが複製元の文書構造において章でないと判断される場合は、文書データ管理部207は、選択されているページデータを抽出する(S7105)。
Next, the document
次に、文書データ管理部207は、抽出したページデータのページ情報、すなわち、抽出したページデータへのリンク情報であるページデータリンクならびにページIDを新章の章情報のページリストに追加する(S7106)。次に、文書データ管理部207は、新章の章属性の各設定項目にNULLをセットし(S7107)、新章の章属性の章固有設定フラグをOFF(章固有設定無し)にする(S7108)。その結果、複製元の章の章固有属性を反映しない新章としてペーストされる(図13の1309)。
Next, the document
<第3のペースト処理(S407)の詳細>
第3のペースト処理(S407)の詳細を図8に示す。本処理では、まず、ペースト方法判定処理(図5)でペースト方法判定部205が特定したペースト位置を、文書データ管理部207はページデータ挿入位置とする(S801)。すなわち、文書データ管理部207は、複製先の文書データの章リストに存在する既存章の中からマージ先の対象となる章を決定し、さらにそのマージ先の章情報のページリストにおけるページデータ挿入位置を決定する。
<Details of Third Paste Processing (S407)>
Details of the third paste process (S407) are shown in FIG. In this process, first, the document
次に、文書データ管理部207は、複製元で選択された部分データが複製元の文書構造において章かページかを判断する(S802)。S802で、複製元で選択された部分データが複製元の文書構造において章であると判断される場合は、文書データ管理部207は、その章に属するすべてのページデータを抽出する(S803)。また、S802で、複製元で選択された部分データが複製元の文書構造において章でないと判断される場合は、文書データ管理部207は、選択されているページデータを抽出する(S804)。
Next, the document
次に、文書データ管理部207は、抽出したページデータのページ情報を、S801で決定した既存章の章情報のページリストに追加する(S805)。ここで、抽出したページデータのページ情報とは、抽出したページデータへのリンク情報であるページデータリンクならびにページIDを意味する。その結果、複製元で選択した部分データが複製先の既存章のページデータにマージされる(図13の1310)。
Next, the document
以上の処理により、文書データの部分データの移動や複製において、カーソル位置に応じてペースト処理、すなわち文書構造に関するペースト方法と属性設定方法を自動的に切り替えることが可能となり、作業効率を向上させることが可能になる。 Through the above processing, it is possible to automatically switch between pasting processing, that is, the pasting method and attribute setting method related to the document structure, according to the cursor position when moving or copying partial data of document data, thereby improving work efficiency. Is possible.
[実施例2]
実施例1では、文書の一部分が選択され、かつ、部分データが選択されたままマウスによってドラッグ&ドロップされる都度、ペースト方法の選択肢や属性設定方法選択肢を表示して、オペレータの入力を受け付ける例を示した。実施例2では、ドラッグ&ドロップ操作の前に、あらかじめオペレータによる、ペースト方法ならびに属性設定方法の入力を受け付け、記憶装置139に登録しておく場合の例を示す。本実施例では、さらに、文書データの部分データの複製や移動操作時に、ペースト方法および属性設定方法を区別表示する例を示す。ここでの説明は前述の実施例1の図4とほぼ同様なため、異なる部分のみを説明する。
[Example 2]
In the first embodiment, each time a part of a document is selected and dragging and dropping with the mouse while the partial data is selected, the paste method options and the attribute setting method options are displayed, and the operator's input is received. showed that. In the second embodiment, an example in which an input of a paste method and an attribute setting method by an operator is received in advance and registered in the
本実施例2と実施例1との差異は、S402のペースト方法判定処理およびS403の属性設定方法判定処理にあり、その部分を図9および図10のフローチャートを用いて説明する。なお、本実施例における各処理フローは、記憶装置139に記憶されたソフトウェアプログラムがメモリユニット136にロードされ、CPU135によって実行されることで実現される。また、特に断りが無ければ、本実施例の文書処理装置は実施例1の構成と同様である。
The difference between the second embodiment and the first embodiment lies in the paste method determination process in S402 and the attribute setting method determination process in S403, and this portion will be described with reference to the flowcharts in FIGS. Each processing flow in this embodiment is realized by loading a software program stored in the
<実施例2におけるペースト方法判定処理(S402)の詳細>
まず、本実施例における、ペースト方法判定処理(S402)の詳細を、図9のフローチャートを用いて説明する。
<Details of Paste Method Determination Process (S402) in Example 2>
First, details of the paste method determination process (S402) in the present embodiment will be described with reference to the flowchart of FIG.
実施例1と同様に、S401にて文書操作管理部204が文書の部分選択およびドラッグ処理を検出したならば、文書操作管理部204は、マウス操作を検出し、選択状態を維持したままマウスによるドラッグ移動が停止したか否かを判断する(S901)。S901で、文書操作管理部204が検出したマウス操作が、ドラッグ移動の停止ではないと判断される場合は、文書操作管理部204はキャンセル指示の検出処理を行う(S902)。S902にて、文書操作管理部204がキャンセル指示を検出しなければ、文書操作管理部204によるマウス操作の検出ならびにドラッグ移動の停止の判定処理が続行される。また、文書操作管理部204がキャンセル指示を検出した場合は、文書処理制御部201は処理を図4の(1)に進めて終了する。
As in the first embodiment, if the document
S901で、文書操作管理部204が検出したマウス操作がドラッグ移動の停止であると判断される場合は、カーソル管理部203は停止したカーソル位置を抽出する(S903)。次に、カーソル管理部203は、S903で抽出したカーソル位置をチェックし、カーソル位置が章判定領域内にあるのか、ページ判定領域内にあるのか、ペースト領域外にあるのかを判断する(S904)。本例では、章判定領域、ページ判定領域、ペースト領域外を実施例1と同様に定める。
If it is determined in S901 that the mouse operation detected by the document
S904で、カーソル管理部203が章判定領域内(図14の1404)にカーソルがあると判定した場合は、ペースト方法判定部205は、複製先の文書構造におけるペースト位置を特定する(S905)。複製先の文書構造におけるペースト位置とは、対象となる章の特定および前後のページの特定を意味する。
If the
次に、ペースト方法判定部205は、あらかじめ取得してあるペースト方法の選択情報を記憶装置139から読み取り(S906)、複製先の文書へ部分データをペーストする際のペースト方法を判断する(S907)。本実施例の「新章を作成」および「既存章にマージ」というペースト方法は、実施例1と同様の意味であるため説明を省略する。
Next, the paste
S908〜S910までの処理は、実施例1のS509〜S511の処理と同様であるため説明を省略する。また、S904で、カーソル管理部203がペースト領域外にカーソルがあると判定した場合の処理も、実施例1と同様であるため説明を省略する。
Since the processing from S908 to S910 is the same as the processing from S509 to S511 in the first embodiment, a description thereof will be omitted. In addition, since the process performed when the
<実施例2における属性設定方法判定処理(S403)の詳細>
本実施例における属性設定方法判定処理(S403)の詳細を図10のフローチャートを用いて説明する。なお、S1001〜S1003までの処理および、S1012〜S1014の処理は、実施例1のS601〜S603の処理および、S607〜S609と同様であるため説明を省略する。
<Details of Attribute Setting Method Determination Process (S403) in
Details of the attribute setting method determination processing (S403) in this embodiment will be described with reference to the flowchart of FIG. Note that the processing from S1001 to S1003 and the processing from S1012 to S1014 are the same as the processing from S601 to S603 and S607 to S609 in the first embodiment, and thus description thereof is omitted.
S1003の処理の後、属性設定方法判定部206は、あらかじめ取得してある属性設定方法の選択情報を記憶装置139から読み取り(S1004)、文章の属性の設定方法をペースト方法に応じて判断する(S1005)。S1005にて、属性設定方法判定部206が、属性設定方法として、複製元の章の章固有設定を維持すると判断した場合は、新章を作成する際に複製元の章固有設定を転写する。そのため、カーソル管理部203は、カーソル形状の表示をカーソルA(図14の1407)に変更する(S1006)。そして、文書操作管理部204は、マウス操作を検出し、検出したマウス操作がドロップ処理か否かを判断する(S1007)。S1007で、文書操作管理部204が検出したマウス操作がドロップ処理であると判断される場合は、S1012の処理に進む。
After the processing of S1003, the attribute setting method determination unit 206 reads the attribute setting method selection information acquired in advance from the storage device 139 (S1004), and determines the sentence attribute setting method according to the paste method ( S1005). In S1005, when the attribute setting method determination unit 206 determines that the chapter-specific setting of the source chapter is maintained as the attribute setting method, the source-specific chapter setting is transferred when a new chapter is created. Therefore, the
S1005にて、属性設定方法判定部206が、属性設定方法として、複製元の章の章固有設定を維持しないと判断した場合は、新章を作成する際に複製元の章固有設定は転写せず、ページデータのみを複製する。そのため、カーソル管理部203は、カーソル形状の表示をカーソルB(図14の1405)に変更する(S1008)。
In S1005, if the attribute setting method determination unit 206 determines that the chapter-specific setting of the source chapter is not maintained as the attribute setting method, the chapter-specific setting of the source is copied when the new chapter is created. Instead, only the page data is duplicated. Therefore, the
S1003で、複製元の章に章固有設定が無いと判断される場合は、新章を作成する際に複製元の章固有設定は転写せず、ページデータのみを複製する。そのため、カーソル管理部203は、カーソル形状の表示をカーソルB(図14の1405)に変更する(S1008)。そして、文書操作管理部204は、マウス操作を検出し、検出したマウス操作がドロップ処理か否かを判断する(S1009)。S1009で、文書操作管理部204が検出したマウス操作がドロップ処理であると判断される場合は、S1013の処理に進む。
If it is determined in S1003 that there is no chapter unique setting in the copy source chapter, the copy source chapter unique setting is not transferred when creating a new chapter, and only the page data is copied. Therefore, the
S1001で、「新章を作成」というペースト方法が選択されていない場合は、「既存章にマージ」というペースト方法が選択されていることを意味するため、複製元で選択した部分データを既存章にページデータとしてマージを行なう。そのため、カーソル管理部203は、カーソル形状の表示をカーソルC(図14の1409)に変更する。(S1010)。そして、文書操作管理部204は、マウス操作を検出し、検出したマウス操作がドロップ処理か否かを判断する(S1011)。S1011で、文書操作管理部204が検出したマウス操作がドロップ処理であると判断される場合は、S1014の処理に進む。
If the paste method “Create new chapter” is not selected in S1001, this means that the paste method “Merge to existing chapter” is selected, so the partial data selected at the copy source is the existing chapter. Merge as page data. Therefore, the
S1007、S1009、S1011で、文書操作管理部204が検出したマウス操作がドロップ処理ではないと判断される場合は、カーソル管理部203は、カーソル形状の表示を初期状態(図14の1411)に変更する(S1015)。次に、文書操作管理部204がキャンセル指示の検出処理を行う(S1016)。S1016にて、文書操作管理部204がキャンセル指示を検出しなければ、文書処理制御部201は処理を図9の(2)に進めて、文書操作管理部(204)によるマウス操作の検出ならびにドラッグ移動の停止の判定処理(S901)に戻る。また、S1016にて、文書操作管理部204がキャンセル指示を検出した場合は、文書処理制御部201は処理を図4の(1)に進めて終了する。
If it is determined in S1007, S1009, and S1011 that the mouse operation detected by the document
以上の処理により、文書データの部分データの複製や移動の操作の前に、あらかじめオペレータがペースト方法ならびに属性設定方法を選択しておいた場合においても、カーソル位置に応じてペースト処理を自動的に切り替えることが可能となる。さらに、オペレータがペースト位置をUI上で選択した時に、文書データの部分データの複製や移動におけるペースト方法および属性設定方法をカーソルの形状にて区別表示するため、オペレータの誤操作を低減することが可能となる。 With the above processing, even if the operator has previously selected the paste method and attribute setting method before copying or moving the partial data of the document data, the paste processing is automatically performed according to the cursor position. It is possible to switch. In addition, when the operator selects the paste position on the UI, the pasting method and attribute setting method for copying and moving partial data in the document data are displayed in a distinguishable manner by the cursor shape, reducing operator error. It becomes.
[実施例3]
実施例1や2では、カーソル位置判定において、章配置判定領域を文書構造における章の境界の位置とした場合の例を示した。そのため、新章を作成してペーストする際に既存章の文書構造に変更は生じなかった。実施例3では、カーソル位置判定において、既存章を分割して、その分割した章の間に新章を作成してペーストする場合の例を示す。実施例1の図4、ならびに、実施例2の図9については、ほぼ同様なため、異なる部分のみを説明する。
[Example 3]
In the first and second embodiments, an example has been shown in which the chapter placement determination area is set as the chapter boundary position in the document structure in the cursor position determination. Therefore, when creating and pasting a new chapter, there was no change in the document structure of the existing chapter. In the third embodiment, an example of dividing an existing chapter and creating and pasting a new chapter between the divided chapters in the cursor position determination will be described. About FIG. 4 of Example 1, and FIG. 9 of Example 2, since it is substantially the same, only a different part is demonstrated.
実施例3と実施例2との差異は、S403の属性設定方法判定処理にあり、その部分を図10および図11のフローチャートを用いて説明する。なお、本実施例における各処理フローは、記憶装置139に記憶されたソフトウェアプログラムがメモリユニット136にロードされ、CPU135によって実行されることで実現される。また、特に断りが無ければ、本実施例の文書処理装置は実施例2の構成と同様である。
The difference between the third embodiment and the second embodiment resides in the attribute setting method determination processing in S403, and this portion will be described with reference to the flowcharts of FIGS. Each processing flow in this embodiment is realized by loading a software program stored in the
<実施例3における属性設定方法判定処理(S403)の詳細>
まず、本実施例における属性設定方法判定処理(S403)の詳細を図11のフローチャートを用いて説明する。実施例2との差異は、S1108〜S1109、および、S1112〜S1113である。その他の処理は、実施例2の図10の処理と同様であるため説明を省略する。
<Details of Attribute Setting Method Determination Process (S403) in
First, details of the attribute setting method determination process (S403) in the present embodiment will be described with reference to the flowchart of FIG. Differences from the second embodiment are S1108 to S1109 and S1112 to S1113. The other processes are the same as the process of FIG.
S1107で、文書操作管理部204が検出したマウス操作がドロップ処理であると判断される場合は、文書処理制御部201は既存章の分割が必要か否かを、図9のS904にて特定したペースト位置を用いて判断する(S1108)。また、S1111で、文書操作管理部204が検出したマウス操作がドロップ処理であると判断される場合も同様に、文書処理制御部201は既存章の分割が必要か否かを、図9のS904にて特定したペースト位置を用いて判断する(S1112)。
If it is determined in step S1107 that the mouse operation detected by the document
図15に、本実施例における領域設定の例を示す。本例では、章判定領域を1503、ページ判定領域を1505、それ以外の領域をペースト領域外1504のように定める。例えば、図15の1506のカーソル位置の場合、図9にて、ペースト方法判定結果が「新章を作成」、ペースト位置が章の端部、すなわち章の先頭ページ(図3の301)や章の最後のページ(図3の302)よりも内側にあると判定されている。その結果、文書処理制御部201は、章分割が必要と判定する。また、例えば、図15の1508のカーソル位置の場合、図9にて、ペースト方法判定結果が「新章を作成」、ペースト位置が章の端部、すなわち章の先頭ページ(図3の301)や章の最後のページ(図3の302)よりも外側にあると判定されている。その結果、文書処理制御部201は、章分割が不要と判定する。また、例えば、図15の1510のカーソル位置の場合、図9にて、ペースト方法判定結果が「既存章にマージ」と判定されている。その結果、文書処理制御部201は、その既存章の分割の判定自体が不要なため、判定を行わない。
FIG. 15 shows an example of area setting in the present embodiment. In this example, the chapter determination area is set to 1503, the page determination area is set to 1505, and the other areas are determined to be outside the paste area 1504. For example, in the case of the
S1108で、既存章の分割が必要と判定した場合は、既存章分割処理を行う(S1109)。また、S1112で、既存章の分割が必要と判定した場合も同様に、既存章分割処理を行う(S1113)。なお、既存章分割処理(S1109およびS1113)の詳細については、図12のフローチャートを用いて後述する。 If it is determined in S1108 that the existing chapter needs to be divided, existing chapter division processing is performed (S1109). Similarly, when it is determined in S1112 that the existing chapter needs to be divided, the existing chapter division processing is performed similarly (S1113). Details of the existing chapter division processing (S1109 and S1113) will be described later with reference to the flowchart of FIG.
<実施例3における既存章分割処理(S1109およびS1113)の詳細>
本実施例における既存章分割処理(S1109およびS1113)の詳細を図12のフローチャートを用いて説明する。
<Details of Existing Chapter Division Processing (S1109 and S1113) in
Details of the existing chapter division processing (S1109 and S1113) in this embodiment will be described with reference to the flowchart of FIG.
まず、文書データ管理部207は、分割対象となる複製先の既存章から、既存章の設定情報を記憶装置139に一時退避する(S1201)。次に、文書データ管理部207は、分割対象となる複製先の既存章(図15の1512)の先頭ページからペースト位置の前のページまでをグループとした分割章A(図15の1513)を形成する(S1202)。次に、文書データ管理部207は、分割対象となる複製先の既存章のペースト位置の次のページから最後のページまでをグループとした分割章B(図15の1515)を形成する(S1203)。
First, the document
次に、文書データ管理部207は分割対象となる複製先の既存章の章属性の章固有設定フラグを取得し、章固有設定の有無を判断する(S1204)。S1204で、分割対象となる複製先の既存章に章固有設定が無いと判断される場合は、文書データ管理部207は、分割章Aと分割章Bの章属性の各設定項目にNULLをセットする(S1205)。そして、それぞれの章属性の章固有設定フラグをOFF(章固有設定無し)にする(S1206)。また、S1204で、章固有設定が有ると判断される場合は、文書データ管理部207は、分割章Aと分割章Bに既存章の章属性を転写し(S1207)、各分割章の章属性の章固有設定フラグをON(章固有設定有り)にする(S1208)。S1206およびS1208の処理の後、文書データ管理部207は記憶装置139に一時退避しておいた既存章の設定情報を削除する(S1209)。
Next, the document
以上の処理により、カーソル位置判定において、章判定領域を変更し、既存章を分割して、その分割した章の間に新章を作成してペーストすることも可能になるため、より多彩なペースト方法の選択が可能となり、さらなる作業効率の向上が可能になる。 With the above processing, it is possible to change the chapter determination area, split an existing chapter, create a new chapter between the divided chapters, and paste it in the cursor position determination. The method can be selected, and the work efficiency can be further improved.
[その他の実施例]
本発明は、以下の処理を実行することによっても実現される。即ち、上述した実施形態の機能を実現するソフトウェア(プログラム)を、ネットワーク又は各種記憶媒体を介してシステム或いは装置に供給し、そのシステム或いは装置のコンピュータ(またはCPUやMPU等)がプログラムを読み出して実行する処理である。
[Other Examples]
The present invention is also realized by executing the following processing. That is, software (program) that realizes the functions of the above-described embodiments is supplied to a system or apparatus via a network or various storage media, and a computer (or CPU, MPU, or the like) of the system or apparatus reads the program. It is a process to be executed.
Claims (6)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2011239904A JP5882680B2 (en) | 2011-11-01 | 2011-11-01 | Document processing apparatus and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2011239904A JP5882680B2 (en) | 2011-11-01 | 2011-11-01 | Document processing apparatus and method |
Publications (3)
Publication Number | Publication Date |
---|---|
JP2013097587A true JP2013097587A (en) | 2013-05-20 |
JP2013097587A5 JP2013097587A5 (en) | 2014-12-18 |
JP5882680B2 JP5882680B2 (en) | 2016-03-09 |
Family
ID=48619465
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2011239904A Expired - Fee Related JP5882680B2 (en) | 2011-11-01 | 2011-11-01 | Document processing apparatus and method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5882680B2 (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009271681A (en) * | 2008-05-02 | 2009-11-19 | Canon Inc | Document processing apparatus and control method thereof |
JP2011134337A (en) * | 2011-02-01 | 2011-07-07 | Canon Inc | Apparatus, method and program for processing document |
-
2011
- 2011-11-01 JP JP2011239904A patent/JP5882680B2/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009271681A (en) * | 2008-05-02 | 2009-11-19 | Canon Inc | Document processing apparatus and control method thereof |
JP2011134337A (en) * | 2011-02-01 | 2011-07-07 | Canon Inc | Apparatus, method and program for processing document |
Also Published As
Publication number | Publication date |
---|---|
JP5882680B2 (en) | 2016-03-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5049515B2 (en) | Information processing apparatus, information processing method, and information processing program | |
JP3950657B2 (en) | Information processing system, display method thereof, program, and recording medium | |
JP5713563B2 (en) | Information processing apparatus, control method for information processing apparatus, and program | |
JP4059488B2 (en) | Document processing method and apparatus | |
JP2001209470A (en) | Display interface method, apparatus and program recording medium | |
JP2004192248A (en) | Document processor and document processing method | |
JP5409124B2 (en) | Information processing apparatus, control method, and program | |
JP2010061311A (en) | Information processor and computer program | |
US20100174984A1 (en) | Document editing apparatus and control method thereof | |
JP4640547B2 (en) | Print data generation apparatus, print data generation method, and program | |
JP5393171B2 (en) | Image forming apparatus, image forming method, and image forming program | |
US20210133389A1 (en) | Document transformation between program formats and templates system and method | |
JP2001084246A (en) | Device and method for managing electronic document | |
JP6029427B2 (en) | Information processing apparatus, control method, and program | |
JP5882680B2 (en) | Document processing apparatus and method | |
JP2000222493A (en) | Device and method for editing object, and storage medium storing computer readable program | |
JP2006301867A (en) | Image display device and image display method | |
JP2010165201A (en) | Layout device, layout method and layout program | |
JP5828701B2 (en) | Information processing apparatus, information processing method, program, and storage medium | |
JP2008250915A (en) | Information processor, method and program | |
JP2006134230A (en) | Image editing device | |
JP6143437B2 (en) | Information processing apparatus and information processing method | |
JP2019067347A (en) | Information processing apparatus, control method thereof, and program | |
JP2004139142A (en) | Information processing apparatus, its control process, medium providing control program, and control program | |
JP3948476B2 (en) | Electronic document management apparatus and electronic document management method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
RD05 | Notification of revocation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7425 Effective date: 20130701 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20141031 |
|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20141031 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20150730 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20150811 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20151013 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20160105 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20160204 |
|
R151 | Written notification of patent or utility model registration |
Ref document number: 5882680 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R151 |
|
LAPS | Cancellation because of no payment of annual fees |