Kaydet (Commit) 2b10ef45 authored tarafından Daniel Boelzle's avatar Daniel Boelzle

new

üst 182f4792
/*************************************************************************
*
* $RCSfile: xml_helper.hxx,v $
*
* $Revision: 1.1 $
*
* last change: $Author: dbo $ $Date: 2001-02-16 14:14:47 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
*
* - GNU Lesser General Public License Version 2.1
* - Sun Industry Standards Source License Version 1.1
*
* Sun Microsystems Inc., October, 2000
*
* GNU Lesser General Public License Version 2.1
* =============================================
* Copyright 2000 by Sun Microsystems, Inc.
* 901 San Antonio Road, Palo Alto, CA 94303, USA
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 2.1, as published by the Free Software Foundation.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA
*
*
* Sun Industry Standards Source License Version 1.1
* =================================================
* The contents of this file are subject to the Sun Industry Standards
* Source License Version 1.1 (the "License"); You may not use this file
* except in compliance with the License. You may obtain a copy of the
* License at http://www.openoffice.org/license.html.
*
* Software provided under this License is provided on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
* WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
* MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
* See the License for the specific provisions governing your rights and
* obligations concerning the Software.
*
* The Initial Developer of the Original Code is: Sun Microsystems, Inc.
*
* Copyright: 2000 by Sun Microsystems, Inc.
*
* All Rights Reserved.
*
* Contributor(s): _______________________________________
*
*
************************************************************************/
#ifndef _XMLSCRIPT_XML_HELPER_HXX_
#define _XMLSCRIPT_XML_HELPER_HXX_
#include <rtl/byteseq.hxx>
#include <com/sun/star/xml/XImporter.hpp>
#include <com/sun/star/xml/sax/XDocumentHandler.hpp>
#include <com/sun/star/io/XInputStream.hpp>
#include <com/sun/star/io/XOutputStream.hpp>
namespace xmlscript
{
struct NameSpaceUid
{
::rtl::OUString sURI;
sal_Int32 nUid;
NameSpaceUid( ::rtl::OUString const & sURI_, sal_Int32 nUid_ )
: sURI( sURI_ )
, nUid( nUid_ )
{}
};
//==================================================================================================
::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XDocumentHandler >
SAL_CALL createDocumentHandler(
NameSpaceUid const * pNamespaceUids, sal_Int32 nNameSpaceUids,
sal_Int32 nUnknownNamespaceUid,
::com::sun::star::uno::Reference< ::com::sun::star::xml::XImporter > const & xImporter,
bool bSingleThreadedUse = true )
throw ();
//==================================================================================================
::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream >
SAL_CALL createInputStream(
::rtl::ByteSequence const & rInData )
throw ();
//==================================================================================================
::com::sun::star::uno::Reference< ::com::sun::star::io::XOutputStream >
SAL_CALL createOutputStream(
::rtl::ByteSequence * pOutData )
throw ();
};
#endif
/*************************************************************************
*
* $RCSfile: xmldlg_imexp.hxx,v $
*
* $Revision: 1.1 $
*
* last change: $Author: dbo $ $Date: 2001-02-16 14:14:47 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
*
* - GNU Lesser General Public License Version 2.1
* - Sun Industry Standards Source License Version 1.1
*
* Sun Microsystems Inc., October, 2000
*
* GNU Lesser General Public License Version 2.1
* =============================================
* Copyright 2000 by Sun Microsystems, Inc.
* 901 San Antonio Road, Palo Alto, CA 94303, USA
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 2.1, as published by the Free Software Foundation.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA
*
*
* Sun Industry Standards Source License Version 1.1
* =================================================
* The contents of this file are subject to the Sun Industry Standards
* Source License Version 1.1 (the "License"); You may not use this file
* except in compliance with the License. You may obtain a copy of the
* License at http://www.openoffice.org/license.html.
*
* Software provided under this License is provided on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
* WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
* MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
* See the License for the specific provisions governing your rights and
* obligations concerning the Software.
*
* The Initial Developer of the Original Code is: Sun Microsystems, Inc.
*
* Copyright: 2000 by Sun Microsystems, Inc.
*
* All Rights Reserved.
*
* Contributor(s): _______________________________________
*
*
************************************************************************/
#ifndef _XMLSCRIPT_XMLDLG_IMEXP_HXX_
#define _XMLSCRIPT_XMLDLG_IMEXP_HXX_
#include <com/sun/star/container/XNameContainer.hpp>
#include <com/sun/star/xml/sax/XExtendedDocumentHandler.hpp>
namespace xmlscript
{
#define XMLNS_DIALOGS_URI "http://openoffice.org/2000/dialog"
#define XMLNS_DIALOGS_UID 1
#define XMLNS_DIALOGS_PREFIX "dlg"
//==================================================================================================
void exportDialogModel(
::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer > const & xDialogModel,
::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XExtendedDocumentHandler > const & xOut )
throw (::com::sun::star::uno::Exception);
//==================================================================================================
::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XDocumentHandler > importDialogModel(
::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer > const & xDialogModel )
throw (::com::sun::star::uno::Exception);
};
#endif
#*************************************************************************
#
# $RCSfile: makefile.mk,v $
#
# $Revision: 1.1 $
#
# last change: $Author: dbo $ $Date: 2001-02-16 14:14:47 $
#
# The Contents of this file are made available subject to the terms of
# either of the following licenses
#
# - GNU Lesser General Public License Version 2.1
# - Sun Industry Standards Source License Version 1.1
#
# Sun Microsystems Inc., October, 2000
#
# GNU Lesser General Public License Version 2.1
# =============================================
# Copyright 2000 by Sun Microsystems, Inc.
# 901 San Antonio Road, Palo Alto, CA 94303, USA
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License version 2.1, as published by the Free Software Foundation.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
# MA 02111-1307 USA
#
#
# Sun Industry Standards Source License Version 1.1
# =================================================
# The contents of this file are subject to the Sun Industry Standards
# Source License Version 1.1 (the "License"); You may not use this file
# except in compliance with the License. You may obtain a copy of the
# License at http://www.openoffice.org/license.html.
#
# Software provided under this License is provided on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
# WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
# MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
# See the License for the specific provisions governing your rights and
# obligations concerning the Software.
#
# The Initial Developer of the Original Code is: Sun Microsystems, Inc.
#
# Copyright: 2000 by Sun Microsystems, Inc.
#
# All Rights Reserved.
#
# Contributor(s): _______________________________________
#
#
#
#*************************************************************************
PRJ=..$/..
PRJNAME=xmlscript
TARGET=xml_helper
NO_BSYMBOLIC=TRUE
ENABLE_EXCEPTIONS=TRUE
# --- Settings -----------------------------------------------------
.INCLUDE : svpre.mk
.INCLUDE : settings.mk
.INCLUDE : sv.mk
#-----------------------------------------------------------
SLOFILES = \
$(SLO)$/xml_impctx.obj \
$(SLO)$/xml_byteseq.obj
# --- Targets ------------------------------------------------------
.INCLUDE : $(PRJ)$/util$/target.pmk
.INCLUDE : target.mk
/*************************************************************************
*
* $RCSfile: xml_byteseq.cxx,v $
*
* $Revision: 1.1 $
*
* last change: $Author: dbo $ $Date: 2001-02-16 14:14:47 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
*
* - GNU Lesser General Public License Version 2.1
* - Sun Industry Standards Source License Version 1.1
*
* Sun Microsystems Inc., October, 2000
*
* GNU Lesser General Public License Version 2.1
* =============================================
* Copyright 2000 by Sun Microsystems, Inc.
* 901 San Antonio Road, Palo Alto, CA 94303, USA
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 2.1, as published by the Free Software Foundation.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA
*
*
* Sun Industry Standards Source License Version 1.1
* =================================================
* The contents of this file are subject to the Sun Industry Standards
* Source License Version 1.1 (the "License"); You may not use this file
* except in compliance with the License. You may obtain a copy of the
* License at http://www.openoffice.org/license.html.
*
* Software provided under this License is provided on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
* WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
* MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
* See the License for the specific provisions governing your rights and
* obligations concerning the Software.
*
* The Initial Developer of the Original Code is: Sun Microsystems, Inc.
*
* Copyright: 2000 by Sun Microsystems, Inc.
*
* All Rights Reserved.
*
* Contributor(s): _______________________________________
*
*
************************************************************************/
#include <rtl/memory.h>
#include <cppuhelper/implbase1.hxx>
#include <xmlscript/xml_helper.hxx>
using namespace rtl;
using namespace osl;
using namespace com::sun::star;
using namespace com::sun::star::uno;
namespace xmlscript
{
//==================================================================================================
class BSeqInputStream
: public ::cppu::WeakImplHelper1< io::XInputStream >
{
ByteSequence _seq;
sal_Int32 _nPos;
public:
inline BSeqInputStream( ByteSequence const & rSeq )
throw ()
: _seq( rSeq )
, _nPos( 0 )
{}
// XInputStream
virtual sal_Int32 SAL_CALL readBytes(
Sequence< sal_Int8 > & rData, sal_Int32 nBytesToRead )
throw (io::NotConnectedException, io::BufferSizeExceededException, io::IOException, RuntimeException);
virtual sal_Int32 SAL_CALL readSomeBytes(
Sequence< sal_Int8 > & rData, sal_Int32 nMaxBytesToRead )
throw (io::NotConnectedException, io::BufferSizeExceededException, io::IOException, RuntimeException);
virtual void SAL_CALL skipBytes(
sal_Int32 nBytesToSkip )
throw (io::NotConnectedException, io::BufferSizeExceededException, io::IOException, RuntimeException);
virtual sal_Int32 SAL_CALL available()
throw (io::NotConnectedException, io::IOException, RuntimeException);
virtual void SAL_CALL closeInput()
throw (io::NotConnectedException, io::IOException, RuntimeException);
};
//__________________________________________________________________________________________________
sal_Int32 BSeqInputStream::readBytes(
Sequence< sal_Int8 > & rData, sal_Int32 nBytesToRead )
throw (io::NotConnectedException, io::BufferSizeExceededException, io::IOException, RuntimeException)
{
nBytesToRead = ((nBytesToRead > _seq.getLength() - _nPos)
? _seq.getLength() - _nPos
: nBytesToRead);
ByteSequence aBytes( _seq.getConstArray() + _nPos, nBytesToRead );
rData = toUnoSequence( aBytes );
_nPos += nBytesToRead;
return nBytesToRead;
}
//__________________________________________________________________________________________________
sal_Int32 BSeqInputStream::readSomeBytes(
Sequence< sal_Int8 > & rData, sal_Int32 nMaxBytesToRead )
throw (io::NotConnectedException, io::BufferSizeExceededException, io::IOException, RuntimeException)
{
return readBytes( rData, nMaxBytesToRead );
}
//__________________________________________________________________________________________________
void BSeqInputStream::skipBytes(
sal_Int32 nBytesToSkip )
throw (io::NotConnectedException, io::BufferSizeExceededException, io::IOException, RuntimeException)
{
}
//__________________________________________________________________________________________________
sal_Int32 BSeqInputStream::available()
throw (io::NotConnectedException, io::IOException, RuntimeException)
{
return (_seq.getLength() - _nPos);
}
//__________________________________________________________________________________________________
void BSeqInputStream::closeInput()
throw (io::NotConnectedException, io::IOException, RuntimeException)
{
}
//##################################################################################################
//==================================================================================================
class BSeqOutputStream
: public ::cppu::WeakImplHelper1< io::XOutputStream >
{
ByteSequence * _seq;
public:
inline BSeqOutputStream( ByteSequence * seq )
throw ()
: _seq( seq )
{}
// XOutputStream
virtual void SAL_CALL writeBytes(
Sequence< sal_Int8 > const & rData )
throw (io::NotConnectedException, io::BufferSizeExceededException, RuntimeException);
virtual void SAL_CALL flush()
throw (io::NotConnectedException, io::BufferSizeExceededException, RuntimeException);
virtual void SAL_CALL closeOutput()
throw (io::NotConnectedException, io::BufferSizeExceededException, RuntimeException);
};
//__________________________________________________________________________________________________
void BSeqOutputStream::writeBytes( Sequence< sal_Int8 > const & rData )
throw (io::NotConnectedException, io::BufferSizeExceededException, RuntimeException)
{
sal_Int32 nPos = _seq->getLength();
_seq->realloc( nPos + rData.getLength() );
::rtl_copyMemory( (char *)_seq->getArray() + nPos,
(char const *)rData.getConstArray(),
rData.getLength() );
}
//__________________________________________________________________________________________________
void BSeqOutputStream::flush()
throw (io::NotConnectedException, io::BufferSizeExceededException, RuntimeException)
{
}
//__________________________________________________________________________________________________
void BSeqOutputStream::closeOutput()
throw (io::NotConnectedException, io::BufferSizeExceededException, RuntimeException)
{
}
//##################################################################################################
//==================================================================================================
Reference< io::XInputStream > SAL_CALL createInputStream( ByteSequence const & rInData )
throw ()
{
return new BSeqInputStream( rInData );
}
//==================================================================================================
Reference< io::XOutputStream > SAL_CALL createOutputStream( ByteSequence * pOutData )
throw ()
{
return new BSeqOutputStream( pOutData );
}
};
This diff is collapsed.
/*************************************************************************
*
* $RCSfile: exp_share.hxx,v $
*
* $Revision: 1.1 $
*
* last change: $Author: dbo $ $Date: 2001-02-16 14:14:48 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
*
* - GNU Lesser General Public License Version 2.1
* - Sun Industry Standards Source License Version 1.1
*
* Sun Microsystems Inc., October, 2000
*
* GNU Lesser General Public License Version 2.1
* =============================================
* Copyright 2000 by Sun Microsystems, Inc.
* 901 San Antonio Road, Palo Alto, CA 94303, USA
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 2.1, as published by the Free Software Foundation.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA
*
*
* Sun Industry Standards Source License Version 1.1
* =================================================
* The contents of this file are subject to the Sun Industry Standards
* Source License Version 1.1 (the "License"); You may not use this file
* except in compliance with the License. You may obtain a copy of the
* License at http://www.openoffice.org/license.html.
*
* Software provided under this License is provided on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
* WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
* MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
* See the License for the specific provisions governing your rights and
* obligations concerning the Software.
*
* The Initial Developer of the Original Code is: Sun Microsystems, Inc.
*
* Copyright: 2000 by Sun Microsystems, Inc.
*
* All Rights Reserved.
*
* Contributor(s): _______________________________________
*
*
************************************************************************/
#include <hash_map>
#include <vector>
#include <xmlscript/xmldlg_imexp.hxx>
#include <osl/diagnose.h>
#include <cppuhelper/implbase1.hxx>
#include <com/sun/star/xml/sax/XAttributeList.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/beans/XPropertyState.hpp>
#include <com/sun/star/awt/FontDescriptor.hpp>
using namespace ::rtl;
using namespace ::std;
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
namespace xmlscript
{
struct Style
{
sal_uInt32 _backgroundColor;
sal_uInt32 _textColor;
sal_Int16 _border;
awt::FontDescriptor _descr;
short _set;
OUString _id;
Style()
: _set( 0 )
{}
Reference< xml::sax::XAttributeList > createElement();
};
class StyleBag
{
vector< Style * > _styles;
public:
~StyleBag();
OUString getStyleId( Style const & rStyle )
throw ();
void dump( Reference< xml::sax::XExtendedDocumentHandler > const & xOut );
};
class ElementDescriptor
: public ::cppu::WeakImplHelper1< xml::sax::XAttributeList >
{
Reference< beans::XPropertySet > _xProps;
Reference< beans::XPropertyState > _xPropState;
OUString _name;
vector< OUString > _attrNames;
vector< OUString > _attrValues;
vector< Reference< xml::sax::XAttributeList > > _subElems;
public:
inline ElementDescriptor(
Reference< beans::XPropertySet > const & xProps,
Reference< beans::XPropertyState > const & xPropState,
OUString const & name )
throw ()
: _xProps( xProps )
, _xPropState( xPropState )
, _name( name )
{}
inline ElementDescriptor(
OUString const & name )
throw ()
: _name( name )
{}
//
void addSubElem( Reference< xml::sax::XAttributeList > const & xElem );
inline Reference< xml::sax::XAttributeList > getSubElemAt( sal_Int32 nIndex )
{ return _subElems[ nIndex ]; }
void dump( Reference< xml::sax::XExtendedDocumentHandler > const & xOut );
//
Any readProp( OUString const & rPropName );
//
void readDefaults();
//
void readStringAttr( OUString const & rPropName, OUString const & rAttrName );
void readLongAttr( OUString const & rPropName, OUString const & rAttrName );
void readHexLongAttr( OUString const & rPropName, OUString const & rAttrName );
void readShortAttr( OUString const & rPropName, OUString const & rAttrName );
void readBoolAttr( OUString const & rPropName, OUString const & rAttrName );
//
inline void addAttr( OUString const & rAttrName, OUString const & rValue );
inline void addBoolAttr( OUString const & rAttrName, sal_Bool bValue );
//
void readButtonModel( StyleBag * all_styles )
throw (Exception);
void readEditModel( StyleBag * all_styles )
throw (Exception);
void readCheckBoxModel( StyleBag * all_styles )
throw (Exception);
void readRadioButtonModel( StyleBag * all_styles )
throw (Exception);
void readComboBoxModel( StyleBag * all_styles )
throw (Exception);
void readCurrencyFieldModel( StyleBag * all_styles )
throw (Exception);
void readDateFieldModel( StyleBag * all_styles )
throw (Exception);
void readFileControlModel( StyleBag * all_styles )
throw (Exception);
void readFixedTextModel( StyleBag * all_styles )
throw (Exception);
void readGroupBoxModel( StyleBag * all_styles )
throw (Exception);
void readImageControlModel( StyleBag * all_styles )
throw (Exception);
void readListBoxModel( StyleBag * all_styles )
throw (Exception);
void readNumericFieldModel( StyleBag * all_styles )
throw (Exception);
void readPatternFieldModel( StyleBag * all_styles )
throw (Exception);
void readTimeFieldModel( StyleBag * all_styles )
throw (Exception);
void readContainerModel( StyleBag * all_styles )
throw (Exception);
// XAttributeList
virtual sal_Int16 SAL_CALL getLength()
throw (RuntimeException);
virtual OUString SAL_CALL getNameByIndex( sal_Int16 nPos )
throw (RuntimeException);
virtual OUString SAL_CALL getTypeByIndex( sal_Int16 nPos )
throw (RuntimeException);
virtual OUString SAL_CALL getTypeByName( OUString const & rName )
throw (RuntimeException);
virtual OUString SAL_CALL getValueByIndex( sal_Int16 nPos )
throw (RuntimeException);
virtual OUString SAL_CALL getValueByName( OUString const & rName )
throw (RuntimeException);
};
//__________________________________________________________________________________________________
inline void ElementDescriptor::addAttr( OUString const & rAttrName, OUString const & rValue )
{
_attrNames.push_back( rAttrName );
_attrValues.push_back( rValue );
}
//__________________________________________________________________________________________________
inline void ElementDescriptor::addBoolAttr( OUString const & rAttrName, sal_Bool bValue )
{
addAttr( rAttrName,
(bValue
? OUString( RTL_CONSTASCII_USTRINGPARAM("true") )
: OUString( RTL_CONSTASCII_USTRINGPARAM("false") )) );
}
//##################################################################################################
};
This diff is collapsed.
#*************************************************************************
#
# $RCSfile: makefile.mk,v $
#
# $Revision: 1.1 $
#
# last change: $Author: dbo $ $Date: 2001-02-16 14:14:48 $
#
# The Contents of this file are made available subject to the terms of
# either of the following licenses
#
# - GNU Lesser General Public License Version 2.1
# - Sun Industry Standards Source License Version 1.1
#
# Sun Microsystems Inc., October, 2000
#
# GNU Lesser General Public License Version 2.1
# =============================================
# Copyright 2000 by Sun Microsystems, Inc.
# 901 San Antonio Road, Palo Alto, CA 94303, USA
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License version 2.1, as published by the Free Software Foundation.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
# MA 02111-1307 USA
#
#
# Sun Industry Standards Source License Version 1.1
# =================================================
# The contents of this file are subject to the Sun Industry Standards
# Source License Version 1.1 (the "License"); You may not use this file
# except in compliance with the License. You may obtain a copy of the
# License at http://www.openoffice.org/license.html.
#
# Software provided under this License is provided on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
# WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
# MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
# See the License for the specific provisions governing your rights and
# obligations concerning the Software.
#
# The Initial Developer of the Original Code is: Sun Microsystems, Inc.
#
# Copyright: 2000 by Sun Microsystems, Inc.
#
# All Rights Reserved.
#
# Contributor(s): _______________________________________
#
#
#
#*************************************************************************
PRJ=..$/..
PRJNAME=xmlscript
TARGET=xmldlg_imexp
NO_BSYMBOLIC=TRUE
ENABLE_EXCEPTIONS=TRUE
# --- Settings -----------------------------------------------------
.INCLUDE : svpre.mk
.INCLUDE : settings.mk
.INCLUDE : sv.mk
#-----------------------------------------------------------
SLOFILES = \
$(SLO)$/xmldlg_import.obj \
$(SLO)$/xmldlg_impmodels.obj \
$(SLO)$/xmldlg_export.obj \
$(SLO)$/xmldlg_expmodels.obj
# --- Targets ------------------------------------------------------
.INCLUDE : $(PRJ)$/util$/target.pmk
.INCLUDE : target.mk
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
<window xmlns="http://openoffice.org/2000/dialog"
xmlns:dlg="http://openoffice.org/2000/dialog"
label="Test-Dialog" height="400" width="400">
<dlg:styles>
<dlg:style style-id="bla" background-color="0xffffff" dlg:text-color="255"/>
<dlg:style style-id="bla2" background-color="0xff00ff" dlg:text-color="255193873"/>
<dlg:style style-id="bla3" background-color="0" dlg:text-color="0xffffff" font-name="Arial" font-height="24"/>
</dlg:styles>
<dlg:bulletinboard xmlns:ns="http://www.fake">
<button dlg:id="button1" ns:value="hallo" dlg:left="50" ns:top="50" width="50" height="50"
style-id="bla3"
xmlns:ns="http://openoffice.org/2000/dialog"/>
<button dlg:id="button3" ns:value="hallo2" dlg:left="250" ns:top="50" width="50" height="50"
style-id="bla"
xmlns:ns="http://openoffice.org/2000/dialog"/>
<checkbox id="check1" value="check one" checked="true" left="50" top="150" width="50" height="50"/>
<menulist id="list1" multiselection="true" left="150" top="150" width="50" height="50">
<menupopup>
<menuitem value="item1"/>
<menuitem value="item2" selected="true"/>
<menuitem value="item3" selected="true"/>
</menupopup>
</menulist>
<combobox id="combo1" value="combotext" left="50" top="250" width="50" height="50" spin-button="true">
<menupopup>
<menuitem value="Citem1"/>
<menuitem value="Citem2" selected="true"/>
</menupopup>
</combobox>
</dlg:bulletinboard>
</window>
This diff is collapsed.
This diff is collapsed.
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