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
5b2cca80
Kaydet (Commit)
5b2cca80
authored
Ock 15, 2014
tarafından
David Tardon
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
impl. enumeration for ZipPackage
Change-Id: I800d22d8ec99e943b59467cf64b96aaa1f797953
üst
e9a036ac
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
2 deletions
+37
-2
ZipPackage.hxx
package/inc/ZipPackage.hxx
+12
-2
ZipPackage.cxx
package/source/zippackage/ZipPackage.cxx
+25
-0
No files found.
package/inc/ZipPackage.hxx
Dosyayı görüntüle @
5b2cca80
...
...
@@ -19,8 +19,9 @@
#ifndef _ZIP_PACKAGE_HXX
#define _ZIP_PACKAGE_HXX
#include <cppuhelper/implbase
7
.hxx>
#include <cppuhelper/implbase
8
.hxx>
#include <com/sun/star/lang/XInitialization.hpp>
#include <com/sun/star/container/XEnumerationAccess.hpp>
#include <com/sun/star/container/XHierarchicalNameAccess.hpp>
#include <com/sun/star/lang/XSingleServiceFactory.hpp>
#include <com/sun/star/util/XChangesBatch.hpp>
...
...
@@ -63,12 +64,13 @@ enum InitialisationMode
e_IMode_XStream
};
class
ZipPackage
:
public
cppu
::
WeakImplHelper
7
class
ZipPackage
:
public
cppu
::
WeakImplHelper
8
<
com
::
sun
::
star
::
lang
::
XInitialization
,
com
::
sun
::
star
::
lang
::
XSingleServiceFactory
,
com
::
sun
::
star
::
lang
::
XUnoTunnel
,
com
::
sun
::
star
::
lang
::
XServiceInfo
,
com
::
sun
::
star
::
container
::
XEnumerationAccess
,
com
::
sun
::
star
::
container
::
XHierarchicalNameAccess
,
com
::
sun
::
star
::
util
::
XChangesBatch
,
com
::
sun
::
star
::
beans
::
XPropertySet
...
...
@@ -141,6 +143,14 @@ public:
// XInitialization
virtual
void
SAL_CALL
initialize
(
const
::
com
::
sun
::
star
::
uno
::
Sequence
<
::
com
::
sun
::
star
::
uno
::
Any
>&
aArguments
)
throw
(
::
com
::
sun
::
star
::
uno
::
Exception
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
// XEnumerationAccess
virtual
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
container
::
XEnumeration
>
SAL_CALL
createEnumeration
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
// XElementType
virtual
::
com
::
sun
::
star
::
uno
::
Type
getElementType
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
virtual
sal_Bool
hasElements
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
// XHierarchicalNameAccess
virtual
::
com
::
sun
::
star
::
uno
::
Any
SAL_CALL
getByHierarchicalName
(
const
OUString
&
aName
)
throw
(
::
com
::
sun
::
star
::
container
::
NoSuchElementException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
);
...
...
package/source/zippackage/ZipPackage.cxx
Dosyayı görüntüle @
5b2cca80
...
...
@@ -66,6 +66,7 @@
#include <osl/time.h>
#include "com/sun/star/io/XAsyncOutputMonitor.hpp"
#include <cassert>
#include <cstring>
#include <memory>
#include <vector>
...
...
@@ -777,6 +778,30 @@ void SAL_CALL ZipPackage::initialize( const uno::Sequence< Any >& aArguments )
}
}
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
container
::
XEnumeration
>
SAL_CALL
ZipPackage
::
createEnumeration
()
throw
(
RuntimeException
)
{
assert
(
m_pRootFolder
);
return
m_pRootFolder
->
createEnumeration
();
}
::
com
::
sun
::
star
::
uno
::
Type
ZipPackage
::
getElementType
()
throw
(
RuntimeException
)
{
assert
(
m_pRootFolder
);
return
m_pRootFolder
->
getElementType
();
}
sal_Bool
ZipPackage
::
hasElements
()
throw
(
RuntimeException
)
{
assert
(
m_pRootFolder
);
return
m_pRootFolder
->
hasElements
();
}
Any
SAL_CALL
ZipPackage
::
getByHierarchicalName
(
const
OUString
&
aName
)
throw
(
NoSuchElementException
,
RuntimeException
)
{
...
...
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