~ubuntu-branches/ubuntu/saucy/libwpd/saucy

« back to all changes in this revision

Viewing changes to src/lib/WP5FontNameStringPoolPacket.cpp

  • Committer: Package Import Robot
  • Author(s): Rene Engelhard
  • Date: 2011-11-29 23:31:13 UTC
  • mfrom: (1.2.5)
  • Revision ID: package-import@ubuntu.com-20111129233113-xdtwca9h0y6wdxst
Tags: 0.9.4-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
1
2
/* libwpd
2
3
 * Copyright (C) 2005 Fridrich Strba (fridrich.strba@bluewin.ch)
3
 
 *  
 
4
 *
4
5
 * This library is free software; you can redistribute it and/or
5
6
 * modify it under the terms of the GNU Library General Public
6
7
 * License as published by the Free Software Foundation; either
18
19
 * For further information visit http://libwpd.sourceforge.net
19
20
 */
20
21
 
21
 
/* "This product is not manufactured, approved, or supported by 
 
22
/* "This product is not manufactured, approved, or supported by
22
23
 * Corel Corporation or Corel Corporation Limited."
23
24
 */
24
25
#include <string.h>
30
31
WP5FontNameStringPoolPacket::WP5FontNameStringPoolPacket(WPXInputStream *input, WPXEncryption *encryption, int /* id */, uint32_t dataOffset, uint32_t dataSize) :
31
32
        WP5GeneralPacketData(),
32
33
        m_fontNameString()
33
 
{       
 
34
{
34
35
        _read(input, encryption, dataOffset, dataSize);
35
36
}
36
37
 
47
48
                WPXString fontName = readCString(input, encryption);
48
49
                m_fontNameString[offset] = fontName;
49
50
        }
50
 
        
 
51
 
51
52
        for (std::map<unsigned int, WPXString>::const_iterator Iter = m_fontNameString.begin(); Iter != m_fontNameString.end(); Iter++)
52
53
                WPD_DEBUG_MSG(("WP5 Font Name String Pool Packet: offset: %i font name: %s\n", Iter->first, (Iter->second).cstr()));
53
54
}
61
62
        return WPXString("Times New Roman");
62
63
}
63
64
 
 
65
/* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */