JP2013097587A - Document processing device and method - Google Patents

Document processing device and method Download PDF

Info

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
Application number
JP2011239904A
Other languages
Japanese (ja)
Other versions
JP5882680B2 (en
JP2013097587A5 (en
Inventor
Kazuyuki Saito
和之 齋藤
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2011239904A priority Critical patent/JP5882680B2/en
Publication of JP2013097587A publication Critical patent/JP2013097587A/en
Publication of JP2013097587A5 publication Critical patent/JP2013097587A5/ja
Application granted granted Critical
Publication of JP5882680B2 publication Critical patent/JP5882680B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To suppress the reduction of work efficiency due to operator's additional work of moving pages, deleting unnecessary chapters, generating chapters, and so on after movement or duplication of partial data of document data.SOLUTION: A pasting position in a document structure as a duplication or movement destination is specified in accordance with a cursor position on a UI after duplication or movement of partial data of document data, to determine a pasting method, and a method of setting an attribute of pasted document data is determined in accordance with the pasting method determined by pasting method determination means, and pasting processing is automatically switched.

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つの文書に結合するために、特定の印刷設定のページ群を章として管理し、章やページ単位の移動や複製等を行う文書処理方法が開示されている。この文書処理方法は、移動先又は複製先の印刷設定を反映させるか、移動元又は複製元の印刷設定を維持するかのどちらが指示されているかを判定し、対象となっている複数ページのページごとに印刷設定を設定する。   Patent Document 1 discloses a document processing method for managing a group of pages with specific print settings as a chapter and moving or copying the chapter or page unit in order to combine a plurality of documents into one document as an editing operation. Is disclosed. This document processing method determines whether to reflect the print settings of the move destination or copy destination or to maintain the print settings of the move source or copy source, and determines the target multi-page page. Set the print settings for each.

特開2003-162519号公報JP 2003-162519 JP

しかし、特許文献1に開示される文書処理方法において、文書データの部分データの移動や複製を行う場合、文書データの移動先や複製先における既存章とのマージなどの文書処理工程まで考慮されていなかった。このような文書処理工程を考慮しない文書処理方法では、章単位の文書データの移動や複製においては、常に既存章の構成とは別の新しい章が常に生成されてしまう。一方で、移動元や複製元でページデータを選択した場合は、常に移動先や複製先の章の中に挿入されてしまう。そのため、移動後や複製後に、新章から既存の章内にページを移動して不要になった空の章を削除したり、あるいは逆に、新しい章を作成して既存章からページの移動をするなどのさらなる操作をしなければならず、作業効率が低下してしまう。   However, in the document processing method disclosed in Patent Document 1, when moving or copying partial data of document data, document processing steps such as merging with existing chapters at the transfer destination or copy destination of the document data are considered. There wasn't. In such a document processing method that does not take into account the document processing process, a new chapter that is different from the structure of the existing chapter is always generated when moving or copying document data in units of chapters. On the other hand, when page data is selected at the move source or the copy source, the page data is always inserted into the chapter of the move destination or the copy destination. Therefore, after moving or duplicating, move pages from a new chapter into an existing chapter to delete empty chapters that are no longer needed, or create new chapters and move pages from existing chapters. It is necessary to carry out further operations such as doing this, and the work efficiency is reduced.

そこで、本発明は、文書データの部分データの移動や複製において、既存章とマージする工程を考慮し、オペレータの手動操作を削減し、作業効率を向上させることを目的とする。   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 hardware block diagram of the document processing apparatus as one form of an Example. 実施例の一形態としての文書処理装置の機能構成のブロック図。1 is a block diagram of a functional configuration of a document processing apparatus as one embodiment. FIG. 文書データの構造ならびに属性情報の内容の一例を示す模式図。The schematic diagram which shows an example of the structure of document data, and the content of attribute information. 実施例1の文書処理装置の処理を表すフローチャート。6 is a flowchart illustrating processing of the document processing apparatus according to the first exemplary embodiment. 実施例1のペースト方法判定処理を表すフローチャート。5 is a flowchart illustrating a paste method determination process according to the first embodiment. 実施例1の属性設定方法判定処理を表すフローチャート。5 is a flowchart illustrating attribute setting method determination processing according to the first embodiment. 実施例1の第1および第2ペースト処理の詳細を表すフローチャート。6 is a flowchart showing details of first and second paste processing in the first embodiment. 実施例1の第3ペースト処理の詳細を表すフローチャート。9 is a flowchart showing details of third paste processing according to the first embodiment. 実施例2のペースト方法判定処理を表すフローチャート。9 is a flowchart illustrating a paste method determination process according to the second embodiment. 実施例2の属性設定方法判定処理を表すフローチャート。10 is a flowchart illustrating attribute setting method determination processing according to the second embodiment. 実施例3の属性設定方法判定処理を表すフローチャート。10 is a flowchart illustrating attribute setting method determination processing according to the third embodiment. 実施例3の章分割処理を表すフローチャート。10 is a flowchart illustrating chapter division processing according to the third embodiment. 実施例1の文書処理過程を表す図。FIG. 3 is a diagram illustrating a document processing process according to the first embodiment. 実施例2の文書処理過程を表す図。FIG. 10 is a diagram illustrating a document processing process according to the second embodiment. 実施例3の文書処理過程を表す図。FIG. 10 is a diagram illustrating a document processing process according to the third embodiment.

以下、本発明を実施するための最良の形態について図面を用いて説明する。   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 keyboard 132 and a mouse 133 is connected to the computer module 101 via an I / O interface 143, and a display device 144 is also connected. The network interface 138 can connect the computer module 101 to another computer device via the network connection 107. A typical network connection 107 is a local area network (LAN) or a wide area network (WAN).

コンピュータモジュール101は典型的な構成として、プロセッサーユニット(CPU)135、ランダムアクセスメモリ(RAM) やリードオンリーメモリ(ROM)から構成されるメモリユニット136を有する。また、コンピュータモジュール101は、ビデオインタフェース137を含むI/Oインタフェース、キーボード132やマウス133のためのI/Oインタフェース143、記憶装置139を有する。記憶装置139は典型的にはハードディスクドライブ(HDD)140であるが、磁気テープドライブなどの装置でも良い。   As a typical configuration, the computer module 101 includes a processor unit (CPU) 135, a memory unit 136 including a random access memory (RAM) and a read only memory (ROM). The computer module 101 also includes an I / O interface including a video interface 137, an I / O interface 143 for the keyboard 132 and mouse 133, and a storage device 139. The storage device 139 is typically a hard disk drive (HDD) 140, but may be a device such as a magnetic tape drive.

コンピュータモジュール101は、CD/DVD−ROMドライブ142を有する。CD/DVD−ROMドライブ142は、不図示の不揮発性のコンピュータ読み取り可能な記憶媒体であるCD/DVD−ROMに格納されたプログラムや各データを読み込む。また、コンピュータモジュール101は相互接続バス134を有する。CPU135は、相互接続バス134を介して通信を行うI/Oインタフェース143を利用する。   The computer module 101 has a CD / DVD-ROM drive 142. The CD / DVD-ROM drive 142 reads programs and data stored in a CD / DVD-ROM which is a non-illustrated non-volatile computer-readable storage medium. The computer module 101 also has an interconnection bus 134. The CPU 135 uses an I / O interface 143 that performs communication via the interconnection bus 134.

本実施例で説明されるフローチャート(後述)で示される手順を実現するためのソフトウェアプログラムは例えば記憶装置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 storage device 139, for example. The software program is loaded from the storage device 139 to the memory unit 136 and executed by the CPU 135, thereby realizing the processing of this flowchart. Alternatively, the software program stored in the CD / DVD-ROM may be read by the CD / DVD-ROM drive 142 and executed by the CPU 135 to realize the processing of the flowchart (described later) of this embodiment.

図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 CPU 135 executing a software program for realizing each function of the document processing apparatus stored in the storage device 139. This document processing apparatus has a software module for executing each process described later. Hereinafter, the computer module 101 in which the above-described software program is executed by the CPU 135 is referred to as a document processing apparatus 101.

文書処理装置101は、文書処理制御部201を始めとするソフトウェアモジュール202〜207を有する。文書処理制御部201は、各ソフトウェアモジュールの処理やデータフローを制御する。   The document processing apparatus 101 includes software modules 202 to 207 including a document processing control unit 201. The document processing control unit 201 controls processing and data flow of each software module.

UI部202は、オペレータからの入力や出力を処理する。カーソル管理部203は、カーソル位置の抽出、判定、ならびにカーソル形状の管理を行う。文書操作管理部204は、文書の一部分の選択検知や、マウスによる文書に対するドラッグ&ドロップ操作の検知等を処理する。ペースト方法判定部205は、複製先の文書構造におけるペースト位置を特定し、ペースト位置に応じて文書データのペースト方法を判断する。属性設定方法判定部206は、文書データの属性の設定方法をペースト方法に応じて判断する。文書データ管理部207は、文書データの複製、移動、分割、削除等の処理や、文書データの属性の管理を行う。   The UI unit 202 processes input and output from the operator. The cursor management unit 203 performs cursor position extraction, determination, and cursor shape management. The document operation management unit 204 processes selection detection of a part of a document, detection of a drag and drop operation on a document with a mouse, and the like. The paste method determination unit 205 identifies the paste position in the document structure of the copy destination, and determines the document data paste method according to the paste position. The attribute setting method determination unit 206 determines the attribute data setting method according to the paste method. A document data management unit 207 performs processing such as duplication, movement, division, and deletion of document data, and management of document data attributes.

図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 document processing apparatus 101 in the present embodiment will be described with reference to the flowcharts of FIGS. Each processing flow of the present embodiment is realized by the CPU 135 executing a software program stored in the storage device 139 and the CPU 135 functioning as each software module. The software program may be stored in the memory unit 136, and the program of this embodiment may be executed by the CPU 135 executing the program. Note that this embodiment is an explanation of copying partial data in a document to another document, and the flow described later is the same when moving partial data in a document to another document. Description of data movement is omitted.

まず、図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 operation management unit 204 determines whether or not a part of the document is selected and dragged with the mouse while the partial data is selected. If the document operation management unit 204 detects document partial selection and drag processing in S401, the paste method determination unit 205 determines how to paste the partial data into the copy destination document data (S402). ). Details of the paste method determination process (S402) will be described later with reference to the flowchart of FIG. In S401, if the document operation management unit 204 does not detect document partial selection or drag processing, the document processing control unit 201 does not perform the processing from S402 onward.

次に、属性設定方法判定部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 processing control unit 201 determines how the paste method and the attribute setting method are determined in S402 and S403 (S404). If it is determined in S404 that “create new chapter” is selected as the paste method and “reflect chapter specific attributes of the copy source chapter” is selected as the attribute setting method, the document processing control unit 201 Executes the first paste process (S405). Details of the first paste process (S405) will be described later with reference to the flowchart of FIG.

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 processing control unit 201 determines that the second A paste process (S406) is executed. Details of the second paste process (S406) will be described later with reference to the flowchart of FIG.

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 processing control unit 201 sets the first 3 paste processing (S407) is executed. Details of the third paste process (S407) will be described later with reference to the flowchart of FIG.

<ペースト方法判定処理(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 operation management unit 204 detects a mouse operation and determines whether or not the detected mouse operation is a drop process (S501). If it is determined in S501 that the mouse operation detected by the document operation management unit 204 is not a drop process, the document operation management unit 204 performs a cancel instruction detection process (S502). In S502, if the document operation management unit 204 does not detect a cancel instruction, the document operation management unit 204 continues to detect a mouse operation and determine whether or not it is a drop process. If the document operation management unit 204 detects a cancel instruction in S502, the document processing control unit 201 proceeds to (1) in FIG. 4 and ends.

S501で、文書操作管理部204が検出したマウス操作がドロップ処理であると判断される場合は、カーソル管理部203はドロップされたカーソル位置を抽出する(S503)。次に、カーソル管理部203は、S503で抽出したカーソル位置をチェックし、カーソル位置が章判定領域内にあるのか、ページ判定領域内にあるのか、ペースト領域外にあるのかを判断する(S504)。図13に、本実施例における領域設定の例を示す。本例では、章判定領域を1303、ページ判定領域を1304、それ以外の領域をペースト領域外のように定める。   If it is determined in S501 that the mouse operation detected by the document operation management unit 204 is a drop process, the cursor management unit 203 extracts the dropped cursor position (S503). Next, the cursor management unit 203 checks the cursor position extracted in S503 and determines whether the cursor position is within the chapter determination area, the page determination area, or outside the paste area (S504). . FIG. 13 shows an example of area setting in this embodiment. In this example, the chapter determination area is defined as 1303, the page determination area as 1304, and the other areas outside the paste area.

S504で、カーソル管理部203が章判定領域内にカーソル(図13の1305)があると判定した場合は、ペースト方法判定部205は、複製先の文書構造におけるペースト位置を特定する(S505)。複製先の文書構造におけるペースト位置の特定とは、ペースト対象となる章の特定および前後のページの特定を意味する。   If the cursor management unit 203 determines in S504 that the cursor (1305 in FIG. 13) is within the chapter determination area, the paste method determination unit 205 identifies the paste position in the document structure of the copy destination (S505). The specification of the paste position in the document structure of the copy destination means the specification of the chapter to be pasted and the specification of the previous and subsequent pages.

次に、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 method determination unit 205 reads the acquired input information from the storage device 139 (S507), and determines the paste method for pasting the partial data into the copy destination document (S508). In this embodiment, the paste method “create new chapter” means that a new chapter is created at the copy destination, and the selected partial data is used as page data of the new chapter. The paste method “merge into existing chapter” means that the partial data selected at the copy source is merged with the page data of the existing chapter at the copy destination.

S508にて、ペースト方法判定部205が新章を作成すると判断した場合は、文書処理制御部201は、ペースト方法として「新章を作成」という選択を記憶装置139に登録する(S509)。また、S508にて、ペースト方法判定部205が新章を作成しないと判断した場合は、文書処理制御部201は、ペースト方法として「既存章にマージ」という選択を記憶装置139に登録する(S511)。   If the paste method determination unit 205 determines to create a new chapter in S508, the document processing control unit 201 registers the selection “create new chapter” in the storage device 139 as the paste method (S509). In S508, when the paste method determination unit 205 determines not to create a new chapter, the document processing control unit 201 registers, in the storage device 139, the selection “merge into existing chapter” as the paste method (S511). ).

S504で、カーソル管理部203がページ判定領域内にカーソルがあると判定した場合は、ペースト方法判定部205は、複製先の文書構造におけるペースト位置を特定する(S510)。そして、文書処理制御部201部は、ペースト方法として「既存章にマージ」という選択を記憶装置139に登録する(S511)。また、S504で、カーソル管理部203がペースト領域外にカーソルがあると判定した場合は、文書処理制御部201は、ペースト処理自体がキャンセルされたと判定し、処理を図4の(1)に進めて終了する。   If the cursor management unit 203 determines in step S504 that the cursor is within the page determination area, the paste method determination unit 205 specifies a paste position in the document structure of the copy destination (S510). Then, the document processing control unit 201 registers the selection “merge into existing chapter” in the storage device 139 as the paste method (S511). If the cursor management unit 203 determines in step S504 that the cursor is outside the paste area, the document processing control unit 201 determines that the paste process itself has been canceled, and the process proceeds to (1) in FIG. To finish.

<属性設定方法判定処理(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 processing control unit 201 reads the selected paste method from the storage device 139, and determines whether or not the paste method “create new chapter” is selected (S601). If it is determined in S601 that the paste method “create new chapter” is selected, the document data management unit 207 determines whether the partial data selected at the copy source is a chapter or a page in the copy source document structure. Is determined (S602).

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 data management unit 207 acquires the chapter unique setting flag of the chapter attribute, and whether there is a chapter unique setting. Is determined (S603). If it is determined in S603 that the chapter at the copy source has chapter-specific settings, the UI unit 202 displays attribute setting method options, receives input from the operator, and registers the received information in the storage device 139. (S604). The input of this information is realized by the UI unit 202 displaying a dialog like 1307 in FIG.

次に、属性設定方法判定部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 processing control unit 201 registers, in the storage device 139, the selection of “reflect the chapter unique attribute of the source chapter” as the attribute setting method (S607).

また、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 processing control unit 201 registers the selection “no chapter specific attribute” in the storage device 139 as the attribute setting method (S608).

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 processing control unit 201 registers the selection “no chapter specific attribute” in the storage device 139 as the attribute setting method (S608).

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 processing control unit 201 registers the selection “no chapter specific attribute” in the storage device 139 as the attribute setting method (S608).

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 processing control unit 201 registers the selection “do not change chapter attributes of existing chapters” in the storage device 139 as the attribute setting method (S609).

<第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 method determination unit 205 in the paste method determination process (FIG. 5), the document data management unit 207 determines the position to add a new chapter in the chapter list of the copy destination document data. (S7001).

次に、文書データ管理部207は、章属性やページリストが空の状態の新章の章情報を作成し、S7001で決定した位置に追加する(S7002)。次に、文書データ管理部207は、複製元で選択した章に属するすべてのページデータを抽出して(S7003)、抽出したページデータのページ情報を新章の章情報のページリストに追加する(S7004)。ここで、抽出したページデータのページ情報とは、抽出したページデータへのリンク情報であるページデータリンクならびにページIDを意味する。   Next, the document data management unit 207 creates chapter information of a new chapter with an empty chapter attribute or page list, and adds it to the position determined in S7001 (S7002). Next, the document data management unit 207 extracts all page data belonging to the chapter selected at the copy source (S7003), and adds the page information of the extracted page data to the page list of the chapter information of the new chapter (S7003). S7004). Here, the page information of the extracted page data means a page data link and page ID that are link information to the extracted page data.

次に、文書データ管理部207は、複製元の章の章属性を新章の章属性に転写し(S7005)、新章の章属性の章固有設定フラグをON(章固有設定有り)にする(S7006)。その結果、複製元の章の章固有属性を反映した新章としてペーストされる(図13の1308)。   Next, the document data management unit 207 transfers the chapter attribute of the original chapter to the chapter attribute of the new chapter (S7005), and sets the chapter unique setting flag of the chapter attribute of the new chapter to ON (with chapter unique setting). (S7006). As a result, it is pasted as a new chapter reflecting the chapter unique attribute of the source chapter (1308 in FIG. 13).

<第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 data management unit 207 adds the new chapter in the chapter list of the copy destination document data. (S7101).

次に、文書データ管理部207は章属性やページリストが空の状態の新章の章情報を作成して、S7101で決定した位置に追加する(S7102)。次に、文書データ管理部207は、複製元で選択された部分データが複製元の文書構造において章かページかを判断する(S7103)。S7103で、複製元で選択された部分データが複製元の文書構造において章であると判断される場合は、文書データ管理部207は、その章に属するすべてのページデータを抽出する(S7104)。また、S7103で、複製元で選択された部分データが複製元の文書構造において章でないと判断される場合は、文書データ管理部207は、選択されているページデータを抽出する(S7105)。   Next, the document data management unit 207 creates chapter information of a new chapter with an empty chapter attribute or page list, and adds it to the position determined in S7101 (S7102). Next, the document data management unit 207 determines whether the partial data selected at the copy source is a chapter or a page in the copy source document structure (S7103). If it is determined in S7103 that the partial data selected at the copy source is a chapter in the copy source document structure, the document data management unit 207 extracts all page data belonging to the chapter (S7104). If it is determined in S7103 that the partial data selected at the copy source is not a chapter in the copy source document structure, the document data management unit 207 extracts the selected page data (S7105).

次に、文書データ管理部207は、抽出したページデータのページ情報、すなわち、抽出したページデータへのリンク情報であるページデータリンクならびにページIDを新章の章情報のページリストに追加する(S7106)。次に、文書データ管理部207は、新章の章属性の各設定項目にNULLをセットし(S7107)、新章の章属性の章固有設定フラグをOFF(章固有設定無し)にする(S7108)。その結果、複製元の章の章固有属性を反映しない新章としてペーストされる(図13の1309)。   Next, the document data management unit 207 adds the page information of the extracted page data, that is, the page data link that is link information to the extracted page data and the page ID to the page list of the chapter information of the new chapter (S7106). ). Next, the document data management unit 207 sets NULL to each setting item of the chapter attribute of the new chapter (S7107), and turns OFF the chapter unique setting flag of the chapter attribute of the new chapter (S7108 is not set). ). As a result, it is pasted as a new chapter that does not reflect the chapter-specific attributes of the source chapter (1309 in FIG. 13).

