fdo#74697 Add Bluez 5 support for impress remote.
[LibreOffice.git] / include / svx / numvset.hxx
blob264f1ffa245960f38bd2ce123da9c6e73562c34e
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
19 #ifndef _SVX_NUMVSET_HXX
20 #define _SVX_NUMVSET_HXX
22 #include <svtools/valueset.hxx>
23 #include <limits.h>
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"
29 namespace com{namespace sun{ namespace star{
30 namespace container{
31 class XIndexAccess;
33 namespace beans{
34 struct PropertyValue;
36 namespace text{
37 class XNumberingFormatter;
39 }}}
41 class SvxBrushItem;
42 class SvxNumRule;
43 struct SvxBmpItemInfo
45 SvxBrushItem* pBrushItem;
46 sal_uInt16 nItemId;
49 class SVX_DLLPUBLIC SvxNumValueSet : public ValueSet
51 Color aLineColor;
52 sal_uInt16 nPageType;
53 sal_Bool bHTMLMode;
54 Rectangle aOrgRect;
55 VirtualDevice* pVDev;
57 com::sun::star::uno::Reference<com::sun::star::text::XNumberingFormatter> xFormatter;
58 com::sun::star::lang::Locale aLocale;
60 com::sun::star::uno::Sequence<
61 com::sun::star::uno::Sequence<
62 com::sun::star::beans::PropertyValue> > aNumSettings;
64 com::sun::star::uno::Sequence<
65 com::sun::star::uno::Reference<
66 com::sun::star::container::XIndexAccess> > aOutlineSettings;
68 public:
69 SvxNumValueSet(Window* pParent, WinBits nWinBits = WB_TABSTOP);
70 void init(sal_uInt16 nType);
71 ~SvxNumValueSet();
73 virtual void UserDraw( const UserDrawEvent& rUDEvt );
75 void SetHTMLMode(sal_Bool bSet) {bHTMLMode = bSet;}
76 void SetNumberingSettings(
77 const com::sun::star::uno::Sequence<
78 com::sun::star::uno::Sequence<
79 com::sun::star::beans::PropertyValue> >& aNum,
80 com::sun::star::uno::Reference<com::sun::star::text::XNumberingFormatter>& xFormatter,
81 const com::sun::star::lang::Locale& rLocale );
83 void SetOutlineNumberingSettings(
84 com::sun::star::uno::Sequence<
85 com::sun::star::uno::Reference<
86 com::sun::star::container::XIndexAccess> >& rOutline,
87 com::sun::star::uno::Reference<com::sun::star::text::XNumberingFormatter>& xFormatter,
88 const com::sun::star::lang::Locale& rLocale);
91 class SVX_DLLPUBLIC SvxBmpNumValueSet : public SvxNumValueSet
93 String sBullets;
94 Timer aFormatTimer;
95 sal_Bool bGrfNotFound;
97 void init();
99 protected:
100 DECL_LINK(FormatHdl_Impl, void *);
102 void SetGrfNotFound(sal_Bool bSet) {bGrfNotFound = bSet;}
103 sal_Bool IsGrfNotFound()const {return bGrfNotFound;}
105 Timer& GetFormatTimer() {return aFormatTimer;}
107 public:
108 SvxBmpNumValueSet(Window* pParent, WinBits nWinBits = WB_TABSTOP);
109 ~SvxBmpNumValueSet();
111 virtual void UserDraw( const UserDrawEvent& rUDEvt );
115 #endif
117 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */