LibreOffice Module svx (master)
1
svx
source
svdraw
svdobjuserdatalist.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 <
svdobjuserdatalist.hxx
>
12
13
SdrObjUserDataList::SdrObjUserDataList
() {}
14
SdrObjUserDataList::~SdrObjUserDataList
() {}
15
16
size_t
SdrObjUserDataList::GetUserDataCount
()
const
17
{
18
return
maList
.size();
19
}
20
21
SdrObjUserData
&
SdrObjUserDataList::GetUserData
(
size_t
nNum)
22
{
23
return
*
maList
.at(nNum);
24
}
25
26
void
SdrObjUserDataList::AppendUserData
(std::unique_ptr<SdrObjUserData> pData)
27
{
28
maList
.push_back(std::move(
pData
));
29
}
30
31
void
SdrObjUserDataList::DeleteUserData
(
size_t
nNum)
32
{
33
maList
.erase(
maList
.begin()+nNum);
34
}
35
36
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
SdrObjUserDataList::maList
ListType maList
Definition:
svdobjuserdatalist.hxx:23
SdrObjUserDataList::AppendUserData
void AppendUserData(std::unique_ptr< SdrObjUserData > pData)
Definition:
svdobjuserdatalist.cxx:26
SdrObjUserDataList::SdrObjUserDataList
SdrObjUserDataList()
Definition:
svdobjuserdatalist.cxx:13
SdrObjUserDataList::GetUserDataCount
size_t GetUserDataCount() const
Definition:
svdobjuserdatalist.cxx:16
SdrObjUserDataList::DeleteUserData
void DeleteUserData(size_t nNum)
Definition:
svdobjuserdatalist.cxx:31
SdrObjUserDataList::GetUserData
SdrObjUserData & GetUserData(size_t nNum)
Definition:
svdobjuserdatalist.cxx:21
SdrObjUserDataList::~SdrObjUserDataList
~SdrObjUserDataList()
Definition:
svdobjuserdatalist.cxx:14
SdrObjUserData
User data of a drawing object, e.g.
Definition:
svdobj.hxx:152
pData
std::unique_ptr< sal_Int32[]> pData
svdobjuserdatalist.hxx
Generated on Sun Jul 30 2023 04:28:23 for LibreOffice Module svx (master) by
1.9.3