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) override;
36 
37 private:
39  {
40  explicit TemplateEntry(const OUString& rURL)
41  : maURL(rURL)
42  {}
43 
44  OUString const maURL;
45  };
46 
47  void RefreshList();
48 
50  const css::uno::Reference<css::frame::XFrame>& rxFrame);
51 
52  virtual ~StylePresetsPanel() override;
53  virtual void dispose() override;
54 
56 
57  std::vector<std::unique_ptr<TemplateEntry>> maTemplateEntries;
58 
59  DECL_LINK(DoubleClickHdl, ValueSet*, void);
60 };
61 
62 }} // end of namespace sw::sidebar
63 
64 #endif // INCLUDED_SW_SOURCE_UIBASE_SIDEBAR_STYLEPRESETSPANEL_HXX
65 
66 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Dialog to specify the properties of date form field.
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) 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)