<第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 data management unit 207 sets the paste position specified by the paste method determination unit 205 in the paste method determination process (FIG. 5) as the page data insertion position (S801). That is, the document data management unit 207 determines a chapter to be merged from existing chapters existing in the chapter list of the copy destination document data, and further inserts page data in the page list of the chapter information of the merge destination Determine the position.

次に、文書データ管理部207は、複製元で選択された部分データが複製元の文書構造において章かページかを判断する(S802)。S802で、複製元で選択された部分データが複製元の文書構造において章であると判断される場合は、文書データ管理部207は、その章に属するすべてのページデータを抽出する(S803)。また、S802で、複製元で選択された部分データが複製元の文書構造において章でないと判断される場合は、文書データ管理部207は、選択されているページデータを抽出する(S804)。   Next, the document data management unit 207 determines whether the partial data selected at the copy source is a chapter or a page in the copy source document structure (S802). If it is determined in S802 that the partial data selected at the copy source is a chapter in the document structure of the copy source, the document data management unit 207 extracts all page data belonging to the chapter (S803). If it is determined in S802 that the partial data selected at the copy source is not a chapter in the copy source document structure, the document data management unit 207 extracts the selected page data (S804).

次に、文書データ管理部207は、抽出したページデータのページ情報を、S801で決定した既存章の章情報のページリストに追加する(S805)。ここで、抽出したページデータのページ情報とは、抽出したページデータへのリンク情報であるページデータリンクならびにページIDを意味する。その結果、複製元で選択した部分データが複製先の既存章のページデータにマージされる(図13の1310)。   Next, the document data management unit 207 adds the page information of the extracted page data to the page list of the chapter information of the existing chapter determined in S801 (S805). Here, the page information of the extracted page data means a page data link and page ID that are link information to the extracted page data. As a result, the partial data selected at the copy source is merged with the page data of the existing chapter at the copy destination (1310 in FIG. 13).

