PresenterBitmapContainer.hxx (5d03e972) | PresenterBitmapContainer.hxx (45b93914) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 89 unchanged lines hidden (view full) --- 98 The name of a configuration node whose sub-tree defines the 99 bitmap sets. 100 */ 101 PresenterBitmapContainer ( 102 const ::rtl::OUString& rsConfigurationBase, 103 const ::boost::shared_ptr<PresenterBitmapContainer>& rpParentContainer, 104 const css::uno::Reference<css::uno::XComponentContext>& rxComponentContext, 105 const css::uno::Reference<css::rendering::XCanvas>& rxCanvas, | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 89 unchanged lines hidden (view full) --- 98 The name of a configuration node whose sub-tree defines the 99 bitmap sets. 100 */ 101 PresenterBitmapContainer ( 102 const ::rtl::OUString& rsConfigurationBase, 103 const ::boost::shared_ptr<PresenterBitmapContainer>& rpParentContainer, 104 const css::uno::Reference<css::uno::XComponentContext>& rxComponentContext, 105 const css::uno::Reference<css::rendering::XCanvas>& rxCanvas, |
106 const ::rtl::OUString& rsBasePath, |
|
106 const css::uno::Reference<css::drawing::XPresenterHelper>& rxPresenterHelper = NULL); 107 PresenterBitmapContainer ( 108 const css::uno::Reference<css::container::XNameAccess>& rsRootNode, 109 const ::boost::shared_ptr<PresenterBitmapContainer>& rpParentContainer, 110 const css::uno::Reference<css::uno::XComponentContext>& rxComponentContext, 111 const css::uno::Reference<css::rendering::XCanvas>& rxCanvas, | 107 const css::uno::Reference<css::drawing::XPresenterHelper>& rxPresenterHelper = NULL); 108 PresenterBitmapContainer ( 109 const css::uno::Reference<css::container::XNameAccess>& rsRootNode, 110 const ::boost::shared_ptr<PresenterBitmapContainer>& rpParentContainer, 111 const css::uno::Reference<css::uno::XComponentContext>& rxComponentContext, 112 const css::uno::Reference<css::rendering::XCanvas>& rxCanvas, |
113 const ::rtl::OUString& rsBasePath, |
|
112 const css::uno::Reference<css::drawing::XPresenterHelper>& rxPresenterHelper = NULL); 113 ~PresenterBitmapContainer (void); 114 115 void Initialize ( 116 const css::uno::Reference<css::uno::XComponentContext>& rxComponentContext); 117 118 /** Return the bitmap set that is associated with the given name. 119 */ 120 ::boost::shared_ptr<BitmapDescriptor> GetBitmap (const ::rtl::OUString& rsName) const; 121 122 static ::boost::shared_ptr<BitmapDescriptor> LoadBitmap ( 123 const css::uno::Reference<css::container::XHierarchicalNameAccess>& rxNode, 124 const ::rtl::OUString& rsPathToBitmapNode, 125 const css::uno::Reference<css::drawing::XPresenterHelper>& rxPresenterHelper, | 114 const css::uno::Reference<css::drawing::XPresenterHelper>& rxPresenterHelper = NULL); 115 ~PresenterBitmapContainer (void); 116 117 void Initialize ( 118 const css::uno::Reference<css::uno::XComponentContext>& rxComponentContext); 119 120 /** Return the bitmap set that is associated with the given name. 121 */ 122 ::boost::shared_ptr<BitmapDescriptor> GetBitmap (const ::rtl::OUString& rsName) const; 123 124 static ::boost::shared_ptr<BitmapDescriptor> LoadBitmap ( 125 const css::uno::Reference<css::container::XHierarchicalNameAccess>& rxNode, 126 const ::rtl::OUString& rsPathToBitmapNode, 127 const css::uno::Reference<css::drawing::XPresenterHelper>& rxPresenterHelper, |
128 const ::rtl::OUString& rsBitmapBasePath, |
|
126 const css::uno::Reference<css::rendering::XCanvas>& rxCanvas, 127 const ::boost::shared_ptr<BitmapDescriptor>& rpDefaultBitmap); 128 129private: 130 ::boost::shared_ptr<PresenterBitmapContainer> mpParentContainer; 131 typedef ::std::map<rtl::OUString, ::boost::shared_ptr<BitmapDescriptor> > BitmapContainer; 132 BitmapContainer maIconContainer; | 129 const css::uno::Reference<css::rendering::XCanvas>& rxCanvas, 130 const ::boost::shared_ptr<BitmapDescriptor>& rpDefaultBitmap); 131 132private: 133 ::boost::shared_ptr<PresenterBitmapContainer> mpParentContainer; 134 typedef ::std::map<rtl::OUString, ::boost::shared_ptr<BitmapDescriptor> > BitmapContainer; 135 BitmapContainer maIconContainer; |
136 ::rtl::OUString msBasePath; |
|
133 css::uno::Reference<css::rendering::XCanvas> mxCanvas; 134 css::uno::Reference<css::drawing::XPresenterHelper> mxPresenterHelper; 135 136 void LoadBitmaps ( 137 const css::uno::Reference<css::container::XNameAccess>& rsRootNode); 138 void ProcessBitmap ( 139 const ::rtl::OUString& rsKey, 140 const css::uno::Reference<css::beans::XPropertySet>& rProperties); 141 static ::boost::shared_ptr<BitmapDescriptor> LoadBitmap ( 142 const css::uno::Reference<css::beans::XPropertySet>& rxProperties, 143 const css::uno::Reference<css::drawing::XPresenterHelper>& rxPresenterHelper, | 137 css::uno::Reference<css::rendering::XCanvas> mxCanvas; 138 css::uno::Reference<css::drawing::XPresenterHelper> mxPresenterHelper; 139 140 void LoadBitmaps ( 141 const css::uno::Reference<css::container::XNameAccess>& rsRootNode); 142 void ProcessBitmap ( 143 const ::rtl::OUString& rsKey, 144 const css::uno::Reference<css::beans::XPropertySet>& rProperties); 145 static ::boost::shared_ptr<BitmapDescriptor> LoadBitmap ( 146 const css::uno::Reference<css::beans::XPropertySet>& rxProperties, 147 const css::uno::Reference<css::drawing::XPresenterHelper>& rxPresenterHelper, |
148 const ::rtl::OUString& rsBasePath, |
|
144 const css::uno::Reference<css::rendering::XCanvas>& rxCanvas, 145 const ::boost::shared_ptr<PresenterBitmapContainer::BitmapDescriptor>& rpDefault); 146 static BitmapDescriptor::TexturingMode 147 StringToTexturingMode (const ::rtl::OUString& rsTexturingMode); 148}; 149 150 151typedef PresenterBitmapContainer::BitmapDescriptor PresenterBitmapDescriptor; 152typedef ::boost::shared_ptr<PresenterBitmapContainer::BitmapDescriptor> SharedBitmapDescriptor; 153 154} } // end of namespace ::sdext::presenter 155 156#endif | 149 const css::uno::Reference<css::rendering::XCanvas>& rxCanvas, 150 const ::boost::shared_ptr<PresenterBitmapContainer::BitmapDescriptor>& rpDefault); 151 static BitmapDescriptor::TexturingMode 152 StringToTexturingMode (const ::rtl::OUString& rsTexturingMode); 153}; 154 155 156typedef PresenterBitmapContainer::BitmapDescriptor PresenterBitmapDescriptor; 157typedef ::boost::shared_ptr<PresenterBitmapContainer::BitmapDescriptor> SharedBitmapDescriptor; 158 159} } // end of namespace ::sdext::presenter 160 161#endif |