/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
 * This file is part of the Collabora Office 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/.
 *
 * This file incorporates work covered by the following license notice:
 *
 *   Licensed to the Apache Software Foundation (ASF) under one or more
 *   contributor license agreements. See the NOTICE file distributed
 *   with this work for additional information regarding copyright
 *   ownership. The ASF licenses this file to you 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 .
 */

#include <svx/numvset.hxx>
#include <vcl/weld.hxx>

class SVX_DLLPUBLIC SvxBmpNumIconView
{
public:
    static vcl::Font& GetDefaultBulletFont();

    static void PopulateIconView(
        weld::IconView* pIconView,
        NumberingPageType ePageType,
        Size previewSize,
        const cpo::uno::Sequence<cpo::uno::Sequence<css::beans::PropertyValue>>& rNumSettings = cpo::uno::Sequence<cpo::uno::Sequence<css::beans::PropertyValue>>(),
        const cpo::uno::Sequence<css::uno::Reference<css::container::XIndexAccess>>& rOutlineSettings = cpo::uno::Sequence<css::uno::Reference<css::container::XIndexAccess>>(),
        css::uno::Reference<css::text::XNumberingFormatter> const& xFormatter = nullptr,
        const css::lang::Locale& rLocale = css::lang::Locale());

    static ScopedVclPtr<VirtualDevice> CreatePreviewFromUserDraw(
        NumberingPageType ePageType,
        sal_Int32 nIndex,
        Size previewSize,
        const cpo::uno::Sequence<cpo::uno::Sequence<css::beans::PropertyValue>>& rNumSettings = cpo::uno::Sequence<cpo::uno::Sequence<css::beans::PropertyValue>>(),
        const cpo::uno::Sequence<css::uno::Reference<css::container::XIndexAccess>>& rOutlineSettings = cpo::uno::Sequence<css::uno::Reference<css::container::XIndexAccess>>(),
        css::uno::Reference<css::text::XNumberingFormatter> const& xFormatter = nullptr,
        const css::lang::Locale& rLocale = css::lang::Locale(),
        const std::vector<std::pair<OUString, OUString>>& rCustomBullets = std::vector<std::pair<OUString, OUString>>());

    static ScopedVclPtr<VirtualDevice> CreateCustomBulletPreview(const OUString& rBulletChar, const OUString& rFontName);
    static OUString GetNumberingDescription(NumberingPageType ePageType, sal_Int32 nIndex);

    static void SetNumberingSettings(
        weld::IconView* mxIconView,
        Size previewSize,
        const cpo::uno::Sequence<cpo::uno::Sequence<css::beans::PropertyValue>>& aNum,
        css::uno::Reference<css::text::XNumberingFormatter> const& xFormat,
        const css::lang::Locale& rLocale,
        std::vector<std::pair<OUString, OUString>> maCustomBullets = std::vector<std::pair<OUString, OUString>>());

    static void SetOutlineNumberingSettings(
        weld::IconView* mxIconView,
        Size previewSize,
        const cpo::uno::Sequence<css::uno::Reference<css::container::XIndexAccess>>& rOutline,
        css::uno::Reference<css::text::XNumberingFormatter> const& xFormat,
        const css::lang::Locale& rLocale,
        std::vector<std::pair<OUString, OUString>> maCustomBullets = std::vector<std::pair<OUString, OUString>>());

    static ScopedVclPtr<VirtualDevice> CreateBitmapBulletPreview(sal_uInt32 nGalleryIndex);
    static void PopulateBitmapIconView(weld::IconView* pIconView);
};

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