Kaydet (Commit) 1e37a551 authored tarafından Kohei Yoshida's avatar Kohei Yoshida

Forward-declare SfxFrameArr_Impl in sfx2/frame.hxx.

Change-Id: I49f0a16655114bf212ffec957bc6560075115e5c
üst 8d007c83
...@@ -76,9 +76,7 @@ class Rectangle; ...@@ -76,9 +76,7 @@ class Rectangle;
class SfxRequest; class SfxRequest;
class SfxUnoControllerItem; class SfxUnoControllerItem;
class SystemWindow; class SystemWindow;
class SfxFrameArr_Impl;
class SfxFrame;
typedef ::std::vector<SfxFrame*> SfxFrameArr_Impl;
typedef ::std::vector<OUString> TargetList; typedef ::std::vector<OUString> TargetList;
......
...@@ -21,9 +21,6 @@ ...@@ -21,9 +21,6 @@
#include <vector> #include <vector>
class SfxFrame;
typedef ::std::vector<SfxFrame*> SfxFrameArr_Impl;
class SfxFilter; class SfxFilter;
typedef ::std::vector< SfxFilter* > SfxFilterList_Impl; typedef ::std::vector< SfxFilter* > SfxFilterList_Impl;
......
...@@ -43,6 +43,7 @@ ...@@ -43,6 +43,7 @@
#include "objshimp.hxx" #include "objshimp.hxx"
#include "imestatuswindow.hxx" #include "imestatuswindow.hxx"
#include "appbaslib.hxx" #include "appbaslib.hxx"
#include <childwinimpl.hxx>
#include <basic/basicmanagerrepository.hxx> #include <basic/basicmanagerrepository.hxx>
#include <basic/basmgr.hxx> #include <basic/basmgr.hxx>
......
...@@ -74,4 +74,44 @@ SfxChildWinFactArr_Impl::const_iterator SfxChildWinFactArr_Impl::begin() const ...@@ -74,4 +74,44 @@ SfxChildWinFactArr_Impl::const_iterator SfxChildWinFactArr_Impl::begin() const
return maData.begin(); return maData.begin();
} }
SfxFrameArr_Impl::iterator SfxFrameArr_Impl::begin()
{
return maData.begin();
}
SfxFrameArr_Impl::iterator SfxFrameArr_Impl::end()
{
return maData.end();
}
SfxFrame* SfxFrameArr_Impl::front()
{
return maData.front();
}
void SfxFrameArr_Impl::erase( iterator it )
{
maData.erase(it);
}
SfxFrame* SfxFrameArr_Impl::operator[] ( size_t i )
{
return maData[i];
}
void SfxFrameArr_Impl::push_back( SfxFrame* p )
{
maData.push_back(p);
}
size_t SfxFrameArr_Impl::size() const
{
return maData.size();
}
bool SfxFrameArr_Impl::empty() const
{
return maData.empty();
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -45,7 +45,7 @@ class SfxStatusDispatcher; ...@@ -45,7 +45,7 @@ class SfxStatusDispatcher;
class SfxDdeTriggerTopic_Impl; class SfxDdeTriggerTopic_Impl;
class SfxDocumentTemplates; class SfxDocumentTemplates;
class SfxFrame; class SfxFrame;
typedef ::std::vector<SfxFrame*> SfxFrameArr_Impl; class SfxFrameArr_Impl;
class SvtSaveOptions; class SvtSaveOptions;
class SvtHelpOptions; class SvtHelpOptions;
class ResMgr; class ResMgr;
......
...@@ -24,6 +24,8 @@ ...@@ -24,6 +24,8 @@
#include <boost/ptr_container/ptr_vector.hpp> #include <boost/ptr_container/ptr_vector.hpp>
class SfxFrame;
class SfxChildWinContextArr_Impl class SfxChildWinContextArr_Impl
{ {
typedef boost::ptr_vector<SfxChildWinContextFactory> DataType; typedef boost::ptr_vector<SfxChildWinContextFactory> DataType;
...@@ -55,6 +57,28 @@ public: ...@@ -55,6 +57,28 @@ public:
const_iterator begin() const; const_iterator begin() const;
}; };
class SfxFrameArr_Impl
{
typedef std::vector<SfxFrame*> DataType;
DataType maData;
public:
typedef DataType::iterator iterator;
iterator begin();
iterator end();
SfxFrame* front();
void erase( iterator it );
SfxFrame* operator[] ( size_t i );
void push_back( SfxFrame* p );
size_t size() const;
bool empty() const;
};
#endif #endif
......
...@@ -60,6 +60,7 @@ ...@@ -60,6 +60,7 @@
#include <sfx2/msgpool.hxx> #include <sfx2/msgpool.hxx>
#include "objshimp.hxx" #include "objshimp.hxx"
#include <sfx2/ipclient.hxx> #include <sfx2/ipclient.hxx>
#include <childwinimpl.hxx>
#ifdef DBG_UTIL #ifdef DBG_UTIL
#include <sfx2/frmhtmlw.hxx> #include <sfx2/frmhtmlw.hxx>
......
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