LibreOffice Module svx (master) 1
numvset.hxx
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#ifndef INCLUDED_SVX_NUMVSET_HXX
20#define INCLUDED_SVX_NUMVSET_HXX
21
22#include <vcl/idle.hxx>
23#include <svtools/valueset.hxx>
24#include <com/sun/star/uno/Reference.h>
25#include <com/sun/star/uno/Sequence.h>
26#include <com/sun/star/lang/Locale.hpp>
27#include <svx/svxdllapi.h>
28
29namespace com::sun::star {
30 namespace container{
31 class XIndexAccess;
32 }
33 namespace beans{
34 struct PropertyValue;
35 }
36 namespace text{
37 class XNumberingFormatter;
38 }
39}
40
42{
43 BULLET,
45 OUTLINE,
46 BITMAP
47};
48
50{
54
55 css::uno::Reference<css::text::XNumberingFormatter> xFormatter;
56 css::lang::Locale aLocale;
57
58 css::uno::Sequence<
59 css::uno::Sequence<
60 css::beans::PropertyValue> > aNumSettings;
61
62 css::uno::Sequence<
63 css::uno::Reference<
64 css::container::XIndexAccess> > aOutlineSettings;
65
66public:
67 SvxNumValueSet(std::unique_ptr<weld::ScrolledWindow> pScrolledWindow);
69 virtual ~SvxNumValueSet() override;
70
71 virtual void UserDraw( const UserDrawEvent& rUDEvt ) override;
72
73 void SetNumberingSettings(
74 const css::uno::Sequence<
75 css::uno::Sequence<css::beans::PropertyValue> >& aNum,
76 css::uno::Reference<css::text::XNumberingFormatter> const & xFormatter,
77 const css::lang::Locale& rLocale );
78
79 void SetOutlineNumberingSettings(
80 css::uno::Sequence<
81 css::uno::Reference<css::container::XIndexAccess> > const & rOutline,
82 css::uno::Reference<css::text::XNumberingFormatter> const & xFormatter,
83 const css::lang::Locale& rLocale);
84
85 virtual FactoryFunction GetUITestFactory() const override;
86
87};
88
89
91{
94
95 DECL_DLLPRIVATE_LINK(FormatHdl_Impl, Timer *, void);
96
97public:
98 SvxBmpNumValueSet(std::unique_ptr<weld::ScrolledWindow> pScrolledWindow);
99 void init();
100 virtual ~SvxBmpNumValueSet() override;
101
102 virtual void UserDraw( const UserDrawEvent& rUDEvt ) override;
103};
104
105#endif
106
107/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
FILE * init(int, char **)
DECL_DLLPRIVATE_LINK(FormatHdl_Impl, Timer *, void)
NumberingPageType ePageType
Definition: numvset.hxx:51
css::uno::Reference< css::text::XNumberingFormatter > xFormatter
Definition: numvset.hxx:55
css::lang::Locale aLocale
Definition: numvset.hxx:56
VclPtr< VirtualDevice > pVDev
Definition: numvset.hxx:53
tools::Rectangle aOrgRect
Definition: numvset.hxx:52
css::uno::Sequence< css::uno::Reference< css::container::XIndexAccess > > aOutlineSettings
Definition: numvset.hxx:64
css::uno::Sequence< css::uno::Sequence< css::beans::PropertyValue > > aNumSettings
Definition: numvset.hxx:60
virtual void UserDraw(const UserDrawEvent &rUDEvt)
virtual FactoryFunction GetUITestFactory() const override
DocumentType eType
std::function< std::unique_ptr< UIObject >(vcl::Window *)> FactoryFunction
def text(shape, orig_st)
NumberingPageType
Definition: numvset.hxx:42
#define SVX_DLLPUBLIC
Definition: svxdllapi.h:28