LibreOffice Module cui (master)  1
optaboutconfig.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 #ifndef INCLUDED_CUI_SOURCE_OPTIONS_OPTABOUTCONFIG_HXX
11 #define INCLUDED_CUI_SOURCE_OPTIONS_OPTABOUTCONFIG_HXX
12 
13 #include <com/sun/star/container/XNameAccess.hpp>
14 
15 #include <i18nutil/searchopt.hxx>
16 #include <svtools/simptabl.hxx>
17 #include <vcl/dialog.hxx>
18 #include <vcl/weld.hxx>
19 
20 #include <vector>
21 
24 struct Prop_Impl;
25 struct UserData;
26 
28 {
29 private:
35  std::vector < std::unique_ptr<UserData> > m_vectorUserData;
36 
38  std::vector< std::shared_ptr< Prop_Impl > > m_vectorOfModified;
40 
41  //for search
44 
45  void AddToModifiedVector( const std::shared_ptr< Prop_Impl >& rProp );
46  static std::vector< OUString > commaStringToSequence( const OUString& rCommaSepString );
47  void InsertEntry( SvTreeListEntry *pEntry);
48 
49  DECL_LINK( StandardHdl_Impl, Button*, void );
50  DECL_LINK( DoubleClickHdl_Impl, SvTreeListBox*, bool );
51  DECL_LINK( ResetBtnHdl_Impl, Button*, void );
52  DECL_LINK( SearchHdl_Impl, Button*, void );
53  DECL_LINK( ExpandingHdl_Impl, SvTreeListBox*, bool );
54 
55 public:
56  explicit CuiAboutConfigTabPage(vcl::Window* pParent);
57  virtual ~CuiAboutConfigTabPage() override;
58  virtual void dispose() override;
59  void InsertEntry(const OUString &rPropertyPath, const OUString& rProp, const OUString& rStatus, const OUString& rType, const OUString& rValue,
60  SvTreeListEntry *pParentEntry, bool bInsertToPrefBox);
61  void Reset();
62  void FillItems(const css::uno::Reference<css::container::XNameAccess>& xNameAccess,
63  SvTreeListEntry *pParentEntry = nullptr, int lineage = 0, bool bLoadAll = false);
64  static css::uno::Reference< css::container::XNameAccess > getConfigAccess( const OUString& sNodePath, bool bUpdate );
65  void FillItemSet();
66 };
67 
69 {
70 private:
72  std::unique_ptr<weld::Entry> m_xEDValue;
73 
74  DECL_LINK(KeyInputHdl, const KeyEvent&, bool);
75 
76 public:
77  CuiAboutConfigValueDialog(weld::Window* pWindow, const OUString& rValue , int limit);
78  virtual ~CuiAboutConfigValueDialog() override;
79 
80  OUString getValue()
81  {
82  return m_xEDValue->get_text();
83  }
84 };
85 
86 #endif
87 
88 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::vector< std::unique_ptr< UserData > > m_vectorUserData
void InsertEntry(SvTreeListEntry *pEntry)
SvTreeListEntries m_prefBoxEntries
virtual ~CuiAboutConfigValueDialog() override
CuiAboutConfigValueDialog(weld::Window *pWindow, const OUString &rValue, int limit)
void AddToModifiedVector(const std::shared_ptr< Prop_Impl > &rProp)
SvTreeListEntries m_modifiedPrefBoxEntries
i18nutil::SearchOptions2 m_options
VclPtr< Edit > m_pSearchEdit
std::unique_ptr< weld::Entry > m_xEDValue
VclPtr< PushButton > m_pEditBtn
VclPtr< PushButton > m_pSearchBtn
VclPtr< SvSimpleTable > m_pPrefBox
VclPtr< PushButton > m_pResetBtn
VclPtr< SvSimpleTableContainer > m_pPrefCtrl
virtual ~CuiAboutConfigTabPage() override
std::vector< std::shared_ptr< Prop_Impl > > m_vectorOfModified
static std::vector< OUString > commaStringToSequence(const OUString &rCommaSepString)
CuiAboutConfigTabPage(vcl::Window *pParent)
virtual void dispose() override
DECL_LINK(StandardHdl_Impl, Button *, void)
static css::uno::Reference< css::container::XNameAccess > getConfigAccess(const OUString &sNodePath, bool bUpdate)
DECL_LINK(KeyInputHdl, const KeyEvent &, bool)
void FillItems(const css::uno::Reference< css::container::XNameAccess > &xNameAccess, SvTreeListEntry *pParentEntry=nullptr, int lineage=0, bool bLoadAll=false)
std::vector< std::unique_ptr< SvTreeListEntry > > SvTreeListEntries