以上の処理により、文書データの部分データの移動や複製において、カーソル位置に応じてペースト処理、すなわち文書構造に関するペースト方法と属性設定方法を自動的に切り替えることが可能となり、作業効率を向上させることが可能になる。   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 storage device 139 before a drag and drop operation is shown. In the present embodiment, an example in which a paste method and an attribute setting method are separately displayed when copying or moving partial data of document data is shown. Since the description here is substantially the same as that of FIG. 4 of the first embodiment, only different parts will be described.

本実施例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 storage device 139 into the memory unit 136 and executing it by the CPU 135. Unless otherwise specified, the document processing apparatus according to the present embodiment has the same configuration as that of the first embodiment.

<実施例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 operation management unit 204 detects document partial selection and drag processing in S401, the document operation management unit 204 detects a mouse operation and uses the mouse while maintaining the selected state. It is determined whether or not the drag movement is stopped (S901). If it is determined in S901 that the mouse operation detected by the document operation management unit 204 is not a drag movement stop, the document operation management unit 204 performs a cancel instruction detection process (S902). If the document operation management unit 204 does not detect a cancel instruction in step S902, the document operation management unit 204 continues to detect a mouse operation and determine whether to stop dragging. If the document operation management unit 204 detects a cancel instruction, the document processing control unit 201 proceeds to (1) in FIG. 4 and ends.

