diff options
author | Rüdiger Timm <rt@openoffice.org> | 2008-04-18 07:26:52 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2008-04-18 07:26:52 +0000 |
commit | cb57338148a56aa78e08b481660400b38179d33d (patch) | |
tree | be10493e720aa1972ab1c5fd61d35650123f0ec4 /vcl/inc | |
parent | 0708201648e50a73f0315b2efa7cd58515d97ebc (diff) |
INTEGRATION: CWS iconupdate04 (1.2.204); FILE MERGED
2008/04/10 06:35:38 ka 1.2.204.2: #i87567#: allow usage of multilayer icon themes
2008/04/08 15:34:54 ka 1.2.204.1: multilayer image handling
Diffstat (limited to 'vcl/inc')
-rw-r--r-- | vcl/inc/vcl/impimagetree.hxx | 35 |
1 files changed, 31 insertions, 4 deletions
diff --git a/vcl/inc/vcl/impimagetree.hxx b/vcl/inc/vcl/impimagetree.hxx index 1e97862edeba..1b86751ce5cc 100644 --- a/vcl/inc/vcl/impimagetree.hxx +++ b/vcl/inc/vcl/impimagetree.hxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: impimagetree.hxx,v $ - * $Revision: 1.3 $ + * $Revision: 1.4 $ * * This file is part of OpenOffice.org. * @@ -49,6 +49,35 @@ namespace com { namespace sun { namespace star { namespace beans { class XProper namespace com { namespace sun { namespace star { namespace ucb { class XSimpleFileAccess; } } } } namespace com { namespace sun { namespace star { namespace io { class XInputStream; } } } } +// ------------------- +// - ImplZipAccessor - +// ------------------- + +class ImplZipAccessor +{ +private: + + ::std::vector< ::rtl::OUString > maURLVector; + ::com::sun::star::uno::Reference< ::com::sun::star::ucb::XSimpleFileAccess > mxFileAccess; + ::std::vector< ::com::sun::star::uno::Reference< ::com::sun::star::packages::zip::XZipFileAccess > > maZipAccVector; + ::std::vector< ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > > maNameAccVector; + +public: + + ImplZipAccessor(); + ~ImplZipAccessor(); + + void Update( const ::rtl::OUString& rSymbolsStyle ); + void Clear(); + bool HasEntries() const; + + ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream > GetByName( const ::rtl::OUString& rName ) const; +}; + +// ----------------- +// - ImplImageTree - +// ----------------- + class ImplImageTree { public: @@ -66,15 +95,13 @@ public: private: - ::com::sun::star::uno::Reference< ::com::sun::star::packages::zip::XZipFileAccess > mxZipAcc; - ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > mxNameAcc; + ImplZipAccessor maZipAcc; ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > mxPathSettings; ::com::sun::star::uno::Reference< ::com::sun::star::ucb::XSimpleFileAccess > mxFileAccess; bool mbInit; ::rtl::OUString maSymbolsStyle; bool implInit(); - ::rtl::OUString implGetZipFileURL( bool bWithStyle = true ) const; const ::rtl::OUString& implGetUserDirURL() const; ::rtl::OUString implGetUserFileURL( const ::rtl::OUString& rName ) const; void implCheckUserCache(); |