LibreOffice Module oox (master) 1
datatableconverter.cxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19
21
22#include <com/sun/star/chart2/XDiagram.hpp>
24#include <oox/token/properties.hxx>
25
26using namespace css;
27
29{
31 : ConverterBase<DataTableModel>(rParent, rModel)
32{
33}
34
36
37void DataTableConverter::convertFromModel(uno::Reference<chart2::XDiagram> const& rxDiagram)
38{
39 PropertySet aPropSet(rxDiagram);
41 aPropSet.setProperty(PROP_DataTableHBorder, mrModel.mbShowHBorder);
43 aPropSet.setProperty(PROP_DataTableVBorder, mrModel.mbShowVBorder);
45 aPropSet.setProperty(PROP_DataTableOutline, mrModel.mbShowOutline);
46}
47
48} // namespace oox
49
50/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
A wrapper for a UNO property set.
Definition: propertyset.hxx:58
bool setProperty(sal_Int32 nPropId, const Type &rValue)
Puts the passed value into the property set.
Base class of all converter classes.
DataTableConverter(const ConverterRoot &rParent, DataTableModel &rModel)
void convertFromModel(css::uno::Reference< css::chart2::XDiagram > const &rxDiagram)
Converts the OOXML data table model to a chart2 diagram.
bool mbShowOutline
Show Vertical Border.
bool mbShowVBorder
Show Horizontal Border.