24#include <com/sun/star/frame/XFrames.hpp>
25#include <com/sun/star/frame/XFrame.hpp>
44class OFrames final :
public ::cppu::WeakImplHelper< css::frame::XFrames >
55 OFrames(
const css::uno::Reference< css::frame::XFrame >& xOwner ,
70 virtual void SAL_CALL
append(
const css::uno::Reference< css::frame::XFrame >&
xFrame )
override;
82 virtual void SAL_CALL
remove(
const css::uno::Reference< css::frame::XFrame >&
xFrame )
override;
92 virtual css::uno::Sequence< css::uno::Reference< css::frame::XFrame > > SAL_CALL
queryFrames( sal_Int32 nSearchFlags )
override;
107 virtual sal_Int32 SAL_CALL
getCount()
override;
178 void impl_appendSequence( css::uno::Sequence< css::uno::Reference< css::frame::XFrame > >& seqDestination ,
179 const css::uno::Sequence< css::uno::Reference< css::frame::XFrame > >& seqSource );
183 css::uno::WeakReference< css::frame::XFrame >
m_xOwner;
implement XFrames, XIndexAccess and XElementAccess interfaces as helper for services @descr Use this ...
virtual void SAL_CALL append(const css::uno::Reference< css::frame::XFrame > &xFrame) override
append frame to container @descr We share the container with our owner.
virtual sal_Bool SAL_CALL hasElements() override
get fill state of current container @descr Call these to get information about, if items exist in con...
virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 nIndex) override
get specified container item by index @descr If you called getCount() successful - this method return...
void impl_resetObject()
reset instance to default values @descr There are two ways to delete an instance of this class.
virtual sal_Int32 SAL_CALL getCount() override
get count of all current frames in container @descr This is the beginning of full index-access.
void impl_appendSequence(css::uno::Sequence< css::uno::Reference< css::frame::XFrame > > &seqDestination, const css::uno::Sequence< css::uno::Reference< css::frame::XFrame > > &seqSource)
append one sequence to another @descr There is no operation to add to sequences! Use this helper-meth...
bool m_bRecursiveSearchProtection
with owner shared list to hold all direct children of an XFramesSupplier
virtual css::uno::Type SAL_CALL getElementType() override
get uno-type of all container items @descr In current implementation type is fixed to XFrame!...
css::uno::WeakReference< css::frame::XFrame > m_xOwner
virtual void SAL_CALL remove(const css::uno::Reference< css::frame::XFrame > &xFrame) override
remove frame from container @descr This is the companion to append().
static bool impldbg_checkParameter_queryFrames(sal_Int32 nSearchFlags)
OFrames(const css::uno::Reference< css::frame::XFrame > &xOwner, FrameContainer *pFrameContainer)
standard ctor @descr These initialize a new instance of this class with all needed information for wo...
FrameContainer * m_pFrameContainer
reference to owner of this instance (Hold no hard reference!)
virtual css::uno::Sequence< css::uno::Reference< css::frame::XFrame > > SAL_CALL queryFrames(sal_Int32 nSearchFlags) override
return list of all applicable frames for given flags @descr Call these to get a list of all frames,...
virtual ~OFrames() override
standard destructor @descr This method destruct an instance of this class and clear some member.
Reference< XFrame > xFrame