68 lines
2.1 KiB
Python
68 lines
2.1 KiB
Python
#!/usr/bin/python
|
|
# -*- coding: utf-8 -*-
|
|
#
|
|
# Copyright 2013 The Plaso Project Authors.
|
|
# Please see the AUTHORS file for details on individual authors.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
"""Formatter for OpenXML events."""
|
|
|
|
from plaso.formatters import interface
|
|
|
|
__author__ = 'David Nides (david.nides@gmail.com)'
|
|
|
|
|
|
class OpenXMLParserFormatter(interface.ConditionalEventFormatter):
|
|
"""Formatter for OXML events."""
|
|
|
|
DATA_TYPE = 'metadata:openxml'
|
|
|
|
FORMAT_STRING_PIECES = [
|
|
u'Creating App: {creating_app}',
|
|
u'App version: {app_version}',
|
|
u'Title: {title}',
|
|
u'Subject: {subject}',
|
|
u'Last saved by: {last_saved_by}',
|
|
u'Author: {author}',
|
|
u'Total edit time (secs): {total_edit_time}',
|
|
u'Keywords: {keywords}',
|
|
u'Comments: {comments}',
|
|
u'Revision Num: {revision_num}',
|
|
u'Template: {template}',
|
|
u'Num pages: {num_pages}',
|
|
u'Num words: {num_words}',
|
|
u'Num chars: {num_chars}',
|
|
u'Num chars with spaces: {num_chars_w_spaces}',
|
|
u'Num lines: {num_lines}',
|
|
u'Company: {company}',
|
|
u'Manager: {manager}',
|
|
u'Shared: {shared}',
|
|
u'Security: {security}',
|
|
u'Hyperlinks changed: {hyperlinks_changed}',
|
|
u'Links up to date: {links_up_to_date}',
|
|
u'Scale crop: {scale_crop}',
|
|
u'Digital signature: {dig_sig}',
|
|
u'Slides: {slides}',
|
|
u'Hidden slides: {hidden_slides}',
|
|
u'Presentation format: {presentation_format}',
|
|
u'MM clips: {mm_clips}',
|
|
u'Notes: {notes}']
|
|
|
|
FORMAT_STRING_SHORT_PIECES = [
|
|
u'Title: {title}',
|
|
u'Subject: {subject}',
|
|
u'Author: {author}']
|
|
|
|
SOURCE_LONG = 'Open XML Metadata'
|
|
SOURCE_SHORT = 'META'
|