Kaydet (Commit) 5859c63f authored tarafından Kohei Yoshida's avatar Kohei Yoshida

Same with SfxUnoControllerArr_Impl.

Change-Id: I927621de8f4c486ef0f77ec6c8da336f36b38b3e
üst 6e385ffa
......@@ -28,18 +28,13 @@
#include <com/sun/star/frame/XDispatchProvider.hpp>
#include <com/sun/star/uno/Reference.h>
#include <com/sun/star/frame/XDispatchRecorderSupplier.hpp>
#include <vector>
// some other includes
#include <sfx2/viewfrm.hxx>
// forwards, typedefs, declarations
class SystemWindow;
class SfxSlot;
class SfxSlotServer;
......@@ -54,8 +49,7 @@ class SfxWorkWindow;
class SfxUnoControllerItem;
struct SfxFoundCache_Impl;
class SfxFoundCacheArr_Impl;
typedef std::vector<SfxUnoControllerItem*> SfxUnoControllerArr_Impl;
class SfxUnoControllerArr_Impl;
enum class SfxCallMode : sal_uInt16
{
......
......@@ -127,6 +127,51 @@ public:
}
};
class SfxUnoControllerArr_Impl
{
typedef std::vector<SfxUnoControllerItem*> DataType;
DataType maData;
public:
typedef DataType::iterator iterator;
iterator begin()
{
return maData.begin();
}
iterator end()
{
return maData.end();
}
void erase( iterator it )
{
maData.erase(it);
}
SfxUnoControllerItem* operator[] ( size_t i )
{
return maData[i];
}
const SfxUnoControllerItem* operator[] ( size_t i ) const
{
return maData[i];
}
size_t size() const
{
return maData.size();
}
void push_back( SfxUnoControllerItem* p )
{
maData.push_back(p);
}
};
class SfxAsyncExec_Impl
{
::com::sun::star::util::URL aCommand;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment