summaryrefslogtreecommitdiff
path: root/ucb/source/ucp/odma/odma_contentprops.hxx
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2003-08-25 12:00:37 +0000
committerKurt Zenker <kz@openoffice.org>2003-08-25 12:00:37 +0000
commit32ac246610afbae8ebc1cab98b86b97e1b43c36d (patch)
tree0876867b116ef099b0e2b4bddd819ecaed38ce2e /ucb/source/ucp/odma/odma_contentprops.hxx
parentbfc2f99f8f1b7a3a21ed1c23ba8b18b1d8d6dcfd (diff)
INTEGRATION: CWS abi4 (1.2.2); FILE ADDED
2003/08/21 10:55:46 abi 1.2.2.1: Retrieving odma
Diffstat (limited to 'ucb/source/ucp/odma/odma_contentprops.hxx')
-rw-r--r--ucb/source/ucp/odma/odma_contentprops.hxx127
1 files changed, 127 insertions, 0 deletions
diff --git a/ucb/source/ucp/odma/odma_contentprops.hxx b/ucb/source/ucp/odma/odma_contentprops.hxx
new file mode 100644
index 0000000000..94a3b295ad
--- /dev/null
+++ b/ucb/source/ucp/odma/odma_contentprops.hxx
@@ -0,0 +1,127 @@
+/*************************************************************************
+ *
+ * $RCSfile: odma_contentprops.hxx,v $
+ *
+ * $Revision: 1.3 $
+ *
+ * last change: $Author: kz $ $Date: 2003-08-25 13:00:37 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 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
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the License); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an AS IS basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef ODMA_CONTENTPROPS_HXX
+#define ODMA_CONTENTPROPS_HXX
+
+#ifndef _VOS_REFERNCE_HXX_
+#include <vos/refernce.hxx>
+#endif
+#ifndef _VOS_REF_HXX_
+#include <vos/ref.hxx>
+#endif
+#ifndef _RTL_USTRING_HXX_
+#include <rtl/ustring.hxx>
+#endif
+#ifndef _COM_SUN_STAR_UTIL_DATETIME_HPP_
+#include <com/sun/star/util/DateTime.hpp>
+#endif
+#include <functional>
+
+namespace odma
+{
+ class ContentProperties : public ::vos::OReference
+ {
+ public:
+ com::sun::star::util::DateTime m_aDateCreated; // when was the document created
+ com::sun::star::util::DateTime m_aDateModified; // when was the document last modified
+ ::rtl::OUString m_sTitle; // Title
+ ::rtl::OUString m_sContentType; // ContentType
+ ::rtl::OString m_sDocumentId; // the document id given from the DMS
+ ::rtl::OUString m_sDocumentName;// document name
+ ::rtl::OUString m_sFileURL; // the temporary file location
+ ::rtl::OUString m_sAuthor; // the Author of the document
+ ::rtl::OUString m_sSubject; // the subject of the document
+ ::rtl::OUString m_sKeywords; // the keywords of the document
+ ::rtl::OUString m_sSavedAsName; // the name which was used to save it
+ sal_Bool m_bIsDocument; // IsDocument
+ sal_Bool m_bIsFolder; // IsFolder
+ sal_Bool m_bIsOpen; // is true when OpenDoc was called
+ sal_Bool m_bIsReadOnly; // true when the document is read-only
+
+ // @@@ Add other properties supported by your content.
+
+ ContentProperties()
+ :m_bIsDocument( sal_True )
+ ,m_bIsFolder( sal_False )
+ ,m_bIsOpen( sal_False )
+ ,m_bIsReadOnly( sal_False )
+ {}
+
+ inline ::rtl::OUString getTitle() const { return m_sTitle; }
+ inline ::rtl::OUString getSavedAsName() const { return m_sSavedAsName; }
+ };
+ typedef ::std::binary_function< ::vos::ORef<ContentProperties>, ::rtl::OUString,bool> TContentPropertiesFunctorBase;
+ /// binary_function Functor object for class ContentProperties return type is bool
+ class ContentPropertiesMemberFunctor : public TContentPropertiesFunctorBase
+ {
+ ::std::const_mem_fun_t< ::rtl::OUString,ContentProperties> m_aFunction;
+ public:
+ ContentPropertiesMemberFunctor(const ::std::const_mem_fun_t< ::rtl::OUString,ContentProperties>& _rFunc)
+ : m_aFunction(_rFunc){}
+
+ inline bool operator()(const ::vos::ORef<ContentProperties>& lhs,const ::rtl::OUString& rhs) const
+ {
+ return !!(m_aFunction(lhs.getBodyPtr()) == rhs);
+ }
+ };
+}
+#endif // ODMA_CONTENTPROPS_HXX
+