Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
0196a819
Kaydet (Commit)
0196a819
authored
Ock 08, 2014
tarafından
Matúš Kukan
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
SvxShapeCollection is not used directly anymore; hide it.
Change-Id: I81c62c0a3ed880c0523e6ae54a27da56ff5acdca
üst
f7936b02
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
59 additions
and
97 deletions
+59
-97
unoshcol.hxx
include/svx/unoshcol.hxx
+0
-87
unoshcol.cxx
svx/source/unodraw/unoshcol.cxx
+59
-10
No files found.
include/svx/unoshcol.hxx
deleted
100644 → 0
Dosyayı görüntüle @
f7936b02
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* 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 .
*/
#ifndef INCLUDED_SVX_UNOSHCOL_HXX
#define INCLUDED_SVX_UNOSHCOL_HXX
#include <com/sun/star/lang/XComponent.hpp>
#include <com/sun/star/drawing/XShapes.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <osl/mutex.hxx>
#include <cppuhelper/interfacecontainer.hxx>
#include <cppuhelper/implbase3.hxx>
#include <svx/svxdllapi.h>
class
SvxShapeCollectionMutex
{
public
:
::
osl
::
Mutex
maMutex
;
};
/***********************************************************************
* *
***********************************************************************/
class
SVX_DLLPUBLIC
SvxShapeCollection
:
public
::
cppu
::
WeakAggImplHelper3
<
::
com
::
sun
::
star
::
drawing
::
XShapes
,
::
com
::
sun
::
star
::
lang
::
XServiceInfo
,
::
com
::
sun
::
star
::
lang
::
XComponent
>
,
public
SvxShapeCollectionMutex
{
private
:
cppu
::
OInterfaceContainerHelper
maShapeContainer
;
cppu
::
OBroadcastHelper
mrBHelper
;
SVX_DLLPRIVATE
virtual
void
disposing
()
throw
();
public
:
SvxShapeCollection
()
throw
();
virtual
~
SvxShapeCollection
()
throw
();
// XInterface
virtual
void
SAL_CALL
release
()
throw
();
// XComponent
virtual
void
SAL_CALL
dispose
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
virtual
void
SAL_CALL
addEventListener
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
lang
::
XEventListener
>&
aListener
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
virtual
void
SAL_CALL
removeEventListener
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
lang
::
XEventListener
>&
aListener
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
// XIndexAccess
virtual
sal_Int32
SAL_CALL
getCount
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
)
;
virtual
::
com
::
sun
::
star
::
uno
::
Any
SAL_CALL
getByIndex
(
sal_Int32
Index
)
throw
(
::
com
::
sun
::
star
::
lang
::
IndexOutOfBoundsException
,
::
com
::
sun
::
star
::
lang
::
WrappedTargetException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
// XElementAccess
virtual
::
com
::
sun
::
star
::
uno
::
Type
SAL_CALL
getElementType
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
virtual
sal_Bool
SAL_CALL
hasElements
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
// XShapes
virtual
void
SAL_CALL
add
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
drawing
::
XShape
>&
xShape
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
virtual
void
SAL_CALL
remove
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
drawing
::
XShape
>&
xShape
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
// XServiceInfo
virtual
OUString
SAL_CALL
getImplementationName
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
virtual
sal_Bool
SAL_CALL
supportsService
(
const
OUString
&
ServiceName
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
virtual
::
com
::
sun
::
star
::
uno
::
Sequence
<
OUString
>
SAL_CALL
getSupportedServiceNames
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
};
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
svx/source/unodraw/unoshcol.cxx
Dosyayı görüntüle @
0196a819
...
...
@@ -18,22 +18,69 @@
*/
#include <com/sun/star/document/EventObject.hpp>
#include <com/sun/star/drawing/XShapes.hpp>
#include <com/sun/star/lang/XComponent.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/uno/XComponentContext.hpp>
#include <
svx/unoprov
.hxx>
#include <
svx/unoshcol
.hxx>
#include <
cppuhelper/implbase3
.hxx>
#include <
cppuhelper/interfacecontainer
.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <osl/mutex.hxx>
#include <svx/unoprov.hxx>
using
namespace
::
cppu
;
using
namespace
::
com
::
sun
::
star
;
using
namespace
::
com
::
sun
::
star
::
uno
;
using
namespace
::
com
::
sun
::
star
::
lang
;
using
namespace
::
com
::
sun
::
star
::
container
;
using
namespace
::
com
::
sun
::
star
::
drawing
;
/***********************************************************************
* *
***********************************************************************/
namespace
{
class
SvxShapeCollectionMutex
{
public
:
::
osl
::
Mutex
maMutex
;
};
class
SvxShapeCollection
:
public
cppu
::
WeakAggImplHelper3
<
drawing
::
XShapes
,
lang
::
XServiceInfo
,
lang
::
XComponent
>
,
public
SvxShapeCollectionMutex
{
private
:
cppu
::
OInterfaceContainerHelper
maShapeContainer
;
cppu
::
OBroadcastHelper
mrBHelper
;
virtual
void
disposing
()
throw
();
public
:
SvxShapeCollection
()
throw
();
virtual
~
SvxShapeCollection
()
throw
();
// XInterface
virtual
void
SAL_CALL
release
()
throw
();
// XComponent
virtual
void
SAL_CALL
dispose
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
virtual
void
SAL_CALL
addEventListener
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
lang
::
XEventListener
>&
aListener
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
virtual
void
SAL_CALL
removeEventListener
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
lang
::
XEventListener
>&
aListener
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
// XIndexAccess
virtual
sal_Int32
SAL_CALL
getCount
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
)
;
virtual
::
com
::
sun
::
star
::
uno
::
Any
SAL_CALL
getByIndex
(
sal_Int32
Index
)
throw
(
::
com
::
sun
::
star
::
lang
::
IndexOutOfBoundsException
,
::
com
::
sun
::
star
::
lang
::
WrappedTargetException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
// XElementAccess
virtual
::
com
::
sun
::
star
::
uno
::
Type
SAL_CALL
getElementType
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
virtual
sal_Bool
SAL_CALL
hasElements
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
// XShapes
virtual
void
SAL_CALL
add
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
drawing
::
XShape
>&
xShape
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
virtual
void
SAL_CALL
remove
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
drawing
::
XShape
>&
xShape
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
// XServiceInfo
virtual
OUString
SAL_CALL
getImplementationName
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
virtual
sal_Bool
SAL_CALL
supportsService
(
const
OUString
&
ServiceName
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
virtual
::
com
::
sun
::
star
::
uno
::
Sequence
<
OUString
>
SAL_CALL
getSupportedServiceNames
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
};
SvxShapeCollection
::
SvxShapeCollection
()
throw
()
:
maShapeContainer
(
maMutex
),
mrBHelper
(
maMutex
)
{
...
...
@@ -184,7 +231,7 @@ uno::Any SAL_CALL SvxShapeCollection::getByIndex( sal_Int32 Index )
uno
::
Sequence
<
Reference
<
uno
::
XInterface
>
>
xElements
(
maShapeContainer
.
getElements
()
);
return
uno
::
makeAny
(
Reference
<
XShape
>
(
static_cast
<
drawing
::
XShape
*
>
(
xElements
.
getArray
()[
Index
].
get
()))
);
return
uno
::
makeAny
(
Reference
<
drawing
::
XShape
>
(
static_cast
<
drawing
::
XShape
*
>
(
xElements
.
getArray
()[
Index
].
get
()))
);
}
// XElementAccess
...
...
@@ -219,6 +266,8 @@ uno::Sequence< OUString > SAL_CALL SvxShapeCollection::getSupportedServiceNames(
return
aSeq
;
}
}
extern
"C"
SAL_DLLPUBLIC_EXPORT
css
::
uno
::
XInterface
*
SAL_CALL
com_sun_star_drawing_SvxShapeCollection_implementation_getFactory
(
SAL_UNUSED_PARAMETER
css
::
uno
::
XComponentContext
*
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment