Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > f37f2c0b149d5391818dc5157943cda0 > files > 381

gnome-chemistry-utils-devel-0.10.8-3mdv2010.0.i586.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>The Gnome Chemistry Utils: document.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.1 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="dir_3f1a4fbcec42af7c381c8030b930461d.html">libs</a>&nbsp;&raquo&nbsp;<a class="el" href="dir_1f5da3c0cda3468e6af2b669a803fceb.html">gcp</a>
  </div>
</div>
<div class="contents">
<h1>gcp/document.h</h1><a href="gcp_2document_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// -*- C++ -*-</span>
<a name="l00002"></a>00002 
<a name="l00003"></a>00003 <span class="comment">/* </span>
<a name="l00004"></a>00004 <span class="comment"> * GChemPaint library</span>
<a name="l00005"></a>00005 <span class="comment"> * document.h </span>
<a name="l00006"></a>00006 <span class="comment"> *</span>
<a name="l00007"></a>00007 <span class="comment"> * Copyright (C) 2001-2008 Jean Bréfort &lt;jean.brefort@normalesup.org&gt;</span>
<a name="l00008"></a>00008 <span class="comment"> *</span>
<a name="l00009"></a>00009 <span class="comment"> * This program is free software; you can redistribute it and/or </span>
<a name="l00010"></a>00010 <span class="comment"> * modify it under the terms of the GNU General Public License as </span>
<a name="l00011"></a>00011 <span class="comment"> * published by the Free Software Foundation; either version 2 of the</span>
<a name="l00012"></a>00012 <span class="comment"> * License, or (at your option) any later version.</span>
<a name="l00013"></a>00013 <span class="comment"> *</span>
<a name="l00014"></a>00014 <span class="comment"> * This program is distributed in the hope that it will be useful,</span>
<a name="l00015"></a>00015 <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00016"></a>00016 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span>
<a name="l00017"></a>00017 <span class="comment"> * GNU General Public License for more details.</span>
<a name="l00018"></a>00018 <span class="comment"> *</span>
<a name="l00019"></a>00019 <span class="comment"> * You should have received a copy of the GNU General Public License</span>
<a name="l00020"></a>00020 <span class="comment"> * along with this program; if not, write to the Free Software</span>
<a name="l00021"></a>00021 <span class="comment"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301</span>
<a name="l00022"></a>00022 <span class="comment"> * USA</span>
<a name="l00023"></a>00023 <span class="comment"> */</span>
<a name="l00024"></a>00024 
<a name="l00025"></a>00025 <span class="preprocessor">#ifndef GCHEMPAINT_DOCUMENT_H</span>
<a name="l00026"></a>00026 <span class="preprocessor"></span><span class="preprocessor">#define GCHEMPAINT_DOCUMENT_H</span>
<a name="l00027"></a>00027 <span class="preprocessor"></span>
<a name="l00028"></a>00028 <span class="preprocessor">#include &quot;<a class="code" href="operation_8h.html">operation.h</a>&quot;</span>
<a name="l00029"></a>00029 <span class="preprocessor">#include &lt;<a class="code" href="gcu_2document_8h.html">gcu/document.h</a>&gt;</span>
<a name="l00030"></a>00030 <span class="preprocessor">#include &lt;<a class="code" href="macros_8h.html">gcu/macros.h</a>&gt;</span>
<a name="l00031"></a>00031 <span class="preprocessor">#include &lt;<a class="code" href="printable_8h.html">gcu/printable.h</a>&gt;</span>
<a name="l00032"></a>00032 <span class="preprocessor">#include &lt;<a class="code" href="gcu_2residue_8h.html">gcu/residue.h</a>&gt;</span>
<a name="l00033"></a>00033 <span class="preprocessor">#include &lt;list&gt;</span>
<a name="l00034"></a>00034 <span class="preprocessor">#include &lt;map&gt;</span>
<a name="l00035"></a>00035 <span class="preprocessor">#include &lt;set&gt;</span>
<a name="l00036"></a>00036 <span class="preprocessor">#include &lt;string&gt;</span>
<a name="l00037"></a>00037 <span class="preprocessor">#include &lt;libxml/tree.h&gt;</span>
<a name="l00038"></a>00038 <span class="preprocessor">#include &lt;gtk/gtk.h&gt;</span>
<a name="l00039"></a>00039 
<a name="l00041"></a>00041 <span class="keyword">namespace </span>OpenBabel
<a name="l00042"></a>00042 {
<a name="l00043"></a>00043         <span class="keyword">class </span>OBMol;
<a name="l00044"></a>00044 }
<a name="l00045"></a>00045 
<a name="l00046"></a>00046 <span class="keyword">namespace </span>gcp {
<a name="l00047"></a>00047 
<a name="l00052"></a>00052 <span class="keyword">extern</span> <a class="code" href="namespacegcu.html#af13348b065987fa4ca74ca0fb1ffa48e">gcu::SignalId</a> <a class="code" href="namespacegcp.html#a6aec64973a543952f6fd39584fced5dc">OnChangedSignal</a>;
<a name="l00057"></a>00057 <span class="keyword">extern</span> <a class="code" href="namespacegcu.html#af13348b065987fa4ca74ca0fb1ffa48e">gcu::SignalId</a> <a class="code" href="namespacegcp.html#aeadb69093ddf977dc8d67b9ac378748f">OnDeleteSignal</a>;
<a name="l00062"></a>00062 <span class="keyword">extern</span> <a class="code" href="namespacegcu.html#af13348b065987fa4ca74ca0fb1ffa48e">gcu::SignalId</a> <a class="code" href="namespacegcp.html#ac2c53584843f67b9638b96506b43466a">OnThemeChangedSignal</a>;
<a name="l00063"></a>00063 
<a name="l00064"></a>00064 <span class="keyword">class </span>View;
<a name="l00065"></a>00065 <span class="keyword">class </span>Application;
<a name="l00066"></a>00066 <span class="keyword">class </span>Window;
<a name="l00067"></a>00067 <span class="keyword">class </span>Theme;
<a name="l00068"></a>00068 <span class="keyword">class </span>Residue;
<a name="l00069"></a>00069 <span class="keyword">class </span>Atom;
<a name="l00070"></a>00070 <span class="keyword">class </span>Bond;
<a name="l00071"></a>00071 <span class="keyword">class </span>Fragment;
<a name="l00072"></a>00072 <span class="keyword">class </span>Molecule;
<a name="l00073"></a>00073 
<a name="l00077"></a><a class="code" href="classgcp_1_1Document.html">00077</a> <span class="keyword">class </span><a class="code" href="classgcp_1_1Document.html">Document</a>: <span class="keyword">public</span> gcu::<a class="code" href="classgcp_1_1Document.html">Document</a>, <span class="keyword">public</span> gcu::Printable
<a name="l00078"></a>00078 {
<a name="l00079"></a>00079         <span class="comment">//Constructor and destructor</span>
<a name="l00080"></a>00080 <span class="keyword">public</span>:
<a name="l00089"></a>00089         <a class="code" href="classgcp_1_1Document.html#a34da9b14fba0f92314840fe98f49a72a">Document</a> (<a class="code" href="classgcp_1_1Application.html" title="GChemPaint application base class.">Application</a> *App, <span class="keywordtype">bool</span> StandAlone, <a class="code" href="classgcp_1_1Window.html">Window</a> *window = NULL);
<a name="l00093"></a>00093         <span class="keyword">virtual</span> <a class="code" href="classgcp_1_1Document.html#af66bc605b92d8453dbcc6fec4146f7ef">~Document</a> ();
<a name="l00094"></a>00094 
<a name="l00095"></a>00095         <span class="comment">//Interface</span>
<a name="l00096"></a>00096 <span class="keyword">public</span>:
<a name="l00100"></a>00100         <span class="keywordtype">void</span> <a class="code" href="classgcp_1_1Document.html#a326cf0638035d5deff1dead3e296ae47">Clear</a> ();
<a name="l00104"></a>00104         GtkWidget* <a class="code" href="classgcp_1_1Document.html#ab99e4f3eee89712b7fd3ae0c48199fdb">GetWidget</a> ();
<a name="l00108"></a><a class="code" href="classgcp_1_1Document.html#a83f8a6c661bcbc046fae0dbf6e2fe5ea">00108</a>         <a class="code" href="classgcp_1_1View.html">View</a>* <a class="code" href="classgcp_1_1Document.html#a83f8a6c661bcbc046fae0dbf6e2fe5ea">GetView</a> () {<span class="keywordflow">return</span> m_pView;}
<a name="l00114"></a>00114         <span class="keywordtype">bool</span> <a class="code" href="classgcp_1_1Document.html#a9a466399f84b12bdc66366401014c162">ImportOB</a> (OpenBabel::OBMol&amp; Mol);
<a name="l00118"></a>00118         <span class="keywordtype">void</span> <a class="code" href="classgcp_1_1Document.html#af0f3685a42d816b501885405136de668">ExportOB</a> () <span class="keyword">const</span>;
<a name="l00122"></a>00122         <span class="keywordtype">void</span> <a class="code" href="classgcp_1_1Document.html#a4ae715665016f6b99470a5ec9ba5312a">Save</a> () <span class="keyword">const</span>;
<a name="l00129"></a>00129         <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classgcp_1_1Document.html#a442540290608fdc05cb59283821eedfc">Load</a> (xmlNodePtr node);
<a name="l00133"></a>00133         <span class="keyword">const</span> gchar* <a class="code" href="classgcp_1_1Document.html#a137dc8e08ba935bc9fc34faa2820cb1f">GetTitle</a> () <span class="keyword">const</span>;
<a name="l00139"></a>00139         <span class="keywordtype">void</span> <a class="code" href="classgcp_1_1Document.html#a40c59b1eea00be7668ced06755c36704">SetTitle</a> (<span class="keyword">const</span> gchar* title);
<a name="l00145"></a>00145         <span class="keywordtype">void</span> <a class="code" href="classgcp_1_1Document.html#a1541863c84fb45873f69c54e0739b924">SetLabel</a> (<span class="keyword">const</span> gchar* label);
<a name="l00149"></a>00149         <span class="keyword">const</span> gchar* <a class="code" href="classgcp_1_1Document.html#a4c34c17f59bd4b241387323cef33b6ef">GetLabel</a> () <span class="keyword">const</span>;
<a name="l00156"></a>00156         <span class="keywordtype">void</span> <a class="code" href="classgcp_1_1Document.html#afd3f7ca8dc562b698f7fd1502a370705">SetFileName</a> (std::string <span class="keyword">const</span> &amp;filename, <span class="keyword">const</span> gchar *mime_type);
<a name="l00160"></a><a class="code" href="classgcp_1_1Document.html#a54ee71d4f8b97e044f2a4d27b9f44530">00160</a>         <span class="keyword">const</span> gchar* <a class="code" href="classgcp_1_1Document.html#a54ee71d4f8b97e044f2a4d27b9f44530">GetFileName</a> () {<span class="keywordflow">return</span> m_filename;}
<a name="l00167"></a>00167         <span class="keywordtype">void</span> <a class="code" href="classgcp_1_1Document.html#a522410f9b029830e9fc2f9d77d50b180">DoPrint</a> (GtkPrintOperation *print, GtkPrintContext *context) <span class="keyword">const</span>;
<a name="l00173"></a>00173         <span class="keywordtype">void</span> <a class="code" href="classgcp_1_1Document.html#a4464af1f8c34d7d209799850b891745d">AddObject</a> (Object* pObject);
<a name="l00179"></a>00179         <span class="keywordtype">void</span> <a class="code" href="classgcp_1_1Document.html#a1ae929b46fb40f4ec244249fba3265a2">AddAtom</a> (<a class="code" href="classgcp_1_1Atom.html">Atom</a>* pAtom);
<a name="l00185"></a>00185         <span class="keywordtype">void</span> <a class="code" href="classgcp_1_1Document.html#a81850f1a522efbe7c160d1b41e30feaf">AddFragment</a> (<a class="code" href="classgcp_1_1Fragment.html" title="Atoms groups.">Fragment</a>* pFragment);
<a name="l00192"></a>00192         <span class="keywordtype">void</span> <a class="code" href="classgcp_1_1Document.html#a3123c2fd57ebf47a367e905f461e3caf">AddBond</a> (<a class="code" href="classgcp_1_1Bond.html">Bond</a>* pBond);
<a name="l00198"></a>00198         <span class="keywordtype">void</span> <a class="code" href="classgcp_1_1Document.html#ae8d86d1a1d6666db578bec998bd578d7">ParseXMLTree</a> (xmlDocPtr xml);
<a name="l00203"></a>00203         <span class="keywordtype">void</span> <a class="code" href="classgcp_1_1Document.html#ae14bf8471965e48f0df809a819add3cc">LoadObjects</a> (xmlNodePtr node);
<a name="l00209"></a>00209         xmlDocPtr <a class="code" href="classgcp_1_1Document.html#a36ead850654d9db4258bf6261e1ebbcd">BuildXMLTree</a> () <span class="keyword">const</span>;
<a name="l00213"></a>00213         <span class="keywordtype">void</span> <a class="code" href="classgcp_1_1Document.html#aef709fb7cd3096767b4fd2e3b9137d70">Update</a> ();
<a name="l00219"></a>00219         <span class="keywordtype">void</span> <a class="code" href="classgcp_1_1Document.html#aa6042b56472265fc886482a7fd47b459">Remove</a> (Object* <span class="keywordtype">object</span>);
<a name="l00225"></a>00225         <span class="keywordtype">void</span> <a class="code" href="classgcp_1_1Document.html#aa6042b56472265fc886482a7fd47b459">Remove</a> (<span class="keyword">const</span> <span class="keywordtype">char</span>* Id);
<a name="l00229"></a>00229         <span class="keywordtype">void</span> <a class="code" href="classgcp_1_1Document.html#a54e53dd730ee6725af02f7d7fa5794a8">OnProperties</a> ();
<a name="l00233"></a>00233         <span class="keywordtype">void</span> <a class="code" href="classgcp_1_1Document.html#af25b5f14a189dc2ea93eaabb301b166e">OnUndo</a> ();
<a name="l00237"></a>00237         <span class="keywordtype">void</span> <a class="code" href="classgcp_1_1Document.html#a8514a2dfaf2031eb792f0a4f4e46276b">OnRedo</a> ();
<a name="l00241"></a><a class="code" href="classgcp_1_1Document.html#a67265dd560661ca2c0b65be76d729feb">00241</a>         <span class="keyword">const</span> GDate* <a class="code" href="classgcp_1_1Document.html#a67265dd560661ca2c0b65be76d729feb">GetCreationDate</a> () {<span class="keywordflow">return</span> &amp;CreationDate;}
<a name="l00245"></a><a class="code" href="classgcp_1_1Document.html#a7c56003f2a8588460081daa68f3b1845">00245</a>         <span class="keyword">const</span> GDate* <a class="code" href="classgcp_1_1Document.html#a7c56003f2a8588460081daa68f3b1845">GetRevisionDate</a> () {<span class="keywordflow">return</span> &amp;RevisionDate;}
<a name="l00249"></a><a class="code" href="classgcp_1_1Document.html#a5fd8f7cac697f8a33dcb7cdc3ada2fce">00249</a>         <span class="keyword">const</span> gchar* <a class="code" href="classgcp_1_1Document.html#a5fd8f7cac697f8a33dcb7cdc3ada2fce">GetAuthor</a> () {<span class="keywordflow">return</span> m_author;}
<a name="l00253"></a><a class="code" href="classgcp_1_1Document.html#aa229330a63c9bc7fe3c7fcb9284563d3">00253</a>         <span class="keyword">const</span> gchar* <a class="code" href="classgcp_1_1Document.html#aa229330a63c9bc7fe3c7fcb9284563d3">GetMail</a> () {<span class="keywordflow">return</span> m_mail;}
<a name="l00257"></a><a class="code" href="classgcp_1_1Document.html#a2a27464b9bde5b5c374690b9e0fffb10">00257</a>         <span class="keyword">const</span> gchar* <a class="code" href="classgcp_1_1Document.html#a2a27464b9bde5b5c374690b9e0fffb10">GetComment</a> () {<span class="keywordflow">return</span> m_comment;}
<a name="l00263"></a>00263         <span class="keywordtype">void</span> <a class="code" href="classgcp_1_1Document.html#aab2c7de37df346a7e41aea9cf0d9f0ea">SetAuthor</a> (<span class="keyword">const</span> gchar* author);
<a name="l00269"></a>00269         <span class="keywordtype">void</span> <a class="code" href="classgcp_1_1Document.html#a932a4a46b7f59a8b69456b3852f0da64">SetMail</a> (<span class="keyword">const</span> gchar* mail);
<a name="l00275"></a>00275         <span class="keywordtype">void</span> <a class="code" href="classgcp_1_1Document.html#a0203af0040a1ebac903b1464ff1cfdb2">SetComment</a> (<span class="keyword">const</span> gchar* comment);
<a name="l00281"></a>00281         <span class="keywordtype">void</span> <a class="code" href="classgcp_1_1Document.html#a3e187824de53381b3de8abf1294aa2e0">FinishOperation</a> ();
<a name="l00285"></a>00285         <span class="keywordtype">void</span> <a class="code" href="classgcp_1_1Document.html#a75659c5fa7da47a375aff647b59448a6">AbortOperation</a> ();
<a name="l00289"></a>00289         <span class="keywordtype">void</span> <a class="code" href="classgcp_1_1Document.html#aee03e15c4e95e7fdfdaec12f955bbbe3">PopOperation</a> ();
<a name="l00296"></a>00296         <span class="keywordtype">void</span> <a class="code" href="classgcp_1_1Document.html#af030ebcfb9e5af38fa0ff66caa988de3">PushOperation</a> (<a class="code" href="classgcp_1_1Operation.html">Operation</a>* operation, <span class="keywordtype">bool</span> undo = <span class="keyword">true</span>);
<a name="l00301"></a>00301         <span class="keywordtype">void</span> <a class="code" href="classgcp_1_1Document.html#a3dc29d27b82e74691991137c61ca496d">SetActive</a> ();
<a name="l00307"></a>00307         <a class="code" href="classgcp_1_1Operation.html">Operation</a>* <a class="code" href="classgcp_1_1Document.html#a9929825e838d4b3e16a033e9393b4fa6">GetNewOperation</a> (<a class="code" href="namespacegcp.html#aa8e6482c44ad2980e2054f056212c34f">OperationType</a> type);
<a name="l00311"></a><a class="code" href="classgcp_1_1Document.html#a3bb90039fdda6f11e7b15161050c0a50">00311</a>         <a class="code" href="classgcp_1_1Operation.html">Operation</a>* <a class="code" href="classgcp_1_1Document.html#a3bb90039fdda6f11e7b15161050c0a50">GetCurrentOperation</a> () {<span class="keywordflow">return</span> m_pCurOp;}
<a name="l00317"></a>00317         <span class="keywordtype">void</span> <a class="code" href="classgcp_1_1Document.html#aa0babcc87756b9c60790e894655ba26a">AddData</a> (xmlNodePtr node);
<a name="l00321"></a><a class="code" href="classgcp_1_1Document.html#a884e8bd5ca1f02565889f65238754053">00321</a>         <span class="keywordtype">bool</span> <a class="code" href="classgcp_1_1Document.html#a884e8bd5ca1f02565889f65238754053">CanUndo</a> () {<span class="keywordflow">return</span> m_UndoList.size() &gt; 0;}
<a name="l00327"></a><a class="code" href="classgcp_1_1Document.html#a744f11807e47c3d0c6e7af52f680c5ef">00327</a>         <span class="keywordtype">void</span> <a class="code" href="classgcp_1_1Document.html#a744f11807e47c3d0c6e7af52f680c5ef">SetEditable</a> (<span class="keywordtype">bool</span> editable) {m_bWriteable = editable; m_bUndoRedo = <span class="keyword">true</span>;}
<a name="l00331"></a><a class="code" href="classgcp_1_1Document.html#a5852f0e971282650716ff1bfa030a222">00331</a>         <span class="keywordtype">bool</span> <a class="code" href="classgcp_1_1Document.html#a5852f0e971282650716ff1bfa030a222">GetEditable</a> () {<span class="keywordflow">return</span> m_bWriteable;}
<a name="l00335"></a><a class="code" href="classgcp_1_1Document.html#ab8e7950fa1372a7c5763b182166d3b52">00335</a>         <a class="code" href="classgcp_1_1Application.html" title="GChemPaint application base class.">gcp::Application</a>* <a class="code" href="classgcp_1_1Document.html#ab8e7950fa1372a7c5763b182166d3b52">GetApplication</a> () {<span class="keywordflow">return</span> m_pApp;}
<a name="l00345"></a>00345         <span class="keywordtype">void</span> <a class="code" href="classgcp_1_1Document.html#a2aea9a15fe49061843e5bf8a8bbc024d">ExportImage</a> (std::string <span class="keyword">const</span> &amp;filename, <span class="keyword">const</span> <span class="keywordtype">char</span>* type, <span class="keywordtype">int</span> resolution = -1);
<a name="l00351"></a>00351         <span class="keywordtype">void</span> <a class="code" href="classgcp_1_1Document.html#ad28f85cfc53830db5754b230a87c2c4b">SetReadOnly</a> (<span class="keywordtype">bool</span> ro);
<a name="l00355"></a><a class="code" href="classgcp_1_1Document.html#a9791f96004163e0e72d781cc56834b23">00355</a>         <span class="keywordtype">bool</span> <a class="code" href="classgcp_1_1Document.html#a9791f96004163e0e72d781cc56834b23">GetReadOnly</a> () {<span class="keywordflow">return</span> m_bReadOnly;}
<a name="l00362"></a>00362         <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="classgcp_1_1Document.html#a6e6fafd96ac50858e8b0e0ad322b168a">GetYAlign</a> ();
<a name="l00366"></a><a class="code" href="classgcp_1_1Document.html#a456aef8c14339c43b51bfc737b2776be">00366</a>         <a class="code" href="classgcp_1_1Window.html">Window</a> *<a class="code" href="classgcp_1_1Document.html#a456aef8c14339c43b51bfc737b2776be">GetWindow</a> () {<span class="keywordflow">return</span> m_Window;}
<a name="l00370"></a>00370         GtkWindow *<a class="code" href="classgcp_1_1Document.html#a35abc65f51c5c1805d25bd138504fd64">GetGtkWindow</a> ();
<a name="l00377"></a>00377         <span class="keywordtype">void</span> <a class="code" href="classgcp_1_1Document.html#a5b4cf6cfcf1c5f00aca74d49d4ba10d2">SetTheme</a> (<a class="code" href="classgcp_1_1Theme.html" title="themes class.">Theme</a> *theme);
<a name="l00386"></a>00386         <span class="keywordtype">bool</span> <a class="code" href="classgcp_1_1Document.html#a12f0ce8e7082914af941c0f3f54dde7f">OnSignal</a> (<a class="code" href="namespacegcu.html#af13348b065987fa4ca74ca0fb1ffa48e">gcu::SignalId</a> Signal, <a class="code" href="classgcu_1_1Object.html">gcu::Object</a> *Child);
<a name="l00392"></a>00392         <span class="keywordtype">void</span> <a class="code" href="classgcp_1_1Document.html#adfe420492ebbe9fa9908508aebdca467">SetDirty</a> (<span class="keywordtype">bool</span> isDirty = <span class="keyword">true</span>);
<a name="l00397"></a>00397         <span class="keywordtype">void</span> <a class="code" href="classgcp_1_1Document.html#a386832efd5b642c2fc09e7530839f598">OnThemeNamesChanged</a> ();
<a name="l00403"></a>00403         <span class="keywordtype">double</span> <a class="code" href="classgcp_1_1Document.html#ab4d7c9e628dff3ce1be677e2af492588">GetMedianBondLength</a> ();
<a name="l00413"></a>00413         <span class="keywordtype">bool</span> <a class="code" href="classgcp_1_1Document.html#a102304483ed40e4accae364a3c5e6388">SetProperty</a> (<span class="keywordtype">unsigned</span> property, <span class="keywordtype">char</span> <span class="keyword">const</span> *value);
<a name="l00419"></a><a class="code" href="classgcp_1_1Document.html#aa8ee190534aa69895ddd9addbaa5c4e6">00419</a>         <span class="keywordtype">void</span> <a class="code" href="classgcp_1_1Document.html#aa8ee190534aa69895ddd9addbaa5c4e6">SetLoading</a> (<span class="keywordtype">bool</span> loading) {m_bIsLoading = loading;}
<a name="l00427"></a>00427         <span class="keywordtype">void</span> <a class="code" href="classgcp_1_1Document.html#a9c9fd0f4df9a66ddc90e79e82a44687f">SaveResidue</a> (<a class="code" href="classgcp_1_1Residue.html" title="a GChemPaint specific Residue class.">Residue</a> <span class="keyword">const</span> *r, xmlNodePtr node);
<a name="l00437"></a>00437         <a class="code" href="classgcu_1_1Residue.html">gcu::Residue</a> <span class="keyword">const</span> *<a class="code" href="classgcp_1_1Document.html#ac84673f37ae0a11f0feb022191551d37">GetResidue</a> (<span class="keywordtype">char</span> <span class="keyword">const</span> *symbol, <span class="keywordtype">bool</span> *ambiguous = NULL);
<a name="l00447"></a>00447         <a class="code" href="classgcu_1_1Residue.html">gcu::Residue</a> *<a class="code" href="classgcp_1_1Document.html#af3f96fde5168fe5795be3e92958d1a9a">CreateResidue</a> (<span class="keywordtype">char</span> <span class="keyword">const</span> *name, <span class="keywordtype">char</span> <span class="keyword">const</span> *symbol, <a class="code" href="classgcu_1_1Molecule.html">gcu::Molecule</a> *molecule);
<a name="l00448"></a>00448 
<a name="l00449"></a>00449 <span class="keyword">private</span>:
<a name="l00450"></a>00450         <span class="keywordtype">void</span> BuildBondList (std::list&lt;Bond*&gt;&amp; BondList, <a class="code" href="classgcu_1_1Object.html">gcu::Object</a> <span class="keyword">const</span> *obj) <span class="keyword">const</span>;
<a name="l00451"></a>00451         <span class="keywordtype">void</span> BuildAtomTable (std::map&lt;std::string, unsigned&gt;&amp; AtomTable, <a class="code" href="classgcu_1_1Object.html">gcu::Object</a> <span class="keyword">const</span> *obj, <span class="keywordtype">unsigned</span>&amp; index) <span class="keyword">const</span>;
<a name="l00452"></a>00452         <span class="keywordtype">void</span> RemoveAtom (<a class="code" href="classgcp_1_1Atom.html">Atom</a>* pAtom);
<a name="l00453"></a>00453         <span class="keywordtype">void</span> RemoveBond (<a class="code" href="classgcp_1_1Bond.html">Bond</a>* pBond);
<a name="l00454"></a>00454         <span class="keywordtype">void</span> RemoveFragment (<a class="code" href="classgcp_1_1Fragment.html" title="Atoms groups.">Fragment</a>* pFragment);
<a name="l00455"></a>00455 
<a name="l00456"></a>00456         <span class="comment">//Implementation</span>
<a name="l00457"></a>00457 <span class="keyword">private</span>:
<a name="l00458"></a>00458         <a class="code" href="classgcp_1_1View.html">View</a> * m_pView;
<a name="l00459"></a>00459         gchar* m_filename;
<a name="l00460"></a>00460         gchar *m_title;
<a name="l00461"></a>00461         gchar *m_label;
<a name="l00462"></a>00462         gchar *m_comment, *m_author, *m_mail;
<a name="l00463"></a>00463         <span class="keywordtype">bool</span> m_bIsLoading, m_bUndoRedo, m_bReadOnly;
<a name="l00464"></a>00464         std::string m_FileType;
<a name="l00465"></a>00465         <span class="keywordtype">bool</span> m_bWriteable;
<a name="l00466"></a>00466         GDate CreationDate, RevisionDate;
<a name="l00467"></a>00467         std::list&lt;Operation*&gt; m_UndoList, m_RedoList;
<a name="l00468"></a>00468         <a class="code" href="classgcp_1_1Operation.html">Operation</a>* m_pCurOp;
<a name="l00469"></a>00469         <a class="code" href="classgcp_1_1Application.html" title="GChemPaint application base class.">Application</a>* m_pApp;
<a name="l00470"></a>00470         <a class="code" href="classgcp_1_1Window.html">Window</a> *m_Window;
<a name="l00471"></a>00471         <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> m_OpID; <span class="comment">// last operation ID</span>
<a name="l00472"></a>00472         <span class="keywordtype">unsigned</span> m_LastStackSize; <span class="comment">// undo list size when last saved</span>
<a name="l00473"></a>00473         std::set&lt;Residue const *&gt; m_SavedResidues;
<a name="l00474"></a>00474         std::map&lt;std::string, gcu::SymbolResidue&gt; m_Residues;
<a name="l00475"></a>00475 
<a name="l00476"></a>00476 <span class="comment">/* Theme is not really a read only property, but we provide a special Set</span>
<a name="l00477"></a>00477 <span class="comment">method */</span>
<a name="l00481"></a><a class="code" href="classgcp_1_1Document.html#afafd1a61105e38862fb11fdcd88748db">00481</a> <a class="code" href="macros_8h.html#ae59df402113b58e8e28a7898e09a19a2">GCU_RO_PROP</a> (<a class="code" href="classgcp_1_1Theme.html" title="themes class.">Theme</a>*, <a class="code" href="classgcp_1_1Theme.html" title="themes class.">Theme</a>)
<a name="l00493"></a><a class="code" href="classgcp_1_1Document.html#a0de58146857221a158e1c8b3aefb4074">00493</a> <a class="code" href="macros_8h.html#a2e6e8322502a538f4583d41206cea297">GCU_PROP</a> (<span class="keywordtype">double</span>, BondLength)
<a name="l00508"></a><a class="code" href="classgcp_1_1Document.html#aa737349d2e5a9ac6df13c713f1df82bd">00508</a> <a class="code" href="macros_8h.html#a2e6e8322502a538f4583d41206cea297">GCU_PROP</a> (<span class="keywordtype">double</span>, BondAngle)
<a name="l00520"></a><a class="code" href="classgcp_1_1Document.html#a6e264280aec2d48afce27bff6e666b06">00520</a> <a class="code" href="macros_8h.html#a2e6e8322502a538f4583d41206cea297">GCU_PROP</a> (<span class="keywordtype">double</span>, ArrowLength)
<a name="l00532"></a><a class="code" href="classgcp_1_1Document.html#a5081e930f9025924ff7460de94965eeb">00532</a> <a class="code" href="macros_8h.html#a2e6e8322502a538f4583d41206cea297">GCU_PROP</a> (gchar*, TextFontFamily)
<a name="l00544"></a><a class="code" href="classgcp_1_1Document.html#a509cae300fb1a425d7c409bdb0ffe617">00544</a> <a class="code" href="macros_8h.html#a2e6e8322502a538f4583d41206cea297">GCU_PROP</a> (PangoStyle, TextFontStyle)
<a name="l00556"></a><a class="code" href="classgcp_1_1Document.html#a07b47e2e5fcccc66e1bba53f71c4cd7f">00556</a> <a class="code" href="macros_8h.html#a2e6e8322502a538f4583d41206cea297">GCU_PROP</a> (PangoWeight, TextFontWeight)
<a name="l00568"></a><a class="code" href="classgcp_1_1Document.html#aa7c54e8cb2a868df09e8b1ff882031a1">00568</a> <a class="code" href="macros_8h.html#a2e6e8322502a538f4583d41206cea297">GCU_PROP</a> (PangoVariant, TextFontVariant)
<a name="l00580"></a><a class="code" href="classgcp_1_1Document.html#abb53d3b2c39159355f196ad7127864bf">00580</a> <a class="code" href="macros_8h.html#a2e6e8322502a538f4583d41206cea297">GCU_PROP</a> (PangoStretch, TextFontStretch)
<a name="l00592"></a><a class="code" href="classgcp_1_1Document.html#abbb83b1c2834c79ba85f6a00ca9f234b">00592</a> <a class="code" href="macros_8h.html#a2e6e8322502a538f4583d41206cea297">GCU_PROP</a> (gint, TextFontSize)
<a name="l00596"></a><a class="code" href="classgcp_1_1Document.html#ab350255168f1028cac9c46a1b18518b1">00596</a> <a class="code" href="macros_8h.html#ae59df402113b58e8e28a7898e09a19a2">GCU_RO_PROP</a> (PangoAttrList*, PangoAttrList)
<a name="l00608"></a><a class="code" href="classgcp_1_1Document.html#a693b037d50b2c8f31ad4dd2e61fcbb50">00608</a> <a class="code" href="macros_8h.html#a2e6e8322502a538f4583d41206cea297">GCU_PROP</a> (<span class="keywordtype">bool</span>, AllowClipboard)
<a name="l00609"></a>00609 };
<a name="l00610"></a>00610 
<a name="l00611"></a>00611 }       <span class="comment">//      namespace gcp</span>
<a name="l00612"></a>00612 
<a name="l00613"></a>00613 <span class="preprocessor">#endif // GCHEMPAINT_DOCUMENT_H</span>
</pre></div></div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Sun Sep 6 18:33:53 2009 for The Gnome Chemistry Utils by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
</body>
</html>