S901で、文書操作管理部204が検出したマウス操作がドラッグ移動の停止であると判断される場合は、カーソル管理部203は停止したカーソル位置を抽出する(S903)。次に、カーソル管理部203は、S903で抽出したカーソル位置をチェックし、カーソル位置が章判定領域内にあるのか、ページ判定領域内にあるのか、ペースト領域外にあるのかを判断する(S904)。本例では、章判定領域、ページ判定領域、ペースト領域外を実施例1と同様に定める。   If it is determined in S901 that the mouse operation detected by the document operation management unit 204 is the stop of the drag movement, the cursor management unit 203 extracts the stopped cursor position (S903). Next, the cursor management unit 203 checks the cursor position extracted in S903 and determines whether the cursor position is within the chapter determination area, the page determination area, or outside the paste area (S904). . In this example, the chapter determination area, the page determination area, and the area outside the paste area are determined in the same manner as in the first embodiment.

S904で、カーソル管理部203が章判定領域内(図14の1404)にカーソルがあると判定した場合は、ペースト方法判定部205は、複製先の文書構造におけるペースト位置を特定する(S905)。複製先の文書構造におけるペースト位置とは、対象となる章の特定および前後のページの特定を意味する。   If the cursor management unit 203 determines in S904 that the cursor is in the chapter determination area (1404 in FIG. 14), the paste method determination unit 205 specifies the paste position in the document structure of the copy destination (S905). The paste position in the document structure of the copy destination means specification of the target chapter and specification of the previous and subsequent pages.

次に、ペースト方法判定部205は、あらかじめ取得してあるペースト方法の選択情報を記憶装置139から読み取り(S906)、複製先の文書へ部分データをペーストする際のペースト方法を判断する(S907)。本実施例の「新章を作成」および「既存章にマージ」というペースト方法は、実施例1と同様の意味であるため説明を省略する。   Next, the paste method determination unit 205 reads the paste method selection information acquired in advance from the storage device 139 (S906), and determines the paste method used when pasting the partial data into the copy destination document (S907). . The pasting methods “create new chapter” and “merge into existing chapter” in this embodiment have the same meaning as in the first embodiment, and thus the description thereof is omitted.

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 cursor management unit 203 determines in step S904 that the cursor is outside the paste area is the same as that in the first embodiment, a description thereof will be omitted.

<実施例2における属性設定方法判定処理(S403)の詳細>
本実施例における属性設定方法判定処理(S403)の詳細を図10のフローチャートを用いて説明する。なお、S1001〜S1003までの処理および、S1012〜S1014の処理は、実施例1のS601〜S603の処理および、S607〜S609と同様であるため説明を省略する。
<Details of Attribute Setting Method Determination Process (S403) in Embodiment 2>
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 cursor management unit 203 changes the display of the cursor shape to cursor A (1407 in FIG. 14) (S1006). Then, the document operation management unit 204 detects a mouse operation and determines whether or not the detected mouse operation is a drop process (S1007). If it is determined in S1007 that the mouse operation detected by the document operation management unit 204 is a drop process, the process proceeds to S1012.

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 cursor management unit 203 changes the display of the cursor shape to the cursor B (1405 in FIG. 14) (S1008).

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 cursor management unit 203 changes the display of the cursor shape to the cursor B (1405 in FIG. 14) (S1008). Then, the document operation management unit 204 detects a mouse operation and determines whether or not the detected mouse operation is a drop process (S1009). If it is determined in S1009 that the mouse operation detected by the document operation management unit 204 is a drop process, the process proceeds to S1013.

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 cursor management unit 203 changes the cursor shape display to the cursor C (1409 in FIG. 14). (S1010). Then, the document operation management unit 204 detects a mouse operation and determines whether or not the detected mouse operation is a drop process (S1011). If it is determined in S1011 that the mouse operation detected by the document operation management unit 204 is a drop process, the process proceeds to S1014.

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 operation management unit 204 is not a drop process, the cursor management unit 203 changes the display of the cursor shape to the initial state (1411 in FIG. 14). (S1015). Next, the document operation management unit 204 performs a cancel instruction detection process (S1016). In step S1016, if the document operation management unit 204 does not detect a cancel instruction, the document processing control unit 201 advances the processing to (2) in FIG. 9, and detects and drags the mouse operation by the document operation management unit (204). The process returns to the movement stop determination process (S901). If the document operation management unit 204 detects a cancel instruction in step S1016, the document processing control unit 201 advances the processing to (1) in FIG. 4 and ends.

