Line data Source code
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 : * This file incorporates work covered by the following license notice:
10 : *
11 : * Licensed to the Apache Software Foundation (ASF) under one or more
12 : * contributor license agreements. See the NOTICE file distributed
13 : * with this work for additional information regarding copyright
14 : * ownership. The ASF licenses this file to you under the Apache
15 : * License, Version 2.0 (the "License"); you may not use this file
16 : * except in compliance with the License. You may obtain a copy of
17 : * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 : */
19 : #include <drawinglayer/primitive2d/objectinfoprimitive2d.hxx>
20 : #include <drawinglayer/primitive2d/drawinglayer_primitivetypes2d.hxx>
21 :
22 :
23 :
24 : using namespace com::sun::star;
25 :
26 :
27 :
28 : namespace drawinglayer
29 : {
30 : namespace primitive2d
31 : {
32 0 : ObjectInfoPrimitive2D::ObjectInfoPrimitive2D(
33 : const Primitive2DSequence& rChildren,
34 : const OUString& rName,
35 : const OUString& rTitle,
36 : const OUString& rDesc)
37 : : GroupPrimitive2D(rChildren),
38 : maName(rName),
39 : maTitle(rTitle),
40 0 : maDesc(rDesc)
41 : {
42 0 : }
43 :
44 0 : bool ObjectInfoPrimitive2D::operator==(const BasePrimitive2D& rPrimitive) const
45 : {
46 0 : if(GroupPrimitive2D::operator==(rPrimitive))
47 : {
48 0 : const ObjectInfoPrimitive2D& rCompare = (ObjectInfoPrimitive2D&)rPrimitive;
49 :
50 0 : return (getName() == rCompare.getName()
51 0 : && getTitle() == rCompare.getTitle()
52 0 : && getDesc() == rCompare.getDesc());
53 : }
54 :
55 0 : return false;
56 : }
57 :
58 : // provide unique ID
59 0 : ImplPrimitive2DIDBlock(ObjectInfoPrimitive2D, PRIMITIVE2D_ID_OBJECTINFOPRIMITIVE2D)
60 :
61 : } // end of namespace primitive2d
62 : } // end of namespace drawinglayer
63 :
64 :
65 : // eof
66 :
67 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|