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