以上の処理により、文書データの部分データの複製や移動の操作の前に、あらかじめオペレータがペースト方法ならびに属性設定方法を選択しておいた場合においても、カーソル位置に応じてペースト処理を自動的に切り替えることが可能となる。さらに、オペレータがペースト位置を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 storage device 139 into the memory unit 136 and executing it by the CPU 135. Unless otherwise specified, the document processing apparatus according to the present embodiment has the same configuration as that of the second embodiment.

<実施例3における属性設定方法判定処理(S403)の詳細>
まず、本実施例における属性設定方法判定処理(S403)の詳細を図11のフローチャートを用いて説明する。実施例2との差異は、S1108〜S1109、および、S1112〜S1113である。その他の処理は、実施例2の図10の処理と同様であるため説明を省略する。
<Details of Attribute Setting Method Determination Process (S403) in Embodiment 3>
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 operation management unit 204 is a drop process, the document processing control unit 201 determines in step S904 in FIG. 9 whether the existing chapter needs to be divided. Determination is made using the paste position (S1108). Similarly, when it is determined in S1111 that the mouse operation detected by the document operation management unit 204 is a drop process, the document processing control unit 201 determines whether the existing chapter needs to be divided or not in S904 of FIG. Judgment is made using the paste position specified in (S1112).

