~ubuntu-branches/ubuntu/saucy/gnash/saucy-proposed

« back to all changes in this revision

Viewing changes to libcore/swf/SetTabIndexTag.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Sindhudweep Narayan Sarkar
  • Date: 2009-10-07 00:06:10 UTC
  • mfrom: (1.1.12 upstream)
  • Revision ID: james.westby@ubuntu.com-20091007000610-mj9rwqe774gizn1j
Tags: 0.8.6-0ubuntu1
new upstream release 0.8.6 (LP: #435897)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// SetTabIndexTag.cpp: This tag defines the tab index of any text object (static and dynamic text objects.)
 
2
//
 
3
//   Copyright (C) 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
 
4
//
 
5
// This program is free software; you can redistribute it and/or modify
 
6
// it under the terms of the GNU General Public License as published by
 
7
// the Free Software Foundation; either version 3 of the License, or
 
8
// (at your option) any later version.
 
9
//
 
10
// This program is distributed in the hope that it will be useful,
 
11
// but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
// GNU General Public License for more details.
 
14
//
 
15
// You should have received a copy of the GNU General Public License
 
16
// along with this program; if not, write to the Free Software
 
17
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
18
//
 
19
 
 
20
#include "SetTabIndexTag.h"
 
21
#include "SWFStream.h"
 
22
#include "movie_definition.h"
 
23
#include "MovieClip.h"
 
24
#include "GnashNumeric.h"
 
25
#include "RunResources.h"
 
26
 
 
27
namespace gnash {
 
28
namespace SWF {
 
29
 
 
30
void
 
31
SetTabIndexTag::loader(SWFStream& in, TagType /*tag*/, movie_definition& /*md*/,
 
32
        const RunResources& /*r*/)
 
33
{
 
34
    in.ensureBytes(2);
 
35
    boost::uint16_t depth = in.read_u16();
 
36
 
 
37
    IF_VERBOSE_PARSE(
 
38
            log_parse("SetTabIndexTag: depth = %d", depth);
 
39
    );
 
40
 
 
41
    in.ensureBytes(2);
 
42
    boost::uint16_t tab_index = in.read_u16();
 
43
    UNUSED(tab_index);
 
44
 
 
45
    log_unimpl("SetTabIndexTag");
 
46
 
 
47
}
 
48
 
 
49
} // namespace SWF
 
50
} // namespace gnash
 
51
 
 
52
// Local Variables:
 
53
// mode: C++
 
54
// c-basic-offset: 8
 
55
// tab-width: 8
 
56
// indent-tabs-mode: t
 
57
// End: