LibreOffice Module cui (master)  1
backgrnd.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_CUI_SOURCE_INC_BACKGRND_HXX
20 #define INCLUDED_CUI_SOURCE_INC_BACKGRND_HXX
21 
22 #include <memory>
23 
24 #include "cuitabarea.hxx"
25 
26 class BackgroundPreviewImpl;
28 class SvxBrushItem;
29 
40 {
41  static const sal_uInt16 pPageRanges[];
42 
43  std::unique_ptr<weld::ComboBox> m_xTblLBox;
44  bool bHighlighting : 1;
45  bool bCharBackColor : 1;
47  std::unique_ptr<SfxItemSet> m_pResetSet;
48 
49  sal_Int32 m_nActPos = -1;
50 
51  DECL_LINK(TblDestinationHdl_Impl, weld::ComboBox&, void);
52 public:
53  SvxBkgTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rInAttrs);
54  virtual ~SvxBkgTabPage() override;
55 
56  // returns the area of the which-values
57  static const sal_uInt16* GetRanges() { return pPageRanges; }
58 
59  static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* );
60  virtual bool FillItemSet( SfxItemSet* ) override;
61  virtual void ActivatePage( const SfxItemSet& ) override;
62  virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
63  virtual void PageCreated( const SfxAllItemSet& aSet ) override;
64  virtual void Reset( const SfxItemSet * ) override;
65 };
66 
67 #endif // INCLUDED_CUI_SOURCE_INC_BACKGRND_HXX
68 
69 
70 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override
Definition: backgrnd.cxx:106
std::unique_ptr< weld::ComboBox > m_xTblLBox
Definition: backgrnd.hxx:43
sal_Int32 m_nActPos
Definition: backgrnd.hxx:49
bool bCharBackColor
Definition: backgrnd.hxx:45
const SfxItemSet * pSet
bool bHighlighting
Definition: backgrnd.hxx:44
virtual void PageCreated(const SfxAllItemSet &aSet) override
Definition: backgrnd.cxx:239
SvxBkgTabPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rInAttrs)
Definition: backgrnd.cxx:66
virtual bool FillItemSet(SfxItemSet *) override
Definition: backgrnd.cxx:135
SfxItemSet maSet
Definition: backgrnd.hxx:46
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *)
Definition: backgrnd.cxx:232
static const sal_uInt16 * GetRanges()
Definition: backgrnd.hxx:57
DECL_LINK(TblDestinationHdl_Impl, weld::ComboBox &, void)
virtual void ActivatePage(const SfxItemSet &) override
Definition: backgrnd.cxx:101
class SvxBackgroundTabPage -----------------------------------------—
Definition: backgrnd.hxx:39
virtual ~SvxBkgTabPage() override
Definition: backgrnd.cxx:96
virtual void Reset(const SfxItemSet *) override
Definition: backgrnd.cxx:117
DeactivateRC
static const sal_uInt16 pPageRanges[]
Definition: backgrnd.hxx:41
std::unique_ptr< SfxItemSet > m_pResetSet
Definition: backgrnd.hxx:47