summaryrefslogtreecommitdiffstats
path: root/svx
diff options
context:
space:
mode:
authorMatúš Kukan <matus.kukan@gmail.com>2011-12-20 22:23:33 +0100
committerMatúš Kukan <matus.kukan@gmail.com>2011-12-20 22:26:12 +0100
commit9148757cc823efa0ac6dfe0a9a825bae47cb31fa (patch)
tree2087ef4beaeac05dabfb001d5159984ed26ea21e /svx
parentDo hardcode alignments for PowerPC Mac OS X (diff)
downloadcore-9148757cc823efa0ac6dfe0a9a825bae47cb31fa.tar.gz
core-9148757cc823efa0ac6dfe0a9a825bae47cb31fa.zip
callcather: remove sdr::Comment
Diffstat (limited to 'svx')
-rw-r--r--svx/Library_svxcore.mk1
-rw-r--r--svx/Package_inc.mk1
-rw-r--r--svx/inc/svx/sdrcomment.hxx108
-rw-r--r--svx/inc/svx/svdpage.hxx9
-rw-r--r--svx/source/svdraw/sdrcomment.cxx99
5 files changed, 0 insertions, 218 deletions
diff --git a/svx/Library_svxcore.mk b/svx/Library_svxcore.mk
index f7b3be75443f..508622f004ea 100644
--- a/svx/Library_svxcore.mk
+++ b/svx/Library_svxcore.mk
@@ -305,7 +305,6 @@ $(eval $(call gb_Library_add_exception_objects,svxcore,\
svx/source/svdraw/clonelist \
svx/source/svdraw/gradtrns \
svx/source/svdraw/polypolygoneditor \
- svx/source/svdraw/sdrcomment \
svx/source/svdraw/sdrhittesthelper \
svx/source/svdraw/sdrmasterpagedescriptor \
svx/source/svdraw/sdrpagewindow \
diff --git a/svx/Package_inc.mk b/svx/Package_inc.mk
index 60b576ab0b32..bd07e7b0caec 100644
--- a/svx/Package_inc.mk
+++ b/svx/Package_inc.mk
@@ -378,7 +378,6 @@ $(eval $(call gb_Package_add_file,svx_inc,inc/svx/svdfield.hxx,svx/svdfield.hxx)
$(eval $(call gb_Package_add_file,svx_inc,inc/svx/relfld.hxx,svx/relfld.hxx))
$(eval $(call gb_Package_add_file,svx_inc,inc/svx/AccessibleShapeInfo.hxx,svx/AccessibleShapeInfo.hxx))
$(eval $(call gb_Package_add_file,svx_inc,inc/svx/numvset.hxx,svx/numvset.hxx))
-$(eval $(call gb_Package_add_file,svx_inc,inc/svx/sdrcomment.hxx,svx/sdrcomment.hxx))
$(eval $(call gb_Package_add_file,svx_inc,inc/svx/txenctab.hxx,svx/txenctab.hxx))
$(eval $(call gb_Package_add_file,svx_inc,inc/svx/svdorect.hxx,svx/svdorect.hxx))
$(eval $(call gb_Package_add_file,svx_inc,inc/svx/xftshit.hxx,svx/xftshit.hxx))
diff --git a/svx/inc/svx/sdrcomment.hxx b/svx/inc/svx/sdrcomment.hxx
deleted file mode 100644
index f89e9ac9196b..000000000000
--- a/svx/inc/svx/sdrcomment.hxx
+++ /dev/null
@@ -1,108 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org 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 version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef _SDR_COMMENT_HXX
-#define _SDR_COMMENT_HXX
-
-#include <sal/types.h>
-#include <tools/date.hxx>
-#include <rtl/ustring.hxx>
-#include <basegfx/point/b2dpoint.hxx>
-
-#include <vector>
-
-//////////////////////////////////////////////////////////////////////////////
-// predeclarations
-
-//////////////////////////////////////////////////////////////////////////////
-
-namespace sdr
-{
- class Comment
- {
- // counting ID
- sal_uInt32 mnID;
-
- // creation date
- Date maCreationDate;
-
- // name of creator
- ::rtl::OUString maUserName;
-
- // text content
- ::rtl::OUString maText;
-
- // position
- basegfx::B2DPoint maPosition;
-
- public:
- Comment(
- sal_uInt32 nID,
- Date aCreationDate,
- const ::rtl::OUString& rUserName,
- const ::rtl::OUString& rText,
- const basegfx::B2DPoint& rPosition);
- ~Comment();
-
- // operator for sorting the vector by mnID
- sal_Bool operator<(const Comment& rCandidate) const { return (mnID < rCandidate.mnID); }
-
- // comparison operators
- sal_Bool operator==(const Comment& rCandidate) const;
- sal_Bool operator!=(const Comment& rCandidate) const { return !(operator==(rCandidate)); }
-
- // access to ID, read only
- sal_uInt32 GetID() const { return mnID; }
-
- // access to CreationDate
- Date GetCreationDate() const { return maCreationDate; }
- void SetCreationDate(Date aNewDate);
-
- // access to UserName
- const ::rtl::OUString& GetUserName() const { return maUserName; }
- void SetUserName(const ::rtl::OUString& rNewName);
-
- // access to text
- const ::rtl::OUString& GetText() const { return maText; }
- void SetText(const ::rtl::OUString& rNewText);
-
- // access to position
- const basegfx::B2DPoint& GetPosition() const { return maPosition; }
- void SetPosition(const basegfx::B2DPoint& rNewPos);
- };
-
- // typedef for list of sdr::Comment
- typedef ::std::vector< Comment > CommentVector;
-} // end of namespace sdr
-
-//////////////////////////////////////////////////////////////////////////////
-
-#endif //_SDR_COMMENT_HXX
-// eof
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/svx/inc/svx/svdpage.hxx b/svx/inc/svx/svdpage.hxx
index 3833a6787908..19f9d35c53f3 100644
--- a/svx/inc/svx/svdpage.hxx
+++ b/svx/inc/svx/svdpage.hxx
@@ -36,7 +36,6 @@
#include <cppuhelper/weakref.hxx>
#include <svx/svdtypes.hxx>
#include <svx/svdlayer.hxx>
-#include <svx/sdrcomment.hxx>
#include <vector>
#include <svx/sdrpageuser.hxx>
#include <svx/sdr/contact/viewobjectcontactredirector.hxx>
@@ -566,14 +565,6 @@ public:
const sdr::contact::ViewObjectContact& rOriginal,
const sdr::contact::DisplayInfo& rDisplayInfo,
bool bEdit );
-
- //////////////////////////////////////////////////////////////////////////////
- // sdr::Comment interface
-private:
- sdr::CommentVector maComments;
-
-public:
- sal_uInt32 GetCommentCount() const { return maComments.size(); }
};
typedef tools::WeakReference< SdrPage > SdrPageWeakRef;
diff --git a/svx/source/svdraw/sdrcomment.cxx b/svx/source/svdraw/sdrcomment.cxx
deleted file mode 100644
index 4b323d31d59d..000000000000
--- a/svx/source/svdraw/sdrcomment.cxx
+++ /dev/null
@@ -1,99 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org 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 version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#include <svx/sdrcomment.hxx>
-
-//////////////////////////////////////////////////////////////////////////////
-
-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
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */