/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
 * This file is part of the libetonyek project.
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */

#include "IWORKTypes.h"

#include "IWORKDocumentInterface.h"

namespace libetonyek
{

IWORKSize::IWORKSize()
  : m_width(0)
  , m_height(0)
{
}

IWORKSize::IWORKSize(const double w, const double h)
  : m_width(w)
  , m_height(h)
{
}

IWORKPosition::IWORKPosition()
  : m_x(0)
  , m_y(0)
{
}

IWORKPosition::IWORKPosition(const double x_, const double y_)
  : m_x(x_)
  , m_y(y_)
{
}

IWORKGeometry::IWORKGeometry()
  : m_naturalSize()
  , m_size()
  , m_position()
  , m_angle()
  , m_shearXAngle()
  , m_shearYAngle()
  , m_horizontalFlip()
  , m_verticalFlip()
  , m_aspectRatioLocked()
  , m_sizesLocked()
{
}

IWORKColor::IWORKColor()
  : m_red()
  , m_green()
  , m_blue()
  , m_alpha()
{
}

IWORKColor::IWORKColor(const double r, const double g, const double b, const double a)
  : m_red(r)
  , m_green(g)
  , m_blue(b)
  , m_alpha(a)
{
}

IWORKMarker::IWORKMarker()
  : m_filled(true)
  , m_scale(1)
  , m_pathJoin(0)
  , m_path()
  , m_endPoint()
{
}

IWORKPadding::IWORKPadding()
  : m_top()
  , m_right()
  , m_bottom()
  , m_left()
{
}

IWORKTabStop::IWORKTabStop()
  : m_align(IWORK_TABULATION_LEFT)
  , m_pos(0)
{
}

IWORKTabStop::IWORKTabStop(IWORKTabulationType align, double pos_)
  : m_align(align)
  , m_pos(pos_)
{
}

IWORKLine::IWORKLine()
  : m_geometry()
  , m_style()
  , m_order()
  , m_x1()
  , m_y1()
  , m_x2()
  , m_y2()
{
}

IWORKData::IWORKData()
  : m_stream()
  , m_displayName()
  , m_mimeType()
{
}

IWORKMediaContent::IWORKMediaContent()
  : m_type(IWORK_IMAGE_TYPE_ORIGINAL_SIZE)
  , m_size()
  , m_data()
  , m_fillColor()
{
}

IWORKMedia::IWORKMedia()
  : m_geometry()
  , m_cropGeometry()
  , m_style()
  , m_order()
  , m_locked(false)
  , m_placeholder()
  , m_placeholderSize()
  , m_content()
{
}

IWORKExternalTextWrap::IWORKExternalTextWrap()
  : m_style(IWORK_WRAP_STYLE_TIGHT)
  , m_floatingWrapEnabled(true)
  , m_inlineWrapEnabled(true)
  , m_direction(IWORK_WRAP_DIRECTION_BOTH)
  , m_aligned(false)
  , m_floatingType(IWORK_WRAP_TYPE_DIRECTIONAL)
  , m_margin(12)
  , m_alphaThreshold(0.5)
{
}

IWORKWrap::IWORKWrap()
  : m_path()
  , m_geometry()
{
}

IWORKLineSpacing::IWORKLineSpacing(const double amount, const bool relative)
  : m_amount(amount)
  , m_relative(relative)
  , m_atLeast(false)
{
}

IWORKColumnRowSize::IWORKColumnRowSize()
  : m_size(boost::none)
  , m_exactSize(true)
{
}

IWORKColumnRowSize::IWORKColumnRowSize(double size, bool exactSize)
  : m_size(size)
  , m_exactSize(exactSize)
{
}

IWORKTableVector::IWORKTableVector()
  : m_axis()
  , m_along()
  , m_beginCell()
  , m_endCell()
  , m_style()
{
}

IWORKTableCell::IWORKTableCell()
  : m_style()
  , m_preferredHeight()
  , m_minXBorder()
  , m_maxXBorder()
  , m_minYBorder()
  , m_maxYBorder()
{
}

IWORKTableData::IWORKTableData()
  : m_columnSizes()
  , m_rowSizes()
  , m_column(0)
  , m_row(0)
  , m_numColumns()
  , m_numRows()
  , m_columnSpan()
  , m_rowSpan()
  , m_cellMove()
  , m_content()
  , m_dateTime()
  , m_formula()
  , m_formulaHC()
  , m_horizontalLines()
  , m_verticalLines()
  , m_positionToHorizontalLineMap()
  , m_positionToVerticalLineMap()
  , m_style()
  , m_type(IWORK_CELL_TYPE_TEXT)
{
}

IWORKPattern::IWORKPattern()
  : m_type(IWORK_STROKE_TYPE_NONE)
  , m_values()
{
}
IWORKStroke::IWORKStroke()
  : m_width(0)
  , m_color()
  , m_join(IWORK_LINE_JOIN_NONE)
  , m_cap(IWORK_LINE_CAP_NONE)
  , m_pattern()
{
}

IWORKGradientStop::IWORKGradientStop()
  : m_color()
  , m_fraction()
  , m_inflection()
{
}

IWORKGradient::IWORKGradient()
  : m_type(IWORK_GRADIENT_TYPE_LINEAR)
  , m_stops()
  , m_angle(0)
{
}

IWORKShadow::IWORKShadow()
  : m_color()
  , m_angle(0)
  , m_glossiness(0)
  , m_offset(0)
  , m_opacity(0)
  , m_radius(0)
{
}

IWORKMetadata::IWORKMetadata()
  : m_title()
  , m_author()
  , m_keywords()
  , m_comment()
{
}

IWORKColumns::Column::Column()
  : m_width(0)
  , m_spacing(0)
{
}

IWORKColumns::IWORKColumns()
  : m_equal(true)
  , m_columns()
{
}

IWORKPageMaster::IWORKPageMaster()
  : m_header()
  , m_footer()
{
}

IWORKNumberFormat::IWORKNumberFormat()
  : m_type(IWORK_CELL_NUMBER_TYPE_DOUBLE)
  , m_string()
  , m_decimalPlaces(0)
  , m_currencyCode()
  , m_negativeStyle(0)
  , m_thousandsSeperator(false)
  , m_fractionAccuracy(0)
  , m_accountingStyle(false)
  , m_base(0)
  , m_basePlaces(0)
  , m_baseUseMinusSign(true)
{
}

IWORKDateTimeData::IWORKDateTimeData()
  : m_year(0), m_month(1), m_day(0),
    m_hour(0), m_minute(0), m_second(0)
{
}

IWORKDateTimeFormat::IWORKDateTimeFormat()
  : m_format()
{
}

IWORKDurationFormat::IWORKDurationFormat()
  : m_format()
{
}

IWORKFilterDescriptor::IWORKFilterDescriptor()
  : m_isShadow(false)
{
}

IWORKPrintInfo::IWORKPrintInfo()
  : m_height()
  , m_width()
  , m_orientation()
  , m_marginBottom()
  , m_marginLeft()
  , m_marginRight()
  , m_marginTop()
  , m_footerHeight()
  , m_headerHeight()
{
}

IWORKListLabelGeometry::IWORKListLabelGeometry()
  : m_align(IWORK_ALIGNMENT_LEFT)
  , m_scale(1)
  , m_offset(0)
  , m_scaleWithText(false)
{
}

IWORKTextLabelFormat::IWORKTextLabelFormat()
  : m_prefix(IWORK_LABEL_NUM_FORMAT_SURROUNDING_NONE)
  , m_format(IWORK_LABEL_NUM_FORMAT_NUMERIC)
  , m_suffix(IWORK_LABEL_NUM_FORMAT_SURROUNDING_NONE)
{
}

IWORKTextLabel::IWORKTextLabel()
  : m_format()
  , m_tiered(false)
  , m_first(1)
{
}

}

/* vim:set shiftwidth=2 softtabstop=2 expandtab: */