図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 cursor position 1506 in FIG. 15, in FIG. 9, the paste method determination result is “create new chapter”, the paste position is the end of the chapter, that is, the first page of the chapter (301 in FIG. 3) and the chapter. Is determined to be inside the last page (302 in FIG. 3). As a result, the document processing control unit 201 determines that chapter division is necessary. For example, in the case of the cursor position 1508 in FIG. 15, the paste method determination result is “create new chapter” in FIG. 9, and the paste position is the end of the chapter, that is, the first page of the chapter (301 in FIG. 3). Or the last page of the chapter (302 in FIG. 3). As a result, the document processing control unit 201 determines that chapter division is unnecessary. Further, for example, in the case of the cursor position 1510 in FIG. 15, the paste method determination result is determined as “merge into existing chapter” in FIG. 9. As a result, the document processing control unit 201 does not perform the determination because the determination of the division of the existing chapter is unnecessary.

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 Embodiment 3>
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 data management unit 207 temporarily saves the setting information of the existing chapter from the existing chapter of the copy destination to be divided into the storage device 139 (S1201). Next, the document data management unit 207 creates a divided chapter A (1513 in FIG. 15) in which a group from the first page of the existing chapter (1512 in FIG. 15) to the division target to the page before the paste position is formed. Form (S1202). Next, the document data management unit 207 forms a divided chapter B (1515 in FIG. 15) that groups from the next page to the last page of the paste position of the existing chapter of the copy destination to be divided (S1203). .

