2008/02/08 18:44:44 jcn 1.1.2.1: Initial toolkit import from ee9a2fcc29d7e2f01cc80ef7c13bf7bc7d55ae7e. layout/source/awt -> toolkit/source/awt layout/source/core -> toolkit/source/layout layout/source/wrapper -> toolkit/source/vclcompat layout/inc/layout -> toolkit/inc/layout layout/source/inc -> toolkit/inc/layout layout/workben -> toolkit/workben/layout That's ooo-build trunk r11539 @ ooh680-m5/src680-m245.
35 lines
1.0 KiB
C++
35 lines
1.0 KiB
C++
#ifndef CORE_PROPLIST_HXX
|
|
#define CORE_PROPLIST_HXX
|
|
|
|
#include <list>
|
|
#include <com/sun/star/xml/input/XAttributes.hpp>
|
|
|
|
#include <rtl/ustring.hxx>
|
|
|
|
namespace layoutimpl
|
|
{
|
|
|
|
namespace css = ::com::sun::star;
|
|
|
|
typedef std::list< std::pair< rtl::OUString, rtl::OUString > > PropList;
|
|
|
|
void propsFromAttributes( const css::uno::Reference<css::xml::input::XAttributes> & xAttributes,
|
|
PropList &rProps, sal_Int32 nNamespace );
|
|
|
|
void setProperties( css::uno::Reference< css::uno::XInterface > const& xPeer,
|
|
PropList const& rProps);
|
|
|
|
void setProperty( css::uno::Reference< css::uno::XInterface > const& xPeer,
|
|
rtl::OUString const& attr, rtl::OUString const& value );
|
|
|
|
long getAttributeProps( PropList &rProps );
|
|
bool findAndRemove( const char *pAttr, PropList &rProps, rtl::OUString &rValue);
|
|
|
|
}
|
|
|
|
// Convert a rtl::OUString to a byte string.
|
|
#define OUSTRING_CSTR( str ) \
|
|
rtl::OUStringToOString( str, RTL_TEXTENCODING_ASCII_US ).getStr()
|
|
|
|
#endif // CORE_PROPLIST_HXX
|