home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / SLAX 6.0.8 / slax-6.0.8.iso / slax / base / 006-devel.lzm / usr / include / wv2 / associatedstrings.h next >
Encoding:
C/C++ Source or Header  |  2006-06-12  |  2.8 KB  |  92 lines

  1. /* This file is part of the wvWare 2 project
  2.    Copyright (C) 2002, 2003 Werner Trobin <trobin@kde.org>
  3.  
  4.    This library is free software; you can redistribute it and/or
  5.    modify it under the terms of the GNU Library General Public
  6.    License version 2 as published by the Free Software Foundation.
  7.  
  8.    This library is distributed in the hope that it will be useful,
  9.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  10.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  11.    Library General Public License for more details.
  12.  
  13.    You should have received a copy of the GNU Library General Public License
  14.    along with this library; see the file COPYING.LIB.  If not, write to
  15.    the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  16.    Boston, MA 02111-1307, USA.
  17. */
  18.  
  19. #ifndef ASSOCSTRINGS_H
  20. #define ASSOCSTRINGS_H
  21.  
  22. #include "global.h"
  23.  
  24. namespace wvWare
  25. {
  26.     class OLEStreamReader;
  27.     class STTBF;
  28.     class UString;
  29.  
  30.     /**
  31.      * AssociatedStrings provides a confortable way to access Word's STTBFASSOC,
  32.      * the table of associated strings. This table holds information about the
  33.      * author of the document, the tile, keywords, and so on.
  34.      */
  35.     class AssociatedStrings
  36.     {
  37.     public:
  38.         /**
  39.          * You shouldn't have to create such an object yourself, the Parser provides
  40.          * it.
  41.          */
  42.         AssociatedStrings( U32 fcSttbfAssoc, U32 lcbSttbfAssoc, U16 lid, OLEStreamReader* tableStream );
  43.         AssociatedStrings( const AssociatedStrings& rhs );
  44.         ~AssociatedStrings();
  45.  
  46.         /**
  47.          * Provides access to the string described as ibstAssocDot
  48.          */
  49.         UString associatedTemplate() const;
  50.         /**
  51.          * Provides access to the string described as ibstAssocTitle
  52.          */
  53.         UString title() const;
  54.         /**
  55.          * Provides access to the string described as ibstAssocSubject
  56.          */
  57.         UString subject() const;
  58.         /**
  59.          * Provides access to the string described as ibstAssocKeyWords
  60.          */
  61.         UString keywords() const;
  62.         /**
  63.          * Provides access to the string described as ibstAssocComments
  64.          */
  65.         UString comments() const;
  66.         /**
  67.          * Provides access to the string described as ibstAssocAuthor
  68.          */
  69.         UString author() const;
  70.         /**
  71.          * Provides access to the string described as ibstAssocLastRevBy
  72.          */
  73.         UString lastRevBy() const;
  74.         /**
  75.          * Provides access to the string described as ibstAssocDataDoc
  76.          */
  77.         UString dataDocument() const;
  78.         /**
  79.          * Provides access to the string described as ibstAssocHeaderDoc
  80.          */
  81.         UString headerDocument() const;
  82.  
  83.     private:
  84.         AssociatedStrings& operator=( const AssociatedStrings& rhs );
  85.  
  86.         STTBF* m_sttbf;
  87.     };
  88.  
  89. } // namespace wvWare
  90.  
  91. #endif // ASSOCSTRINGS_H
  92.