LibreOffice Module basctl (master)
1
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
Functions
b
c
e
f
g
h
i
l
m
o
q
r
s
Variables
Typedefs
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
~
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
w
x
~
Variables
a
b
e
l
m
n
p
r
s
v
x
Typedefs
Enumerations
Enumerator
Related Functions
Files
File List
File Members
All
a
b
c
d
h
m
n
r
s
t
v
x
Functions
Variables
a
h
m
n
r
t
v
x
Typedefs
Enumerations
Macros
basctl
source
basicide
uiobject.cxx
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
#include <memory>
11
#include "
uiobject.hxx
"
12
#include <
vcl/xtextedt.hxx
>
13
14
namespace
basctl
15
{
16
EditorWindowUIObject::EditorWindowUIObject
(
const
VclPtr<basctl::EditorWindow>
& xEditorWindow)
17
:
WindowUIObject
(xEditorWindow)
18
, mxEditorWindow(xEditorWindow)
19
{
20
}
21
22
StringMap
EditorWindowUIObject::get_state
()
23
{
24
StringMap
aMap
=
WindowUIObject::get_state
();
25
26
ExtTextEngine
* pEditEngine =
mxEditorWindow
->GetEditEngine();
27
sal_Int32
i
, nParas;
28
OUStringBuffer aRes;
29
for
(
i
= 0, nParas = pEditEngine->
GetParagraphCount
();
i
< nParas; ++
i
)
30
{
31
aRes.append(pEditEngine->
GetText
(
i
) +
"\n"
);
32
}
33
34
aMap
[
"Text"
] = aRes.makeStringAndClear();
35
36
return
aMap
;
37
}
38
39
std::unique_ptr<UIObject>
EditorWindowUIObject::create
(
vcl::Window
* pWindow)
40
{
41
basctl::EditorWindow
* pEditorWindow =
dynamic_cast<
basctl::EditorWindow
*
>
(pWindow);
42
assert(pEditorWindow);
43
return
std::unique_ptr<UIObject>(
new
EditorWindowUIObject
(pEditorWindow));
44
}
45
46
OUString
EditorWindowUIObject::get_name
()
const
{
return
"EditorWindowUIObject"
; }
47
48
}
// namespace basctl
49
50
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
ExtTextEngine
TextEngine::GetText
OUString GetText(LineEnd aSeparator=LINEEND_LF) const
TextEngine::GetParagraphCount
sal_uInt32 GetParagraphCount() const
VclPtr< basctl::EditorWindow >
WindowUIObject
WindowUIObject::get_state
virtual StringMap get_state() override
basctl::EditorWindowUIObject::create
static std::unique_ptr< UIObject > create(vcl::Window *pWindow)
Definition:
uiobject.cxx:39
basctl::EditorWindowUIObject::get_name
virtual OUString get_name() const override
Definition:
uiobject.cxx:46
basctl::EditorWindowUIObject::EditorWindowUIObject
EditorWindowUIObject(const VclPtr< basctl::EditorWindow > &xEditorWindow)
Definition:
uiobject.cxx:16
basctl::EditorWindowUIObject::mxEditorWindow
VclPtr< basctl::EditorWindow > mxEditorWindow
Definition:
uiobject.hxx:20
basctl::EditorWindowUIObject::get_state
virtual StringMap get_state() override
Definition:
uiobject.cxx:22
basctl::EditorWindow
Definition:
baside2.hxx:67
basctl
Definition:
accessibledialogcontrolshape.cxx:42
i
int i
aMap
HashMap_OWString_Interface aMap
vcl::Window
uiobject.hxx
StringMap
std::map< OUString, OUString > StringMap
xtextedt.hxx
Generated on Sun Jul 30 2023 04:30:07 for LibreOffice Module basctl (master) by
1.9.3