/[ghosts]/ghosts/gedcomviewer/src/BakeryGateway/ViewHeader.cpp
ViewVC logotype

Diff of /ghosts/gedcomviewer/src/BakeryGateway/ViewHeader.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by cpcp, Tue Oct 1 15:08:30 2002 UTC revision 1.2 by cpcp, Tue Nov 12 21:25:22 2002 UTC
# Line 1  Line 1 
1    /**
2        Copyright 2002 Cyril Picard
3    
4        This file is part of the GEDCOMViewer tool
5        (developed within the Genealogy Free Software Tools project).
6    
7        The GEDCOMViewer tool is free software; you can redistribute it and/or modify
8        it under the terms of the GNU General Public License as published by
9        the Free Software Foundation; either version 2 of the License, or
10        (at your option) any later version.
11    
12        The GEDCOMViewer tool is distributed in the hope that it will be useful,
13        but WITHOUT ANY WARRANTY; without even the implied warranty of
14        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15        GNU General Public License for more details.
16    
17        You should have received a copy of the GNU General Public License
18        along with the GEDCOMViewer tool ; if not, write to the Free Software
19        Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
20    
21    **/
22  #include "BakeryGateway/ViewHeader.hh"  #include "BakeryGateway/ViewHeader.hh"
23    
24  BakeryGateway::ViewHeader::ViewHeader(MMIHeader * mmi)  BakeryGateway::ViewHeader::ViewHeader(void)
25  {  {
   _mmi_header = mmi;  
26    return;    return;
27  }  }
28    
# Line 17  void BakeryGateway::ViewHeader::load_fro Line 37  void BakeryGateway::ViewHeader::load_fro
37  {  {
38    Document * doc;    Document * doc;
39    doc = get_document();    doc = get_document();
40    _mmi_header->setSour(doc->getHeader()->getSour());    _mmi_header.Clear();
41    _mmi_header->setDate(doc->getHeader()->getDate());    _mmi_header.setSourceName(doc->getHeader()->getName());
42    _mmi_header->setNote(doc->getHeader()->getNote());    _mmi_header.setSourceVersion(doc->getHeader()->getVers());
43      _mmi_header.setSourceCorp(doc->getHeader()->getCorp());
44      _mmi_header.setTransmissionDate(doc->getHeader()->getDate());
45      _mmi_header.setTransmissionNote(doc->getHeader()->getNote());
46    return;    return;
47  }  }
48    
# Line 28  void BakeryGateway::ViewHeader::save_to_ Line 51  void BakeryGateway::ViewHeader::save_to_
51    return;    return;
52  }  }
53    
54    MMIHeaderDialog * const BakeryGateway::ViewHeader::getMMI(void)
55    {
56      return &_mmi_header;
57    }
58    

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26