次に、文書データ管理部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 data management unit 207 acquires the chapter unique setting flag of the chapter attribute of the existing chapter of the copy destination to be divided, and determines whether or not there is a chapter unique setting (S1204). If it is determined in S1204 that there is no chapter-specific setting in the existing chapter of the copy destination to be divided, the document data management unit 207 sets NULL for each setting item of the chapter attributes of divided chapter A and divided chapter B. (S1205). Then, the chapter unique setting flag of each chapter attribute is set to OFF (no chapter unique setting) (S1206). If it is determined in S1204 that there is a chapter-specific setting, the document data management unit 207 transfers the chapter attributes of the existing chapters to the divided chapters A and B (S1207), and the chapter attributes of each divided chapter. The chapter unique setting flag is set to ON (chapter unique setting exists) (S1208). After the processes of S1206 and S1208, the document data management unit 207 deletes the existing chapter setting information temporarily saved in the storage device 139 (S1209).

以上の処理により、カーソル位置判定において、章判定領域を変更し、既存章を分割して、その分割した章の間に新章を作成してペーストすることも可能になるため、より多彩なペースト方法の選択が可能となり、さらなる作業効率の向上が可能になる。   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)

文書データを複製先の文書データに複製または移動する際にペースト位置を特定し、特定したペースト位置によりペースト方法を判定するペースト方法判定手段と、ペーストした文書データの属性の設定方法を、前記ペースト方法判定手段で判定したペースト方法に応じて判定する属性設定方法判定手段と、前記ペースト方法判定手段および前記属性設定方法判定手段の判定結果に応じて、ペースト方法および属性設定方法を自動的に切り替える切り替え手段を有することを特徴とする文書処理装置。   A paste method determining means for specifying a paste position when copying or moving document data to a copy destination document data, and determining a paste method based on the specified paste position, and an attribute setting method for the pasted document data. Attribute setting method determining means for determining according to the paste method determined by the method determining means, and automatically switching between the paste method and the attribute setting method according to the determination results of the paste method determining means and the attribute setting method determining means A document processing apparatus comprising switching means. 前記ペースト方法判定手段および前記属性設定方法判定手段が、あらかじめ設定された選択肢に基づいて判定を行う場合に、文書データの属性の複製または移動の方法を区別表示することを特徴とする請求項1に記載の文書処理装置。   2. The method according to claim 1, wherein when the paste method determination unit and the attribute setting method determination unit make a determination based on a preset option, the method of copying or moving the attribute of the document data is distinguished. Document processing apparatus described in 1. 新章の作成の有無およびペースト位置に応じて、既存章の分割が必要か否かを判定する判定手段と、既存章を分割して文書データの部分データをマージする章分割手段を有することを特徴とする請求項1に記載の文書処理装置。   According to whether or not a new chapter has been created and the paste position, a determination unit that determines whether the existing chapter needs to be divided and a chapter division unit that divides the existing chapter and merges the partial data of the document data. The document processing apparatus according to claim 1, wherein: 文書データを複製先の文書データに複製または移動する際にペースト位置を特定し、特定したペースト位置によりペースト方法を判定するステップと、ペーストした文書データの属性の設定方法を、前記判定したペースト方法に応じて判定するステップと、前記ペースト方法および前記属性設定方法の判定結果に応じて、ペースト方法および属性設定方法を自動的に切り替えるステップを有することを特徴とする文書処理方法。   A step of specifying a paste position when copying or moving the document data to the copy destination document data, determining a paste method based on the specified paste position, and a method of setting attributes of the pasted document data, the determined paste method And a step of automatically switching between the paste method and the attribute setting method according to the determination results of the paste method and the attribute setting method. コンピュータを、請求項1〜3のいずれか1項に記載の文書処理装置の各手段として機能させるためのプログラム。   The program for functioning a computer as each means of the document processing apparatus of any one of Claims 1-3. 請求項5に記載のプログラムを記憶する記憶媒体。   A storage medium for storing the program according to claim 5.
JP2011239904A 2011-11-01 2011-11-01 Document processing apparatus and method Expired - Fee Related JP5882680B2 (en)

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)

* Cited by examiner, † Cited by third party
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

Patent Citations (2)

* Cited by examiner, † Cited by third party
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