LibreOffice Module sw (master)  1
StylePresetsPanel.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  */
10 
11 #ifndef INCLUDED_SW_SOURCE_UIBASE_SIDEBAR_STYLEPRESETSPANEL_HXX
12 #define INCLUDED_SW_SOURCE_UIBASE_SIDEBAR_STYLEPRESETSPANEL_HXX
13 
14 #include <memory>
15 #include <com/sun/star/frame/XFrame.hpp>
16 
18 
20 
21 #include <svtools/valueset.hxx>
22 
23 namespace sw { namespace sidebar {
24 
27 {
28  friend class VclPtr<StylePresetsPanel>;
29 public:
30  static VclPtr<vcl::Window> Create(vcl::Window* pParent,
31  const css::uno::Reference<css::frame::XFrame>& rxFrame);
32 
33  virtual void NotifyItemUpdate(const sal_uInt16 nSId,
34  const SfxItemState eState,
35  const SfxPoolItem* pState,
36  const bool bIsEnabled) override;
37 
38 private:
40  {
41  explicit TemplateEntry(const OUString& rURL)
42  : maURL(rURL)
43  {}
44 
45  OUString const maURL;
46  };
47 
48  void RefreshList();
49 
51  const css::uno::Reference<css::frame::XFrame>& rxFrame);
52 
53  virtual ~StylePresetsPanel() override;
54  virtual void dispose() override;
55 
57 
58  std::vector<std::unique_ptr<TemplateEntry>> maTemplateEntries;
59 
60  DECL_LINK(DoubleClickHdl, ValueSet*, void);
61 };
62 
63 }} // end of namespace sw::sidebar
64 
65 #endif // INCLUDED_SW_SOURCE_UIBASE_SIDEBAR_STYLEPRESETSPANEL_HXX
66 
67 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Dialog to specify the properties of date form field.
Definition: accfrmobj.cxx:40
std::vector< std::unique_ptr< TemplateEntry > > maTemplateEntries
DECL_LINK(DoubleClickHdl, ValueSet *, void)
virtual void dispose() override
virtual void NotifyItemUpdate(const sal_uInt16 nSId, const SfxItemState eState, const SfxPoolItem *pState, const bool bIsEnabled) override
SfxItemState
static VclPtr< vcl::Window > Create(vcl::Window *pParent, const css::uno::Reference< css::frame::XFrame > &rxFrame)
StylePresetsPanel(vcl::Window *pParent, const css::uno::Reference< css::frame::XFrame > &rxFrame)