summaryrefslogtreecommitdiff
path: root/cui/source/options/optaboutconfig.hxx
blob: d0b9e28b806dab3a29f91ac0db08c54b4dd4ca67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
 * This file is part of the LibreOffice project.
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */

#ifndef INCLUDED_CUI_OPTABOUTCONFIG_HXX
#define INCLUDED_CUI_OPTABOUTCONFIG_HXX

#include <sfx2/tabdlg.hxx>
#include <svtools/simptabl.hxx>
#include "optHeaderTabListbox.hxx"
#include <com/sun/star/container/XNameAccess.hpp>
#include <com/sun/star/beans/NamedValue.hpp>
#include <vcl/edit.hxx>
#include <vector>

namespace svx
{
    class OptHeaderTabListBox;
}
class CuiAboutConfigTabPage;
class CuiAboutConfigValueDialog;
struct Prop_Impl;

class CuiAboutConfigTabPage : public SfxTabPage
{
private:
    SvSimpleTableContainer* m_pPrefCtrl;
    PushButton* m_pDefaultBtn;
    PushButton* m_pEditBtn;

    std::vector< Prop_Impl* > VectorOfModified;

    ::svx::OptHeaderTabListBox* pPrefBox;
    CuiAboutConfigTabPage( Window* pParent, const SfxItemSet& rItemSet );
    ~CuiAboutConfigTabPage();
    void AddToModifiedVector( Prop_Impl* rProp );

    DECL_LINK( StandardHdl_Impl, void * );
public:
   static SfxTabPage* Create( Window* pParent, const SfxItemSet& rItemset );

   void     InsertEntry(OUString& rProp, OUString&  rStatus, OUString& rType, OUString& rValue);
   void     Reset( const SfxItemSet& );
   void     FillItems( com::sun::star::uno::Reference < com::sun::star::container::XNameAccess > xNameAccess, OUString sPath);
   com::sun::star::uno::Reference< com::sun::star::container::XNameAccess > getConfigAccess( OUString sNodePath, sal_Bool bUpdate );
   virtual sal_Bool FillItemSet( SfxItemSet& rSet );
};

class CuiAboutConfigValueDialog : public ModalDialog
{
private:
    VclMultiLineEdit*    m_pEDValue;

public:
    CuiAboutConfigValueDialog( Window* pWindow, const OUString& rValue );
    ~CuiAboutConfigValueDialog();

    OUString getValue()
    {
        return m_pEDValue->GetText();
    }
};

#endif

/* vim:set shiftwidth=4 softtabstop=4 expandtab: */