incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r1334916 - in /incubator/ooo/trunk/main: drawinglayer/inc/drawinglayer/primitive2d/ drawinglayer/source/primitive2d/ svgio/inc/svgio/svgreader/ svgio/source/svgreader/
Date Mon, 07 May 2012 08:30:47 GMT
Author: alg
Date: Mon May  7 08:30:46 2012
New Revision: 1334916

URL: http://svn.apache.org/viewvc?rev=1334916&view=rev
Log:
#119125# adding missing files from the last commit; sorry for inconveniences

Added:
    incubator/ooo/trunk/main/drawinglayer/inc/drawinglayer/primitive2d/objectinfoprimitive2d.hxx
  (with props)
    incubator/ooo/trunk/main/drawinglayer/source/primitive2d/objectinfoprimitive2d.cxx   (with
props)
    incubator/ooo/trunk/main/svgio/inc/svgio/svgreader/svgtitledescnode.hxx   (with props)
    incubator/ooo/trunk/main/svgio/source/svgreader/svgtitledescnode.cxx   (with props)

Added: incubator/ooo/trunk/main/drawinglayer/inc/drawinglayer/primitive2d/objectinfoprimitive2d.hxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/drawinglayer/inc/drawinglayer/primitive2d/objectinfoprimitive2d.hxx?rev=1334916&view=auto
==============================================================================
--- incubator/ooo/trunk/main/drawinglayer/inc/drawinglayer/primitive2d/objectinfoprimitive2d.hxx
(added)
+++ incubator/ooo/trunk/main/drawinglayer/inc/drawinglayer/primitive2d/objectinfoprimitive2d.hxx
Mon May  7 08:30:46 2012
@@ -0,0 +1,79 @@
+/**************************************************************
+ * 
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (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.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ * 
+ *************************************************************/
+
+
+
+#ifndef INCLUDED_DRAWINGLAYER_PRIMITIVE2D_INFOHIERARCHYPRIMITIVE2D_HXX
+#define INCLUDED_DRAWINGLAYER_PRIMITIVE2D_INFOHIERARCHYPRIMITIVE2D_HXX
+
+#include <drawinglayer/drawinglayerdllapi.h>
+#include <drawinglayer/primitive2d/groupprimitive2d.hxx>
+#include <tools/string.hxx>
+
+//////////////////////////////////////////////////////////////////////////////
+
+namespace drawinglayer
+{
+	namespace primitive2d
+	{
+        /** ObjectInfoPrimitive2D class
+
+            Info hierarchy helper class to hold contents like Name, Title and 
+            Description which are valid for the child content, e.g. created for
+            primitives based on DrawingLayer objects or SVG parts. It decomposes 
+            to it's content, so all direct renderers may ignore it. May e.g.
+            be used when re-creating graphical content from a sequence of primitives
+         */
+		class DRAWINGLAYER_DLLPUBLIC ObjectInfoPrimitive2D : public GroupPrimitive2D
+		{
+		private:
+            rtl::OUString                           maName;
+            rtl::OUString                           maTitle;
+            rtl::OUString                           maDesc;
+
+        public:
+            /// constructor
+			ObjectInfoPrimitive2D(
+                const Primitive2DSequence& rChildren,
+                const rtl::OUString& rName,
+                const rtl::OUString& rTitle,
+                const rtl::OUString& rDesc);
+
+			/// data read access
+			const rtl::OUString& getName() const { return maName; }
+			const rtl::OUString& getTitle() const { return maTitle; }
+			const rtl::OUString& getDesc() const { return maDesc; }
+
+			/// compare operator
+			virtual bool operator==(const BasePrimitive2D& rPrimitive) const;
+
+            /// provide unique ID
+			DeclPrimitrive2DIDBlock()
+		};
+	} // end of namespace primitive2d
+} // end of namespace drawinglayer
+
+//////////////////////////////////////////////////////////////////////////////
+
+#endif //INCLUDED_DRAWINGLAYER_PRIMITIVE2D_INFOHIERARCHYPRIMITIVE2D_HXX
+
+//////////////////////////////////////////////////////////////////////////////
+// eof

Propchange: incubator/ooo/trunk/main/drawinglayer/inc/drawinglayer/primitive2d/objectinfoprimitive2d.hxx
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/ooo/trunk/main/drawinglayer/source/primitive2d/objectinfoprimitive2d.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/drawinglayer/source/primitive2d/objectinfoprimitive2d.cxx?rev=1334916&view=auto
==============================================================================
--- incubator/ooo/trunk/main/drawinglayer/source/primitive2d/objectinfoprimitive2d.cxx (added)
+++ incubator/ooo/trunk/main/drawinglayer/source/primitive2d/objectinfoprimitive2d.cxx Mon
May  7 08:30:46 2012
@@ -0,0 +1,73 @@
+/**************************************************************
+ * 
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (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.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ * 
+ *************************************************************/
+
+
+
+// MARKER(update_precomp.py): autogen include statement, do not remove
+#include "precompiled_drawinglayer.hxx"
+
+#include <drawinglayer/primitive2d/objectinfoprimitive2d.hxx>
+#include <drawinglayer/primitive2d/drawinglayer_primitivetypes2d.hxx>
+
+//////////////////////////////////////////////////////////////////////////////
+
+using namespace com::sun::star;
+
+//////////////////////////////////////////////////////////////////////////////
+
+namespace drawinglayer
+{
+	namespace primitive2d
+	{
+		ObjectInfoPrimitive2D::ObjectInfoPrimitive2D(
+            const Primitive2DSequence& rChildren,
+            const rtl::OUString& rName,
+            const rtl::OUString& rTitle,
+            const rtl::OUString& rDesc)
+		:	GroupPrimitive2D(rChildren),
+            maName(rName),
+            maTitle(rTitle),
+            maDesc(rDesc)
+		{
+		}
+
+		bool ObjectInfoPrimitive2D::operator==(const BasePrimitive2D& rPrimitive) const
+		{
+			if(GroupPrimitive2D::operator==(rPrimitive))
+			{
+				const ObjectInfoPrimitive2D& rCompare = (ObjectInfoPrimitive2D&)rPrimitive;
+
+				return (getName() == rCompare.getName()
+                    && getTitle() == rCompare.getTitle()
+                    && getDesc() == rCompare.getDesc());
+			}
+
+			return false;
+		}
+
+        // provide unique ID
+		ImplPrimitrive2DIDBlock(ObjectInfoPrimitive2D, PRIMITIVE2D_ID_OBJECTINFOPRIMITIVE2D)
+
+    } // end of namespace primitive2d
+} // end of namespace drawinglayer
+
+//////////////////////////////////////////////////////////////////////////////
+// eof

Propchange: incubator/ooo/trunk/main/drawinglayer/source/primitive2d/objectinfoprimitive2d.cxx
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/ooo/trunk/main/svgio/inc/svgio/svgreader/svgtitledescnode.hxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/svgio/inc/svgio/svgreader/svgtitledescnode.hxx?rev=1334916&view=auto
==============================================================================
--- incubator/ooo/trunk/main/svgio/inc/svgio/svgreader/svgtitledescnode.hxx (added)
+++ incubator/ooo/trunk/main/svgio/inc/svgio/svgreader/svgtitledescnode.hxx Mon May  7 08:30:46
2012
@@ -0,0 +1,60 @@
+/**************************************************************
+ * 
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (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.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ * 
+ *************************************************************/
+
+#ifndef INCLUDED_SVGIO_SVGREADER_SVGTITLEDESCNODE_HXX
+#define INCLUDED_SVGIO_SVGREADER_SVGTITLEDESCNODE_HXX
+
+#include <svgio/svgiodllapi.h>
+#include <svgio/svgreader/svgnode.hxx>
+
+//////////////////////////////////////////////////////////////////////////////
+
+namespace svgio
+{
+    namespace svgreader
+    {
+        class SvgTitleDescNode : public SvgNode
+        {
+        private:
+            /// contained chars
+            rtl::OUString           maText;
+
+        public:
+            SvgTitleDescNode(
+                SVGToken aType,
+                SvgDocument& rDocument,
+                SvgNode* pParent);
+            virtual ~SvgTitleDescNode();
+
+            /// add new chars
+            void concatenate(const rtl::OUString& rChars);
+
+            /// x content, set if found in current context
+            const rtl::OUString& getText() const { return maText; }
+        };
+    } // end of namespace svgreader
+} // end of namespace svgio
+
+//////////////////////////////////////////////////////////////////////////////
+
+#endif //INCLUDED_SVGIO_SVGREADER_SVGTITLEDESCNODE_HXX
+
+// eof

Propchange: incubator/ooo/trunk/main/svgio/inc/svgio/svgreader/svgtitledescnode.hxx
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/ooo/trunk/main/svgio/source/svgreader/svgtitledescnode.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/svgio/source/svgreader/svgtitledescnode.cxx?rev=1334916&view=auto
==============================================================================
--- incubator/ooo/trunk/main/svgio/source/svgreader/svgtitledescnode.cxx (added)
+++ incubator/ooo/trunk/main/svgio/source/svgreader/svgtitledescnode.cxx Mon May  7 08:30:46
2012
@@ -0,0 +1,54 @@
+/**************************************************************
+ * 
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (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.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ * 
+ *************************************************************/
+
+// MARKER(update_precomp.py): autogen include statement, do not remove
+#include "precompiled_svgio.hxx"
+
+#include <svgio/svgreader/svgtitledescnode.hxx>
+
+//////////////////////////////////////////////////////////////////////////////
+
+namespace svgio
+{
+    namespace svgreader
+    {
+        SvgTitleDescNode::SvgTitleDescNode(
+            SVGToken aType,
+            SvgDocument& rDocument,
+            SvgNode* pParent)
+        :   SvgNode(aType, rDocument, pParent),
+            maText()
+        {
+        }
+
+        SvgTitleDescNode::~SvgTitleDescNode()
+        {
+        }
+
+        void SvgTitleDescNode::concatenate(const rtl::OUString& rChars)
+        {
+            maText += rChars;
+        }
+    } // end of namespace svgreader
+} // end of namespace svgio
+
+//////////////////////////////////////////////////////////////////////////////
+// eof

Propchange: incubator/ooo/trunk/main/svgio/source/svgreader/svgtitledescnode.cxx
------------------------------------------------------------------------------
    svn:executable = *



Mime
View raw message