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

« back to all changes in this revision

Viewing changes to src/lib/WP6FillStylePacket.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) 2002 William Lachance (wrlach@gmail.com)
3
4
 * Copyright (C) 2002 Marc Maurer (uwog@uwog.net)
4
 
 *  
 
5
 *
5
6
 * This library is free software; you can redistribute it and/or
6
7
 * modify it under the terms of the GNU Library General Public
7
8
 * License as published by the Free Software Foundation; either
19
20
 * For further information visit http://libwpd.sourceforge.net
20
21
 */
21
22
 
22
 
/* "This product is not manufactured, approved, or supported by 
 
23
/* "This product is not manufactured, approved, or supported by
23
24
 * Corel Corporation or Corel Corporation Limited."
24
25
 */
25
26
#include <string.h>
28
29
#include "WP6Parser.h"
29
30
#include "libwpd_internal.h"
30
31
 
31
 
WP6FillStylePacket::WP6FillStylePacket(WPXInputStream *input, WPXEncryption *encryption, int /* id */, uint32_t dataOffset, uint32_t dataSize) : 
 
32
WP6FillStylePacket::WP6FillStylePacket(WPXInputStream *input, WPXEncryption *encryption, int /* id */, uint32_t dataOffset, uint32_t dataSize) :
32
33
        WP6PrefixDataPacket(input, encryption),
33
34
        m_fgColor(0xff, 0xff, 0xff),
34
35
        m_bgColor(0xff, 0xff, 0xff)
35
 
{       
 
36
{
36
37
        _read(input, encryption, dataOffset, dataSize);
37
38
}
38
39
 
66
67
        m_bgColor.m_b = readU8(input, encryption);
67
68
        m_bgColor.m_s = readU8(input, encryption);
68
69
        WPD_DEBUG_MSG(("WordPerfect: Fill Prefix Packet FG Color (%i, %i, %i, %i) BG Color (%i, %i, %i, %i)\n",
69
 
                       m_fgColor.m_r, m_fgColor.m_g, m_fgColor.m_b, m_fgColor.m_s,
70
 
                       m_bgColor.m_r, m_bgColor.m_g, m_bgColor.m_b, m_bgColor.m_s));
 
70
                       m_fgColor.m_r, m_fgColor.m_g, m_fgColor.m_b, m_fgColor.m_s,
 
71
                       m_bgColor.m_r, m_bgColor.m_g, m_bgColor.m_b, m_bgColor.m_s));
71
72
 
72
73
}
 
74
/* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */