22#include <com/sun/star/frame/FrameSearchFlag.hpp>
91 TFrameContainer::iterator aSearchedItem
163 css::uno::Reference<css::frame::XFrame>
xFrame;
171 catch (
const std::out_of_range&)
175 SAL_INFO(
"fwk",
"FrameContainer::operator[]: Exception caught: std::out_of_range");
240css::uno::Reference<css::frame::XFrame>
246 css::uno::Reference<css::frame::XFrame> xSearchedFrame;
249 if (container->getName() ==
sName)
251 xSearchedFrame = container;
256 xSearchedFrame = container->findFrame(
sName, css::frame::FrameSearchFlag::CHILDREN);
257 if (xSearchedFrame.is())
261 return xSearchedFrame;
275css::uno::Reference<css::frame::XFrame>
279 css::uno::Reference<css::frame::XFrame> xSearchedFrame;
282 if (container->getName() ==
sName)
284 xSearchedFrame = container;
288 return xSearchedFrame;
void clear()
-****************************************************************************************************...
css::uno::Reference< css::frame::XFrame > operator[](sal_uInt32 nIndex) const
-****************************************************************************************************...
void append(const css::uno::Reference< css::frame::XFrame > &xFrame)
add/remove/mark container items
void setActive(const css::uno::Reference< css::frame::XFrame > &xFrame)
-****************************************************************************************************...
bool exist(const css::uno::Reference< css::frame::XFrame > &xFrame) const
checks and free memory
sal_uInt32 getCount() const
deprecated IndexAccess!
TFrameContainer m_aContainer
list to hold all frames
css::uno::Reference< css::frame::XFrame > searchOnAllChildrens(const OUString &sName) const
special helper for Frame::findFrame()
css::uno::Reference< css::frame::XFrame > getActive() const
-****************************************************************************************************...
FrameContainer()
constructor / destructor
void remove(const css::uno::Reference< css::frame::XFrame > &xFrame)
-****************************************************************************************************...
~FrameContainer()
-****************************************************************************************************...
css::uno::Sequence< css::uno::Reference< css::frame::XFrame > > getAllElements() const
replacement for deprecated index access
css::uno::Reference< css::frame::XFrame > m_xActiveFrame
one container item can be the current active frame. It's necessary for Desktop or Frame implementatio...
css::uno::Reference< css::frame::XFrame > searchOnDirectChildrens(std::u16string_view sName) const
-****************************************************************************************************...
#define SAL_INFO(area, stream)
css::uno::Sequence< DstElementType > containerToSequence(const SrcType &i_Container)
Reference< XFrame > xFrame