JP2008021221A - Layout editing device, its control method and control program - Google Patents
Layout editing device, its control method and control program Download PDFInfo
- Publication number
- JP2008021221A JP2008021221A JP2006194082A JP2006194082A JP2008021221A JP 2008021221 A JP2008021221 A JP 2008021221A JP 2006194082 A JP2006194082 A JP 2006194082A JP 2006194082 A JP2006194082 A JP 2006194082A JP 2008021221 A JP2008021221 A JP 2008021221A
- Authority
- JP
- Japan
- Prior art keywords
- layout
- static
- dynamic
- template
- data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Document Processing Apparatus (AREA)
- Editing Of Facsimile Originals (AREA)
- Processing Or Creating Images (AREA)
Abstract
Description
本発明は、パーソナルコンピュータ等から成るレイアウト編集装置及びその制御方法、並びに前記制御方法を実行するための制御プログラムに関する。 The present invention relates to a layout editing apparatus including a personal computer, a control method thereof, and a control program for executing the control method.
最近では、DTP(デスク・トップ・パブリッシング)技術の進展とデジタル印刷装置の普及に伴って、文書を顧客毎にカスタマイズして出力するバリアブルプリントシステムが開発されている。そのため、顧客毎に異なる量のコンテンツを最適にレイアウトすることが求められている。 Recently, with the advancement of DTP (desk top publishing) technology and the spread of digital printing apparatuses, variable printing systems that customize and output documents for each customer have been developed. Therefore, it is required to optimally lay out different amounts of content for each customer.
従来、バリアブルプリントシステムは、テンプレートにあらかじめ配置されたコンテナ領域の中に、データベース等のデータからテキスト及びイメージ等のバリアブルデータを挿入してドキュメントのレイアウトを確定し、印刷を行う。その際、ドキュメント上に、コンテナ領域等によりレイアウトを作成し、データベースとレイアウトを関連付け、レイアウトの確定を達成していた。しかし、コンテナ領域のサイズが固定であったため、データベース内のデータがコンテナ領域に挿入されたとき(流し込まれたとき)に、データ量がコンテナ領域のサイズより多いとテキストのオーバーラップやイメージのクリッピング等の問題が発生した。また、データ量がコンテナ領域のサイズより少ないと隙間が空いてしまった。 2. Description of the Related Art Conventionally, a variable print system inserts variable data such as text and images from data such as a database into a container area arranged in advance in a template, determines the document layout, and performs printing. At that time, a layout is created on the document by a container area or the like, the database is associated with the layout, and the layout is confirmed. However, because the size of the container area is fixed, when data in the database is inserted into the container area (when it is inserted), if the amount of data is larger than the size of the container area, text overlap and image clipping Etc. occurred. Further, when the data amount is smaller than the size of the container area, a gap is left.
この問題を解決するために、自動レイアウトシステムが提案されている。自動レイアウトシステムは、テキスト及びイメージのコンテナ領域のサイズを可変に設定する(動的コンテナ領域として設定する)ことが可能である。この自動レイアウトシステムを実現しているソフトウェアは、コンテナ領域のサイズを可変とし、挿入されるデータ量に応じてコンテナ領域のサイズを変更する。しかし、この技術では、コンテナ領域のサイズが大きくなった場合、当該コンテナ領域が同ドキュメント上の他のコンテナ領域と重なってしまう問題が発生する。 In order to solve this problem, an automatic layout system has been proposed. The automatic layout system can variably set the size of the text and image container areas (set as a dynamic container area). Software realizing this automatic layout system changes the size of the container area according to the amount of data to be inserted, with the size of the container area being variable. However, with this technique, when the size of the container area increases, there arises a problem that the container area overlaps with other container areas on the same document.
また、テキストの場合において、固定のコンテナ領域内に入りきらないデータが挿入された場合、テキストのフォントサイズを縮小して、コンテナ領域内に全てのテキストを挿入する技術なども存在する。しかし、フォントサイズを調節する場合にテキストの量が大きいと、フォントサイズが小さくなり過ぎる問題が発生する。 In addition, in the case of text, when data that does not fit in a fixed container area is inserted, there is a technique for reducing the font size of the text and inserting all the text in the container area. However, if the amount of text is large when adjusting the font size, there is a problem that the font size becomes too small.
これらの問題を解決するための更なる自動レイアウトの技術としては、あるコンテナ領域のサイズが大きくなった場合に、隣接したコンテナ領域のサイズを小さくする技術が開示されている(例えば特許文献1参照)。
しかしながら、上述した従来の技術を利用する自動レイアウトシステムでは、次のような問題があった。 However, the automatic layout system using the above-described conventional technique has the following problems.
自動レイアウトシステムでは、自動レイアウト(動的レイアウト)を実行して、バリアブルデータのコンテンツサイズに応じて、コンテナ領域のサイズや位置を自動的に変更し、レイアウトを確定することができる。しかし、この自動レイアウトの実行時に、レイアウトの変化が大きくなり過ぎるという問題があった。例えば、可変エッジを持つコンテナ領域を関連付けると、関連付けられたコンテナ領域全てが自動レイアウトの実行対象となるため、例えば1つのコンテナサイズまたは位置の変更により、レイアウトが大きく変更されてしまうおそれがある。 In the automatic layout system, automatic layout (dynamic layout) is executed, and the size and position of the container area can be automatically changed according to the content size of the variable data to determine the layout. However, when this automatic layout is executed, there is a problem that the layout change becomes too large. For example, when a container area having a variable edge is associated, all the associated container areas are subjected to execution of automatic layout. For example, there is a possibility that the layout may be greatly changed by changing one container size or position.
したがって、自動レイアウトの実行時におけるレイアウトの変更を、より局所化することができるレイアウト編集装置が求められていた。 Therefore, there has been a demand for a layout editing apparatus that can localize a change in layout when executing automatic layout.
本発明は上記従来の問題点に鑑み、自動レイアウトの実行時におけるレイアウトの変更を、より局所化することができるレイアウト編集装置及びその制御方法、並びに制御プログラムを提供することを目的とする。 In view of the above-described conventional problems, an object of the present invention is to provide a layout editing apparatus, a control method thereof, and a control program that can localize a layout change at the time of execution of automatic layout.
本発明は上記目的を達成するため、レイアウトが固定された静的オブジェクトが配置される静的レイアウト編集レイヤと、レイアウトの変更が可能な動的オブジェクトが配置される動的レイアウト編集レイヤと、前記静的レイアウト編集レイヤと前記動的レイアウト編集レイヤにそれぞれ対応して設けられ、編集動作を行うための静的テンプレート及び動的テンプレートを有するレイアウト編集装置であって、前記静的または前記動的テンプレートを指定して、これらテンプレートにデータの流し込みを行うデータ流し込み手段と、前記データ流し込み手段によって前記静的テンプレートにデータの流し込みが行われた場合に、このデータの流し込みによって得られたレイアウト結果である静的オブジェクトに異常が発生しているか否かを検出する異常状態検出手段と、前記異常状態検出手段によって、異常が発生している静的オブジェクトを検出したときに、該静的オブジェクトに対応づけられている動的オブジェクト、及び該動的オブジェクトに関連付けられている前記動的テンプレート上の動的オブジェクト群を検索する動的オブジェクト群検索手段と、前記動的オブジェクト検索手段により検索された個々の動的オブジェクトに前記オブジェクト対応手段によって対応づけられている前記静的テンプレート上の個々の静的オブジェクトを検索する静的オブジェクト群検索手段と、前記静的オブジェクト検索手段により検索された静的オブジェクト群に対する前記データ流し込み手段によるレイアウト結果を、前記動的オブジェクト群検索手段により検索された動的オブジェクト群に対する前記自動レイアウト手段によるレイアウト結果に置き換えるレイアウト結果置き換え手段とを備えたことを特徴とする。 In order to achieve the above object, the present invention provides a static layout editing layer in which static objects having a fixed layout are arranged, a dynamic layout editing layer in which dynamic objects capable of changing the layout are arranged, A layout editing apparatus provided corresponding to each of a static layout editing layer and the dynamic layout editing layer and having a static template and a dynamic template for performing an editing operation, wherein the static or dynamic template Is a layout result obtained by the data flow when the data flow is performed to the static template by the data flow means and the data flow means for performing data flow to the template. Check whether an error has occurred in a static object An abnormal state detecting means that detects a static object in which an abnormality is detected by the abnormal state detecting means, and a dynamic object associated with the static object, and an association with the dynamic object A dynamic object group search unit that searches for a dynamic object group on the dynamic template that is stored, and an individual dynamic object searched by the dynamic object search unit is associated with the dynamic object group search unit. A static object group search means for searching for individual static objects on the static template, and a layout result by the data flow means for the static object group searched by the static object search means, Dynamic objects retrieved by group retrieval means Characterized in that by the automatic layout unit for preparative group and means replacement layout result to replace the layout result.
本発明によれば、データ溢れ等の異常が発生している静的オブジェクトを検出したときは、異常時対処処理として、動的オブジェクト群検索手段、静的オブジェクト群検索手段、及びレイアウト結果置き換え手段が実行される。これにより、自動レイアウト手段の実行時におけるレイアウトの変更を、より局所化することが可能になる。 According to the present invention, when a static object in which an abnormality such as data overflow has occurred is detected, a dynamic object group search unit, a static object group search unit, and a layout result replacement unit are used as a handling process for an abnormality. Is executed. As a result, the layout change at the time of execution of the automatic layout means can be made more localized.
また、データ溢れ等の異常が発生している静的オブジェクトを検出したときは、該静的オブジェクトに対して異常時対処属性が設定されている場合に限り、前記異常時対処処理を実行することができる。 In addition, when a static object in which an abnormality such as data overflow has occurred is detected, the abnormality handling process is executed only when the abnormality handling attribute is set for the static object. Can do.
以下、本発明の実施の形態について、図面を参照しながら説明する。
<システム構成図>
図1は、本発明の実施の一形態に係るレイアウト編集装置を含むコンピュータシステムを示すブロック図である。図2は、図1中のレイアウト編集装置の内部構成を示すブロック図である。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
<System configuration diagram>
FIG. 1 is a block diagram showing a computer system including a layout editing apparatus according to an embodiment of the present invention. FIG. 2 is a block diagram showing an internal configuration of the layout editing apparatus in FIG.
本実施の形態に係るレイアウト編集装置は、図1及び図2に示すホストコンピュータ101で構成されている。
The layout editing apparatus according to the present embodiment is configured by the
本実施の形態に係るレイアウト編集装置の処理プロセスは、ホストコンピュータ101内で実行され、図1のコンピュータシステム上で実施可能となるレイアウト編集アプリケーションプログラム121のようにソフトウェアの全体、或いは一部分で実行される。特に、本実施の形態に係るレイアウト編集や必然的に起こる印刷のステップはコンピュータ101によって実行されるソフトウェアの指示によって実施される。ソフトウェアは例えば図2に示すような記憶装置139を含むコンピュータの可読媒体に格納される。ソフトウェアはコンピュータの可読媒体からコンピュータ101にロードされ、コンピュータ101によって実行される。
The processing process of the layout editing apparatus according to the present embodiment is executed in the
ホストコンピュータ101はキーボード132やマウス133のようなポインティングデバイスなどの入力装置をつなぎ、ディスプレイ装置144や状況に応じてはローカルプリンタ145を含む出力装置を連結する。入力/出力インターフェース138はホストコンピュータ101をネットワーク接続107から接続してシステム100の他のコンピュータ装置につなげることができる。そのネットワーク接続107の典型はローカルエリアネットワーク(LAN)、或いはワイドエリアネットワーク(WAN)である。
The
コンピュータ101は、少なくとも1つのプロセッサユニット135と、例えば半導体のランダムアクセスメモリ(RAM)やリードオンリーメモリ(ROM)から構成されるメモリ136を有している。さらに、ビデオインターフェース137を含むINPUT/OUTPUT(I/O)インターフェース138や、キーボード132やマウス133のためのI/Oインターフェース143も備えている。記憶装置139は典型的にハードディスクドライブ140やフロッピー(登録商標)ディスクドライブ141を含んでいる。図には示されていないが磁気テープドライブも使用される可能性がある。
The
CD−ROMドライブ142は不揮発性のデータソースとして提供される。コンピュータ101は、相互接続バス134を介して通信を行うコンピュータ101のコンポーネント135からI/Oインターフェース143を利用する。
The CD-
レイアウト編集アプリケーションプログラム121は、典型的にハードディスクドライブ140に常駐し、プロセッサ135により実行、読み込み、コントロールされる。プログラム121の媒介記憶装置とネットワーク1020からフェッチされるデータは、ハードディスクドライブ140に呼応してメモリ136に記憶される。また、アプリケーションプログラム121がCD−ROMやフロッピー(登録商標)ディスク上でエンコードされ、対応するドライブ142や141を通じて読み込まれユーザに提供される。或いはもう一つの方法としてアプリケーションプログラム121はネットワーク接続107からユーザによって読み込まれても構わない。
The layout
さらに、ソフトウェアは他の適当な大きさのコンピュータ可読媒体からホストコンピュータ101内にロードされる可能性もある。例えば、磁気テープ、集積回路、光磁気ディスク、無線または赤外線通信、PCMCIAカードのようなコンピュータ可読カード、または、Eメール通信やWEBサイト上の記録情報を持つインターネットやイントラネットなどである。前述は単に関連するコンピュータ可読メディアの模範である。他のコンピュータ可読媒体も使用される可能性はある。
Further, the software may be loaded into the
また、レイアウト編集アプリケーション121はバリアブルデータ印刷(VDP)を行うよう指示可能であり、2つのソフトウェアコンポーネントを含んでいる。1つ目のコンポーネントはレイアウトエンジン105であり、これは長方形の範囲内で与えられた制限やサイズによって矩形と線の位置を計算するためのソフトウェアコンポーネントである。2つ目のコンポーネントであるユーザインターフェース103はユーザにドキュメントテンプレートを作成させ、ドキュメントテンプレート内でデータソースと関連付けるメカニズムを提供する。
The
ユーザインターフェース103とレイアウトエンジン105はコミュニケーションチャネル123を介して通信する。ドキュメント生成のためのデータソースは一般的にデータベースアプリケーションを動かしている他のコンピュータによって構成されたデータベースサーバ117上にある典型的なデータベース119である。ホストコンピュータ101はネットワーク接続107によってデータベースサーバ117と通信する。レイアウト編集アプリケーション121はホストコンピュータ101か一般的に他のコンピュータで構成されるファイルサーバ115に保存されるドキュメントテンプレートを生成する。
The
また、レイアウト編集アプリケーション121はデータとマージされたドキュメントテンプレートによって構成されたドキュメントを生成する。これらのドキュメントはホストコンピュータ101のローカルファイルシステムに保存されるか、ファイルサーバ115に保存されるか、或いはプリンタ113に直接印刷される。プリントサーバ109は直接ネットワークにつながっていないプリンタにネットワーク機能を提供するコンピュータである。プリントサーバ109とプリンタ113は典型的な通信チャネル111を介して接続される。
In addition, the
また、図1に示すようにエンジンサーバ227が接続されていても良い。
In addition, an
エンジンサーバ227は典型的なコンピュータである。ファイルサーバ115に保存されたドキュメントテンプレートは印刷や他の目的がある際、レイアウトエンジン225によってドキュメントを生成するためにデータベース119に保存されたデータと結合することができる。そのようなオペレーションはユーザインターフェース103を介して要求されるか、特定のレコードのみ印刷するように要求される。
The
<動的レイアウト編集装置のアプリケーションの構成>
以下、ホストコンピュータ101上において、レイアウトの変更が可能な動的オブジェクトを編集する機能(以下、動的レイアウト編集装置と記す)について、図3〜図12を参照しつつ説明する。
<Application configuration of dynamic layout editing device>
Hereinafter, a function for editing a dynamic object whose layout can be changed on the host computer 101 (hereinafter referred to as a dynamic layout editing apparatus) will be described with reference to FIGS.
(A)メインウィンドウ
図3は、本実施の形態のホストコンピュータ101で使用するアプリケーションのメインウィンドウを示す画面図である。
(A) Main Window FIG. 3 is a screen diagram showing a main window of an application used in the
ウィンドウ301は、非表示にすることやスクリーン上の色々な場所に移動することが可能なメニューバー302とツールバー303が配置される。そして、マウス133の位置・動作によって場所を移動可能なワークエリア306とオプションのパレット311とカーソル/ポインタデバイス313から特徴づけされる。
In the
メニューバー302は、周知の技術として知られているように、メニューオプションの階層の下に拡張される多くのメニューアイテム304を持つ。ツールバー303は、アプリケーションの特別なモードによって非表示にする、または表示することが可能な多くのツールボタンとウィジット305を持つ。オプションのルーラー308はワークエリア内のポインタ、ページ、ライン、マージンガイド、コンテナ領域またはオブジェクトの位置を示すために使われる。
The
パレット311はバリアブルデータライブラリのような追加機能にアクセスするために使われる。パレット311は移動、リサイズ、クローズをするためのウィンドウコントロール312を持つ。
The
図4は、本実施の形態に係るアプリケーションウィンドウ301上に表示されるコンテナ領域の表示例を示す画面図である。同図に示す画面は、コンテナ領域間のリンク、アンカーやスライダーを持つコンテナ領域の一面をスクリーン、ツール、アイコンで示している。
FIG. 4 is a screen diagram showing a display example of the container area displayed on the
また、図4に示す画面は、1ページのドキュメントテンプレート309上に表示することが可能なオブジェクトの例である。それらは、複数のコンテナ領域407、408と、任意に適用するアンカーアイコン409と固定されていない辺410、リンク412そしてスライダー413を持つ。
Also, the screen shown in FIG. 4 is an example of an object that can be displayed on the
ツールバーエリア303は、図4に示すように、ユーザ選択可能なボタンを持つ。即ち、選択ツールボタン403、テキストコンテナ領域ツールボタン404、イメージコンテナ領域ツールボタン405、及びリンクツールボタン406が配置されている。
The
選択ツールボタン403は、コンテナ領域の辺を選択、移動、サイズ変更、リサイズそしてロック・ロック解除するために使われる。コンテナ領域は、(複数)コンテナ領域の周りに選択ボックスをドラッグする、或いは複数コンテナ領域を選択する間にCTRLキーを押しつづけることによって、複数選択を可能にする。
The
イメージコンテナ領域ツールボタン405は、イメージデータを流し込むためのコンテナ領域を作成するために使われる。テキストコンテナ領域ツールボタン404は、テキストデータを流し込むためのコンテナ領域を作成するために使われる。また、リンクツールボタン406は、複数のコンテナを関連付け、コンテナ領域間の距離をコントロールするリンクを作成するために使われる。
An image container
ワークエリア306はドキュメントテンプレート309のデザインを表示・編集するために使われる。これはユーザに下準備で印刷されたドキュメントの概観をデザインすること、そしてマージされたドキュメントが、バリアブルデータの量・サイズに基づいてどのように変化するかを示すことができる。
A
ワークエリア306はスクロールバー307とオプションのルーラー308とドキュメントテンプレート309に特徴付けられる。それぞれのドキュメントでの実際のページ数は、バリアブルデータによって変化する。もし1ページ内にコンテンツデータを配置できない場合、追加のページは自動的に作成される。それぞれのページ内の境界線は、ページ上の印刷可能なオブジェクトの最大幅を示す、ページマージンガイド310である。
The
(B)コンテナ領域
コンテナ領域は、ドキュメントテンプレート309内の固定(静的)或いは可変(バリアブル)テキスト・イメージを流し込むための領域である。コンテナ領域はマウス133動作でポインタ313を使い、ユーザインターフェースで示されるように移動、サイズ調整そして再作成される。そして、コンテナ領域には様々な設定情報が設定される。
(B) Container area The container area is an area for inserting a fixed (static) or variable (variable) text image in the
コンテナ領域には、入力されるコンテンツデータによって、サイズまたは位置が変更される可変属性や、サイズおよび位置が変更しない固定属性を設定できる。 In the container area, a variable attribute whose size or position is changed according to input content data and a fixed attribute whose size and position are not changed can be set.
さらに、コンテナ領域はユーザインターフェースを持つ、例えばコンテナ領域の編集そして表示設定のためのインタラクティブなGUIを持つ。インターフェースの要素は典型的にスクリーン144上に表示される、しかしドキュメントには印刷されない。ユーザインターフェース103は、背景色やフォントのようなコンテナ領域の装飾機能のいくつかを表示する、そしてコンテナ領域の設定の編集や表示を許すための機能を追加する。
Further, the container area has a user interface, for example, an interactive GUI for editing and display setting of the container area. Interface elements are typically displayed on the
ユーザインターフェース機能の特別な目的の例としては、ボーダー、角アイコン、或いは上塗りした数、線、アイコン、テキストがある。角アイコンは、コンテナ領域のサイズや位置を対話的に変更、表示するためのアイコンである。また、上塗りした数、線、アイコン、テキストは、コンテナ領域がデータソースからデータをマージされたとき、コンテナ領域の動作を示すためのものである。 Examples of special purposes for user interface functions include borders, corner icons, or overcoated numbers, lines, icons, and text. The corner icon is an icon for interactively changing and displaying the size and position of the container area. Also, the number of overcoats, lines, icons, and text are for indicating the operation of the container area when the container area is merged with data from the data source.
図4で参照されるように、新規テキストコンテナ領域は、テキストコンテナ領域ツール404をマウス133でクリックし、テンプレート309に四角形をドラッグすることによって、ドキュメントテンプレート309上に作成される。イメージコンテナ領域もイメージコンテナ領域ツール405を使用して同様に作成される。
As shown in FIG. 4, a new text container area is created on the
代わりにコンテナ領域は、適切なツール404、405をアクティブにした後に、ドキュメントテンプレート309上でクリックすることによって作成される。コンテナには、辺ごとに可変属性または固定属性を設定することができる。例えば、図4では、辺410と下辺が可変設定されており、コンテナ407よりも大きいサイズのコンテンツが入力された場合、右方向または下方向にサイズ変更されることが示されている。なお、コンテナサイズに最大値、最小値を設定し、設定された値を範囲として自動レイアウトできるようにしても構わない。
Instead, the container area is created by clicking on the
(D)リンク
リンクは、コンテナ領域とコンテナ領域の関連を示している。関連とはコンテナ領域間の距離を示しており、リンクによって関連付けられたコンテナ領域同士は、互いのレイアウト変更の影響を受けてレイアウトを計算する。図4の412で示されているものがリンクであり、この図ではコンテナ領域407と408とを関連付けている。リンクの設定方法及び、リンクで関連付けられたコンテナ領域の動的レイアウト計算方法については、後述する。
(D) Link The link indicates the relationship between the container area and the container area. The association indicates the distance between the container areas, and the container areas associated by the link are affected by the mutual layout change and the layout is calculated. What is indicated by
まず、リンクの設定方法について説明する。リンクを設定するためのコンテナ領域(最低2つ)を作成する。図4の例では、コンテナ407と408が相当する。次に、前述したリンクツール406を選択した状態にする。 まず、リンクを設定する片方のコンテナ領域をクリックして選択する。次に関連付けたいコンテナ領域までマウスポインタを移動して、クリックする。その結果、選択されたコンテナ間が関連付けられたことを示すリンクが設定され、表示される。
First, a link setting method will be described. Create container areas (at least two) for setting links. In the example of FIG. 4,
(F)動的レイアウト計算方法(全体フロー)
図5は、本実施の形態に係る動的レイアウト計算のフロー図を示している。
(F) Dynamic layout calculation method (overall flow)
FIG. 5 shows a flowchart of the dynamic layout calculation according to the present embodiment.
まず、レイアウト編集アプリケーション121は、プレビューモードを選択する(S801)。前述した自動レイアウトシステムでは、レイアウトモードとプレビューモードとに分けられる。レイアウトモードは、コンテナ領域を作成して、そのコンテナ領域間に関連付けを行うモードである。プレビューモードは、レイアウトを作成すると、作成したレイアウトにレコードを挿入して、実際にレコードが挿入された後のレイアウト結果をプレビューするモードである。
First, the
プレビューモードにおいて、実際のレコードが挿入され、レイアウトを計算する。但し、プレビューモードは、表示上でのレイアウト計算である。実際に印刷する場合においても、レコードを挿入してレイアウトを計算する。その際の計算方法も同じである。 In preview mode, the actual record is inserted and the layout is calculated. However, the preview mode is a layout calculation on the display. Even in actual printing, a record is inserted to calculate the layout. The calculation method at that time is the same.
プレビューモードになったら、レイアウト編集アプリケーション121は、プレビューするレコードを選択して挿入し、そのレコードをレイアウトするために計算を行う。(S803)。レイアウト編集アプリケーション121は、処理S803で計算されたレイアウトを表示して(S804)、他のレコードについてもプレビューを行うかどうかを判断する(S805)。
When the preview mode is entered, the
処理S805で、他のレコードについてプレビューを行う必要がないと判断した場合、レイアウト編集アプリケーション121は、プレビューモードを終了する(S807)。他のレコードについてプレビューを行うのであれば、レイアウト編集アプリケーション121は、他のレコードを選択して再度レイアウト計算を行い、プレビューを行う(S806)。プレビューモードでなく印刷時においては、印刷するレコード全てについて順にレイアウトの計算を行う。したがって、処理S805、S807は存在しない。全てのレコードについて印刷が終了した時点で終了する。
If it is determined in step S805 that there is no need to preview another record, the
(G)動的レイアウト計算方法(詳細フロー)
図6は、動的レイアウト計算の詳細を示したフロー図である。図7は、本実施の形態に係るレイアウト計算時におけるコンテナ領域の集合に関する説明図である。
(G) Dynamic layout calculation method (detailed flow)
FIG. 6 is a flowchart showing details of the dynamic layout calculation. FIG. 7 is an explanatory diagram relating to a set of container areas at the time of layout calculation according to the present embodiment.
まず、レイアウト編集アプリケーション121は、レイアウトを計算するコンテナ領域の集合を求める(S901)。レイアウト計算は、関連付けられたコンテナ領域を1つの集合として計算を行う。例えば図11を参照すると、ページ上に4つのコンテナ領域がレイアウトされており、各コンテナ領域に関連付けが設定されている。この場合、コンテナ領域Aとコンテナ領域B、そしてコンテナ領域Cとコンテナ領域Dがリンクによって関連付けされている。したがって、コンテナ領域A・Bが集合1、コンテナ領域C・Dが集合2となる。
First, the
前述した通りであるが、1101はアンカー、1102は固定された辺、1103はコントローラー、1104は可変の辺の変化方向を示している矢印、1105は可変の辺、1106はリンク、そして1107はスライダーを示している。 As described above, 1101 is an anchor, 1102 is a fixed side, 1103 is a controller, 1104 is an arrow indicating a change direction of a variable side, 1105 is a variable side, 1106 is a link, and 1107 is a slider. Is shown.
次に、レイアウト編集アプリケーション121は、S901で求めたコンテナ領域の集合から、レイアウトを計算するために1つを選択して(S902)、選択したコンテナ領域の集合についてレイアウトの計算を行う。ここでは、レイアウトされるコンテナ領域のサイズが、実際のコンテンツのサイズとできる限り差が少なくなるように、レイアウト編集アプリケーション121は、レイアウトの最適化を行う(S903)。レイアウトの最適化は、動的にサイズを変化することが可能なように関連付けられたコンテナ領域において、それぞれに挿入されるコンテンツのサイズとレイアウトされるサイズとの差が、できる限り同じになるように行われる。レイアウトの最適化を行い、ルールに違反していた場合、レイアウト編集アプリケーション121は、再度ルールを違反しないように計算をする(S904)。
Next, the
ここで記述したルールには、ユーザ指定ルールとシステムルールがあり、ユーザ指定ルールというのは、レイアウト作成時にユーザによって設定される制限であり、コンテナ領域のサイズと位置、リンクの長さなどである。また、システムルールというのは、自動レイアウトシステムによってあらかじめ設定される制限であり、「コンテナ領域はページのマージンガイドからはみ出してレイアウトすることができない」などである。 The rules described here include user-specified rules and system rules. User-specified rules are restrictions set by the user when creating a layout, such as the size and position of a container area, the length of a link, etc. . The system rule is a restriction set in advance by the automatic layout system, such as “the container area cannot be laid out beyond the margin guide of the page”.
ルールを違反しないようにレイアウトが計算されたら、その集合のレイアウトは完成される。そして、S902〜S904のステップをページ上の全ての集合について施し、レイアウト編集アプリケーション121は、ページ全体のレイアウトを計算する(S905)。
Once the layout is calculated so that it does not violate the rules, the set layout is completed. Then, the steps S902 to S904 are performed on all the sets on the page, and the
図8(a),(b),(c)は、動的レイアウト計算時のUI表示例を示した図である。 FIGS. 8A, 8B, and 8C are diagrams showing examples of UI display during dynamic layout calculation.
図8(a)は、あるレコードが挿入されレイアウトが決定されている状態を表している。1001と1002はアンカー、1003と1004は固定された辺、1005は可変の辺、1006は可変の辺の変化方向を示している矢印、1008はリンクをそれぞれ示している。この状態において、レコードを変更し、異なったサイズのコンテンツを挿入する。 FIG. 8A shows a state in which a certain record is inserted and a layout is determined. 1001 and 1002 are anchors, 1003 and 1004 are fixed sides, 1005 is a variable side, 1006 is an arrow indicating the change direction of the variable side, and 1008 is a link. In this state, the record is changed and contents of different sizes are inserted.
図8(b)は図8(a)の状態に新しいコンテンツのサイズを重ねて示している。1009はそれぞれのコンテナ領域に挿入されるコンテンツのサイズを表している。そして、レイアウト計算が行われる。図8(c)はレイアウト計算された結果を示している。計算後の各コンテナ領域のサイズは、実際挿入されるコンテンツのサイズと同等に差異があるように計算され、且つ前述したルールを違反しないように計算される。図8(c)で示されるように、図8(b)で示した挿入されるコンテンツサイズ(1009)と計算後のコンテンツサイズ(1010)は、双方において同等な差異がある。
FIG. 8B shows the new content size superimposed on the state of FIG.
(H)可変リンクの設定
図9は、リンクの情報をセットするためのダイアログウィンドウ1401の例を示す画面図である。
(H) Setting of Variable Link FIG. 9 is a screen diagram showing an example of a
このダイアログは典型的にタイトルバー1402、ツールボタン1403、ダイアログウィンドウの開閉を行うボタン1404、各種の情報をセットするエリア1409で構成されている。このダイアログウィンドウではリンクタイプが可変(1407)或いは固定(1406)の選択や、可変の場合、リンクの長さの最小値(1410)そして最大値(1412)、また現在の値(1411)が設定できる。
This dialog typically includes a
図10は、リンク設定に関するフローチャートである。即ち、前述のリンク設定方法を踏まえ、例えば後述する図11のコンテナ領域Aとコンテナ領域B間に張られている固定サイズのリンク1503の状態から可変サイズのリンク1603を設定するまでの操作遷移を表している。
FIG. 10 is a flowchart regarding link setting. That is, based on the above link setting method, for example, the operation transition from the state of the fixed
レイアウト編集アプリケーション121は、マウスの指示に基づいてリンク1503を選択する(S1302)。レイアウト編集アプリケーション121は、マウスの右クリック或いはキーボードの特定のキーにより選択したリンク1503のプロパティダイアログウィンドウ1401を表示する(S1303)。この状態ではリンクサイズは可変ではなく固定であるため、Fixed Length1406がLink Type1405において選択されている。リンクを固定サイズから可変サイズに変更するために、レイアウト編集アプリケーション121は、Link Type1405においてリンクサイズを可変に設定するFlexibleLength1407を選択する(S1304)。これによりLink Distance1408内に配置されているMax.Distance1412、Min.Distance1410、Distance1411が有効化され、数値の設定が可能となる。そこで、レイアウト編集アプリケーション121は、リンクの長さの最大値をMax. Distance1412、最小値をMin.Distance1410、現在の値をDistance1411に設定する(S1305)。一般的なダイアログウィンドウ開閉ボタン1404によって設定を適用すると図12のリンク1603のような状態にリンクのUI表示が変化する(S1306)。このダイアログウィンドウ1401の設定情報はメモリに格納される。
The
図11は、固定サイズのリンクを使用した場合のレイアウト結果を示す画面図である。 FIG. 11 is a screen diagram showing a layout result when a fixed-size link is used.
レイアウト計算方法は前述した通りに従って行われる。例えば図11において各コンテナ領域にデータが挿入された時、それぞれのコンテナ領域は、データの大きさを最適と考えた場合には次のように変更される。即ち、コンテナ領域1501は、挿入されたイメージサイズになる枠1504(最適コンテナ領域サイズ)に近づこうと右方向へ大きくサイズを変更しようとする。同様にコンテナ領域1502も挿入されたイメージサイズになる枠1505(最適コンテナ領域サイズ)に近づこうと左方向へやや大きくサイズを変更しようとする。
The layout calculation method is performed as described above. For example, when data is inserted into each container area in FIG. 11, each container area is changed as follows when the data size is considered optimal. That is, the size of the
しかし、コンテナ領域間には固定サイズのリンク1503が設定されているとすると、コンテナ領域1501とコンテナ領域1502はそれぞれ、アンカーが設定されているため移動できない。そのため、変更しようとするサイズがリンクサイズを上回ってしまう。そして、このリンクサイズは固定されているためレイアウト計算時に優先的に計算されるので、コンテンツデータ(1504、1505)に合わせた最適なサイズを確保することができない。その結果、最終的に図11のコンテナ領域1501とコンテナ領域1502のように最適なサイズ(枠1504、枠1505)よりも小さくなってしまう。リンク1503のサイズは固定であるためコンテナ領域1501とコンテナ領域1502は最適サイズを達成していない。
However, if a fixed-
図12は、本実施の形態に係る可変リンクによるレイアウト結果を示す画面図であり、リンクを可変サイズにした場合を示している。 FIG. 12 is a screen diagram showing a layout result by the variable link according to the present embodiment, and shows a case where the link has a variable size.
この場合、上記の例でコンテナ領域間には図12の通り可変サイズのリンク1603が設定されているとすると、各コンテナ領域のサイズが変更される際に、リンクサイズが縮まることで各コンテナ領域のサイズが図11の例より大きくなる。よって、挿入されるデータサイズに合わせた最適なサイズを達成、或いはより挿入データサイズ(最適サイズ)に近づけてコンテナ領域の枠を計算することができる。その結果が、図12のコンテナ領域1601とコンテナ領域1602である。
In this case, assuming that
可変リンクはレイアウト計算の結果、可変リンク1603のサイズ状態となり、この場合コンテナ領域1601とコンテナ領域1602はそれぞれ最適なサイズ(データサイズに合った大きさ)になっている。
As a result of layout calculation, the variable link becomes the size state of the
<静的レイアウト編集装置のアプリケーションの構成>
以下、ホストコンピュータ101上において、レイアウトが固定された静的オブジェクトを編集する静的レイアウトモードについて説明する。
<Application configuration of static layout editing device>
Hereinafter, a static layout mode for editing a static object having a fixed layout on the
図13は、本実施の形態に係る静的レイアウトモードが選択された場合に表示される内容を示した図である。 FIG. 13 is a diagram showing the contents displayed when the static layout mode according to the present embodiment is selected.
静的レイアウトモードが選択された場合、レイアウト編集アプリケーション121は、図13に示すように、静的レイアウト編集レイヤ1811としてレイヤ1を生成する。さらに、レイアウト編集アプリケーション121は、図14に示すように動的レイアウト編集レイヤ1911としてレイヤ2を生成する。なお、静的レイアウト編集レイヤを表示するか動的レイアウト編集レイヤを表示するかは、タブ「レイヤ1」または「レイヤ2」を選択することによって切り替えられる。
When the static layout mode is selected, the
なお、前記静的レイアウト編集レイヤでは、静的オブジェクト(固定オブジェクト)のみが配置可能である。静的オブジェクトとは、直線や多角形などのベクター図形に加え、バリアブルデータによりコンテンツを流し込むことのできる、位置及びサイズが固定のテキストコンテナ領域及びイメージコンテナ領域である。また、前記動的レイアウト編集レイヤでは、前記静的オブジェクトに加え、動的オブジェクト(可変オブジェクト)が配置可能である。動的オブジェクトとは、バリアブルデータのコンテンツサイズにより、または、リンクによって関連付けられた他のオブジェクトからの影響により、そのサイズや位置が変更されるテキストコンテナ領域及びイメージコンテナ領域を指す。前記静的オブジェクトは、他の動的オブジェクトとリンクされ関連付けが行われると、動的オブジェクトとなる。 In the static layout editing layer, only static objects (fixed objects) can be arranged. A static object is a text container area and an image container area whose positions and sizes are fixed and into which content can be poured by variable data in addition to vector graphics such as lines and polygons. In the dynamic layout editing layer, a dynamic object (variable object) can be arranged in addition to the static object. A dynamic object refers to a text container area and an image container area whose size and position are changed by the content size of variable data or by the influence from other objects associated by a link. The static object becomes a dynamic object when linked to and associated with another dynamic object.
また、図14に示すように、レイヤ2の動的レイアウト編集レイヤ1911には、レイヤ1のコピーであるドキュメントテンプレートと、そのドキュメントテンプレート1912上の静的オブジェクト1921〜1928が、初期状態では、生成される。また、動的レイアウト編集レイヤ1911では、動的レイアウト編集装置特有のオブジェクト可変設定UIが提供される。そのため、ツールバーエリア1903には、リンク作成用のリンクツールボタンが存在し、コンテナ領域の辺を可変に設定する機能も存在する。
Further, as shown in FIG. 14, in the dynamic
図15は、本実施の形態に係る動的レイアウト編集レイヤの動的設定後の状態を示す図である。即ち、図14に配置された静的オブジェクト1921〜1928に、ユーザがリンクツールを用いてリンク設定と、コンテナ領域の辺の可変設定を施した状態を示している。静的オブジェクトであるコンテナ領域1921、1922、1923〜1928の辺の一部が可変に変更され、動的オブジェクト2021、2022、2023〜2028となっている。また、リンク2031〜2035が作成されている。
FIG. 15 is a diagram showing a state after dynamic setting of the dynamic layout editing layer according to the present embodiment. That is, a state in which the user performs link setting and variable setting of the sides of the container area using the link tool on the
このように、本アプリケーションは、静的レイアウト編集装置に動的レイアウト編集装置を組み込んだものである。そして、静的レイアウト編集レイヤと動的レイアウト編集レイヤの2つの編集レイヤ、及び個々の編集レイヤに対応した2つのドキュメントテンプレートを有するレイアウト編集装置として構成される。 As described above, this application is obtained by incorporating a dynamic layout editing apparatus into a static layout editing apparatus. The layout editing apparatus includes two editing layers, a static layout editing layer and a dynamic layout editing layer, and two document templates corresponding to the individual editing layers.
<テンプレート編集のレイヤ間での同期>
続いて、レイヤ間のテンプレートの編集における処理について説明する。まず、静的レイヤが表示されている状態について説明する。
<Synchronization between layers of template editing>
Next, processing for editing templates between layers will be described. First, the state where the static layer is displayed will be described.
静的レイアウト編集レイヤでの編集時、静的レイアウト編集レイヤのテンプレートに新しく配置された静的オブジェクトは、動的レイアウト編集レイヤのテンプレートにも、位置、サイズが同じ静的オブジェクトとして配置される。また、静的レイアウト編集レイヤでの編集時、静的オブジェクトに位置/サイズ変更が加えられた際、その静的オブジェクトに対応する動的レイアウト編集レイヤ側のオブジェクトにも、その位置/サイズ変更が反映される。 When editing in the static layout editing layer, a static object newly arranged in the template of the static layout editing layer is arranged as a static object having the same position and size in the template of the dynamic layout editing layer. In addition, when a position / size change is made to a static object during editing in the static layout edit layer, the position / size change is also made to the object on the dynamic layout edit layer side corresponding to the static object. Reflected.
一方、動的レイアウト編集レイヤでの編集時、動的レイアウト編集レイヤのテンプレートに新しく配置された動的オブジェクトは、静的レイアウト編集レイヤのテンプレートに、位置、サイズが同じ静的オブジェクトに変換され配置される。また、動的レイアウト編集レイヤでの編集時、オブジェクトに位置/サイズ変更が加えられた際、オブジェクトに対応する静的レイアウト編集レイヤ側のオブジェクトにも、その位置/サイズ変更が反映される。 On the other hand, when editing in the dynamic layout editing layer, newly placed dynamic objects in the dynamic layout editing layer template are converted to static objects with the same position and size in the static layout editing layer template. Is done. Further, when a position / size change is applied to an object during editing in the dynamic layout editing layer, the position / size change is reflected to the object on the static layout editing layer side corresponding to the object.
なお、動的レイアウト編集レイヤにおいて、コンテナ領域の、固定オブジェクトから可変オブジェクトへの変更は、後述するデータ溢れ時属性(異常時対処属性)の設定の可/不可以外、静的レイアウト編集レイヤには影響を及ぼさない。コンテナ領域に対するリンク設定なども同様である。本実施の形態においてデータ溢れ時属性とは、「データ溢れが発生した際に動的レイアウトを行う」属性である。 In the dynamic layout editing layer, the change of the container area from the fixed object to the variable object can be changed in the static layout editing layer except for the setting of the data overflow attribute (abnormality handling attribute) described later. Has no effect. The same applies to the link setting for the container area. In this embodiment, the data overflow attribute is an attribute of “performing dynamic layout when data overflow occurs”.
また、現在表示されている編集レイヤにおいて、オブジェクトが削除された場合、そのオブジェクトに対応する異なる編集レイヤ側のオブジェクトも、同じく削除される。 In addition, when an object is deleted in the currently displayed editing layer, the objects on the different editing layer side corresponding to the object are also deleted.
上記のように、本アプリケーションは、静的レイアウト編集レイヤのオブジェクトと動的レイアウト編集レイヤのオブジェクトを1対1で対応させ、また、一方のレイヤでの編集動作を他方のレイヤにも反映させ、編集結果をレイヤ間で同期させる。 As described above, this application makes one-to-one correspondence between the objects of the static layout editing layer and the objects of the dynamic layout editing layer, and reflects the editing operation in one layer also in the other layer. Synchronize editing results between layers.
<データ溢れ時属性(異常時対処属性)の設定>
図16は、本実施の形態に係るデータ溢れ時属性、つまり「データ溢れが発生した際に動的レイアウトを行う」属性の設定方法を示すUIに関する説明図である。
<Setting of data overflow attribute (error handling attribute)>
FIG. 16 is an explanatory diagram relating to a UI showing a method for setting a data overflow attribute according to the present embodiment, that is, a “perform dynamic layout when data overflow occurs” attribute.
図16中の2701は静的レイアウト編集レイヤであるレイヤ1のドキュメントテンプレート、2702は動的レイアウト編集レイヤであるレイヤ2のドキュメントテンプレートである。2703は静的レイアウト編集レイヤのドキュメントテンプレート2701に配置されたオブジェクト(静的オブジェクト)である。
In FIG. 16,
2704は動的レイアウト編集レイヤのドキュメントテンプレート2702に配置された動的オブジェクトである。2705はオブジェクト2703のコンテナ領域の属性、つまりデータ溢れ時属性の設定ダイアログであり、2706はその設定をオン/オフするチェックボックスである。なお、設定ダイアログ2705を介して設定された内容は、メモリ部136に保存される。
図17は、本実施の形態に係るデータ溢れ時属性の設定方法を示すフローチャートである。 FIG. 17 is a flowchart showing a data overflow attribute setting method according to the present embodiment.
この設定方法は、レイアウト編集アプリケーションプログラム121に従ってプロセッサ135により実行される。以下、この設定方法の動作フローを図16と共に説明する。
This setting method is executed by the
ユーザによる、キーボード132やマウス133を用いたメニューアイテム1704への操作や、ポインタ313によるコンテナ領域上での右クリックでコンテナ領域に対する処理メニューの呼び出し指示がなされる。この処理に従い、レイアウト編集アプリケーション121は、コンテナメニューが呼び出されたと判定する(S2801―Yes)。プログラム121は、該操作が静的レイアウト編集レイヤ2701で行われたかを判定する(S2802)。ここで、該操作が静的レイアウト編集レイヤであると判定した場合(S2802―Yes)、該操作対象となった静的オブジェクト2703に対応する動的レイアウト編集レイヤ側のオブジェクトが、動的オブジェクトであるかを判別する(S2803)。該動的レイアウト編集レイヤ側のオブジェクトが動的オブジェクト2704である場合、プログラム121は、オブジェクト2703のコンテナ領域に対する処理メニューに、データ溢れ時属性設定メニュー項目を追加し、表示する(S2804)。
An instruction to call a processing menu for the container area is made by a user's operation on the menu item 1704 using the
該処理メニューで、データ溢れ時属性設定メニュー項目が選択されたと判定した場合(S2805―Yes)、レイアウト編集アプリケーション121は、データ溢れ時属性設定ダイアログ2705を表示する(S2806)。
If it is determined that the data overflow attribute setting menu item has been selected in the processing menu (S2805-Yes), the
該ダイアログ2705のチェックボックス2706がオンに設定された場合(S2807)、該操作の対象となった静的オブジェクト2703にデータ溢れ時属性を設定して(S2808)、処理を終了する。
If the
また、前記S2807で、チェックボックス2706がオフに設定された場合、該操作の対象となった静的オブジェクト2703のデータ溢れ時属性を解除して(S2809)、処理を終了する。
If the
なお、上記S2802で、該操作が動的レイアウト編集レイヤ2701で行われた際には、プログラム121は、本設定とは無関係な他の動作(S2810)である、レイアウト編集レイヤ用の通常のコンテナ領域メニューを表示し、処理を終了する。
When the operation is performed in the dynamic
また、S2803で、該操作の対象となった静的オブジェクト2703に対応する動的レイアウト編集レイヤ側のオブジェクトが静的オブジェクトである場合、本設定とは無関係な他の動作(S2810)を実行する。具体的には、レイアウト編集アプリケーション121は、静的レイアウト編集レイヤ用の通常メニューを表示し、処理を終了する。
In S2803, if the dynamic layout editing layer side object corresponding to the
また、同様に、上記S2805で、該処理メニューで、データ溢れ時属性設定メニュー項目が、ユーザによって選択されなかった場合には、本設定とは無関係な他の動作(S2810)を行い、処理を終了する。 Similarly, in S2805, when the data overflow attribute setting menu item is not selected by the user in the processing menu, another operation (S2810) unrelated to this setting is performed to perform the processing. finish.
上記のように、本アプリケーションは、静的レイアウト編集レイヤのオブジェクトが、動的レイアウト編集レイヤの動的オブジェクトと1対1対応している場合、データ溢れ時属性を、静的レイアウト編集レイヤ側のオブジェクトに設定可能となっている。例えば、図13の静的レイアウト編集レイヤ1811と対応する図15の動的レイアウト編集レイヤ2011に対して上記を当てはめてみる。図13のテンプレート1812上の静的オブジェクトであるコンテナ領域1821〜1828と対応する図15のオブジェクトにおいて動的オブジェクトは、1821、1822、1824〜1828である。したがって、これらに対してのみ、データ溢れ時属性の設定が可能となっている。
As described above, when the static layout editing layer object has a one-to-one correspondence with the dynamic layout editing layer dynamic object, the data overflow attribute is assigned to the static layout editing layer side. The object can be set. For example, the above is applied to the dynamic
以下、図13の静的オブジェクト1828にのみ、コンテナ領域属性として、データ溢れ時属性が設定されているものとして、本実施の形態の説明を続ける。
Hereinafter, the description of the present embodiment will be continued assuming that only the
<レイアウト時の動作フロー>
図18は、レイアウト編集アプリケーション121のレイアウト時の動作フローを示すフローチャートである。
<Operation flow during layout>
FIG. 18 is a flowchart showing an operation flow during layout of the
ユーザによる、キーボード132やマウス133のポインタ313によるメニューアイテム1804への操作により、レイアウト編集アプリケーション121は、バリアブルデータの流し込みが指示されたか否かを判定する(S2901)。
The
静的レイアウト編集レイヤ1811のテンプレート1812へバリアブルデータを流し込む場合(S2902)、レイアウト編集アプリケーション121は、静的レイアウト編集レイヤ1811のテンプレート1812を使って、レイアウトを行う(S2903)。
When variable data is flowed into the
また、該指示が、静的レイアウト編集レイヤ1811のテンプレート1812へのデータの流し込み指示ではなく、動的レイアウト編集レイヤ2011(レイヤ2)のテンプレートへのデータの流し込み指示である場合(S2902)、次のような処理を行う。レイアウト編集アプリケーション121は、動的レイアウト編集レイヤ2011のドキュメントテンプレートを使って動的レイアウトを行い(S2904)、そして、メモリ136上の該レイアウト結果をワークエリア2006に表示する(S2915)。
When the instruction is not an instruction to flow data into the
S2903における静的レイアウト後、該テンプレート1812に、図17の動作フローによって設定されるデータ溢れ時属性が、設定されているコンテナ領域が含まれているかどうかを調べる(S2905)。そして、該当するコンテナ領域が存在する場合(S2905―Yes)、次のような処理を行う。レイアウト編集アプリケーション121は、該コンテナ領域1828がテキストコンテナ領域であれば該コンテナ領域にデータ溢れによるテキストのクリッピングやオーバーラップが発生していないかを調べる。またイメージコンテナ領域であればデータ溢れによるイメージのクリッピングが発生していないかを調べる(S2906)。
After the static layout in S2903, it is checked whether the
そして、該コンテナ領域1828にデータ溢れが発生している場合、プログラム121は、部分動的レイアウトグループの空リストをメモリ136に作成する(S2907)。そして、レイアウト編集アプリケーション121は、コンテナ領域1828に対応する動的レイアウト編集レイヤ2011のドキュメントテンプレート上のコンテナ領域2028を該部分動的レイアウトグループのリスト項目に追加する(S2908)。
If data overflow has occurred in the
更にプログラム121は、動的レイアウト編集レイヤ2011のドキュメントテンプレート上に、前記コンテナ領域2028とリンクにより関連付けられているコンテナ領域が存在しないかどうかを調べる(S2909)。関連付けられたコンテナ領域が存在する場合には、次のような処理を行う。レイアウト編集アプリケーション121は、その関連付けをリンク2035、2034、2032及び2033と辿って、該コンテナ領域2028と関連を持つコンテナ領域群を前記部分動的レイアウトグループのリスト項目として追加する(S2910)。具体的には、2027、2025、2024及び2026が追加される。
Further, the
その後、プログラム121は、部分動的レイアウトグループに含まれるコンテナ領域群に対応する静的レイアウト編集レイヤ側のコンテナ領域群1824〜1828に関して、そのコンテナ領域群に流し込まれたデータをメモリ136に保持する(S2911)。
Thereafter, the
また、前記S2903によりメモリ136に保持されている(静的)レイアウト結果から、コンテナ領域群1824〜1828のレイアウト結果を削除する(S2912)。そして、該コンテナ領域群に対応する動的レイアウト編集レイヤ側のコンテナ領域群2024〜2028に、前記S2911により、メモリ136に保持されたバリアブルデータを流し込み、メモリ136上で動的レイアウトを行う(S2913)。
Further, the layout results of the
その後、該コンテナ領域群2024〜2028の動的レイアウト結果を、コンテナ領域群1824〜1828のレイアウト結果が削除された、メモリ136内のレイアウト結果にマージする(S2914)。そして、該全体レイアウト結果をワークエリア1806に
表示する(S2915)。
Thereafter, the dynamic layout results of the
前記S2905において、静的レイアウト編集レイヤ1811のテンプレート1812にデータ溢れ時属性が設定されているコンテナ領域が含まれていない場合、プログラム121は、通常のレイアウト結果をワークエリア1806に表示する(S2915)。また、前記S2906において、データ溢れが発生したコンテナ領域がない場合も同様である。通常のレイアウト結果を表示後、処理を終了する。
In S2905, when the
<プレビュー画面>
図19は、本実施の形態に係る静的レイアウト結果のプレビュー画面を示す図であり、図13に示したレイアウトにバリアブルデータを流し込んだ際のプレビュー画面を示している。図20は、本実施の形態に係る動的レイアウト結果のプレビュー画面を示す図であり、図15に示した動的レイアウト編集レイヤのレイアウトに、図19と同じバリアブルデータを流し込んだ際のプレビュー画面を示している。
<Preview screen>
FIG. 19 is a diagram showing a preview screen of the static layout result according to the present embodiment, and shows a preview screen when variable data is poured into the layout shown in FIG. 20 is a diagram showing a preview screen of the dynamic layout result according to the present embodiment. The preview screen when the same variable data as in FIG. 19 is poured into the layout of the dynamic layout editing layer shown in FIG. Is shown.
既知の技術である図19の静的レイアウト編集装置のプレビューにおいては、3028に示すように、コンテナ領域1828に一部のデータが入りきらず、データがクリッピングされる。
In the preview of the static layout editing apparatus of FIG. 19 which is a known technique, as shown by 3028, some data does not enter the
同様なバリアブルデータを、本実施の形態のレイアウト編集装置の動的レイアウト編集レイヤのレイアウトに流し込んだ際には、図15において可変設定されているコンテナ領域2021、2022、2024〜2028全てが動的レイアウトの対象となる。そして、自動レイアウトの結果、図20に示すように、元のレイアウトとは異なるレイアウトとなる。図19の静的レイアウトのプレビューで示したようなデータ溢れは、コンテナ領域2028の動的レイアウト結果である3128に示すように、発生していない。この図20のレイアウト結果は、既知の技術である動的レイアウトを用いたレイアウト結果と全く同様である。
When similar variable data is poured into the layout of the dynamic layout editing layer of the layout editing apparatus of the present embodiment, all of the
図21の例では、上述の2つを組み合わせたようなレイアウト結果となっている。図21に示すように、本実施の形態のレイアウト編集装置の静的レイアウト編集レイヤに図19と同じバリアブルデータを流し込んだ際、コンテナ領域1728と同様、コンテナ領域1828にデータが収まりきらない。しかし、前述したように、コンテナ領域1828には本実施の形態のデータ溢れ時属性が設定されているため、動的レイアウト編集レイヤ側のコンテナ領域2028が代わりに用いられる。そのため、3228に示すように、レイアウト結果においては、3028のようなデータのクリッピングは発生していない。また、レイアウト結果3224〜3228は、上記レイアウト結果3124〜3128と全く同様であり、且つ、レイアウト結果3221〜3223は、上記レイアウト結果3021〜3023と全く同様である。
In the example of FIG. 21, the layout result is a combination of the above two. As shown in FIG. 21, when the same variable data as in FIG. 19 is poured into the static layout editing layer of the layout editing apparatus according to the present embodiment, the data does not fit in the
なお、図13のコンテナ領域1828及びその他のコンテナ領域1821、1822、1824〜1827に、本実施の形態のデータ溢れ時属性が設定されていない場合には、レイアウト結果は、図19のものと全く同じになる。
If the data overflow attribute of this embodiment is not set in the
<本実施の形態の利点>
本実施の形態によれば、データ溢れ等の異常が発生している静的オブジェクトを検出したときは(図18のS2906)、異常時対処処理として、次のS2909、S2911〜S2914の処理を実行する。即ち、該静的オブジェクトに対応づけられている動的レイアウト編集レイヤのテンプレートに存在する動的オブジェクトに関連付けられている動的レイアウト編集レイヤのテンプレートに存在する動的オブジェクト群を検索する(S2909)。さらに、その検索された動的オブジェクト群の個々の動的オブジェクトに対応づけられている静的レイアウト編集レイヤのドキュメントテンプレートの静的オブジェクト群を検索する(S2911)。そして、前記検索された静的オブジェクト群の静的レイアウト結果を破棄し(S2912)、前記検索された動的オブジェクト群にバリアブルデータを流し込んで動的レイアウトを行う(S2913)。その後、該動的レイアウトした結果を、前記部分的に破棄された静的レイアウト結果に結合させる(S2914)。
<Advantages of this embodiment>
According to the present embodiment, when a static object in which an abnormality such as data overflow has occurred is detected (S2906 in FIG. 18), the following processing in S2909 and S2911 to S2914 is executed as an abnormality handling process. To do. That is, a dynamic object group existing in the template of the dynamic layout editing layer associated with the dynamic object existing in the template of the dynamic layout editing layer associated with the static object is searched (S2909). . Further, the static object group of the document template of the static layout editing layer associated with each dynamic object of the searched dynamic object group is searched (S2911). Then, the static layout result of the searched static object group is discarded (S2912), and variable data is poured into the searched dynamic object group to perform dynamic layout (S2913). Thereafter, the dynamic layout result is combined with the partially discarded static layout result (S2914).
これにより、あるコンテナ領域にテキスト溢れや、イメージ溢れ、拡縮によるイメージ解像度劣化等の問題が発生した場合にのみ、通常は動的レイアウト(自動レイアウト)する必要がない他のコンテナ領域も同時に動的レイアウトの対象とすることができる。その結果、従来、部分指定することができなかった動的レイアウトの発生対象を部分指定することができるようなる。即ち、動的レイアウトの実行時におけるレイアウトの変更を、より局所化することが可能になる。 As a result, other container areas that normally do not need to be dynamically laid out (automatic layout) are also dynamically activated only when a problem such as text overflow, image overflow, or image resolution degradation due to scaling occurs in a container area. Can be the target of layout. As a result, it is possible to partially specify the dynamic layout generation target that could not be partially specified in the past. That is, the layout change at the time of executing the dynamic layout can be more localized.
そして、ユーザは、データ溢れが予想されるコンテナ領域に対して、データ溢れの保険として動的レイアウト設定を追加でき、且つその動的レイアウト設定が有効になった場合、関連する他のコンテナ領域もその動的レイアウト設定を有効にすることができる。 Then, the user can add a dynamic layout setting as data overflow insurance to the container area where data overflow is expected, and when the dynamic layout setting is enabled, other related container areas are also added. The dynamic layout setting can be enabled.
なお、本発明の目的は、前述した各実施の形態の機能を実現するソフトウェアのプログラムコードを記憶した記憶媒体をシステム或いは装置に供給し、そのシステム或いは装置のコンピュータが前記プログラムコードを読み出し実行することによっても達成される。 An object of the present invention is to supply a storage medium storing software program codes for realizing the functions of the above-described embodiments to a system or apparatus, and the computer of the system or apparatus reads and executes the program codes. Can also be achieved.
この場合、記憶媒体から読み出されたプログラムコード自体が前述した各実施の形態の機能を実現することになり、そのプログラムコード及び該プログラムコードを記憶した記憶媒体は本発明を構成することになる。 In this case, the program code itself read from the storage medium realizes the functions of the above-described embodiments, and the program code and the storage medium storing the program code constitute the present invention. .
また、プログラムコードを供給するための記憶媒体としては、例えば次のようなものが挙げられる。即ち、フロッピー(登録商標)ディスク、ハードディスク、光磁気ディスク、CDROM、CDR、CDRW、DVDROM、DVDRAM、DVDRW、DVD+RW等の光ディスク、磁気テープ、不揮発性のメモリカード、ROM等を用いることができる。または、プログラムコードをネットワークを介してダウンロードしてもよい。 Examples of the storage medium for supplying the program code include the following. That is, an optical disk such as a floppy (registered trademark) disk, a hard disk, a magneto-optical disk, a CDROM, a CDR, a CDRW, a DVDROM, a DVDRAM, a DVDRW, and a DVD + RW, a magnetic tape, a nonvolatile memory card, a ROM, and the like can be used. Alternatively, the program code may be downloaded via a network.
また、本発明は、コンピュータが読み出したプログラムコードを実行することにより、前述した各実施の形態の機能が実現されるだけではない。そのプログラムコードの指示に基づき、コンピュータ上で稼動しているOS(オペレーティングシステム)等が実際の処理の一部または全部を行い、その処理によって前述した各実施の形態の機能が実現される場合も含まれる。 The present invention not only realizes the functions of the above-described embodiments by executing the program code read by the computer. In some cases, an OS (operating system) or the like running on the computer performs part or all of the actual processing based on the instruction of the program code, and the functions of the above-described embodiments are realized by the processing. included.
101 ホストコンピュータ
103 ユーザインターフェース
105 レイアウトエンジン
119 データベース
121 レイアウトアプリケーションプログラム
132 キーボード
133 マウス
101
Claims (5)
前記静的または前記動的テンプレートを指定して、これらテンプレートにデータの流し込みを行うデータ流し込み手段と、
前記データ流し込み手段によって前記静的テンプレートにデータの流し込みが行われた場合に、このデータの流し込みによって得られたレイアウト結果である静的オブジェクトに異常が発生しているか否かを検出する異常状態検出手段と、
前記異常状態検出手段によって、異常が発生している静的オブジェクトを検出したときに、該静的オブジェクトに対応づけられている動的オブジェクト、及び該動的オブジェクトに関連付けられている前記動的テンプレート上の動的オブジェクト群を検索する動的オブジェクト群検索手段と、
前記動的オブジェクト検索手段により検索された個々の動的オブジェクトに前記オブジェクト対応手段によって対応づけられている前記静的テンプレート上の個々の静的オブジェクトを検索する静的オブジェクト群検索手段と、
前記静的オブジェクト検索手段により検索された静的オブジェクト群に対する前記データ流し込み手段によるレイアウト結果を、前記動的オブジェクト群検索手段により検索された動的オブジェクト群に対する前記自動レイアウト手段によるレイアウト結果に置き換えるレイアウト結果置き換え手段とを備えたことを特徴とするレイアウト編集装置。 A static layout editing layer in which static objects having a fixed layout are arranged, a dynamic layout editing layer in which dynamic objects capable of changing layout are arranged, the static layout editing layer, and the dynamic layout A layout editing apparatus provided corresponding to each editing layer, having a static template and a dynamic template for performing an editing operation,
A data injecting means for designating the static or dynamic template and injecting data into these templates;
Abnormal state detection for detecting whether or not an abnormality has occurred in a static object that is a layout result obtained by the data flow when data flow is performed on the static template by the data flow means Means,
When the abnormal state detection unit detects a static object in which an abnormality has occurred, the dynamic object associated with the static object and the dynamic template associated with the dynamic object Dynamic object group search means for searching the above dynamic object group;
Static object group search means for searching for individual static objects on the static template associated with the individual dynamic objects searched by the dynamic object search means by the object correspondence means;
A layout that replaces the layout result by the data flow means for the static object group searched by the static object search means with the layout result by the automatic layout means for the dynamic object group searched by the dynamic object group search means. A layout editing apparatus comprising a result replacing means.
前記動的オブジェクト群検索手段は、
前記異常状態検出手段によって、異常が発生している静的オブジェクトを検出したときは、該静的オブジェクトに対して前記異常時対処属性が設定されている場合に、該静的オブジェクトに対応づけられている動的オブジェクト、及び該動的オブジェクトに関連付けられている前記動的テンプレート上の動的オブジェクト群を検索することを特徴とする請求項1に記載のレイアウト編集装置。 When a static object existing in the static template is associated with a dynamic object existing in the dynamic template by the object corresponding means, an abnormality occurs in the static object on the static template If there is an error handling setting means to set an error handling attribute indicating the execution of the error handling,
The dynamic object group search means includes:
When the abnormal state detection means detects a static object in which an abnormality has occurred, it is associated with the static object when the abnormality handling attribute is set for the static object. The layout editing apparatus according to claim 1, wherein a dynamic object group and a dynamic object group on the dynamic template associated with the dynamic object are searched.
前記静的オブジェクト群検索手段により検索された静的オブジェクト群の前記レイアウト結果を破棄する結果破棄手段と、
前記動的オブジェクト群検索手段により検索された動的オブジェクト群に、前記データの流し込みを行うデータ再流し込み手段と、
前記データ再流し込み手段により流し込みが行われたデータを用いて前記自動レイアウト手段を作動して得られた動的オブジェクト群のレイアウト結果を、前記結果破棄手段によって部分的に破棄された静的オブジェクト群のレイアウト結果に結合させるレイアウト結合手段とを有することを特徴とする請求項1または2に記載のレイアウト編集装置。 The layout result replacement means includes:
A result discarding unit for discarding the layout result of the static object group searched by the static object group searching unit;
Data reflow means for flowing the data into the dynamic object group searched by the dynamic object group search means;
The static object group partially discarded by the result discarding unit is the layout result of the dynamic object group obtained by operating the automatic layout unit using the data that has been poured by the data reflowing unit. The layout editing apparatus according to claim 1, further comprising: a layout combining unit that combines the layout results with the layout editing unit.
前記静的または前記動的テンプレートを指定して、これらテンプレートにデータの流し込みを行うデータ流し込み工程と、
前記データ流し込み工程によって前記静的テンプレートにデータの流し込みが行われた場合に、このデータの流し込みによって得られたレイアウト結果である静的オブジェクトに異常が発生しているか否かを検出する異常状態検出工程と、
前記異常状態検出工程によって、異常が発生している静的オブジェクトを検出したときに、該静的オブジェクトに対応づけられている動的オブジェクト、及び該動的オブジェクトに関連付けられている前記動的テンプレート上の動的オブジェクト群を検索する動的オブジェクト群検索工程と、
前記動的オブジェクト検索工程により検索された個々の動的オブジェクトに前記オブジェクト対応工程によって対応づけられている前記静的テンプレート上の個々の静的オブジェクトを検索する静的オブジェクト群検索工程と、
前記静的オブジェクト検索工程により検索された静的オブジェクト群に対する前記データ流し込み工程によるレイアウト結果を、前記動的オブジェクト群検索工程により検索された動的オブジェクト群に対する前記動的レイアウト確定工程によるレイアウト結果に置き換える結果置き換え工程とを備えたことを特徴とするレイアウト編集装置の制御方法。 A static layout editing layer in which static objects having a fixed layout are arranged, a dynamic layout editing layer in which dynamic objects capable of changing layout are arranged, the static layout editing layer, and the dynamic layout A method of controlling a layout editing apparatus provided corresponding to each editing layer and having a static template and a dynamic template for performing an editing operation,
A data injecting step of designating the static or dynamic template and injecting data into these templates;
Abnormal state detection for detecting whether or not an abnormality has occurred in a static object, which is a layout result obtained by the data flow, when data flow is performed on the static template by the data flow step. Process,
When a static object in which an abnormality has occurred is detected by the abnormal state detection step, the dynamic object associated with the static object and the dynamic template associated with the dynamic object A dynamic object group search step for searching the above dynamic object group;
A static object group search step of searching for individual static objects on the static template associated with the individual dynamic objects searched by the dynamic object search step by the object correspondence step;
The layout result by the data insertion step for the static object group searched by the static object search step is changed to the layout result by the dynamic layout determination step for the dynamic object group searched by the dynamic object group search step. A layout editing apparatus control method comprising a replacement result replacement step.
前記静的または前記動的テンプレートを指定して、これらテンプレートにデータの流し込みを行うデータ流し込みステップと、
前記データ流し込みステップによって前記静的テンプレートにデータの流し込みが行われた場合に、このデータの流し込みによって得られたレイアウト結果である静的オブジェクトに異常が発生しているか否かを検出する異常状態検出ステップと、
前記異常状態検出ステップによって、異常が発生している静的オブジェクトを検出したときに、該静的オブジェクトに対応づけられている動的オブジェクト、及び該動的オブジェクトに関連付けられている前記動的テンプレート上の動的オブジェクト群を検索する動的オブジェクト群検索ステップと、
前記動的オブジェクト検索ステップにより検索された個々の動的オブジェクトに前記オブジェクト対応ステップによって対応づけられている前記静的テンプレート上の個々の静的オブジェクトを検索する静的オブジェクト群検索ステップと、
前記静的オブジェクト検索ステップにより検索された静的オブジェクト群に対する前記データ流し込みステップによるレイアウト結果を、前記動的オブジェクト群検索ステップにより検索された動的オブジェクト群に対する前記動的レイアウト確定ステップによるレイアウト結果に置き換える結果置き換えステップとを備えたことを特徴とする制御プログラム。 A static layout editing layer in which static objects having a fixed layout are arranged, a dynamic layout editing layer in which dynamic objects capable of changing layout are arranged, the static layout editing layer, and the dynamic layout A computer-readable control program for executing a control method of a layout editing apparatus provided corresponding to each editing layer and having a static template and a dynamic template for performing an editing operation,
A data injecting step of designating the static or dynamic template and injecting data into these templates;
Abnormal state detection for detecting whether or not an abnormality has occurred in a static object, which is a layout result obtained by the data flow, when data flow is performed on the static template by the data flow step. Steps,
When a static object in which an abnormality has occurred is detected by the abnormal state detection step, the dynamic object associated with the static object and the dynamic template associated with the dynamic object A dynamic object group search step for searching the above dynamic object group;
A static object group search step of searching for individual static objects on the static template associated with the individual dynamic objects searched by the dynamic object search step by the object correspondence step;
The layout result by the data insertion step for the static object group searched by the static object search step is changed to the layout result by the dynamic layout determination step for the dynamic object group searched by the dynamic object group search step. A control program comprising a replacement result replacement step.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006194082A JP2008021221A (en) | 2006-07-14 | 2006-07-14 | Layout editing device, its control method and control program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006194082A JP2008021221A (en) | 2006-07-14 | 2006-07-14 | Layout editing device, its control method and control program |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2008021221A true JP2008021221A (en) | 2008-01-31 |
Family
ID=39077093
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2006194082A Pending JP2008021221A (en) | 2006-07-14 | 2006-07-14 | Layout editing device, its control method and control program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2008021221A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2010147584A (en) * | 2008-12-16 | 2010-07-01 | Noritsu Koki Co Ltd | Image layout setting method and image layout setting device |
JP2012048433A (en) * | 2010-08-26 | 2012-03-08 | Dainippon Printing Co Ltd | Medium production supporting system, medium production supporting method, program, and memory medium |
-
2006
- 2006-07-14 JP JP2006194082A patent/JP2008021221A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2010147584A (en) * | 2008-12-16 | 2010-07-01 | Noritsu Koki Co Ltd | Image layout setting method and image layout setting device |
JP2012048433A (en) * | 2010-08-26 | 2012-03-08 | Dainippon Printing Co Ltd | Medium production supporting system, medium production supporting method, program, and memory medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4560416B2 (en) | Information processing apparatus, control method therefor, and program | |
US7596746B2 (en) | Information processing method and apparatus, and computer-readable program | |
US7634725B2 (en) | Layout adjustment method, apparatus and program for the same | |
KR100716084B1 (en) | Layout adjustment method and apparatus | |
JP4144883B2 (en) | Information processing apparatus, control method therefor, and program | |
JP4059504B2 (en) | Document processing apparatus, document processing method, and document processing program | |
JP4250540B2 (en) | Layout adjustment method and apparatus, and layout adjustment program | |
JP4110105B2 (en) | Document processing apparatus, document processing method, and document processing program | |
JP4298642B2 (en) | Layout processing method, layout processing apparatus, and layout processing program | |
US7707494B2 (en) | Information processing apparatus, control method therefor, and program | |
JP4912139B2 (en) | Information processing device | |
US20060203294A1 (en) | Layout processing method, information processing apparatus, and computer program | |
KR100881479B1 (en) | Information processing method and apparatus thereof | |
US7853872B2 (en) | Laying out field regions in a page for insertion of data | |
JP2008021221A (en) | Layout editing device, its control method and control program | |
JP4194501B2 (en) | Document processing method, document processing apparatus, and document processing program | |
JP2007249431A (en) | Information processor, its control method, and program | |
JP2010122893A (en) | Variable printing system | |
JP2007122487A (en) | Automatic layout system | |
JP2006293430A (en) | Information processor and information processing method | |
JP2007094756A (en) | Information processor, layout processing method, storage medium and program | |
JP2010176366A (en) | Variable print system | |
JP2007048198A (en) | Automatic layout system | |
JP2008287504A (en) | Document processor and method | |
JP2007011574A (en) | Method and apparatus for generating template, and program |