Split the single large generateDefaultStyles method into 6 named functions: resolveColors, buildFills, buildBorders, buildFonts, buildDxfPatterns, and assembleTableStyles. Follow-up: 03dc510b14fda79504ffc6b58dd4313328499ec0 (Table Styles: Move Calc table style generation from OOXML filter to core) Change-Id: I4607ba0a4a930e8539babd4a63bbe50395b8dc1a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/202984 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Balazs Varga <balazs.varga@collabora.com> Reviewed-on: https://gerrit.collaboraoffice.com/c/core/+/174 Tested-by: Jenkins CPCI <releng@collaboraoffice.com> Reviewed-by: Balázs Varga <balazs.varga@collabora.com> (cherry picked from commit b4a26df395c940216709e3944d76a46033d6d7a4) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/204565 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
32 lines
993 B
C++
32 lines
993 B
C++
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
|
|
/*
|
|
* This file is part of the LibreOffice 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/.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "scdllapi.h"
|
|
|
|
namespace model
|
|
{
|
|
class ColorSet;
|
|
}
|
|
class ScDocument;
|
|
|
|
/// Generates the 60 default OOXML table styles from the ECMA-376 spec data,
|
|
/// resolving theme-relative colors against the given ColorSet.
|
|
///
|
|
/// The generation is split internally into discrete steps: resolveColors,
|
|
/// buildFills, buildBorders, buildFonts, buildDxfPatterns, and assembleTableStyles.
|
|
class SC_DLLPUBLIC ScTableStyleGenerator
|
|
{
|
|
public:
|
|
static void generateDefaultStyles(ScDocument& rDoc, const model::ColorSet& rColorSet);
|
|
};
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
|