LibreOffice Module svx (master)
1
include
svx
sidebar
InspectorTextPanel.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 <
sfx2/sidebar/PanelLayout.hxx
>
22
#include <
svx/svxdllapi.h
>
23
24
namespace
svx::sidebar
25
{
26
struct
TreeNode
27
{
28
OUString
sNodeName
;
29
css::uno::Any
aValue
;
30
bool
isGrey
;
31
enum
32
{
33
Category
,
34
ComplexProperty
,
35
SimpleProperty
36
}
NodeType
;
37
std::vector<TreeNode>
children
;
38
TreeNode
()
39
:
isGrey
(false)
40
,
NodeType
(
SimpleProperty
)
41
{
42
}
43
};
44
class
SVX_DLLPUBLIC
InspectorTextPanel
:
public
PanelLayout
45
{
46
public
:
47
virtual
~InspectorTextPanel
()
override
;
48
49
static
std::unique_ptr<PanelLayout>
Create
(
weld::Widget
* pParent);
50
51
InspectorTextPanel
(
weld::Widget
* pParent);
52
53
void
updateEntries(
const
std::vector<TreeNode>& rStore,
const
sal_Int32 nParIdx);
54
55
private
:
56
std::unique_ptr<weld::TreeView>
mpListBoxStyles
;
57
};
58
59
}
// end of namespace svx::sidebar
60
61
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
PanelLayout.hxx
PanelLayout
svx::sidebar::InspectorTextPanel
Definition:
InspectorTextPanel.hxx:45
svx::sidebar::InspectorTextPanel::mpListBoxStyles
std::unique_ptr< weld::TreeView > mpListBoxStyles
Definition:
InspectorTextPanel.hxx:56
weld::Widget
Create
void Create(SwFormatVertOrient &rItem, SvStream &rStrm, sal_uInt16 nVersionAbusedAsSize)
svx::sidebar
NodeType
NodeType
svx::sidebar::TreeNode
Definition:
InspectorTextPanel.hxx:27
svx::sidebar::TreeNode::children
std::vector< TreeNode > children
Definition:
InspectorTextPanel.hxx:37
svx::sidebar::TreeNode::SimpleProperty
@ SimpleProperty
Definition:
InspectorTextPanel.hxx:35
svx::sidebar::TreeNode::Category
@ Category
Definition:
InspectorTextPanel.hxx:33
svx::sidebar::TreeNode::ComplexProperty
@ ComplexProperty
Definition:
InspectorTextPanel.hxx:34
svx::sidebar::TreeNode::TreeNode
TreeNode()
Definition:
InspectorTextPanel.hxx:38
svx::sidebar::TreeNode::isGrey
bool isGrey
Definition:
InspectorTextPanel.hxx:30
svx::sidebar::TreeNode::sNodeName
OUString sNodeName
Definition:
InspectorTextPanel.hxx:28
svx::sidebar::TreeNode::aValue
css::uno::Any aValue
Definition:
InspectorTextPanel.hxx:29
svx::sidebar::TreeNode::NodeType
enum svx::sidebar::TreeNode::@4 NodeType
svxdllapi.h
SVX_DLLPUBLIC
#define SVX_DLLPUBLIC
Definition:
svxdllapi.h:28
Generated on Sun Jul 30 2023 04:27:36 for LibreOffice Module svx (master) by
1.9.3