diff options
author | Ivo Hinkelmann <ihi@openoffice.org> | 2006-11-14 12:38:32 +0000 |
---|---|---|
committer | Ivo Hinkelmann <ihi@openoffice.org> | 2006-11-14 12:38:32 +0000 |
commit | 07e4032817c28162c735dfa970e2cbf60fd552b1 (patch) | |
tree | e0668f01d704d78d4904d4f6b8be9c16cc9a18b4 /svx/source/svdraw/sdrcomment.cxx | |
parent | 74d5c80e9bc4ba32f7302790441c121c4f4d4be2 (diff) |
INTEGRATION: CWS aw024 (1.1.4); FILE ADDED
2006/10/27 12:14:09 aw 1.1.4.3: #i39528# ::basegfx -> basegfx adaption
2005/09/22 12:11:50 aw 1.1.4.2: #i39529# removed SISSL from headers
2005/05/19 12:31:26 aw 1.1.4.1: #i39529#
Diffstat (limited to 'svx/source/svdraw/sdrcomment.cxx')
-rw-r--r-- | svx/source/svdraw/sdrcomment.cxx | 106 |
1 files changed, 106 insertions, 0 deletions
diff --git a/svx/source/svdraw/sdrcomment.cxx b/svx/source/svdraw/sdrcomment.cxx new file mode 100644 index 000000000000..00a8dc81fdb7 --- /dev/null +++ b/svx/source/svdraw/sdrcomment.cxx @@ -0,0 +1,106 @@ +/************************************************************************* + * + * OpenOffice.org - a multi-platform office productivity suite + * + * $RCSfile: sdrcomment.cxx,v $ + * + * $Revision: 1.2 $ + * + * last change: $Author: ihi $ $Date: 2006-11-14 13:38:32 $ + * + * The Contents of this file are made available subject to + * the terms of GNU Lesser General Public License Version 2.1. + * + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2005 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + ************************************************************************/ + +#ifndef _SDR_COMMENT_HXX +#include "sdrcomment.hxx" +#endif + +////////////////////////////////////////////////////////////////////////////// + +namespace sdr +{ + Comment::Comment( + sal_uInt32 nID, + Date aCreationDate, + const ::rtl::OUString& rUserName, + const ::rtl::OUString& rText, + const basegfx::B2DPoint& rPosition) + : mnID(nID), + maCreationDate(aCreationDate), + maUserName(rUserName), + maText(rText), + maPosition(rPosition) + { + } + + Comment::~Comment() + { + } + + sal_Bool Comment::operator==(const Comment& rCandidate) const + { + return ( + mnID == rCandidate.mnID + && maCreationDate == rCandidate.maCreationDate + && maUserName == rCandidate.maUserName + && maText == rCandidate.maText + && maPosition == rCandidate.maPosition); + } + + void Comment::SetCreationDate(Date aNewDate) + { + if(aNewDate != maCreationDate) + { + maCreationDate = aNewDate; + } + } + + void Comment::SetUserName(const ::rtl::OUString& rNewName) + { + if(rNewName != maUserName) + { + maUserName = rNewName; + } + } + + void Comment::SetText(const ::rtl::OUString& rNewText) + { + if(rNewText != maText) + { + maText = rNewText; + } + } + + void Comment::SetPosition(const basegfx::B2DPoint& rNewPos) + { + if(rNewPos != maPosition) + { + maPosition = rNewPos; + } + } +} // end of namespace sdr + +////////////////////////////////////////////////////////////////////////////// +// eof |