summaryrefslogtreecommitdiff
path: root/svx/inc
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2000-09-18 16:07:07 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2000-09-18 16:07:07 +0000
commitfd069bee7e57ad529c3c0974559fd2d84ec3151a (patch)
treeef2eddeefb786feaf966d6a1c0c291872c0ae420 /svx/inc
parent04c1c754ab9d0ad07f2c5362d46597d13efe75c2 (diff)
initial import
Diffstat (limited to 'svx/inc')
-rw-r--r--svx/inc/anchorid.hxx77
-rw-r--r--svx/inc/bolnitem.hxx117
-rw-r--r--svx/inc/bulitem.hxx204
-rw-r--r--svx/inc/chrtitem.hxx451
-rw-r--r--svx/inc/connctrl.hxx109
-rw-r--r--svx/inc/connect.hrc80
-rw-r--r--svx/inc/dbexch.hrc91
-rw-r--r--svx/inc/dgdefs_.hxx375
-rw-r--r--svx/inc/dialdll.hxx89
-rw-r--r--svx/inc/dlgutil.hxx173
-rw-r--r--svx/inc/dragmt3d.hxx203
-rw-r--r--svx/inc/drawitem.hxx270
-rw-r--r--svx/inc/drawuiks.hxx107
-rw-r--r--svx/inc/editstat.hxx174
-rw-r--r--svx/inc/editund2.hxx111
-rw-r--r--svx/inc/edtspell.hxx231
-rw-r--r--svx/inc/eerdll.hxx96
-rw-r--r--svx/inc/float3d.hrc198
-rw-r--r--svx/inc/flstitem.hxx112
-rw-r--r--svx/inc/fmgridif.hxx532
-rw-r--r--svx/inc/fmhelp.hrc322
-rw-r--r--svx/inc/fmobjfac.hxx86
-rw-r--r--svx/inc/fontitem.hxx157
-rw-r--r--svx/inc/fontlb.hxx122
-rw-r--r--svx/inc/fwdtitem.hxx147
-rw-r--r--svx/inc/galbrws.hxx144
-rw-r--r--svx/inc/gallery.hxx190
-rw-r--r--svx/inc/globl3d.hxx97
-rw-r--r--svx/inc/globlac.hrc245
-rw-r--r--svx/inc/grafctrl.hxx185
-rw-r--r--svx/inc/helpid.hrc461
-rw-r--r--svx/inc/hlnkitem.hxx150
-rw-r--r--svx/inc/htmlmode.hxx106
-rw-r--r--svx/inc/hyperdlg.hxx156
-rw-r--r--svx/inc/imapdlg.hxx239
-rw-r--r--svx/inc/impgrf.hxx179
-rw-r--r--svx/inc/insctrl.hxx97
-rw-r--r--svx/inc/layctrl.hxx113
-rw-r--r--svx/inc/lightdlg.hxx183
-rw-r--r--svx/inc/linectrl.hxx201
-rw-r--r--svx/inc/linkmgr.hxx135
-rw-r--r--svx/inc/measctrl.hxx104
-rw-r--r--svx/inc/modctrl.hxx95
-rw-r--r--svx/inc/msoleexp.hxx89
-rw-r--r--svx/inc/nlbkitem.hxx108
-rw-r--r--svx/inc/numvset.hxx170
-rw-r--r--svx/inc/objfac3d.hxx90
-rw-r--r--svx/inc/opaqitem.hxx123
-rw-r--r--svx/inc/optgenrl.hxx169
-rw-r--r--svx/inc/optgrid.hxx208
-rw-r--r--svx/inc/optitems.hxx168
-rw-r--r--svx/inc/passwd.hxx127
-rw-r--r--svx/inc/pfiledlg.hxx89
-rw-r--r--svx/inc/postattr.hxx168
-rw-r--r--svx/inc/prntitem.hxx117
-rw-r--r--svx/inc/protitem.hxx147
-rw-r--r--svx/inc/prtqry.hxx75
-rw-r--r--svx/inc/pszctrl.hxx101
-rw-r--r--svx/inc/relfld.hxx105
-rw-r--r--svx/inc/rotmodit.hxx104
-rw-r--r--svx/inc/rulritem.hxx306
-rw-r--r--svx/inc/selctrl.hxx96
-rw-r--r--svx/inc/sjctrl.hxx682
-rw-r--r--svx/inc/srchdlg.hxx340
-rw-r--r--svx/inc/srchitem.hxx68
-rw-r--r--svx/inc/svdglob.hxx108
-rw-r--r--svx/inc/svdibrow.hxx177
-rw-r--r--svx/inc/svditer.hxx124
-rw-r--r--svx/inc/svdpomv.hxx95
-rw-r--r--svx/inc/svdshort.hxx131
-rw-r--r--svx/inc/svdstr.hrc779
-rw-r--r--svx/inc/svdtouch.hxx98
-rw-r--r--svx/inc/svdviter.hxx150
-rw-r--r--svx/inc/svimbase.hxx556
-rw-r--r--svx/inc/svxempty.hxx81
-rw-r--r--svx/inc/svxerr.hxx130
-rw-r--r--svx/inc/svxmsbas.hxx128
-rw-r--r--svx/inc/svxrtf.hxx514
-rw-r--r--svx/inc/tbxalign.hxx80
-rw-r--r--svx/inc/tbxctl.hxx96
-rw-r--r--svx/inc/tbxdraw.hxx112
-rw-r--r--svx/inc/textconv.hxx160
-rw-r--r--svx/inc/txtrange.hxx148
-rw-r--r--svx/inc/uiks.hxx123
-rw-r--r--svx/inc/unoapi.hxx91
-rw-r--r--svx/inc/unofdesc.hxx97
-rw-r--r--svx/inc/unofill.hxx79
-rw-r--r--svx/inc/unolingu.hxx297
-rw-r--r--svx/inc/unomlstr.hxx93
-rw-r--r--svx/inc/unonrule.hxx182
-rw-r--r--svx/inc/unoshcol.hxx117
-rw-r--r--svx/inc/xattr.hxx101
-rw-r--r--svx/inc/xexch.hxx110
-rw-r--r--svx/inc/xlinjoit.hxx97
-rw-r--r--svx/inc/xoutbmp.hxx136
-rw-r--r--svx/inc/xpolyimp.hxx141
-rw-r--r--svx/inc/zoomctrl.hxx94
97 files changed, 16789 insertions, 0 deletions
diff --git a/svx/inc/anchorid.hxx b/svx/inc/anchorid.hxx
new file mode 100644
index 000000000000..4279af35877d
--- /dev/null
+++ b/svx/inc/anchorid.hxx
@@ -0,0 +1,77 @@
+/*************************************************************************
+ *
+ * $RCSfile: anchorid.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:00:54 $
+ *
+ * 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 _SVX_ANCHORID_HXX
+#define _SVX_ANCHORID_HXX
+
+
+enum SvxAnchorIds
+{
+ SVX_OBJ_AT_CNTNT = 0x01, //Absatzgebundener Rahmen
+ SVX_OBJ_IN_CNTNT = 0x02, //Zeichengebundener Rahmen
+ SVX_OBJ_PAGE = 0x04, //Seitengebundener Rahmen
+ SVX_OBJ_AT_FLY = 0x08 //Rahmengebundener Rahmen
+// SVX_OBJ_AUTO_CNTNT = 0x10 //Automatisch positionierter, absatzgebundener Rahmen
+};
+
+
+
+#endif
+
diff --git a/svx/inc/bolnitem.hxx b/svx/inc/bolnitem.hxx
new file mode 100644
index 000000000000..80f59da41bda
--- /dev/null
+++ b/svx/inc/bolnitem.hxx
@@ -0,0 +1,117 @@
+/*************************************************************************
+ *
+ * $RCSfile: bolnitem.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:00:54 $
+ *
+ * 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 _SVX_BOLNITEM_HXX
+#define _SVX_BOLNITEM_HXX
+
+// include ---------------------------------------------------------------
+
+
+
+#ifndef _SFXPOOLITEM_HXX //autogen
+#include <svtools/poolitem.hxx>
+#endif
+
+
+
+// class SvxLineItem -----------------------------------------------------
+
+
+/*
+[Beschreibung]
+Dieses Item transportiert eine SvxBorderLine.
+*/
+
+class SvxBorderLine;
+
+class SvxLineItem : public SfxPoolItem
+{
+public:
+ TYPEINFO();
+
+ SvxLineItem( const USHORT nId = ITEMID_LINE );
+ SvxLineItem( const SvxLineItem& rCpy );
+ ~SvxLineItem();
+ SvxLineItem &operator=( const SvxLineItem& rLine );
+
+ virtual int operator==( const SfxPoolItem& ) const;
+ virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
+ SfxMapUnit eCoreMetric,
+ SfxMapUnit ePresMetric,
+ String &rText, const International * = 0 ) const;
+
+ virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
+ virtual SfxPoolItem* Create(SvStream &, USHORT) const;
+ virtual SvStream& Store(SvStream &, USHORT nItemVersion ) const;
+ virtual int ScaleMetrics( long nMult, long nDiv );
+ virtual int HasMetrics() const;
+
+ const SvxBorderLine* GetLine () const { return pLine; }
+ void SetLine ( const SvxBorderLine *pNew );
+
+private:
+ SvxBorderLine* pLine;
+};
+
+
+
+
+#endif
+
diff --git a/svx/inc/bulitem.hxx b/svx/inc/bulitem.hxx
new file mode 100644
index 000000000000..092bdafac68e
--- /dev/null
+++ b/svx/inc/bulitem.hxx
@@ -0,0 +1,204 @@
+/*************************************************************************
+ *
+ * $RCSfile: bulitem.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:00:54 $
+ *
+ * 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 _SVX_BULITEM_HXX
+#define _SVX_BULITEM_HXX
+
+// include ---------------------------------------------------------------
+
+
+// define ----------------------------------------------------------------
+
+// Styles
+#define BS_ABC_BIG 0
+#define BS_ABC_SMALL 1
+#define BS_ROMAN_BIG 2
+#define BS_ROMAN_SMALL 3
+#define BS_123 4
+#define BS_NONE 5
+#define BS_BULLET 6
+#define BS_BMP 128
+
+// Justification
+#define BJ_HLEFT 0x01
+#define BJ_HRIGHT 0x02
+#define BJ_HCENTER 0x04
+#define BJ_VTOP 0x08
+#define BJ_VBOTTOM 0x10
+#define BJ_VCENTER 0x20
+
+// Valid-Bits
+// Erstmal nur die Werte, die vom Dialog geaendert werden...
+#define VALID_FONTCOLOR 0x0001
+#define VALID_FONTNAME 0x0002
+#define VALID_SYMBOL 0x0004
+#define VALID_BITMAP 0x0008
+#define VALID_SCALE 0x0010
+#define VALID_START 0x0020
+#define VALID_STYLE 0x0040
+#define VALID_PREVTEXT 0x0080
+#define VALID_FOLLOWTEXT 0x0100
+
+#ifndef _SFXPOOLITEM_HXX //autogen
+#include <svtools/poolitem.hxx>
+#endif
+
+#ifndef _VCL_FONT_HXX //autogen
+#include <vcl/font.hxx>
+#endif
+
+#ifndef _GRFMGR_HXX //autogen
+#include <goodies/grfmgr.hxx>
+#endif
+
+
+
+// class SvxBulletItem ---------------------------------------------------
+
+class SvxBulletItem : public SfxPoolItem
+{
+ Font aFont;
+ GraphicObject aGraphicObject;
+ String aPrevText;
+ String aFollowText;
+ USHORT nStart;
+ USHORT nStyle;
+ long nWidth;
+ USHORT nScale;
+ sal_Unicode cSymbol;
+ BYTE nJustify;
+
+ USHORT nValidMask; // Nur temporaer fuer GetAttribs/SetAttribs, wegen des grossen Bullets
+
+#ifdef _SVX_BULITEM_CXX
+ void SetDefaultFont_Impl();
+ void SetDefaults_Impl();
+#endif
+
+public:
+ TYPEINFO();
+
+ SvxBulletItem( USHORT nWhich = 0 );
+ SvxBulletItem( BYTE nStyle, const Font& rFont, USHORT nStart = 0,
+ USHORT nWhich = 0 );
+ SvxBulletItem( const Font& rFont, sal_Unicode cSymbol, USHORT nWhich=0 );
+ SvxBulletItem( const Bitmap&, USHORT nWhich = 0 );
+ SvxBulletItem( const GraphicObject&, USHORT nWhich = 0 );
+ SvxBulletItem( SvStream& rStrm, USHORT nWhich = 0 );
+ SvxBulletItem( const SvxBulletItem& );
+ ~SvxBulletItem() {}
+
+ virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
+ virtual SfxPoolItem* Create( SvStream&, USHORT nVersion ) const;
+ virtual SvStream& Store( SvStream & , USHORT nItemVersion ) const;
+
+ String GetFullText() const;
+ sal_Unicode GetSymbol() const { return cSymbol; }
+ String GetPrevText() const { return aPrevText; }
+ String GetFollowText() const { return aFollowText; }
+
+ USHORT GetStart() const { return nStart; }
+ long GetWidth() const { return nWidth; }
+ USHORT GetStyle() const { return nStyle; }
+ BYTE GetJustification() const { return nJustify; }
+ Font GetFont() const { return aFont; }
+ USHORT GetScale() const { return nScale; }
+ Bitmap GetBitmap() const { return aGraphicObject.GetGraphic().GetBitmap(); }
+ const GraphicObject& GetGraphicObject() const { return aGraphicObject; }
+
+ void SetSymbol( sal_Unicode c) { cSymbol = c; }
+ void SetPrevText( const String& rStr) { aPrevText = rStr;}
+ void SetFollowText(const String& rStr) { aFollowText=rStr;}
+
+ void SetStart( USHORT nNew ) { nStart = nNew; }
+ void SetWidth( long nNew ) { nWidth = nNew; }
+ void SetStyle( USHORT nNew ) { nStyle = nNew; }
+ void SetJustification( BYTE nNew ) { nJustify = nNew; }
+ void SetFont( const Font& rNew) { aFont = rNew; }
+ void SetScale( USHORT nNew ) { nScale = nNew; }
+ void SetBitmap( const Bitmap& rBmp ) { aGraphicObject.SetGraphic( rBmp ); }
+ void SetGraphicObject( const GraphicObject& rGraphicObject ) { aGraphicObject = rGraphicObject; }
+
+ virtual USHORT GetVersion(USHORT nFileVersion) const;
+ virtual int operator==( const SfxPoolItem& ) const;
+ virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
+ SfxMapUnit eCoreMetric,
+ SfxMapUnit ePresMetric,
+ String &rText, const International * = 0 ) const;
+
+ static void StoreFont( SvStream&, const Font& );
+ static Font CreateFont( SvStream&, USHORT nVer );
+
+ USHORT& GetValidMask() { return nValidMask; }
+ USHORT GetValidMask() const { return nValidMask; }
+ USHORT IsValid( USHORT nFlag ) const { return nValidMask & nFlag; }
+ void SetValid( USHORT nFlag, BOOL bValid )
+ {
+ if ( bValid )
+ nValidMask |= nFlag;
+ else
+ nValidMask &= ~nFlag;
+ }
+ void CopyValidProperties( const SvxBulletItem& rCopyFrom );
+};
+
+
+#endif
+
diff --git a/svx/inc/chrtitem.hxx b/svx/inc/chrtitem.hxx
new file mode 100644
index 000000000000..38b37dd4f402
--- /dev/null
+++ b/svx/inc/chrtitem.hxx
@@ -0,0 +1,451 @@
+/*************************************************************************
+ *
+ * $RCSfile: chrtitem.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:00:55 $
+ *
+ * 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 _SVX_CHRTITEM_HXX
+#define _SVX_CHRTITEM_HXX
+
+// include ---------------------------------------------------------------
+
+#ifndef _SFXENUMITEM_HXX //autogen
+#include <svtools/eitem.hxx>
+#endif
+
+//------------------------------------------------------------------------
+
+enum SvxChartStyle
+{
+ CHSTYLE_2D_LINE,
+ CHSTYLE_2D_STACKEDLINE,
+ CHSTYLE_2D_PERCENTLINE,
+ CHSTYLE_2D_COLUMN,
+ CHSTYLE_2D_STACKEDCOLUMN,
+ CHSTYLE_2D_PERCENTCOLUMN,
+ CHSTYLE_2D_BAR,
+ CHSTYLE_2D_STACKEDBAR,
+ CHSTYLE_2D_PERCENTBAR,
+ CHSTYLE_2D_AREA,
+ CHSTYLE_2D_STACKEDAREA,
+ CHSTYLE_2D_PERCENTAREA,
+ CHSTYLE_2D_PIE,
+ CHSTYLE_3D_STRIPE,
+ CHSTYLE_3D_COLUMN,
+ CHSTYLE_3D_FLATCOLUMN,
+ CHSTYLE_3D_STACKEDFLATCOLUMN,
+ CHSTYLE_3D_PERCENTFLATCOLUMN,
+ CHSTYLE_3D_AREA,
+ CHSTYLE_3D_STACKEDAREA,
+ CHSTYLE_3D_PERCENTAREA,
+ CHSTYLE_3D_SURFACE,
+ CHSTYLE_3D_PIE,
+ CHSTYLE_2D_XY,
+ CHSTYLE_3D_XYZ,
+ CHSTYLE_2D_LINESYMBOLS,
+ CHSTYLE_2D_STACKEDLINESYM,
+ CHSTYLE_2D_PERCENTLINESYM,
+ CHSTYLE_2D_XYSYMBOLS,
+ CHSTYLE_3D_XYZSYMBOLS,
+ CHSTYLE_2D_DONUT1,
+ CHSTYLE_2D_DONUT2,
+ CHSTYLE_3D_BAR,
+ CHSTYLE_3D_FLATBAR,
+ CHSTYLE_3D_STACKEDFLATBAR,
+ CHSTYLE_3D_PERCENTFLATBAR,
+ CHSTYLE_2D_PIE_SEGOF1,
+ CHSTYLE_2D_PIE_SEGOFALL,
+ CHSTYLE_2D_NET,
+ CHSTYLE_2D_NET_SYMBOLS,
+ CHSTYLE_2D_NET_STACK,
+ CHSTYLE_2D_NET_SYMBOLS_STACK,
+ CHSTYLE_2D_NET_PERCENT,
+ CHSTYLE_2D_NET_SYMBOLS_PERCENT,
+ CHSTYLE_2D_CUBIC_SPLINE,
+ CHSTYLE_2D_CUBIC_SPLINE_SYMBOL,
+ CHSTYLE_2D_B_SPLINE,
+ CHSTYLE_2D_B_SPLINE_SYMBOL,
+ CHSTYLE_2D_CUBIC_SPLINE_XY,
+ CHSTYLE_2D_CUBIC_SPLINE_SYMBOL_XY,
+ CHSTYLE_2D_B_SPLINE_XY,
+ CHSTYLE_2D_B_SPLINE_SYMBOL_XY,
+ CHSTYLE_2D_XY_LINE,
+ CHSTYLE_2D_LINE_COLUMN,
+ CHSTYLE_2D_LINE_STACKEDCOLUMN,
+ CHSTYLE_2D_STOCK_1,
+ CHSTYLE_2D_STOCK_2,
+ CHSTYLE_2D_STOCK_3,
+ CHSTYLE_2D_STOCK_4
+};
+
+#define CHSTYLE_COUNT (CHSTYLE_2D_LINE_COLUMN + 1)
+
+enum SvxChartDataDescr
+{
+ CHDESCR_NONE,
+ CHDESCR_VALUE,
+ CHDESCR_PERCENT,
+ CHDESCR_TEXT,
+ CHDESCR_TEXTANDPERCENT,
+ CHDESCR_NUMFORMAT_PERCENT,
+ CHDESCR_NUMFORMAT_VALUE,
+ CHDESCR_TEXTANDVALUE
+};
+
+#define CHDESCR_COUNT (CHDESCR_TEXTANDPERCENT + 1)
+
+enum SvxChartLegendPos
+{
+ CHLEGEND_NONE,
+ CHLEGEND_LEFT,
+ CHLEGEND_TOP,
+ CHLEGEND_RIGHT,
+ CHLEGEND_BOTTOM,
+ CHLEGEND_NONE_TOP,
+ CHLEGEND_NONE_LEFT,
+ CHLEGEND_NONE_RIGHT,
+ CHLEGEND_NONE_BOTTOM
+};
+
+#define CHLEGEND_COUNT (CHLEGEND_BOTTOM + 1)
+
+enum SvxChartTextOrder
+{
+ CHTXTORDER_SIDEBYSIDE,
+ CHTXTORDER_UPDOWN,
+ CHTXTORDER_DOWNUP,
+ CHTXTORDER_AUTO
+};
+
+#define CHTXTORDER_COUNT (CHTXTORDER_AUTO + 1)
+
+enum SvxChartTextOrient
+{
+ CHTXTORIENT_AUTOMATIC,
+ CHTXTORIENT_STANDARD,
+ CHTXTORIENT_BOTTOMTOP,
+ CHTXTORIENT_STACKED,
+ CHTXTORIENT_TOPBOTTOM
+};
+
+#define CHTXTORIENT_COUNT (CHTXTORIENT_TOPBOTTOM + 1)
+
+enum SvxChartKindError
+{
+ CHERROR_NONE,
+ CHERROR_VARIANT,
+ CHERROR_SIGMA,
+ CHERROR_PERCENT,
+ CHERROR_BIGERROR,
+ CHERROR_CONST
+};
+
+#define CHERROR_COUNT (CHERROR_CONST + 1)
+
+enum SvxChartIndicate
+{
+ CHINDICATE_NONE,
+ CHINDICATE_BOTH,
+ CHINDICATE_UP,
+ CHINDICATE_DOWN
+};
+
+#define CHINDICATE_COUNT (CHINDICATE_DOWN + 1)
+
+enum SvxChartRegress
+{
+ CHREGRESS_NONE,
+ CHREGRESS_LINEAR,
+ CHREGRESS_LOG,
+ CHREGRESS_EXP,
+ CHREGRESS_POWER
+};
+
+#define CHREGRESS_COUNT (CHREGRESS_POWER + 1)
+
+//------------------------------------------------------------------
+
+#ifdef ITEMID_CHARTSTYLE
+
+class SvxChartStyleItem : public SfxEnumItem
+{
+public:
+ TYPEINFO();
+ SvxChartStyleItem(SvxChartStyle eStyle = CHSTYLE_2D_LINE,
+ USHORT nId = ITEMID_CHARTSTYLE);
+ SvxChartStyleItem(SvStream& rIn, USHORT nId = ITEMID_CHARTSTYLE);
+
+ virtual SfxPoolItem* Clone(SfxItemPool* pPool = 0) const;
+ virtual SfxPoolItem* Create(SvStream& rIn, USHORT nVer) const;
+
+ USHORT GetValueCount() const { return CHSTYLE_COUNT; }
+ SvxChartStyle GetValue() const
+ { return (SvxChartStyle)SfxEnumItem::GetValue(); }
+};
+
+#endif
+
+//------------------------------------------------------------------
+
+#ifdef ITEMID_CHARTREGRESS
+
+class SvxChartRegressItem : public SfxEnumItem
+{
+public:
+ TYPEINFO();
+ SvxChartRegressItem(SvxChartRegress eRegress = CHREGRESS_LINEAR,
+ USHORT nId = ITEMID_CHARTREGRESS);
+ SvxChartRegressItem(SvStream& rIn, USHORT nId = ITEMID_CHARTREGRESS);
+
+ virtual SfxPoolItem* Clone(SfxItemPool* pPool = 0) const;
+ virtual SfxPoolItem* Create(SvStream& rIn, USHORT nVer) const;
+
+ USHORT GetValueCount() const { return CHREGRESS_COUNT; }
+ SvxChartRegress GetValue() const
+ { return (SvxChartRegress)SfxEnumItem::GetValue(); }
+ USHORT GetVersion (USHORT nFileFormatVersion) const;
+};
+
+#endif
+
+//------------------------------------------------------------------
+
+#ifdef ITEMID_CHARTDATADESCR
+
+class SvxChartDataDescrItem : public SfxEnumItem
+{
+public:
+ TYPEINFO();
+ SvxChartDataDescrItem(SvxChartDataDescr eDataDescr = CHDESCR_NONE,
+ USHORT nId = ITEMID_CHARTDATADESCR);
+ SvxChartDataDescrItem(SvStream& rIn,
+ USHORT nId = ITEMID_CHARTDATADESCR);
+
+ virtual SfxPoolItem* Clone(SfxItemPool* pPool = 0) const;
+ virtual SfxPoolItem* Create(SvStream& rIn, USHORT nVer) const;
+
+ USHORT GetValueCount() const { return CHDESCR_COUNT; }
+ SvxChartDataDescr GetValue() const
+ { return (SvxChartDataDescr)SfxEnumItem::GetValue(); }
+};
+
+#endif
+
+//------------------------------------------------------------------
+
+#ifdef ITEMID_CHARTLEGENDPOS
+
+class SvxChartLegendPosItem : public SfxEnumItem
+{
+public:
+ TYPEINFO();
+ SvxChartLegendPosItem(SvxChartLegendPos eLegendPos = CHLEGEND_NONE,
+ USHORT nId = ITEMID_CHARTLEGENDPOS);
+ SvxChartLegendPosItem(SvStream& rIn,
+ USHORT nId = ITEMID_CHARTLEGENDPOS);
+
+ virtual SfxPoolItem* Clone(SfxItemPool* pPool = 0) const;
+ virtual SfxPoolItem* Create(SvStream& rIn, USHORT nVer) const;
+
+ USHORT GetValueCount() const { return CHLEGEND_COUNT; }
+ SvxChartLegendPos GetValue() const
+ { return (SvxChartLegendPos)SfxEnumItem::GetValue(); }
+};
+
+#endif
+
+//------------------------------------------------------------------
+
+#ifdef ITEMID_CHARTTEXTORDER
+
+class SvxChartTextOrderItem : public SfxEnumItem
+{
+public:
+ TYPEINFO();
+ SvxChartTextOrderItem(SvxChartTextOrder eOrder = CHTXTORDER_SIDEBYSIDE,
+ USHORT nId = ITEMID_CHARTTEXTORDER);
+ SvxChartTextOrderItem(SvStream& rIn,
+ USHORT nId = ITEMID_CHARTTEXTORDER);
+
+ virtual SfxPoolItem* Clone(SfxItemPool* pPool = 0) const;
+ virtual SfxPoolItem* Create(SvStream& rIn, USHORT nVer) const;
+
+ USHORT GetValueCount() const { return CHTXTORDER_COUNT; }
+ SvxChartTextOrder GetValue() const
+ { return (SvxChartTextOrder)SfxEnumItem::GetValue(); }
+};
+
+#endif
+
+//------------------------------------------------------------------
+
+#ifdef ITEMID_CHARTTEXTORIENT
+
+class SvxChartTextOrientItem : public SfxEnumItem
+{
+public:
+ TYPEINFO();
+ SvxChartTextOrientItem(SvxChartTextOrient eOrient = CHTXTORIENT_STANDARD,
+ USHORT nId = ITEMID_CHARTTEXTORIENT);
+ SvxChartTextOrientItem(SvStream& rIn,
+ USHORT nId = ITEMID_CHARTTEXTORIENT);
+
+ virtual SfxPoolItem* Clone(SfxItemPool* pPool = 0) const;
+ virtual SfxPoolItem* Create(SvStream& rIn, USHORT nVer) const;
+
+ USHORT GetValueCount() const { return CHTXTORDER_COUNT; }
+ SvxChartTextOrient GetValue() const
+ { return (SvxChartTextOrient)SfxEnumItem::GetValue(); }
+};
+
+#endif
+
+//------------------------------------------------------------------
+
+#ifdef ITEMID_CHARTKINDERROR
+
+class SvxChartKindErrorItem : public SfxEnumItem
+{
+public:
+ TYPEINFO();
+ SvxChartKindErrorItem(SvxChartKindError eOrient = CHERROR_NONE,
+ USHORT nId = ITEMID_CHARTKINDERROR);
+ SvxChartKindErrorItem(SvStream& rIn,
+ USHORT nId = ITEMID_CHARTKINDERROR);
+
+ virtual SfxPoolItem* Clone(SfxItemPool* pPool = 0) const;
+ virtual SfxPoolItem* Create(SvStream& rIn, USHORT nVer) const;
+
+ USHORT GetValueCount() const { return CHERROR_COUNT; }
+ SvxChartKindError GetValue() const
+ { return (SvxChartKindError)SfxEnumItem::GetValue(); }
+
+ USHORT GetVersion (USHORT nFileFormatVersion) const;
+};
+
+#endif
+
+//------------------------------------------------------------------
+
+#ifdef ITEMID_CHARTINDICATE
+
+class SvxChartIndicateItem : public SfxEnumItem
+{
+public:
+ TYPEINFO();
+ SvxChartIndicateItem(SvxChartIndicate eOrient = CHINDICATE_NONE,
+ USHORT nId = ITEMID_CHARTINDICATE);
+ SvxChartIndicateItem(SvStream& rIn,
+ USHORT nId = ITEMID_CHARTINDICATE);
+
+ virtual SfxPoolItem* Clone(SfxItemPool* pPool = 0) const;
+ virtual SfxPoolItem* Create(SvStream& rIn, USHORT nVer) const;
+
+ USHORT GetValueCount() const { return CHINDICATE_COUNT; }
+ SvxChartIndicate GetValue() const
+ { return (SvxChartIndicate)SfxEnumItem::GetValue(); }
+
+ USHORT GetVersion (USHORT nFileFormatVersion) const;
+};
+
+#endif
+
+//------------------------------------------------------------------
+
+#ifdef ITEMID_DOUBLE
+
+class SvxDoubleItem : public SfxPoolItem
+{
+ double fVal;
+
+public:
+ TYPEINFO();
+ SvxDoubleItem(double fValue = 0.0, USHORT nId = ITEMID_DOUBLE);
+ SvxDoubleItem(SvStream& rIn, USHORT nId = ITEMID_DOUBLE);
+ SvxDoubleItem(const SvxDoubleItem& rItem);
+
+
+ virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
+ virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
+
+
+
+ virtual String GetValueText() const;
+ virtual SfxItemPresentation GetPresentation(SfxItemPresentation ePres,
+ SfxMapUnit eCoreMetric,
+ SfxMapUnit ePresMetric,
+ String &rText, const International * = 0) const;
+
+ virtual int operator == (const SfxPoolItem&) const;
+ virtual SfxPoolItem* Clone(SfxItemPool *pPool = NULL) const;
+ virtual SfxPoolItem* Create(SvStream& rIn, USHORT nVersion) const;
+ virtual SvStream& Store(SvStream& rOut, USHORT nItemVersion ) const;
+
+ virtual double GetMin() const;
+ virtual double GetMax() const;
+
+ virtual SfxFieldUnit GetUnit() const;
+
+ double GetValue() const { return fVal; }
+ void SetValue(double fNewVal) { fVal = fNewVal; }
+};
+
+#endif
+
+
+#endif // _SVX_CHRTITEM_HXX
+
diff --git a/svx/inc/connctrl.hxx b/svx/inc/connctrl.hxx
new file mode 100644
index 000000000000..99bdcce21add
--- /dev/null
+++ b/svx/inc/connctrl.hxx
@@ -0,0 +1,109 @@
+/*************************************************************************
+ *
+ * $RCSfile: connctrl.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:00:55 $
+ *
+ * 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 _SVX_CONNCTRL_HXX
+#define _SVX_CONNCTRL_HXX
+
+// include ---------------------------------------------------------------
+
+#ifndef _CTRL_HXX //autogen
+#include <vcl/ctrl.hxx>
+#endif
+
+class SfxItemSet;
+
+class ExtOutputDevice;
+class SdrEdgeObj;
+class SdrView;
+class SdrObjList;
+/*************************************************************************
+|*
+|* SvxXConnectionPreview
+|*
+\************************************************************************/
+class SvxXConnectionPreview : public Control
+{
+ friend class SvxConnectionPage;
+
+private:
+ const SfxItemSet& rAttrs;
+ ExtOutputDevice* pExtOutDev;
+ SdrEdgeObj* pEdgeObj;
+ SdrObjList* pObjList;
+ const SdrView* pView;
+
+public:
+ SvxXConnectionPreview( Window* pParent, const ResId& rResId,
+ const SfxItemSet& rInAttrs );
+ ~SvxXConnectionPreview();
+
+ virtual void Paint( const Rectangle& rRect );
+ virtual void MouseButtonDown( const MouseEvent& rMEvt );
+
+ void SetAttributes( const SfxItemSet& rInAttrs );
+ USHORT GetLineDeltaAnz();
+
+ void Construct();
+ void SetView( const SdrView* pSdrView ) { pView = pSdrView; }
+};
+
+
+#endif // _SVX_CONNCTRL_HXX
+
diff --git a/svx/inc/connect.hrc b/svx/inc/connect.hrc
new file mode 100644
index 000000000000..45e929c545b5
--- /dev/null
+++ b/svx/inc/connect.hrc
@@ -0,0 +1,80 @@
+/*************************************************************************
+ *
+ * $RCSfile: connect.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:00:55 $
+ *
+ * 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): _______________________________________
+ *
+ *
+ ************************************************************************/
+#define GRP_DISTANCE 1
+#define GRP_PREVIEW 3
+#define GRP_DELTA 2
+#define FT_LINE_1 1
+#define FT_LINE_2 2
+#define FT_LINE_3 3
+#define MTR_FLD_LINE_1 1
+#define MTR_FLD_LINE_2 2
+#define MTR_FLD_LINE_3 3
+#define FT_HORZ_1 4
+#define FT_HORZ_2 5
+#define MTR_FLD_HORZ_1 4
+#define MTR_FLD_HORZ_2 5
+#define MTR_FLD_VERT_1 6
+#define MTR_FLD_VERT_2 7
+#define FT_VERT_2 7
+#define FT_VERT_1 6
+#define FT_TYPE 8
+#define LB_TYPE 1
+#define CTL_PREVIEW 1
diff --git a/svx/inc/dbexch.hrc b/svx/inc/dbexch.hrc
new file mode 100644
index 000000000000..7976793f5364
--- /dev/null
+++ b/svx/inc/dbexch.hrc
@@ -0,0 +1,91 @@
+/*************************************************************************
+ *
+ * $RCSfile: dbexch.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:00:55 $
+ *
+ * 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 _SVX_DBEXCH_HRC
+#define _SVX_DBEXCH_HRC
+
+// Format zum Uebertragen von Daten aus dem DatenbankBrowser
+// Format: "Datenbankname";"Tabellen/QueryName"; 1/0(fuer Tabelle/Abfrage); SQL-Statement;Selektionsliste
+// Name der Tabelle kann leer sein
+// Feldtrenner ist "ASCII 11" !!!!
+// Selektionsliste:"" // alle selektiert
+// | "1;2;...n" // Selektierte Saetze, Start bei 1
+#define SBA_DATAEXCHANGE_FORMAT "SBA-DATAFORMAT"
+
+// Feldtrenner ist "ASCII 11" !!!!
+// Format zum Uebertragen von Feldname aus dem DatenbankBrowser
+// "Datenbankname";"Tabellen/QueryName";0(Tabelle) / 1(Abfrage) / 2(SQL) / 3(NATIVE_SQL);"Feldname"
+#define SBA_FIELDEXCHANGE_FORMAT "SBA-FIELDFORMAT"
+
+// Feldtrenner ist "ASCII 11" !!!!
+// Format zum Uebertragen von Feldinhalten aus dem DatenbankBrowser
+// "Datenbankname";"Tabellen/QueryName";1/0(fuer Tabelle/Abfrage);"Feldname";"FeldInhalt"
+#define SBA_FIELDDATAEXCHANGE_FORMAT "SBA-FIELDDATAFORMAT"
+
+// Office-internes Format (entspricht der private-URL )
+// Wird vom Writer und Calc benutzt, wenn Explorer-Contents gedraggt werden
+#define SBA_PRIVATEURL_EXCHANGE_FORMAT "SBA-PRIVATEURLFORMAT"
+
+// SBA-internes Format fuer das erzeugen von Joins in der RelationsShell
+#define SBA_JOIN_EXCHANGE_FORMAT "SBA-JOINFORMAT"
+
+
+#endif // _SVX_DBEXCH_HRC
+
diff --git a/svx/inc/dgdefs_.hxx b/svx/inc/dgdefs_.hxx
new file mode 100644
index 000000000000..be568f9c1246
--- /dev/null
+++ b/svx/inc/dgdefs_.hxx
@@ -0,0 +1,375 @@
+/*************************************************************************
+ *
+ * $RCSfile: dgdefs_.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:00:55 $
+ *
+ * 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): _______________________________________
+ *
+ *
+ ************************************************************************/
+#define optlingu_0a SEG_SEGCLASS(STARTING_SEG000,STARTING_CODE)
+#define insctrl_01 SEG_SEGCLASS(STARTING_SEG000,STARTING_CODE)
+#define insctrl_03 SEG_SEGCLASS(STARTING_SEG000,STARTING_CODE)
+#define insctrl_06 SEG_SEGCLASS(STARTING_SEG000,STARTING_CODE)
+#define zoomctrl_03 SEG_SEGCLASS(STARTING_SEG000,STARTING_CODE)
+#define zoomctrl_05 SEG_SEGCLASS(STARTING_SEG000,STARTING_CODE)
+#define pszctrl_01 SEG_SEGCLASS(STARTING_SEG000,STARTING_CODE)
+#define selctrl_01 SEG_SEGCLASS(STARTING_SEG000,STARTING_CODE)
+#define selctrl_02 SEG_SEGCLASS(STARTING_SEG000,STARTING_CODE)
+#define selctrl_05 SEG_SEGCLASS(STARTING_SEG000,STARTING_CODE)
+#define modctrl_01 SEG_SEGCLASS(STARTING_SEG000,STARTING_CODE)
+#define tbcontrl_02 SEG_SEGCLASS(STARTING_SEG000,STARTING_CODE)
+#define tbcontrl_08 SEG_SEGCLASS(STARTING_SEG000,STARTING_CODE)
+#define tbcontrl_09 SEG_SEGCLASS(STARTING_SEG000,STARTING_CODE)
+#define tbcontrl_0a SEG_SEGCLASS(STARTING_SEG000,STARTING_CODE)
+#define tbcontrl_11 SEG_SEGCLASS(STARTING_SEG000,STARTING_CODE)
+#define tbcontrl_12 SEG_SEGCLASS(STARTING_SEG000,STARTING_CODE)
+#define tbcontrl_13 SEG_SEGCLASS(STARTING_SEG000,STARTING_CODE)
+#define tbcontrl_35 SEG_SEGCLASS(STARTING_SEG000,STARTING_CODE)
+#define tbcontrl_37 SEG_SEGCLASS(STARTING_SEG000,STARTING_CODE)
+#define tbcontrl_38 SEG_SEGCLASS(STARTING_SEG000,STARTING_CODE)
+#define tbcontrl_39 SEG_SEGCLASS(STARTING_SEG000,STARTING_CODE)
+#define tbcontrl_3a SEG_SEGCLASS(STARTING_SEG000,STARTING_CODE)
+#define tbcontrl_3c SEG_SEGCLASS(STARTING_SEG000,STARTING_CODE)
+#define tbcontrl_3d SEG_SEGCLASS(STARTING_SEG000,STARTING_CODE)
+#define tbcontrl_3e SEG_SEGCLASS(STARTING_SEG000,STARTING_CODE)
+#define tbcontrl_3f SEG_SEGCLASS(STARTING_SEG000,STARTING_CODE)
+#define tbcontrl_40 SEG_SEGCLASS(STARTING_SEG000,STARTING_CODE)
+#define tbcontrl_41 SEG_SEGCLASS(STARTING_SEG000,STARTING_CODE)
+#define tbcontrl_42 SEG_SEGCLASS(STARTING_SEG000,STARTING_CODE)
+#define tbcontrl_43 SEG_SEGCLASS(STARTING_SEG000,STARTING_CODE)
+#define tbcontrl_44 SEG_SEGCLASS(STARTING_SEG000,STARTING_CODE)
+#define tbcontrl_45 SEG_SEGCLASS(STARTING_SEG000,STARTING_CODE)
+#define tbcontrl_46 SEG_SEGCLASS(STARTING_SEG000,STARTING_CODE)
+#define tbcontrl_47 SEG_SEGCLASS(STARTING_SEG000,STARTING_CODE)
+#define tbcontrl_48 SEG_SEGCLASS(STARTING_SEG000,STARTING_CODE)
+#define tbcontrl_49 SEG_SEGCLASS(STARTING_SEG000,STARTING_CODE)
+#define tbcontrl_4a SEG_SEGCLASS(STARTING_SEG000,STARTING_CODE)
+#define tbcontrl_4e SEG_SEGCLASS(STARTING_SEG000,STARTING_CODE)
+#define tbcontrl_4f SEG_SEGCLASS(STARTING_SEG000,STARTING_CODE)
+#define tbcontrl_53 SEG_SEGCLASS(STARTING_SEG000,STARTING_CODE)
+#define tbcontrl_54 SEG_SEGCLASS(STARTING_SEG000,STARTING_CODE)
+#define tbcontrl_58 SEG_SEGCLASS(STARTING_SEG000,STARTING_CODE)
+#define tbcontrl_59 SEG_SEGCLASS(STARTING_SEG000,STARTING_CODE)
+#define tbcontrl_5c SEG_SEGCLASS(STARTING_SEG000,STARTING_CODE)
+#define tbcontrl_5f SEG_SEGCLASS(STARTING_SEG000,STARTING_CODE)
+#define tbcontrl_63 SEG_SEGCLASS(STARTING_SEG000,STARTING_CODE)
+#define tbcontrl_64 SEG_SEGCLASS(STARTING_SEG000,STARTING_CODE)
+#define tbcontrl_65 SEG_SEGCLASS(STARTING_SEG000,STARTING_CODE)
+#define tbcontrl_66 SEG_SEGCLASS(STARTING_SEG000,STARTING_CODE)
+#define linectrl_01 SEG_SEGCLASS(STARTING_SEG000,STARTING_CODE)
+#define linectrl_03 SEG_SEGCLASS(STARTING_SEG000,STARTING_CODE)
+#define linectrl_04 SEG_SEGCLASS(STARTING_SEG000,STARTING_CODE)
+#define linectrl_05 SEG_SEGCLASS(STARTING_SEG000,STARTING_CODE)
+#define linectrl_06 SEG_SEGCLASS(STARTING_SEG000,STARTING_CODE)
+#define linectrl_08 SEG_SEGCLASS(STARTING_SEG000,STARTING_CODE)
+#define linectrl_09 SEG_SEGCLASS(STARTING_SEG000,STARTING_CODE)
+#define linectrl_0a SEG_SEGCLASS(STARTING_SEG000,STARTING_CODE)
+#define linectrl_0e SEG_SEGCLASS(STARTING_SEG000,STARTING_CODE)
+#define fillctrl_01 SEG_SEGCLASS(STARTING_SEG000,STARTING_CODE)
+#define fillctrl_03 SEG_SEGCLASS(STARTING_SEG000,STARTING_CODE)
+#define fillctrl_05 SEG_SEGCLASS(STARTING_SEG000,STARTING_CODE)
+#define fillctrl_06 SEG_SEGCLASS(STARTING_SEG000,STARTING_CODE)
+#define fillctrl_08 SEG_SEGCLASS(STARTING_SEG000,STARTING_CODE)
+#define itemwin_01 SEG_SEGCLASS(STARTING_SEG000,STARTING_CODE)
+#define itemwin_08 SEG_SEGCLASS(STARTING_SEG000,STARTING_CODE)
+#define itemwin_10 SEG_SEGCLASS(STARTING_SEG000,STARTING_CODE)
+#define itemwin_12 SEG_SEGCLASS(STARTING_SEG000,STARTING_CODE)
+#define itemwin_19 SEG_SEGCLASS(STARTING_SEG000,STARTING_CODE)
+#define itemwin_1f SEG_SEGCLASS(STARTING_SEG000,STARTING_CODE)
+#define layctrl_09 SEG_SEGCLASS(STARTING_SEG000,STARTING_CODE)
+#define layctrl_0d SEG_SEGCLASS(STARTING_SEG000,STARTING_CODE)
+#define pszctrl_03 SEG_SEGCLASS(STARTWORK_SEG000,STARTWORK_CODE)
+#define tcovmain_01 SEG_SEGCLASS(STARTWORK_SEG000,STARTWORK_CODE)
+#define pszctrl_04 SEG_SEGCLASS(STARTWORK_SEG000,STARTWORK_CODE)
+#define pszctrl_05 SEG_SEGCLASS(STARTWORK_SEG000,STARTWORK_CODE)
+#define tcovidle_01 SEG_SEGCLASS(STARTWORK_SEG000,STARTWORK_CODE)
+#define optgrid_02 SEG_SEGCLASS(STARTWORK_SEG000,STARTWORK_CODE)
+#define optgrid_17 SEG_SEGCLASS(STARTWORK_SEG000,STARTWORK_CODE)
+#define optgrid_16 SEG_SEGCLASS(STARTWORK_SEG000,STARTWORK_CODE)
+#define optgrid_01 SEG_SEGCLASS(STARTWORK_SEG000,STARTWORK_CODE)
+#define optgrid_18 SEG_SEGCLASS(STARTWORK_SEG000,STARTWORK_CODE)
+#define optgrid_15 SEG_SEGCLASS(STARTWORK_SEG000,STARTWORK_CODE)
+#define modctrl_02 SEG_SEGCLASS(STARTWORK_SEG000,STARTWORK_CODE)
+#define modctrl_04 SEG_SEGCLASS(STARTWORK_SEG000,STARTWORK_CODE)
+#define adritem_07 SEG_SEGCLASS(STARTWORK_SEG000,STARTWORK_CODE)
+#define adritem_28 SEG_SEGCLASS(STARTWORK_SEG000,STARTWORK_CODE)
+#define optgrid_12 SEG_SEGCLASS(STARTWORK_SEG000,STARTWORK_CODE)
+#define optpath_01 SEG_SEGCLASS(STARTSLICE_SEG000,STARTSLICE_CODE)
+#define optpath_02 SEG_SEGCLASS(STARTSLICE_SEG000,STARTSLICE_CODE)
+#define optpath_04 SEG_SEGCLASS(STARTSLICE_SEG000,STARTSLICE_CODE)
+#define optitems_01 SEG_SEGCLASS(STARTSLICE_SEG001,STARTSLICE_CODE)
+#define optitems_02 SEG_SEGCLASS(STARTSLICE_SEG001,STARTSLICE_CODE)
+#define optitems_04 SEG_SEGCLASS(STARTSLICE_SEG001,STARTSLICE_CODE)
+#define optgenrl_01 SEG_SEGCLASS(STARTSLICE_SEG001,STARTSLICE_CODE)
+#define optgenrl_02 SEG_SEGCLASS(STARTSLICE_SEG001,STARTSLICE_CODE)
+#define optgenrl_04 SEG_SEGCLASS(STARTSLICE_SEG002,STARTSLICE_CODE)
+#define optgenrl_06 SEG_SEGCLASS(STARTSLICE_SEG002,STARTSLICE_CODE)
+#define optgenrl_08 SEG_SEGCLASS(STARTSLICE_SEG002,STARTSLICE_CODE)
+#define adritem_25 SEG_SEGCLASS(STARTSLICE_SEG002,STARTSLICE_CODE)
+#define optgenrl_0b SEG_SEGCLASS(STARTSLICE_SEG003,STARTSLICE_CODE)
+#define adritem_04 SEG_SEGCLASS(STARTSLICE_SEG003,STARTSLICE_CODE)
+#define opttypes_01 SEG_SEGCLASS(STARTSLICE_SEG003,STARTSLICE_CODE)
+#define optlingu_01 SEG_SEGCLASS(STARTSLICE_SEG003,STARTSLICE_CODE)
+#define optlingu_03 SEG_SEGCLASS(STARTSLICE_SEG003,STARTSLICE_CODE)
+#define optlingu_05 SEG_SEGCLASS(STARTSLICE_SEG004,STARTSLICE_CODE)
+#define optlingu_09 SEG_SEGCLASS(STARTSLICE_SEG004,STARTSLICE_CODE)
+#define optgrid_03 SEG_SEGCLASS(STARTSLICE_SEG005,STARTSLICE_CODE)
+#define optgrid_07 SEG_SEGCLASS(STARTSLICE_SEG005,STARTSLICE_CODE)
+#define optgrid_08 SEG_SEGCLASS(STARTSLICE_SEG005,STARTSLICE_CODE)
+#define optgrid_0a SEG_SEGCLASS(STARTSLICE_SEG006,STARTSLICE_CODE)
+#define linectrl_0c SEG_SEGCLASS(STARTSLICE_SEG006,STARTSLICE_CODE)
+#define itemwin_0a SEG_SEGCLASS(STARTSLICE_SEG006,STARTSLICE_CODE)
+#define linectrl_0d SEG_SEGCLASS(STARTSLICE_SEG006,STARTSLICE_CODE)
+#define fillctrl_04 SEG_SEGCLASS(STARTSLICE_SEG007,STARTSLICE_CODE)
+#define optpath_07 SEG_SEGCLASS(CALLOPT_SEG000,CALLOPT_CODE)
+#define optitems_06 SEG_SEGCLASS(CALLOPT_SEG000,CALLOPT_CODE)
+#define optitems_07 SEG_SEGCLASS(CALLOPT_SEG000,CALLOPT_CODE)
+#define optitems_0b SEG_SEGCLASS(CALLOPT_SEG000,CALLOPT_CODE)
+#define optgenrl_03 SEG_SEGCLASS(CALLOPT_SEG000,CALLOPT_CODE)
+#define optgrid_09 SEG_SEGCLASS(CALLOPT_SEG000,CALLOPT_CODE)
+#define tbcontrl_36 SEG_SEGCLASS(CALLOPT_SEG000,CALLOPT_CODE)
+#define fillctrl_07 SEG_SEGCLASS(CALLOPT_SEG000,CALLOPT_CODE)
+#define optpath_03 SEG_SEGCLASS(SLICES_SEG000,SLICES_CODE)
+#define optlingu_04 SEG_SEGCLASS(SLICES_SEG000,SLICES_CODE)
+#define pszctrl_02 SEG_SEGCLASS(SLICES_SEG001,SLICES_CODE)
+#define tbcontrl_3b SEG_SEGCLASS(SLICES_SEG001,SLICES_CODE)
+#define optgenrl_07 SEG_SEGCLASS(SLICES_SEG001,SLICES_CODE)
+#define optgenrl_0a SEG_SEGCLASS(SLICES_SEG002,SLICES_CODE)
+#define adritem_06 SEG_SEGCLASS(SLICES_SEG002,SLICES_CODE)
+#define adritem_29 SEG_SEGCLASS(SLICES_SEG002,SLICES_CODE)
+#define optgrid_11 SEG_SEGCLASS(SLICES_SEG002,SLICES_CODE)
+#define optgrid_13 SEG_SEGCLASS(SLICES_SEG002,SLICES_CODE)
+#define insctrl_02 SEG_SEGCLASS(SLICES_SEG002,SLICES_CODE)
+#define tbcontrl_4b SEG_SEGCLASS(SLICES_SEG002,SLICES_CODE)
+#define tbcontrl_50 SEG_SEGCLASS(SLICES_SEG002,SLICES_CODE)
+#define tbcontrl_55 SEG_SEGCLASS(SLICES_SEG002,SLICES_CODE)
+#define linectrl_02 SEG_SEGCLASS(SLICES_SEG003,SLICES_CODE)
+#define linectrl_07 SEG_SEGCLASS(SLICES_SEG003,SLICES_CODE)
+#define linectrl_0b SEG_SEGCLASS(SLICES_SEG003,SLICES_CODE)
+#define fillctrl_02 SEG_SEGCLASS(SLICES_SEG003,SLICES_CODE)
+#define itemwin_02 SEG_SEGCLASS(SLICES_SEG003,SLICES_CODE)
+#define itemwin_09 SEG_SEGCLASS(SLICES_SEG003,SLICES_CODE)
+#define itemwin_11 SEG_SEGCLASS(SLICES_SEG003,SLICES_CODE)
+#define itemwin_1a SEG_SEGCLASS(SLICES_SEG003,SLICES_CODE)
+#define itemwin_20 SEG_SEGCLASS(SLICES_SEG003,SLICES_CODE)
+#define layctrl_0a SEG_SEGCLASS(SLICES_SEG003,SLICES_CODE)
+#define layctrl_0e SEG_SEGCLASS(SLICES_SEG003,SLICES_CODE)
+#define fntctl_01 SEG_SEGCLASS(UNUSED_SEG000,UNUSED_CODE)
+#define fntctl_02 SEG_SEGCLASS(UNUSED_SEG000,UNUSED_CODE)
+#define fntctl_03 SEG_SEGCLASS(UNUSED_SEG000,UNUSED_CODE)
+#define fntctl_04 SEG_SEGCLASS(UNUSED_SEG000,UNUSED_CODE)
+#define fntctl_05 SEG_SEGCLASS(UNUSED_SEG000,UNUSED_CODE)
+#define fntctl_06 SEG_SEGCLASS(UNUSED_SEG000,UNUSED_CODE)
+#define fntctl_07 SEG_SEGCLASS(UNUSED_SEG000,UNUSED_CODE)
+#define fntszctl_01 SEG_SEGCLASS(UNUSED_SEG000,UNUSED_CODE)
+#define fntszctl_02 SEG_SEGCLASS(UNUSED_SEG000,UNUSED_CODE)
+#define fntszctl_03 SEG_SEGCLASS(UNUSED_SEG000,UNUSED_CODE)
+#define fntszctl_04 SEG_SEGCLASS(UNUSED_SEG000,UNUSED_CODE)
+#define fntszctl_05 SEG_SEGCLASS(UNUSED_SEG000,UNUSED_CODE)
+#define optpath_05 SEG_SEGCLASS(UNUSED_SEG000,UNUSED_CODE)
+#define optpath_06 SEG_SEGCLASS(UNUSED_SEG000,UNUSED_CODE)
+#define optdict_01 SEG_SEGCLASS(UNUSED_SEG000,UNUSED_CODE)
+#define optdict_02 SEG_SEGCLASS(UNUSED_SEG000,UNUSED_CODE)
+#define optdict_03 SEG_SEGCLASS(UNUSED_SEG000,UNUSED_CODE)
+#define optdict_04 SEG_SEGCLASS(UNUSED_SEG000,UNUSED_CODE)
+#define optdict_05 SEG_SEGCLASS(UNUSED_SEG000,UNUSED_CODE)
+#define optdict_06 SEG_SEGCLASS(UNUSED_SEG000,UNUSED_CODE)
+#define optdict_07 SEG_SEGCLASS(UNUSED_SEG000,UNUSED_CODE)
+#define optdict_08 SEG_SEGCLASS(UNUSED_SEG000,UNUSED_CODE)
+#define optdict_09 SEG_SEGCLASS(UNUSED_SEG000,UNUSED_CODE)
+#define optdict_0a SEG_SEGCLASS(UNUSED_SEG000,UNUSED_CODE)
+#define optdict_0b SEG_SEGCLASS(UNUSED_SEG000,UNUSED_CODE)
+#define optitems_03 SEG_SEGCLASS(UNUSED_SEG000,UNUSED_CODE)
+#define optitems_05 SEG_SEGCLASS(UNUSED_SEG000,UNUSED_CODE)
+#define optitems_08 SEG_SEGCLASS(UNUSED_SEG000,UNUSED_CODE)
+#define optitems_09 SEG_SEGCLASS(UNUSED_SEG000,UNUSED_CODE)
+#define optitems_0a SEG_SEGCLASS(UNUSED_SEG000,UNUSED_CODE)
+#define optitems_0c SEG_SEGCLASS(UNUSED_SEG000,UNUSED_CODE)
+#define optitems_0d SEG_SEGCLASS(UNUSED_SEG000,UNUSED_CODE)
+#define optitems_0e SEG_SEGCLASS(UNUSED_SEG000,UNUSED_CODE)
+#define optspell_01 SEG_SEGCLASS(UNUSED_SEG000,UNUSED_CODE)
+#define optspell_02 SEG_SEGCLASS(UNUSED_SEG000,UNUSED_CODE)
+#define optspell_03 SEG_SEGCLASS(UNUSED_SEG000,UNUSED_CODE)
+#define optspell_04 SEG_SEGCLASS(UNUSED_SEG000,UNUSED_CODE)
+#define optspell_05 SEG_SEGCLASS(UNUSED_SEG000,UNUSED_CODE)
+#define optspell_06 SEG_SEGCLASS(UNUSED_SEG000,UNUSED_CODE)
+#define optspell_07 SEG_SEGCLASS(UNUSED_SEG000,UNUSED_CODE)
+#define optgenrl_05 SEG_SEGCLASS(UNUSED_SEG000,UNUSED_CODE)
+#define optgenrl_09 SEG_SEGCLASS(UNUSED_SEG000,UNUSED_CODE)
+#define adritem_01 SEG_SEGCLASS(UNUSED_SEG000,UNUSED_CODE)
+#define adritem_26 SEG_SEGCLASS(UNUSED_SEG000,UNUSED_CODE)
+#define adritem_27 SEG_SEGCLASS(UNUSED_SEG000,UNUSED_CODE)
+#define adritem_2a SEG_SEGCLASS(UNUSED_SEG000,UNUSED_CODE)
+#define opttypes_02 SEG_SEGCLASS(UNUSED_SEG000,UNUSED_CODE)
+#define optlingu_02 SEG_SEGCLASS(UNUSED_SEG000,UNUSED_CODE)
+#define optlingu_06 SEG_SEGCLASS(UNUSED_SEG000,UNUSED_CODE)
+#define optlingu_07 SEG_SEGCLASS(UNUSED_SEG000,UNUSED_CODE)
+#define optlingu_08 SEG_SEGCLASS(UNUSED_SEG000,UNUSED_CODE)
+#define optgrid_04 SEG_SEGCLASS(UNUSED_SEG000,UNUSED_CODE)
+#define optgrid_05 SEG_SEGCLASS(UNUSED_SEG000,UNUSED_CODE)
+#define optgrid_06 SEG_SEGCLASS(UNUSED_SEG000,UNUSED_CODE)
+#define optgrid_0b SEG_SEGCLASS(UNUSED_SEG000,UNUSED_CODE)
+#define optgrid_0c SEG_SEGCLASS(UNUSED_SEG000,UNUSED_CODE)
+#define optgrid_0d SEG_SEGCLASS(UNUSED_SEG000,UNUSED_CODE)
+#define optgrid_0e SEG_SEGCLASS(UNUSED_SEG000,UNUSED_CODE)
+#define optgrid_0f SEG_SEGCLASS(UNUSED_SEG000,UNUSED_CODE)
+#define optgrid_10 SEG_SEGCLASS(UNUSED_SEG000,UNUSED_CODE)
+#define optgrid_14 SEG_SEGCLASS(UNUSED_SEG000,UNUSED_CODE)
+#define insctrl_04 SEG_SEGCLASS(UNUSED_SEG000,UNUSED_CODE)
+#define insctrl_05 SEG_SEGCLASS(UNUSED_SEG000,UNUSED_CODE)
+#define zoomctrl_01 SEG_SEGCLASS(UNUSED_SEG000,UNUSED_CODE)
+#define zoomctrl_02 SEG_SEGCLASS(UNUSED_SEG000,UNUSED_CODE)
+#define zoomctrl_06 SEG_SEGCLASS(UNUSED_SEG000,UNUSED_CODE)
+#define zoomctrl_07 SEG_SEGCLASS(UNUSED_SEG000,UNUSED_CODE)
+#define selctrl_03 SEG_SEGCLASS(UNUSED_SEG000,UNUSED_CODE)
+#define selctrl_04 SEG_SEGCLASS(UNUSED_SEG000,UNUSED_CODE)
+#define modctrl_03 SEG_SEGCLASS(UNUSED_SEG000,UNUSED_CODE)
+#define tbcontrl_01 SEG_SEGCLASS(UNUSED_SEG000,UNUSED_CODE)
+#define tbcontrl_03 SEG_SEGCLASS(UNUSED_SEG000,UNUSED_CODE)
+#define tbcontrl_04 SEG_SEGCLASS(UNUSED_SEG000,UNUSED_CODE)
+#define tbcontrl_05 SEG_SEGCLASS(UNUSED_SEG001,UNUSED_CODE)
+#define tbcontrl_06 SEG_SEGCLASS(UNUSED_SEG001,UNUSED_CODE)
+#define tbcontrl_07 SEG_SEGCLASS(UNUSED_SEG001,UNUSED_CODE)
+#define tbcontrl_0b SEG_SEGCLASS(UNUSED_SEG001,UNUSED_CODE)
+#define tbcontrl_0c SEG_SEGCLASS(UNUSED_SEG001,UNUSED_CODE)
+#define tbcontrl_0d SEG_SEGCLASS(UNUSED_SEG001,UNUSED_CODE)
+#define tbcontrl_0e SEG_SEGCLASS(UNUSED_SEG001,UNUSED_CODE)
+#define tbcontrl_0f SEG_SEGCLASS(UNUSED_SEG001,UNUSED_CODE)
+#define tbcontrl_10 SEG_SEGCLASS(UNUSED_SEG001,UNUSED_CODE)
+#define tbcontrl_14 SEG_SEGCLASS(UNUSED_SEG001,UNUSED_CODE)
+#define tbcontrl_15 SEG_SEGCLASS(UNUSED_SEG001,UNUSED_CODE)
+#define tbcontrl_16 SEG_SEGCLASS(UNUSED_SEG001,UNUSED_CODE)
+#define tbcontrl_17 SEG_SEGCLASS(UNUSED_SEG001,UNUSED_CODE)
+#define tbcontrl_18 SEG_SEGCLASS(UNUSED_SEG001,UNUSED_CODE)
+#define tbcontrl_19 SEG_SEGCLASS(UNUSED_SEG001,UNUSED_CODE)
+#define tbcontrl_1a SEG_SEGCLASS(UNUSED_SEG001,UNUSED_CODE)
+#define tbcontrl_1b SEG_SEGCLASS(UNUSED_SEG001,UNUSED_CODE)
+#define tbcontrl_1c SEG_SEGCLASS(UNUSED_SEG001,UNUSED_CODE)
+#define tbcontrl_1d SEG_SEGCLASS(UNUSED_SEG001,UNUSED_CODE)
+#define tbcontrl_1e SEG_SEGCLASS(UNUSED_SEG001,UNUSED_CODE)
+#define tbcontrl_1f SEG_SEGCLASS(UNUSED_SEG001,UNUSED_CODE)
+#define tbcontrl_20 SEG_SEGCLASS(UNUSED_SEG001,UNUSED_CODE)
+#define tbcontrl_21 SEG_SEGCLASS(UNUSED_SEG001,UNUSED_CODE)
+#define tbcontrl_22 SEG_SEGCLASS(UNUSED_SEG001,UNUSED_CODE)
+#define tbcontrl_23 SEG_SEGCLASS(UNUSED_SEG001,UNUSED_CODE)
+#define tbcontrl_24 SEG_SEGCLASS(UNUSED_SEG001,UNUSED_CODE)
+#define tbcontrl_25 SEG_SEGCLASS(UNUSED_SEG001,UNUSED_CODE)
+#define tbcontrl_26 SEG_SEGCLASS(UNUSED_SEG001,UNUSED_CODE)
+#define tbcontrl_27 SEG_SEGCLASS(UNUSED_SEG001,UNUSED_CODE)
+#define tbcontrl_28 SEG_SEGCLASS(UNUSED_SEG001,UNUSED_CODE)
+#define tbcontrl_29 SEG_SEGCLASS(UNUSED_SEG001,UNUSED_CODE)
+#define tbcontrl_2a SEG_SEGCLASS(UNUSED_SEG001,UNUSED_CODE)
+#define tbcontrl_2b SEG_SEGCLASS(UNUSED_SEG001,UNUSED_CODE)
+#define tbcontrl_2c SEG_SEGCLASS(UNUSED_SEG001,UNUSED_CODE)
+#define tbcontrl_2d SEG_SEGCLASS(UNUSED_SEG001,UNUSED_CODE)
+#define tbcontrl_2e SEG_SEGCLASS(UNUSED_SEG001,UNUSED_CODE)
+#define tbcontrl_2f SEG_SEGCLASS(UNUSED_SEG001,UNUSED_CODE)
+#define tbcontrl_30 SEG_SEGCLASS(UNUSED_SEG001,UNUSED_CODE)
+#define tbcontrl_31 SEG_SEGCLASS(UNUSED_SEG001,UNUSED_CODE)
+#define tbcontrl_32 SEG_SEGCLASS(UNUSED_SEG001,UNUSED_CODE)
+#define tbcontrl_33 SEG_SEGCLASS(UNUSED_SEG001,UNUSED_CODE)
+#define tbcontrl_34 SEG_SEGCLASS(UNUSED_SEG001,UNUSED_CODE)
+#define tbcontrl_4c SEG_SEGCLASS(UNUSED_SEG001,UNUSED_CODE)
+#define tbcontrl_4d SEG_SEGCLASS(UNUSED_SEG001,UNUSED_CODE)
+#define tbcontrl_51 SEG_SEGCLASS(UNUSED_SEG001,UNUSED_CODE)
+#define tbcontrl_52 SEG_SEGCLASS(UNUSED_SEG001,UNUSED_CODE)
+#define tbcontrl_56 SEG_SEGCLASS(UNUSED_SEG001,UNUSED_CODE)
+#define tbcontrl_57 SEG_SEGCLASS(UNUSED_SEG001,UNUSED_CODE)
+#define tbcontrl_5a SEG_SEGCLASS(UNUSED_SEG001,UNUSED_CODE)
+#define tbcontrl_5b SEG_SEGCLASS(UNUSED_SEG001,UNUSED_CODE)
+#define tbcontrl_5d SEG_SEGCLASS(UNUSED_SEG001,UNUSED_CODE)
+#define tbcontrl_5e SEG_SEGCLASS(UNUSED_SEG001,UNUSED_CODE)
+#define tbcontrl_60 SEG_SEGCLASS(UNUSED_SEG001,UNUSED_CODE)
+#define tbcontrl_61 SEG_SEGCLASS(UNUSED_SEG001,UNUSED_CODE)
+#define tbcontrl_62 SEG_SEGCLASS(UNUSED_SEG001,UNUSED_CODE)
+#define fillctrl_09 SEG_SEGCLASS(UNUSED_SEG001,UNUSED_CODE)
+#define itemwin_03 SEG_SEGCLASS(UNUSED_SEG001,UNUSED_CODE)
+#define itemwin_04 SEG_SEGCLASS(UNUSED_SEG001,UNUSED_CODE)
+#define itemwin_05 SEG_SEGCLASS(UNUSED_SEG001,UNUSED_CODE)
+#define itemwin_06 SEG_SEGCLASS(UNUSED_SEG001,UNUSED_CODE)
+#define itemwin_07 SEG_SEGCLASS(UNUSED_SEG001,UNUSED_CODE)
+#define itemwin_0b SEG_SEGCLASS(UNUSED_SEG001,UNUSED_CODE)
+#define itemwin_0c SEG_SEGCLASS(UNUSED_SEG002,UNUSED_CODE)
+#define itemwin_0d SEG_SEGCLASS(UNUSED_SEG002,UNUSED_CODE)
+#define itemwin_0e SEG_SEGCLASS(UNUSED_SEG002,UNUSED_CODE)
+#define itemwin_0f SEG_SEGCLASS(UNUSED_SEG002,UNUSED_CODE)
+#define itemwin_13 SEG_SEGCLASS(UNUSED_SEG002,UNUSED_CODE)
+#define itemwin_14 SEG_SEGCLASS(UNUSED_SEG002,UNUSED_CODE)
+#define itemwin_15 SEG_SEGCLASS(UNUSED_SEG002,UNUSED_CODE)
+#define itemwin_16 SEG_SEGCLASS(UNUSED_SEG002,UNUSED_CODE)
+#define itemwin_17 SEG_SEGCLASS(UNUSED_SEG002,UNUSED_CODE)
+#define itemwin_18 SEG_SEGCLASS(UNUSED_SEG002,UNUSED_CODE)
+#define itemwin_1b SEG_SEGCLASS(UNUSED_SEG002,UNUSED_CODE)
+#define itemwin_1c SEG_SEGCLASS(UNUSED_SEG002,UNUSED_CODE)
+#define itemwin_1d SEG_SEGCLASS(UNUSED_SEG002,UNUSED_CODE)
+#define itemwin_1e SEG_SEGCLASS(UNUSED_SEG002,UNUSED_CODE)
+#define itemwin_21 SEG_SEGCLASS(UNUSED_SEG002,UNUSED_CODE)
+#define itemwin_22 SEG_SEGCLASS(UNUSED_SEG002,UNUSED_CODE)
+#define itemwin_23 SEG_SEGCLASS(UNUSED_SEG002,UNUSED_CODE)
+#define itemwin_24 SEG_SEGCLASS(UNUSED_SEG002,UNUSED_CODE)
+#define itemwin_25 SEG_SEGCLASS(UNUSED_SEG002,UNUSED_CODE)
+#define itemwin_26 SEG_SEGCLASS(UNUSED_SEG002,UNUSED_CODE)
+#define layctrl_01 SEG_SEGCLASS(UNUSED_SEG002,UNUSED_CODE)
+#define layctrl_02 SEG_SEGCLASS(UNUSED_SEG002,UNUSED_CODE)
+#define layctrl_03 SEG_SEGCLASS(UNUSED_SEG002,UNUSED_CODE)
+#define layctrl_04 SEG_SEGCLASS(UNUSED_SEG002,UNUSED_CODE)
+#define layctrl_05 SEG_SEGCLASS(UNUSED_SEG002,UNUSED_CODE)
+#define layctrl_06 SEG_SEGCLASS(UNUSED_SEG002,UNUSED_CODE)
+#define layctrl_07 SEG_SEGCLASS(UNUSED_SEG002,UNUSED_CODE)
+#define layctrl_08 SEG_SEGCLASS(UNUSED_SEG002,UNUSED_CODE)
+#define layctrl_0b SEG_SEGCLASS(UNUSED_SEG002,UNUSED_CODE)
+#define layctrl_0c SEG_SEGCLASS(UNUSED_SEG002,UNUSED_CODE)
+#define layctrl_0f SEG_SEGCLASS(UNUSED_SEG002,UNUSED_CODE)
+#define layctrl_10 SEG_SEGCLASS(UNUSED_SEG002,UNUSED_CODE)
diff --git a/svx/inc/dialdll.hxx b/svx/inc/dialdll.hxx
new file mode 100644
index 000000000000..4ee82aeedaac
--- /dev/null
+++ b/svx/inc/dialdll.hxx
@@ -0,0 +1,89 @@
+/*************************************************************************
+ *
+ * $RCSfile: dialdll.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:00:55 $
+ *
+ * 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 _SVX_DIALDLL_HXX
+#define _SVX_DIALDLL_HXX
+
+// class SvxDialogDll ----------------------------------------------------
+
+class SvxDialogDll
+{
+public:
+ SvxDialogDll();
+ ~SvxDialogDll();
+
+ static void ResetResMgr();
+};
+
+// class SvxGrfLinkCacheDll ----------------------------------------------
+
+class SvxGrfLinkData_Impl;
+
+class SvxGrfLinkCacheDll
+{
+ SvxGrfLinkData_Impl* pData;
+public:
+ SvxGrfLinkCacheDll();
+ ~SvxGrfLinkCacheDll();
+};
+
+
+#endif
+
diff --git a/svx/inc/dlgutil.hxx b/svx/inc/dlgutil.hxx
new file mode 100644
index 000000000000..c9cbc8321c1d
--- /dev/null
+++ b/svx/inc/dlgutil.hxx
@@ -0,0 +1,173 @@
+/*************************************************************************
+ *
+ * $RCSfile: dlgutil.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:00:55 $
+ *
+ * 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 _SVX_DLGUTIL_HXX
+#define _SVX_DLGUTIL_HXX
+
+// include ---------------------------------------------------------------
+#ifndef _FIELD_HXX
+#include <vcl/field.hxx>
+#endif
+#ifndef _SFXPOOLITEM_HXX
+#include <svtools/poolitem.hxx>
+#endif
+#ifndef _SFXINTITEM_HXX //autogen
+#include <svtools/intitem.hxx>
+#endif
+
+// macro -----------------------------------------------------------------
+
+#define GET_MODULE_FIELDUNIT( eFieldUnit ) \
+{ \
+ SfxApplication* pSfxApp = SFX_APP(); \
+ eFieldUnit = pSfxApp->GetOptions().GetMetric(); \
+ SfxModule* pModule = pSfxApp->GetActiveModule(); \
+ \
+ if ( pModule ) \
+ { \
+ const SfxPoolItem* pItem = pModule->GetItem( SID_ATTR_METRIC ); \
+ \
+ if ( pItem ) \
+ eFieldUnit = (FieldUnit)( (SfxUInt16Item*)pItem )->GetValue(); \
+ } \
+}
+
+// typedef ---------------------------------------------------------------
+
+typedef long (*FUNC_CONVERT)(long);
+
+// Functions -------------------------------------------------------------
+
+// HM- und LanguageStrings aus der Resource laden
+String GetLanguageString( LanguageType eType );
+String GetDicInfoStr( const String& rName, const USHORT nLang,
+ const BOOL bNeg );
+
+// FieldUnit im MetricField oder -Box umsetzen
+void SetFieldUnit( MetricField& rCtrl,
+ FieldUnit eUnit, BOOL bAll = FALSE );
+void SetFieldUnit( MetricBox& rCtrl,
+ FieldUnit eUnit, BOOL bAll = FALSE );
+
+// Metriken umrechnen
+long CalcToUnit( float nIn, SfxMapUnit eUnit );
+long CalcToPoint( long nIn, SfxMapUnit eUnit, USHORT nFaktor );
+
+long ItemToControl( long nIn, SfxMapUnit eItem, SfxFieldUnit eCtrl );
+long ControlToItem( long nIn, SfxFieldUnit eCtrl, SfxMapUnit eItem );
+
+FieldUnit MapToFieldUnit( const SfxMapUnit eUnit );
+MapUnit FieldToMapUnit( const SfxFieldUnit eUnit );
+
+long ConvertValueToMap( long nVal, SfxMapUnit eUnit );
+long ConvertValueToUnit( long nVal, SfxMapUnit eUnit );
+
+void SetMetricValue( MetricField& rField,
+ long lCoreValue, SfxMapUnit eUnit );
+long GetCoreValue( const MetricField& rField, SfxMapUnit eUnit );
+
+// to Twips
+long CMToTwips( long nIn );
+long MMToTwips( long nIn );
+long InchToTwips( long nIn );
+long PointToTwips( long nIn );
+long PicaToTwips( long nIn );
+
+// to CM
+long TwipsToCM( long nIn );
+long InchToCM( long nIn );
+long MMToCM( long nIn );
+long PointToCM( long nIn );
+long PicaToCM( long nIn );
+
+// to MM
+long TwipsToMM( long nIn );
+long CMToMM( long nIn );
+long InchToMM( long nIn );
+long PointToMM( long nIn );
+long PicaToMM( long nIn );
+
+// to Inch
+long TwipsToInch(long nIn );
+long CMToInch(long nIn );
+long MMToInch(long nIn );
+long PointToInch(long nIn );
+long PicaToInch(long nIn );
+
+// to Point
+long TwipsToPoint(long nIn );
+long InchToPoint(long nIn );
+long CMToPoint(long nIn );
+long MMToPoint(long nIn );
+long PicaToPoint(long nIn );
+
+// To Pica
+long TwipsToPica(long nIn );
+long InchToPica(long nIn );
+long PointToPica(long nIn );
+long CMToPica(long nIn );
+long MMToPica(long nIn );
+
+// generische Wandlung
+long TransformMetric( long nVal, FieldUnit aOld, FieldUnit aNew );
+
+
+#endif
+
diff --git a/svx/inc/dragmt3d.hxx b/svx/inc/dragmt3d.hxx
new file mode 100644
index 000000000000..6d5b40f3ce50
--- /dev/null
+++ b/svx/inc/dragmt3d.hxx
@@ -0,0 +1,203 @@
+/*************************************************************************
+ *
+ * $RCSfile: dragmt3d.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:00:55 $
+ *
+ * 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 _E3D_DRAGMT3D_HXX
+#define _E3D_DRAGMT3D_HXX
+
+#ifndef _SVDDRGMT_HXX
+#include "svddrgmt.hxx"
+#endif
+
+#ifndef _E3D_VIEW3D_HXX
+#include "view3d.hxx"
+#endif
+
+#ifndef _POLY3D_HXX
+#include "poly3d.hxx"
+#endif
+
+#ifndef _SV_TIMER_HXX
+#include <vcl/timer.hxx>
+#endif
+
+class E3dScene;
+
+/*************************************************************************
+|*
+|* Parameter fuer Interaktion eines 3D-Objektes
+|*
+\************************************************************************/
+
+class E3dDragMethodUnit
+{
+public:
+ E3dObject* p3DObj;
+ Polygon3D aWireframePoly;
+ Matrix4D aDisplayTransform;
+ Matrix4D aInvDisplayTransform;
+ Matrix4D aInitTransform;
+ Matrix4D aTransform;
+ INT32 nStartAngle;
+ INT32 nLastAngle;
+
+ // TimingVars
+ UINT8 nOrigQuality;
+
+ E3dDragMethodUnit() {}
+};
+
+/*************************************************************************
+|*
+|* Parameter fuer Interaktion eines 3D-Objektes
+|*
+\************************************************************************/
+
+SV_DECL_PTRARR_DEL(E3dDragMethodUnitGroup, E3dDragMethodUnit*, 1, 3);
+
+/*************************************************************************
+|*
+|* Ableitung von SdrDragMethod fuer 3D-Objekte
+|*
+\************************************************************************/
+
+class E3dDragMethod : public SdrDragMethod
+{
+protected:
+ E3dDragMethodUnitGroup aGrp;
+ E3dDragConstraint eConstraint;
+ E3dDragDetail eDragDetail;
+ Point aLastPos;
+ Rectangle aFullBound;
+ BOOL bMoveFull;
+ BOOL bMovedAtAll;
+ Timer aCallbackTimer;
+
+public:
+ TYPEINFO();
+ E3dDragMethod(SdrDragView &rView,
+ const SdrMarkList& rMark,
+ E3dDragDetail eDetail,
+ E3dDragConstraint eConstr = E3DDRAG_CONSTR_XYZ,
+ BOOL bFull=FALSE);
+
+ virtual void TakeComment(String& rStr) const;
+
+ virtual FASTBOOL Beg();
+ virtual void Mov(const Point& rPnt);
+ virtual void Brk();
+ virtual FASTBOOL End(FASTBOOL bCopy);
+
+ virtual void DrawXor(ExtOutputDevice& rXOut, FASTBOOL bFull) const;
+ E3dView& Get3DView() { return (E3dView&)rView; }
+
+ DECL_LINK(TimerInterruptHdl, void*);
+};
+
+
+/*************************************************************************
+|*
+|* Ableitung von SdrDragMethod zum Drehen von 3D-Objekten
+|*
+\************************************************************************/
+
+class E3dDragRotate : public E3dDragMethod
+{
+ Vector3D aGlobalCenter;
+
+public:
+ TYPEINFO();
+ E3dDragRotate(SdrDragView &rView,
+ const SdrMarkList& rMark,
+ E3dDragDetail eDetail,
+ E3dDragConstraint eConstr = E3DDRAG_CONSTR_XYZ,
+ BOOL bFull=FALSE);
+
+ virtual void Mov(const Point& rPnt);
+ virtual Pointer GetPointer() const;
+};
+
+
+/*************************************************************************
+|*
+|* Ableitung von SdrDragMethod zum Verschieben von 3D-Subobjekten
+|*
+\************************************************************************/
+
+class E3dDragMove : public E3dDragMethod
+{
+ SdrHdlKind eWhatDragHdl;
+ Point aScaleFixPos;
+
+public:
+ TYPEINFO();
+ E3dDragMove(SdrDragView &rView,
+ const SdrMarkList& rMark,
+ E3dDragDetail eDetail,
+ SdrHdlKind eDrgHdl = HDL_MOVE,
+ E3dDragConstraint eConstr = E3DDRAG_CONSTR_XYZ,
+ BOOL bFull=FALSE);
+
+ virtual void Mov(const Point& rPnt);
+ virtual Pointer GetPointer() const;
+};
+
+
+#endif // _E3D_DRAGMT3D_HXX
diff --git a/svx/inc/drawitem.hxx b/svx/inc/drawitem.hxx
new file mode 100644
index 000000000000..4b58b1b45b72
--- /dev/null
+++ b/svx/inc/drawitem.hxx
@@ -0,0 +1,270 @@
+/*************************************************************************
+ *
+ * $RCSfile: drawitem.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:00:55 $
+ *
+ * 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 _SVX_DRAWITEM_HXX
+#define _SVX_DRAWITEM_HXX
+
+// include ---------------------------------------------------------------
+
+#ifndef _SFXPOOLITEM_HXX //autogen
+#include <svtools/poolitem.hxx>
+#endif
+
+//==================================================================
+// SvxColorTableItem
+//==================================================================
+
+#ifdef ITEMID_COLOR_TABLE
+class XColorTable;
+
+class SvxColorTableItem: public SfxPoolItem
+{
+ XColorTable* pColorTable;
+
+public:
+ TYPEINFO();
+ SvxColorTableItem();
+ SvxColorTableItem( XColorTable* pTable,
+ USHORT nWhich = ITEMID_COLOR_TABLE );
+ SvxColorTableItem( const SvxColorTableItem& );
+
+ virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
+ SfxMapUnit eCoreMetric,
+ SfxMapUnit ePresMetric,
+ String &rText, const International * = 0 ) const;
+
+ virtual int operator==( const SfxPoolItem& ) const;
+ virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
+
+ XColorTable* GetColorTable() const { return pColorTable; }
+ void SetColorTable( XColorTable* pTable ) {
+ pColorTable = pTable; }
+};
+
+#endif
+
+//==================================================================
+// SvxGradientListItem
+//==================================================================
+
+#ifdef ITEMID_GRADIENT_LIST
+class XGradientList;
+
+class SvxGradientListItem: public SfxPoolItem
+{
+ XGradientList* pGradientList;
+
+public:
+ TYPEINFO();
+ SvxGradientListItem();
+ SvxGradientListItem( XGradientList* pList,
+ USHORT nWhich = ITEMID_GRADIENT_LIST );
+ SvxGradientListItem( const SvxGradientListItem& );
+
+ virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
+ SfxMapUnit eCoreMetric,
+ SfxMapUnit ePresMetric,
+ String &rText, const International * = 0 ) const;
+
+ virtual int operator==( const SfxPoolItem& ) const;
+ virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
+
+ XGradientList* GetGradientList() const { return pGradientList; }
+ void SetGradientList( XGradientList* pList ) {
+ pGradientList = pList; }
+};
+
+#endif
+
+//==================================================================
+// SvxHatchListItem
+//==================================================================
+
+#ifdef ITEMID_HATCH_LIST
+class XHatchList;
+
+class SvxHatchListItem: public SfxPoolItem
+{
+ XHatchList* pHatchList;
+
+public:
+ TYPEINFO();
+ SvxHatchListItem();
+ SvxHatchListItem( XHatchList* pList,
+ USHORT nWhich = ITEMID_HATCH_LIST );
+ SvxHatchListItem( const SvxHatchListItem& );
+
+ virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
+ SfxMapUnit eCoreMetric,
+ SfxMapUnit ePresMetric,
+ String &rText, const International * = 0 ) const;
+
+ virtual int operator==( const SfxPoolItem& ) const;
+ virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
+
+ XHatchList* GetHatchList() const { return pHatchList; }
+ void SetHatchList( XHatchList* pList ) {
+ pHatchList = pList; }
+};
+
+#endif
+
+//==================================================================
+// SvxBitmapListItem
+//==================================================================
+
+#ifdef ITEMID_BITMAP_LIST
+class XBitmapList;
+
+class SvxBitmapListItem: public SfxPoolItem
+{
+ XBitmapList* pBitmapList;
+
+public:
+ TYPEINFO();
+ SvxBitmapListItem();
+ SvxBitmapListItem( XBitmapList* pBL,
+ USHORT nWhich = ITEMID_BITMAP_LIST );
+ SvxBitmapListItem( const SvxBitmapListItem& );
+
+ virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
+ SfxMapUnit eCoreMetric,
+ SfxMapUnit ePresMetric,
+ String &rText, const International * = 0 ) const;
+
+ virtual int operator==( const SfxPoolItem& ) const;
+ virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
+
+ XBitmapList* GetBitmapList() const { return pBitmapList; }
+ void SetBitmapList( XBitmapList* pList ) {
+ pBitmapList = pList; }
+};
+
+#endif
+
+//==================================================================
+// SvxDashListItem
+//==================================================================
+
+#ifdef ITEMID_DASH_LIST
+class XDashList;
+
+class SvxDashListItem: public SfxPoolItem
+{
+ XDashList* pDashList;
+
+public:
+ TYPEINFO();
+ SvxDashListItem();
+ SvxDashListItem( XDashList* pList,
+ USHORT nWhich = ITEMID_DASH_LIST );
+ SvxDashListItem( const SvxDashListItem& );
+
+ virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
+ SfxMapUnit eCoreMetric,
+ SfxMapUnit ePresMetric,
+ String &rText, const International * = 0 ) const;
+
+ virtual int operator==( const SfxPoolItem& ) const;
+ virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
+
+ XDashList* GetDashList() const { return pDashList; }
+ void SetDashList( XDashList* pList ) {
+ pDashList = pList; }
+};
+
+#endif
+
+//==================================================================
+// SvxLineEndListItem
+//==================================================================
+
+#ifdef ITEMID_LINEEND_LIST
+class XLineEndList;
+
+class SvxLineEndListItem: public SfxPoolItem
+{
+ XLineEndList* pLineEndList;
+
+public:
+ TYPEINFO();
+ SvxLineEndListItem();
+ SvxLineEndListItem( XLineEndList* pList,
+ USHORT nWhich = ITEMID_LINEEND_LIST );
+ SvxLineEndListItem( const SvxLineEndListItem& );
+
+ virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
+ SfxMapUnit eCoreMetric,
+ SfxMapUnit ePresMetric,
+ String &rText, const International * = 0 ) const;
+
+ virtual int operator==( const SfxPoolItem& ) const;
+ virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
+
+ XLineEndList* GetLineEndList() const { return pLineEndList; }
+ void SetLineEndList( XLineEndList* pList ) {
+ pLineEndList = pList; }
+};
+
+#endif
+
+
+#endif
+
diff --git a/svx/inc/drawuiks.hxx b/svx/inc/drawuiks.hxx
new file mode 100644
index 000000000000..32a6d8e7f928
--- /dev/null
+++ b/svx/inc/drawuiks.hxx
@@ -0,0 +1,107 @@
+/*************************************************************************
+ *
+ * $RCSfile: drawuiks.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:00:55 $
+ *
+ * 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 _SDUIKS_HXX
+#define _SDUIKS_HXX
+
+#include <usr/uiks.hxx>
+
+#define UIK_SHAPEFACTORY UIK_DRAWING(00)
+#define UIK_POLYGONFACTORY UIK_DRAWING(01)
+#define UIK_TEXTSHAPEFACTORY UIK_DRAWING(02)
+#define UIK_SNAPFACTORY UIK_DRAWING(03)
+
+#define UIK_DRAWPAGES UIK_DRAWING(10)
+#define UIK_DRAWPAGESUMMARIZER UIK_DRAWING(11)
+#define UIK_DRAWPAGEXPANDER UIK_DRAWING(12)
+
+#define UIK_XSHAPEDESCRIPTOR UIK_DRAWING(20)
+#define UIK_XSHAPE UIK_DRAWING(21)
+#define UIK_XSHAPECONNECTOR UIK_DRAWING(22)
+#define UIK_XCONNECTABLESHAPE UIK_DRAWING(23)
+#define UIK_XSHAPE3D UIK_DRAWING(24)
+#define UIK_XSHAPEGROUP UIK_DRAWING(25)
+#define UIK_XSHAPEMIRROR UIK_DRAWING(26)
+#define UIK_XSHAPEALIGNER UIK_DRAWING(27)
+#define UIK_XSHAPEARRANGER UIK_DRAWING(28)
+#define UIK_XCONVERTABLESHAPE UIK_DRAWING(29)
+#define UIK_XANIMATEDSHAPEFACTORY UIK_DRAWING(2a)
+
+#define UIK_DRAWPAGE UIK_DRAWING(30)
+#define UIK_SHAPES UIK_DRAWING(31)
+#define UIK_XSHAPEGROUPER UIK_DRAWING(35)
+#define UIK_XSHAPECOMBINER UIK_DRAWING(36)
+#define UIK_SHAPEBINDER UIK_DRAWING(37)
+#define UIK_DRAWLAYER UIK_DRAWING(38)
+
+#define SD_UIK_PRESENTATION UIK_DRAWING(40)
+#define SD_UIK_PRESENTATION_NAVIGATION UIK_DRAWING(41)
+#define SD_UIK_CUSTOM_PRESENTATION UIK_DRAWING(42)
+#define SD_UIK_CUSTOM_PRESENTATIONS UIK_DRAWING(43)
+//#define SD_UIK_CUSTOM_PRESENTATIONS UIK_DRAWING(44)
+
+#define SD_UIK_ZOOM UIK_DRAWING(50)
+#define SD_UIK_DRAW_VIEW UIK_DRAWING(51)
+#define SD_UIK_OUTLINE_VIEW UIK_DRAWING(52)
+#define SD_UIK_SLIDE_VIEW UIK_DRAWING(53)
+
+#define SD_UIK_PRESENTATION_STYLES UIK_DRAWING(60)
+
+#endif
diff --git a/svx/inc/editstat.hxx b/svx/inc/editstat.hxx
new file mode 100644
index 000000000000..7ceaee6ec72e
--- /dev/null
+++ b/svx/inc/editstat.hxx
@@ -0,0 +1,174 @@
+/*************************************************************************
+ *
+ * $RCSfile: editstat.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:00:55 $
+ *
+ * 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 _EDITSTAT_HXX
+#define _EDITSTAT_HXX
+
+#ifndef _STRING_HXX
+#include <tools/string.hxx>
+#endif
+
+#define EE_CNTRL_USECHARATTRIBS 0x00000001 // Verwendung harter ZeichenAttr.
+#define EE_CNTRL_USEPARAATTRIBS 0x00000002 // Verwendung von AbsatzAttr.
+#define EE_CNTRL_CRSRLEFTPARA 0x00000004 // Cursor ist in einen anderen Absatz gewandert
+#define EE_CNTRL_DOIDLEFORMAT 0x00000008 // Idle-Formatierung
+#define EE_CNTRL_PASTESPECIAL 0x00000010 // Allow PasteSpecial
+#define EE_CNTRL_AUTOINDENTING 0x00000020 // Automatisches einruecken
+#define EE_CNTRL_UNDOATTRIBS 0x00000040 // Undo fuer Attribute....
+#define EE_CNTRL_ONECHARPERLINE 0x00000080 // Ein Zeichen pro Zeile
+#define EE_CNTRL_NOCOLORS 0x00000100 // Engine: Keine Farben
+#define EE_CNTRL_OUTLINER 0x00000200 // Sonderbehandlung Outliner/Gliederungsmodus
+#define EE_CNTRL_OUTLINER2 0x00000400 // Sonderbehandlung Outliner/Seite
+#define EE_CNTRL_ALLOWBIGOBJS 0x00000800 // PortionInfo in Textobjekten
+#define EE_CNTRL_ONLINESPELLING 0x00001000 // Waehrend des editieren Spelling
+#define EE_CNTRL_STRETCHING 0x00002000 // Stretch-Modus
+#define EE_CNTRL_MARKFIELDS 0x00004000 // Felder farblich hinterlegen
+#define EE_CNTRL_URLSFXEXECUTE 0x00008000 // !!!OLD!!!: SFX-URL-Execute.
+#define EE_CNTRL_RESTOREFONT 0x00010000 // Font im OutDev restaurieren
+#define EE_CNTRL_RTFSTYLESHEETS 0x00020000 // Stylesheets bei Import verwenden
+#define EE_CNTRL_NOREDLINES 0x00040000 // Keine RedLines bei OnlineSpellError
+#define EE_CNTRL_AUTOCORRECT 0x00080000 // AutoKorrektur
+#define EE_CNTRL_AUTOCOMPLETE 0x00100000 // AutoComplete
+#define EE_CNTRL_AUTOPAGESIZEX 0x00200000 // Papierbreite an Text anpassen
+#define EE_CNTRL_AUTOPAGESIZEY 0x00400000 // Papierhoehe an Text anpassen
+#define EE_CNTRL_AUTOPAGESIZE (EE_CNTRL_AUTOPAGESIZEX|EE_CNTRL_AUTOPAGESIZEY)
+#define EE_CNTRL_TABINDENTING 0x00800000 // Einruecken mit Tab
+#define EE_CNTRL_FORMAT100 0x01000000 // Immer nach 100% formatieren
+#define EE_CNTRL_ULSPACESUMMATION 0x02000000 // MS Compat: SA und SB aufsummieren, nicht maximalwert
+#define EE_CNTRL_ULSPACEFIRSTPARA 0x04000000 // MS Compat: SB auch beim ersten Absatz auswerten
+
+#define EV_CNTRL_AUTOSCROLL 0x00000001 // Autom. Scrollen horiz.
+#define EV_CNTRL_BIGSCROLL 0x00000002 // Weiter Scrollen, als nur zum Cursor
+#define EV_CNTRL_ENABLEPASTE 0x00000004 // Paste erlauben
+#define EV_CNTRL_SINGLELINEPASTE 0x00000008 // View: Paste in Eingabezeile...
+#define EV_CNTRL_OVERWRITE 0x00000010 // Ueberschreibmodus
+#define EV_CNTRL_INVONEMORE 0x00000020 // Ein Pixel mehr invalidieren
+#define EV_CNTRL_AUTOSIZEX 0x00000040 // Automatisch an Textbreite anpassen
+#define EV_CNTRL_AUTOSIZEY 0x00000080 // Automatisch an Texthoehe anpassen
+#define EV_CNTRL_AUTOSIZE (EV_CNTRL_AUTOSIZEX|EV_CNTRL_AUTOSIZEY)
+
+#define EE_STAT_HSCROLL 0x00000001
+#define EE_STAT_VSCROLL 0x00000002
+#define EE_STAT_CURSOROUT 0x00000004
+#define EE_STAT_CRSRMOVEFAIL 0x00000008
+#define EE_STAT_CRSRLEFTPARA 0x00000010
+#define EE_STAT_TEXTWIDTHCHANGED 0x00000020
+#define EE_STAT_TEXTHEIGHTCHANGED 0x00000040
+#define EE_STAT_WRONGWORDCHANGED 0x00000080
+// #define EE_STAT_MODIFIED 0x00000100
+
+// Nur fuer Update:
+#define EE_CNTRL_AUTOCENTER EE_CNTRL_AUTOPAGESIZE
+#define EE_STAT_GROWY EE_STAT_TEXTHEIGHTCHANGED
+
+/*
+ EE_STAT_CRSRLEFTPARA zur Zeit bei Cursorbewegungen und Return.
+*/
+
+inline void SetFlags( ULONG& rBits, const ULONG nMask, FASTBOOL bOn )
+{
+ if ( bOn )
+ rBits |= nMask;
+ else
+ rBits &= ~nMask;
+}
+
+class EditStatus
+{
+protected:
+ ULONG nStatusBits;
+ ULONG nControlBits;
+ USHORT nPrevPara; // fuer EE_STAT_CRSRLEFTPARA
+
+public:
+ EditStatus() { nStatusBits = 0; nControlBits = 0; nPrevPara = 0xFFFF; }
+
+ void Clear() { nStatusBits = 0; }
+ void SetControlBits( ULONG nMask, FASTBOOL bOn )
+ { SetFlags( nControlBits, nMask, bOn ); }
+
+ ULONG GetStatusWord() const { return nStatusBits; }
+ ULONG& GetStatusWord() { return nStatusBits; }
+
+ ULONG GetControlWord() const { return nControlBits; }
+ ULONG& GetControlWord() { return nControlBits; }
+
+ USHORT GetPrevParagraph() const { return nPrevPara; }
+ USHORT& GetPrevParagraph() { return nPrevPara; }
+};
+
+#define SPELLCMD_IGNOREWORD 0x0001
+#define SPELLCMD_STARTSPELLDLG 0x0002
+
+struct SpellCallbackInfo
+{
+ USHORT nCommand;
+ String aWord;
+
+ SpellCallbackInfo( USHORT nCMD, const String& rWord )
+ : aWord( rWord )
+ {
+ nCommand = nCMD;
+ }
+};
+
+#endif // _EDITSTAT_HXX
+
diff --git a/svx/inc/editund2.hxx b/svx/inc/editund2.hxx
new file mode 100644
index 000000000000..5c59d0cea1f1
--- /dev/null
+++ b/svx/inc/editund2.hxx
@@ -0,0 +1,111 @@
+/*************************************************************************
+ *
+ * $RCSfile: editund2.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:00:55 $
+ *
+ * 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 _EDITUND2_HXX
+#define _EDITUND2_HXX
+
+//#include <tools.hxx>
+
+#ifndef _UNDO_HXX
+#include <svtools/undo.hxx>
+#endif
+
+class ImpEditEngine;
+
+class EditUndoManager : public SfxUndoManager
+{
+private:
+ ImpEditEngine* pImpEE;
+public:
+ EditUndoManager( ImpEditEngine* pImpEE );
+
+ virtual BOOL Undo( USHORT nCount=1 );
+ virtual BOOL Redo( USHORT nCount=1 );
+};
+
+// -----------------------------------------------------------------------
+// EditUndo
+// ------------------------------------------------------------------------
+class EditUndo : public SfxUndoAction
+{
+private:
+ USHORT nId;
+ ImpEditEngine* pImpEE;
+
+public:
+ TYPEINFO();
+ EditUndo( USHORT nI, ImpEditEngine* pImpEE );
+ virtual ~EditUndo();
+
+ ImpEditEngine* GetImpEditEngine() const { return pImpEE; }
+
+ virtual void Undo() = 0;
+ virtual void Redo() = 0;
+ virtual void Repeat() = 0;
+
+ virtual BOOL CanRepeat(SfxRepeatTarget&) const;
+ virtual String GetComment() const;
+ virtual USHORT GetId() const;
+};
+
+#endif // _EDITUND2_HXX
+
+
diff --git a/svx/inc/edtspell.hxx b/svx/inc/edtspell.hxx
new file mode 100644
index 000000000000..2c43642ee9d5
--- /dev/null
+++ b/svx/inc/edtspell.hxx
@@ -0,0 +1,231 @@
+/*************************************************************************
+ *
+ * $RCSfile: edtspell.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:00:55 $
+ *
+ * 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 _EDTSPELL_HXX
+#define _EDTSPELL_HXX
+
+#include <svxbox.hxx>
+#include <svxenum.hxx>
+#include <splwrap.hxx>
+#include <svxacorr.hxx>
+
+#ifndef _COM_SUN_STAR_UNO_REFERENCE_H_
+#include <com/sun/star/uno/Reference.h>
+#endif
+namespace com { namespace sun { namespace star { namespace linguistic {
+ class XSpellChecker1;
+}}}}
+
+
+class EditView;
+class ImpEditEngine;
+class ContentNode;
+
+class EditSpellWrapper : public SvxSpellWrapper
+{
+private:
+ EditView* pEditView;
+ void CheckSpellTo();
+
+protected:
+ virtual void SpellStart( SvxSpellArea eArea );
+ virtual BOOL SpellContinue(); // Bereich pruefen
+ virtual void ReplaceAll( const String &rNewText, INT16 nLanguage );
+ virtual void SpellEnd();
+// virtual BOOL CanRestart();
+ virtual BOOL SpellMore();
+ virtual BOOL HasOtherCnt();
+ virtual void ScrollArea();
+#ifndef ENABLEUNICODE
+ virtual void ChangeWord( const String& rNewWord, const USHORT nLang );
+ virtual void ChangeThesWord( const String& rNewWord );
+// virtual void ChangeAll( const String& rNewWord );
+ virtual void AutoCorrect( const String& rOldWord, const String& rNewWord );
+
+// virtual String GetCurrentWord() const;
+#else
+ virtual void ChangeWord( const UniString& rNewWord, const USHORT nLang );
+ virtual void ChangeThesWord( const UniString& rNewWord );
+// virtual void ChangeAll( const UniString& rNewWord );
+ virtual void AutoCorrect( const UniString& rOldWord, const UniString& rNewWord );
+
+// virtual UniString GetCurrentWord() const;
+#endif
+
+public:
+ EditSpellWrapper( Window* pWin,
+ ::com::sun::star::uno::Reference<
+ ::com::sun::star::linguistic::XSpellChecker1 > &xChecker,
+ BOOL bIsStart,
+ BOOL bIsAllRight, EditView* pView );
+
+ static BOOL IsSpellReverse();
+};
+
+
+struct WrongRange
+{
+ USHORT nStart;
+ USHORT nEnd;
+
+ WrongRange( USHORT nS, USHORT nE ) { nStart = nS; nEnd = nE; }
+};
+
+SV_DECL_VARARR( WrongRanges, WrongRange, 4, 4 );
+#define NOT_INVALID 0xFFFF
+
+class WrongList : private WrongRanges
+{
+private:
+ USHORT nInvalidStart;
+ USHORT nInvalidEnd;
+
+ BOOL DbgIsBuggy() const;
+
+public:
+ WrongList();
+ ~WrongList();
+
+ BOOL IsInvalid() const { return nInvalidStart != NOT_INVALID; }
+ void SetValid() { nInvalidStart = NOT_INVALID; nInvalidEnd = 0; }
+ void MarkInvalid( USHORT nS, USHORT nE )
+ {
+ if ( ( nInvalidStart == NOT_INVALID ) || ( nInvalidStart > nS ) )
+ nInvalidStart = nS;
+ if ( nInvalidEnd < nE )
+ nInvalidEnd = nE;
+ }
+
+ USHORT Count() const { return WrongRanges::Count(); }
+
+ // Wenn man weiss was man tut:
+ WrongRange& GetObject( USHORT n ) const { return WrongRanges::GetObject( n ); }
+ void InsertWrong( const WrongRange& rWrong, USHORT nPos );
+
+ USHORT GetInvalidStart() const { return nInvalidStart; }
+ USHORT& GetInvalidStart() { return nInvalidStart; }
+
+ USHORT GetInvalidEnd() const { return nInvalidEnd; }
+ USHORT& GetInvalidEnd() { return nInvalidEnd; }
+
+ void TextInserted( USHORT nPos, USHORT nChars, BOOL bPosIsSep );
+ void TextDeleted( USHORT nPos, USHORT nChars );
+
+ void ResetRanges() { Remove( 0, Count() ); }
+ BOOL HasWrongs() const { return Count() != 0; }
+ void InsertWrong( USHORT nStart, USHORT nEnd, BOOL bClearRange );
+ BOOL NextWrong( USHORT& rnStart, USHORT& rnEnd ) const;
+ BOOL HasWrong( USHORT nStart, USHORT nEnd ) const;
+ BOOL HasAnyWrong( USHORT nStart, USHORT nEnd ) const;
+ void ClearWrongs( USHORT nStart, USHORT nEnd, const ContentNode* pNode );
+ void MarkWrongsInvalid();
+
+ WrongList* Clone() const;
+};
+
+inline void WrongList::InsertWrong( const WrongRange& rWrong, USHORT nPos )
+{
+ WrongRanges::Insert( rWrong, nPos );
+#ifdef DBG_UTIL
+ DBG_ASSERT( !DbgIsBuggy(), "Insert: WrongList kaputt!" );
+#endif
+}
+
+
+
+class EdtAutoCorrDoc : public SvxAutoCorrDoc
+{
+ ImpEditEngine* pImpEE;
+ ContentNode* pCurNode;
+ USHORT nCursor;
+
+ BOOL bAllowUndoAction;
+ BOOL bUndoAction;
+
+protected:
+ void ImplStartUndoAction();
+
+public:
+ EdtAutoCorrDoc( ImpEditEngine* pImpEE, ContentNode* pCurNode, USHORT nCrsr, xub_Unicode cIns );
+ ~EdtAutoCorrDoc();
+
+ virtual BOOL Delete( USHORT nStt, USHORT nEnd );
+ virtual BOOL Insert( USHORT nPos, const String& rTxt );
+ virtual BOOL Replace( USHORT nPos, const String& rTxt );
+
+ virtual BOOL SetAttr( USHORT nStt, USHORT nEnd, USHORT nSlotId, SfxPoolItem& );
+ virtual BOOL SetINetAttr( USHORT nStt, USHORT nEnd, const String& rURL );
+
+ virtual BOOL HasSymbolChars( USHORT nStt, USHORT nEnd );
+
+ virtual const String* GetPrevPara( BOOL bAtNormalPos );
+
+ virtual BOOL ChgAutoCorrWord( USHORT& rSttPos, USHORT nEndPos,
+ SvxAutoCorrect& rACorrect, const String** ppPara );
+
+ virtual LanguageType GetLanguage( USHORT nPos, BOOL bPrevPara = FALSE ) const;
+
+ USHORT GetCursor() const { return nCursor; }
+
+};
+
+#endif // EDTSPELL
+
diff --git a/svx/inc/eerdll.hxx b/svx/inc/eerdll.hxx
new file mode 100644
index 000000000000..dc352a762cec
--- /dev/null
+++ b/svx/inc/eerdll.hxx
@@ -0,0 +1,96 @@
+/*************************************************************************
+ *
+ * $RCSfile: eerdll.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:00:55 $
+ *
+ * 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 _EERDLL_HXX
+#define _EERDLL_HXX
+
+class GlobalEditData;
+
+#ifndef _TOOLS_RESID_HXX //autogen
+#include <tools/resid.hxx>
+#endif
+
+#ifndef _SHL_HXX
+#include <tools/shl.hxx>
+#endif
+
+class EditResId: public ResId
+{
+public:
+ EditResId( USHORT nId );
+};
+
+class EditDLL
+{
+ ResMgr* pResMgr;
+ GlobalEditData* pGlobalData;
+
+public:
+ EditDLL();
+ ~EditDLL();
+
+ ResMgr* GetResMgr() const { return pResMgr; }
+ GlobalEditData* GetGlobalData() const { return pGlobalData; }
+};
+
+#define EE_DLL() (*(EditDLL**)GetAppData( SHL_EDIT ) )
+
+#endif //_EERDLL_HXX
diff --git a/svx/inc/float3d.hrc b/svx/inc/float3d.hrc
new file mode 100644
index 000000000000..117cd0e22d6b
--- /dev/null
+++ b/svx/inc/float3d.hrc
@@ -0,0 +1,198 @@
+/*************************************************************************
+ *
+ * $RCSfile: float3d.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:00:56 $
+ *
+ * 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 "dialogs.hrc"
+
+//#define FLT_WIN_3D 827
+
+#define BTN_FAVORITES 1
+#define BTN_GEO 2
+#define BTN_REPRESENTATION 3
+#define BTN_LIGHT 4
+#define BTN_TEXTURE 5
+#define BTN_MATERIAL 6
+#define BTN_UPDATE 7
+#define BTN_ASSIGN 8
+
+// Unterer Teil
+#define BTN_PERSPECTIVE 9
+#define BTN_CHANGE_TO_3D 10
+#define BTN_LATHE_OBJ 11
+#define CTL_PREVIEW 12
+#define CTL_LIGHT_PREVIEW 13
+#define GRP_PREVIEW 14
+
+// Favoriten
+#define CTL_FAVORITES 20
+#define GRP_FAVORITES 21
+#define BTN_ONLY_3D 22
+#define BTN_ALL_ATTRIBUTES 23
+
+// Geometrie
+#define FT_HORIZONTAL 24
+#define NUM_HORIZONTAL 25
+#define FT_VERTICAL 26
+#define NUM_VERTICAL 27
+#define GRP_SEGMENTS 28
+#define FT_PERCENT_DIAGONAL 29
+#define MTR_PERCENT_DIAGONAL 30
+#define FT_BACKSCALE 31
+#define MTR_BACKSCALE 32
+#define FT_END_ANGLE 33
+#define MTR_END_ANGLE 34
+#define FT_DEPTH 35
+#define MTR_DEPTH 36
+#define GRP_GEOMETRIE 37
+
+#define BTN_NORMALS_OBJ 38
+#define BTN_NORMALS_FLAT 39
+#define BTN_NORMALS_SPHERE 40
+#define BTN_TWO_SIDED_LIGHTING 41
+#define BTN_NORMALS_INVERT 42
+#define GRP_NORMALS 43
+
+#define BTN_DOUBLE_SIDED 44
+
+// Darstellung
+#define FT_SHADEMODE 45
+#define LB_SHADEMODE 46
+#define BTN_SHADOW_3D 47
+#define FT_SLANT 48
+#define MTR_SLANT 49
+#define GRP_SHADOW 50
+#define FT_DISTANCE 51
+#define MTR_DISTANCE 52
+#define FT_FOCAL_LENGTH 53
+#define MTR_FOCAL_LENGTH 54
+#define GRP_CAMERA 55
+#define GRP_REPRESENTATION 56
+
+// Beleuchtung
+#define BTN_LIGHT_1 60
+#define BTN_LIGHT_2 61
+#define BTN_LIGHT_3 62
+#define BTN_LIGHT_4 63
+#define BTN_LIGHT_5 64
+#define BTN_LIGHT_6 65
+#define BTN_LIGHT_7 66
+#define BTN_LIGHT_8 67
+#define LB_LIGHT_1 68
+#define LB_LIGHT_2 69
+#define LB_LIGHT_3 70
+#define LB_LIGHT_4 71
+#define LB_LIGHT_5 72
+#define LB_LIGHT_6 73
+#define LB_LIGHT_7 74
+#define LB_LIGHT_8 75
+#define BTN_LIGHT_COLOR 76
+#define GRP_LIGHTSOURCE 77
+#define LB_AMBIENTLIGHT 78
+#define BTN_AMBIENT_COLOR 79
+#define GRP_AMBIENTLIGHT 80
+#define GRP_LIGHT 81
+#define FT_LIGHT_X 82
+#define FT_LIGHT_Y 83
+#define FT_LIGHT_Z 84
+#define GRP_LIGHT_INFO 85
+
+// Texturen
+#define FT_TEX_KIND 90
+#define BTN_TEX_LUMINANCE 91
+#define BTN_TEX_COLOR 92
+#define FT_TEX_MODE 93
+#define BTN_TEX_REPLACE 94
+#define BTN_TEX_MODULATE 95
+#define BTN_TEX_BLEND 96
+#define FT_TEX_PROJECTION_X 97
+#define BTN_TEX_PARALLEL_X 98
+#define BTN_TEX_CIRCLE_X 99
+#define BTN_TEX_OBJECT_X 100
+#define FT_TEX_PROJECTION_Y 101
+#define BTN_TEX_PARALLEL_Y 102
+#define BTN_TEX_CIRCLE_Y 103
+#define BTN_TEX_OBJECT_Y 104
+#define FT_TEX_FILTER 105
+#define BTN_TEX_FILTER 106
+#define GRP_TEXTURE 107
+
+// Material
+//#define CTL_MATERIAL 110
+#define GRP_MATERIAL 111
+
+#define FT_MAT_COLOR 112
+#define LB_MAT_COLOR 113
+#define BTN_MAT_COLOR 114
+#define FT_MAT_EMISSION 115
+#define LB_MAT_EMISSION 116
+#define BTN_EMISSION_COLOR 117
+#define FT_MAT_SPECULAR 118
+#define LB_MAT_SPECULAR 119
+#define BTN_SPECULAR_COLOR 120
+#define FT_MAT_SPECULAR_INTENSITY 121
+#define MTR_MAT_SPECULAR_INTENSITY 122
+#define GRP_MAT_SPECULAR 123
+#define FT_MAT_FAVORITES 124
+#define LB_MAT_FAVORITES 125
+
+
+//#define BTN_MAT_FAVORITES 125
+//#define BTN_MAT_EDITOR 126
+
+
diff --git a/svx/inc/flstitem.hxx b/svx/inc/flstitem.hxx
new file mode 100644
index 000000000000..2739e27dc9f0
--- /dev/null
+++ b/svx/inc/flstitem.hxx
@@ -0,0 +1,112 @@
+/*************************************************************************
+ *
+ * $RCSfile: flstitem.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:00:56 $
+ *
+ * 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 _SVX_FLSTITEM_HXX
+#define _SVX_FLSTITEM_HXX
+
+// include ---------------------------------------------------------------
+
+#ifndef _SFXPOOLITEM_HXX //autogen
+#include <svtools/poolitem.hxx>
+#endif
+#ifndef ITEMID_FONTLIST
+#define ITEMID_FONTLIST 0
+#endif
+
+// class SvxFontListItem -------------------------------------------------
+
+class FontList;
+
+/*
+ [Beschreibung]
+
+ Dieses Item dient als Transport-Medium fuer eine FontListe.
+ Die Fontliste wird nicht kopiert und nicht geloescht!
+*/
+
+class SvxFontListItem : public SfxPoolItem
+{
+private:
+ const FontList* pFontList;
+
+public:
+ TYPEINFO();
+
+ SvxFontListItem( const FontList* pFontLst,
+ const USHORT nId = ITEMID_FONTLIST );
+ SvxFontListItem( const SvxFontListItem& rItem );
+
+ virtual int operator==( const SfxPoolItem& ) const;
+ virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
+
+ virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
+ SfxMapUnit eCoreMetric,
+ SfxMapUnit ePresMetric,
+ String &rText, const International * = 0 ) const;
+
+ const FontList* GetFontList() const { return pFontList; }
+};
+
+
+
+
+#endif
+
+
diff --git a/svx/inc/fmgridif.hxx b/svx/inc/fmgridif.hxx
new file mode 100644
index 000000000000..bc6befafac9b
--- /dev/null
+++ b/svx/inc/fmgridif.hxx
@@ -0,0 +1,532 @@
+/*************************************************************************
+ *
+ * $RCSfile: fmgridif.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:00:56 $
+ *
+ * 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 _SVX_FMGRIDIF_HXX
+#define _SVX_FMGRIDIF_HXX
+
+#ifndef _COM_SUN_STAR_LANG_XMULTISERVICEFACTORY_HPP_
+#include <com/sun/star/lang/XMultiServiceFactory.hpp>
+#endif
+#ifndef _COM_SUN_STAR_CONTAINER_XENUMERATIONACCESS_HPP_
+#include <com/sun/star/container/XEnumerationAccess.hpp>
+#endif
+#ifndef _COM_SUN_STAR_CONTAINER_XCONTAINER_HPP_
+#include <com/sun/star/container/XContainer.hpp>
+#endif
+#ifndef _COM_SUN_STAR_CONTAINER_XCONTAINERLISTENER_HPP_
+#include <com/sun/star/container/XContainerListener.hpp>
+#endif
+#ifndef _COM_SUN_STAR_SDBC_XROWSETLISTENER_HPP_
+#include <com/sun/star/sdbc/XRowSetListener.hpp>
+#endif
+#ifndef _COM_SUN_STAR_SDB_XROWSETSUPPLIER_HPP_
+#include <com/sun/star/sdb/XRowSetSupplier.hpp>
+#endif
+#ifndef _COM_SUN_STAR_FORM_XRESET_HPP_
+#include <com/sun/star/form/XReset.hpp>
+#endif
+#ifndef _COM_SUN_STAR_FORM_XBOUNDCOMPONENT_HPP_
+#include <com/sun/star/form/XBoundComponent.hpp>
+#endif
+#ifndef _COM_SUN_STAR_FORM_XLOADLISTENER_HPP_
+#include <com/sun/star/form/XLoadListener.hpp>
+#endif
+#ifndef _COM_SUN_STAR_FORM_XGRID_HPP_
+#include <com/sun/star/form/XGrid.hpp>
+#endif
+#ifndef _COM_SUN_STAR_FORM_XGRIDPEER_HPP_
+#include <com/sun/star/form/XGridPeer.hpp>
+#endif
+#ifndef _COM_SUN_STAR_FORM_XGRIDFIELDDATASUPPLIER_HPP_
+#include <com/sun/star/form/XGridFieldDataSupplier.hpp>
+#endif
+#ifndef _COM_SUN_STAR_FRAME_XDISPATCHPROVIDER_HPP_
+#include <com/sun/star/frame/XDispatchProvider.hpp>
+#endif
+#ifndef _COM_SUN_STAR_FRAME_XSTATUSLISTENER_HPP_
+#include <com/sun/star/frame/XStatusListener.hpp>
+#endif
+#ifndef _COM_SUN_STAR_FRAME_XDISPATCHPROVIDERINTERCEPTION_HPP_
+#include <com/sun/star/frame/XDispatchProviderInterception.hpp>
+#endif
+#ifndef _COM_SUN_STAR_VIEW_XSELECTIONCHANGELISTENER_HPP_
+#include <com/sun/star/view/XSelectionChangeListener.hpp>
+#endif
+#ifndef _COM_SUN_STAR_UTIL_XMODESELECTOR_HPP_
+#include <com/sun/star/util/XModeSelector.hpp>
+#endif
+#ifndef _COM_SUN_STAR_UTIL_XMODIFYLISTENER_HPP_
+#include <com/sun/star/util/XModifyListener.hpp>
+#endif
+#ifndef _COM_SUN_STAR_UTIL_XMODIFYBROADCASTER_HPP_
+#include <com/sun/star/util/XModifyBroadcaster.hpp>
+#endif
+
+#ifndef _TOOLKIT_CONTROLS_UNOCONTROL_HXX_
+#include <toolkit/controls/unocontrol.hxx>
+#endif
+#ifndef _TOOLKIT_AWT_VCLXWINDOW_HXX_
+#include <toolkit/awt/vclxwindow.hxx>
+#endif
+
+#ifndef _UTL_UNO3_HXX_
+#include <unotools/uno3.hxx>
+#endif
+
+class DbGridColumn;
+
+class OWeakSubObject : public ::cppu::OWeakObject
+{
+protected:
+ ::cppu::OWeakObject& m_rParent;
+
+public:
+ OWeakSubObject(::cppu::OWeakObject& rParent) : m_rParent(rParent) { }
+
+ virtual void SAL_CALL acquire() throw(::com::sun::star::uno::RuntimeException) { m_rParent.acquire(); }
+ virtual void SAL_CALL release() throw(::com::sun::star::uno::RuntimeException) { m_rParent.release(); }
+};
+
+//==================================================================
+// FmXModifyMultiplexer
+//==================================================================
+class FmXModifyMultiplexer :public OWeakSubObject
+ ,public ::cppu::OInterfaceContainerHelper
+ ,public ::com::sun::star::util::XModifyListener
+{
+public:
+ FmXModifyMultiplexer( ::cppu::OWeakObject& rSource, ::osl::Mutex& rMutex );
+ DECLARE_UNO3_DEFAULTS(FmXModifyMultiplexer,OWeakSubObject);
+ virtual ::com::sun::star::uno::Any SAL_CALL queryInterface(const ::com::sun::star::uno::Type& _rType) throw (::com::sun::star::uno::RuntimeException);
+
+// ::com::sun::star::lang::XEventListener
+ virtual void SAL_CALL disposing(const ::com::sun::star::lang::EventObject& Source) throw(::com::sun::star::uno::RuntimeException);
+
+// ::com::sun::star::util::XModifyListener
+ virtual void SAL_CALL modified(const ::com::sun::star::lang::EventObject& Source);
+
+// resolve ambiguity : both OWeakObject and OInterfaceContainerHelper have these memory operators
+ void * SAL_CALL operator new( size_t size ) throw() { return OWeakSubObject::operator new(size); }
+ void SAL_CALL operator delete( void * p ) throw() { OWeakSubObject::operator delete(p); }
+};
+
+//==================================================================
+// FmXUpdateMultiplexer
+//==================================================================
+class FmXUpdateMultiplexer : public OWeakSubObject,
+ public ::cppu::OInterfaceContainerHelper,
+ public ::com::sun::star::form::XUpdateListener
+{
+public:
+ FmXUpdateMultiplexer( ::cppu::OWeakObject& rSource, ::osl::Mutex& rMutex );
+ DECLARE_UNO3_DEFAULTS(FmXUpdateMultiplexer,OWeakSubObject);
+
+ virtual ::com::sun::star::uno::Any SAL_CALL queryInterface(const ::com::sun::star::uno::Type& _rType) throw (::com::sun::star::uno::RuntimeException);
+
+// ::com::sun::star::lang::XEventListener
+ virtual void SAL_CALL disposing(const ::com::sun::star::lang::EventObject& Source) throw(::com::sun::star::uno::RuntimeException);
+
+// ::com::sun::star::form::XUpdateListener
+ virtual sal_Bool SAL_CALL approveUpdate(const ::com::sun::star::lang::EventObject &);
+ virtual void SAL_CALL updated(const ::com::sun::star::lang::EventObject &);
+
+// resolve ambiguity : both OWeakObject and OInterfaceContainerHelper have these memory operators
+ void * SAL_CALL operator new( size_t size ) throw() { return OWeakSubObject::operator new(size); }
+ void SAL_CALL operator delete( void * p ) throw() { OWeakSubObject::operator delete(p); }
+};
+
+//==================================================================
+// FmXContainerMultiplexer
+//==================================================================
+class FmXContainerMultiplexer : public OWeakSubObject,
+ public ::cppu::OInterfaceContainerHelper,
+ public ::com::sun::star::container::XContainerListener
+{
+public:
+ FmXContainerMultiplexer( ::cppu::OWeakObject& rSource, ::osl::Mutex& rMutex);
+ DECLARE_UNO3_DEFAULTS(FmXContainerMultiplexer,OWeakSubObject);
+ virtual ::com::sun::star::uno::Any SAL_CALL queryInterface(const ::com::sun::star::uno::Type& _rType) throw (::com::sun::star::uno::RuntimeException);
+
+// ::com::sun::star::lang::XEventListener
+ virtual void SAL_CALL disposing(const ::com::sun::star::lang::EventObject& Source) throw(::com::sun::star::uno::RuntimeException);
+
+// ::com::sun::star::container::XContainerListener
+ virtual void SAL_CALL elementInserted(const ::com::sun::star::container::ContainerEvent& Event);
+ virtual void SAL_CALL elementRemoved(const ::com::sun::star::container::ContainerEvent& Event);
+ virtual void SAL_CALL elementReplaced(const ::com::sun::star::container::ContainerEvent& Event);
+
+// resolve ambiguity : both OWeakObject and OInterfaceContainerHelper have these memory operators
+ void * SAL_CALL operator new( size_t size ) throw() { return OWeakSubObject::operator new(size); }
+ void SAL_CALL operator delete( void * p ) throw() { OWeakSubObject::operator delete(p); }
+};
+
+//==================================================================
+// FmXGridControl
+//==================================================================
+class FmXGridPeer;
+class FmXGridControl :public UnoControl
+ ,public ::com::sun::star::form::XBoundComponent
+ ,public ::com::sun::star::form::XGrid
+ ,public ::com::sun::star::util::XModifyBroadcaster
+ ,public ::com::sun::star::form::XGridFieldDataSupplier
+ ,public ::com::sun::star::container::XIndexAccess
+ ,public ::com::sun::star::container::XEnumerationAccess
+ ,public ::com::sun::star::util::XModeSelector
+ ,public ::com::sun::star::container::XContainer
+ ,public ::com::sun::star::frame::XDispatchProvider
+ ,public ::com::sun::star::frame::XDispatchProviderInterception
+{
+ FmXModifyMultiplexer m_aModifyListeners;
+ FmXUpdateMultiplexer m_aUpdateListeners;
+ FmXContainerMultiplexer m_aContainerListeners;
+
+protected:
+ sal_uInt16 m_nPeerCreationLevel;
+ sal_Bool m_bInDraw;
+
+ ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > m_xServiceFactory;
+
+public:
+ FmXGridControl(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >&);
+ virtual ~FmXGridControl();
+
+ // UNO Anbindung
+ DECLARE_UNO3_AGG_DEFAULTS(FmXGridControl, UnoControl);
+ virtual ::com::sun::star::uno::Any SAL_CALL queryAggregation(const ::com::sun::star::uno::Type& _rType) throw (::com::sun::star::uno::RuntimeException);
+
+// XTypeProvider
+ virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type> SAL_CALL getTypes( ) throw(::com::sun::star::uno::RuntimeException);
+ virtual ::com::sun::star::uno::Sequence<sal_Int8> SAL_CALL getImplementationId( ) throw(::com::sun::star::uno::RuntimeException);
+
+// ::com::sun::star::lang::XComponent
+ virtual void SAL_CALL dispose() throw(::com::sun::star::uno::RuntimeException);
+
+// ::com::sun::star::lang::XServiceInfo
+ virtual sal_Bool SAL_CALL supportsService(const ::rtl::OUString& ServiceName) throw();
+ virtual ::rtl::OUString SAL_CALL getImplementationName() throw();
+ virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() throw();
+
+// ::com::sun::star::awt::XControl
+ virtual void SAL_CALL createPeer(const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit >& _rToolkit, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >& Parent) throw(::com::sun::star::uno::RuntimeException);
+ virtual sal_Bool SAL_CALL setModel(const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel >& Model);
+ virtual void SAL_CALL setDesignMode(sal_Bool bOn);
+
+// ::com::sun::star::awt::XView
+ virtual void SAL_CALL draw( long x, long y );
+
+// ::com::sun::star::form::XBoundComponent
+ virtual void SAL_CALL addUpdateListener(const ::com::sun::star::uno::Reference< ::com::sun::star::form::XUpdateListener >& l);
+ virtual void SAL_CALL removeUpdateListener(const ::com::sun::star::uno::Reference< ::com::sun::star::form::XUpdateListener >& l);
+ virtual sal_Bool SAL_CALL commit();
+
+// ::com::sun::star::container::XElementAccess
+ virtual ::com::sun::star::uno::Type SAL_CALL getElementType( ) throw(::com::sun::star::uno::RuntimeException);
+ virtual sal_Bool SAL_CALL hasElements( ) throw(::com::sun::star::uno::RuntimeException);
+
+// ::com::sun::star::container::XEnumerationAccess
+ virtual ::com::sun::star::uno::Reference< ::com::sun::star::container::XEnumeration > SAL_CALL createEnumeration() throw(::com::sun::star::uno::RuntimeException);
+
+// ::com::sun::star::container::XIndexAccess
+ virtual sal_Int32 SAL_CALL getCount() throw(::com::sun::star::uno::RuntimeException);
+ virtual ::com::sun::star::uno::Any SAL_CALL getByIndex(sal_Int32 _rIndex) throw(::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
+
+// ::com::sun::star::form::XGrid
+ virtual sal_Int16 SAL_CALL getCurrentColumnPosition();
+ virtual void SAL_CALL setCurrentColumnPosition(sal_Int16 nPos);
+
+// UnoControl
+ virtual ::rtl::OUString GetComponentServiceName();
+
+// ::com::sun::star::util::XModifyBroadcaster
+ virtual void SAL_CALL addModifyListener(const ::com::sun::star::uno::Reference< ::com::sun::star::util::XModifyListener >& l);
+ virtual void SAL_CALL removeModifyListener(const ::com::sun::star::uno::Reference< ::com::sun::star::util::XModifyListener >& l);
+
+// ::com::sun::star::form::XGridFieldDataSupplier
+ virtual ::com::sun::star::uno::Sequence< sal_Bool > SAL_CALL queryFieldDataType( const ::com::sun::star::uno::Type& xType ) throw(::com::sun::star::uno::RuntimeException);
+ virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > SAL_CALL queryFieldData( sal_Int32 nRow, const ::com::sun::star::uno::Type& xType ) throw(::com::sun::star::uno::RuntimeException);
+
+// ::com::sun::star::util::XModeSelector
+ virtual void SAL_CALL setMode(const ::rtl::OUString& Mode) throw(::com::sun::star::lang::NoSupportException, ::com::sun::star::uno::RuntimeException);
+ virtual ::rtl::OUString SAL_CALL getMode() throw(::com::sun::star::uno::RuntimeException);
+ virtual ::com::sun::star::uno::Sequence< ::rtl::OUString> SAL_CALL getSupportedModes() throw(::com::sun::star::uno::RuntimeException);
+ virtual sal_Bool SAL_CALL supportsMode(const ::rtl::OUString& Mode) throw(::com::sun::star::uno::RuntimeException);
+
+// ::com::sun::star::container::XContainer
+ virtual void SAL_CALL addContainerListener(const ::com::sun::star::uno::Reference< ::com::sun::star::container::XContainerListener >& l) throw(::com::sun::star::uno::RuntimeException);
+ virtual void SAL_CALL removeContainerListener(const ::com::sun::star::uno::Reference< ::com::sun::star::container::XContainerListener >& l) throw(::com::sun::star::uno::RuntimeException);
+
+// ::com::sun::star::frame::XDispatchProvider
+ virtual ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatch > SAL_CALL queryDispatch(const ::com::sun::star::util::URL& aURL, const ::rtl::OUString& aTargetFrameName, sal_Int32 nSearchFlags) throw(::com::sun::star::uno::RuntimeException);
+ virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatch > > SAL_CALL queryDispatches(const ::com::sun::star::uno::Sequence< ::com::sun::star::frame::DispatchDescriptor >& aDescripts) throw(::com::sun::star::uno::RuntimeException);
+
+// ::com::sun::star::frame::XDispatchProviderInterception
+ virtual void SAL_CALL registerDispatchProviderInterceptor(const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatchProviderInterceptor >& xInterceptor) throw(::com::sun::star::uno::RuntimeException);
+ virtual void SAL_CALL releaseDispatchProviderInterceptor(const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatchProviderInterceptor >& xInterceptor) throw(::com::sun::star::uno::RuntimeException);
+
+protected:
+ virtual FmXGridPeer* imp_CreatePeer(Window* pParent);
+ // ImplCreatePeer waere besser ;) geht aber nicht, da dann nicht exportiert
+
+};
+
+//==================================================================
+// FmXGridPeer -> Peer fuers Gridcontrol
+//==================================================================
+class FmGridControl;
+class FmXGridPeer :public VCLXWindow
+ ,public ::com::sun::star::form::XGridPeer
+ ,public ::com::sun::star::form::XBoundComponent
+ ,public ::com::sun::star::form::XGrid
+ ,public ::com::sun::star::sdb::XRowSetSupplier
+ ,public ::com::sun::star::util::XModifyBroadcaster
+ ,public ::com::sun::star::beans::XPropertyChangeListener
+ ,public ::com::sun::star::container::XContainerListener
+ ,public ::com::sun::star::sdbc::XRowSetListener
+ ,public ::com::sun::star::form::XLoadListener
+ ,public ::com::sun::star::view::XSelectionChangeListener
+ ,public ::com::sun::star::form::XGridFieldDataSupplier
+ ,public ::com::sun::star::container::XIndexAccess
+ ,public ::com::sun::star::container::XEnumerationAccess
+ ,public ::com::sun::star::util::XModeSelector
+ ,public ::com::sun::star::container::XContainer
+ ,public ::com::sun::star::frame::XStatusListener
+ ,public ::com::sun::star::frame::XDispatchProvider
+ ,public ::com::sun::star::frame::XDispatchProviderInterception
+ ,public ::com::sun::star::form::XResetListener
+{
+ ::com::sun::star::uno::Reference< ::com::sun::star::container::XIndexContainer > m_xColumns;
+ ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XRowSet > m_xCursor;
+ ::cppu::OInterfaceContainerHelper m_aModifyListeners,
+ m_aUpdateListeners,
+ m_aContainerListeners;
+ ::rtl::OUString m_aMode;
+ sal_Int32 m_nCursorListening;
+
+ ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatchProviderInterceptor > m_xFirstDispatchInterceptor;
+
+ sal_Bool m_bInterceptingDispatch;
+
+ sal_Bool* m_pStateCache;
+ // one bool for each supported url
+ ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatch > * m_pDispatchers;
+ // one dispatcher for each supported url
+ // (I would like to have a vector here but including the stl in an exported file seems
+ // very risky to me ....)
+
+protected:
+ ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > m_xServiceFactory;
+ ::osl::Mutex m_aMutex;
+
+public:
+ FmXGridPeer(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >&);
+ ~FmXGridPeer();
+
+ // spaeter Constructor, immer nach dem realen Constructor zu rufen !
+ void Create(Window* pParent, WinBits nStyle);
+
+// UNO Anbindung
+ DECLARE_UNO3_DEFAULTS(FmXGridPeer, VCLXWindow);
+ virtual ::com::sun::star::uno::Any SAL_CALL queryInterface(const ::com::sun::star::uno::Type& _rType) throw (::com::sun::star::uno::RuntimeException);
+
+// XTypeProvider
+ virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type> SAL_CALL getTypes( ) throw(::com::sun::star::uno::RuntimeException);
+ virtual ::com::sun::star::uno::Sequence<sal_Int8> SAL_CALL getImplementationId( ) throw(::com::sun::star::uno::RuntimeException);
+
+// ::com::sun::star::lang::XUnoTunnel
+ static const ::com::sun::star::uno::Sequence< sal_Int8 >& getUnoTunnelImplementationId() throw();
+ static FmXGridPeer* getImplementation( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& _rxIFace ) throw();
+ sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& _rIdentifier ) throw(::com::sun::star::uno::RuntimeException);
+
+// ::com::sun::star::form::XGridPeer
+ virtual ::com::sun::star::uno::Reference< ::com::sun::star::container::XIndexContainer > SAL_CALL getColumns( ) throw(::com::sun::star::uno::RuntimeException);
+ virtual void SAL_CALL setColumns( const ::com::sun::star::uno::Reference< ::com::sun::star::container::XIndexContainer >& aColumns ) throw(::com::sun::star::uno::RuntimeException);
+
+// ::com::sun::star::lang::XComponent
+ virtual void SAL_CALL dispose() throw(::com::sun::star::uno::RuntimeException);
+
+// ::com::sun::star::lang::XEventListener
+ virtual void SAL_CALL disposing(const ::com::sun::star::lang::EventObject& Source) throw(::com::sun::star::uno::RuntimeException);
+
+// ::com::sun::star::form::XBoundComponent
+ virtual void SAL_CALL addUpdateListener(const ::com::sun::star::uno::Reference< ::com::sun::star::form::XUpdateListener >& l);
+ virtual void SAL_CALL removeUpdateListener(const ::com::sun::star::uno::Reference< ::com::sun::star::form::XUpdateListener >& l);
+ virtual sal_Bool SAL_CALL commit();
+
+// ::com::sun::star::container::XElementAccess
+ virtual ::com::sun::star::uno::Type SAL_CALL getElementType( ) throw(::com::sun::star::uno::RuntimeException);
+ virtual sal_Bool SAL_CALL hasElements( ) throw(::com::sun::star::uno::RuntimeException);
+
+// ::com::sun::star::container::XEnumerationAccess
+ virtual ::com::sun::star::uno::Reference< ::com::sun::star::container::XEnumeration > SAL_CALL createEnumeration() throw(::com::sun::star::uno::RuntimeException);
+
+// ::com::sun::star::container::XIndexAccess
+ virtual sal_Int32 SAL_CALL getCount() throw(::com::sun::star::uno::RuntimeException);
+ virtual ::com::sun::star::uno::Any SAL_CALL getByIndex(sal_Int32 _rIndex) throw(::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
+
+// ::com::sun::star::beans::XPropertyChangeListener
+ virtual void SAL_CALL SAL_CALL propertyChange(const ::com::sun::star::beans::PropertyChangeEvent& evt);
+
+// ::com::sun::star::form::XLoadListener
+ virtual void SAL_CALL loaded(const ::com::sun::star::lang::EventObject& rEvent);
+ virtual void SAL_CALL unloaded(const ::com::sun::star::lang::EventObject& rEvent);
+ virtual void SAL_CALL unloading(const ::com::sun::star::lang::EventObject& aEvent) throw(::com::sun::star::uno::RuntimeException);
+ virtual void SAL_CALL reloading(const ::com::sun::star::lang::EventObject& aEvent) throw(::com::sun::star::uno::RuntimeException);
+ virtual void SAL_CALL reloaded(const ::com::sun::star::lang::EventObject& aEvent) throw(::com::sun::star::uno::RuntimeException);
+
+// ::com::sun::star::sdbc::XRowSetListener
+ virtual void SAL_CALL cursorMoved(const ::com::sun::star::lang::EventObject& event) throw(::com::sun::star::uno::RuntimeException);
+ virtual void SAL_CALL rowChanged(const ::com::sun::star::lang::EventObject& event) throw(::com::sun::star::uno::RuntimeException);
+ virtual void SAL_CALL rowSetChanged(const ::com::sun::star::lang::EventObject& event) throw(::com::sun::star::uno::RuntimeException);
+
+// ::com::sun::star::container::XContainerListener
+ virtual void SAL_CALL elementInserted(const ::com::sun::star::container::ContainerEvent& Event);
+ virtual void SAL_CALL elementRemoved(const ::com::sun::star::container::ContainerEvent& Event);
+ virtual void SAL_CALL elementReplaced(const ::com::sun::star::container::ContainerEvent& Event);
+
+// VCLXWindow
+ virtual void SAL_CALL setProperty( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Any& Value ) throw(::com::sun::star::uno::RuntimeException);
+ virtual ::com::sun::star::uno::Any SAL_CALL getProperty( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException);
+
+// ::com::sun::star::form::XGrid
+ virtual sal_Int16 SAL_CALL getCurrentColumnPosition();
+ virtual void SAL_CALL setCurrentColumnPosition(sal_Int16 nPos);
+
+// ::com::sun::star::sdb::XRowSetSupplier
+ virtual ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XRowSet > SAL_CALL getRowSet() throw(::com::sun::star::uno::RuntimeException);
+ virtual void SAL_CALL setRowSet(const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XRowSet >& xDataSource) throw(::com::sun::star::uno::RuntimeException);
+
+// ::com::sun::star::util::XModifyBroadcaster
+ virtual void SAL_CALL addModifyListener(const ::com::sun::star::uno::Reference< ::com::sun::star::util::XModifyListener >& l);
+ virtual void SAL_CALL removeModifyListener(const ::com::sun::star::uno::Reference< ::com::sun::star::util::XModifyListener >& l);
+
+// UnoControl
+ virtual void SAL_CALL SAL_CALL setDesignMode(sal_Bool bOn);
+ virtual sal_Bool SAL_CALL isDesignMode();
+
+// ::com::sun::star::view::XSelectionChangeListener
+ virtual void SAL_CALL selectionChanged(const ::com::sun::star::lang::EventObject& aEvent);
+
+ void CellModified();
+
+// PropertyListening
+ void updateGrid(const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XRowSet >& _rDatabaseCursor);
+ void startCursorListening();
+ void stopCursorListening();
+
+// ::com::sun::star::form::XGridFieldDataSupplier
+ virtual ::com::sun::star::uno::Sequence< sal_Bool > SAL_CALL queryFieldDataType( const ::com::sun::star::uno::Type& xType ) throw(::com::sun::star::uno::RuntimeException);
+ virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > SAL_CALL queryFieldData( sal_Int32 nRow, const ::com::sun::star::uno::Type& xType ) throw(::com::sun::star::uno::RuntimeException);
+
+// ::com::sun::star::util::XModeSelector
+ virtual void SAL_CALL setMode(const ::rtl::OUString& Mode) throw(::com::sun::star::lang::NoSupportException, ::com::sun::star::uno::RuntimeException);
+ virtual ::rtl::OUString SAL_CALL getMode() throw(::com::sun::star::uno::RuntimeException);
+ virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedModes() throw(::com::sun::star::uno::RuntimeException);
+ virtual sal_Bool SAL_CALL supportsMode(const ::rtl::OUString& Mode) throw(::com::sun::star::uno::RuntimeException);
+
+// ::com::sun::star::container::XContainer
+ virtual void SAL_CALL addContainerListener(const ::com::sun::star::uno::Reference< ::com::sun::star::container::XContainerListener >& l) throw(::com::sun::star::uno::RuntimeException);
+ virtual void SAL_CALL removeContainerListener(const ::com::sun::star::uno::Reference< ::com::sun::star::container::XContainerListener >& l) throw(::com::sun::star::uno::RuntimeException);
+
+ void columnVisible(DbGridColumn* pColumn);
+ void columnHidden(DbGridColumn* pColumn);
+
+// ::com::sun::star::awt::XView
+ virtual void SAL_CALL draw( long x, long y );
+
+// ::com::sun::star::frame::XDispatchProvider
+ virtual ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatch > SAL_CALL queryDispatch(const ::com::sun::star::util::URL& aURL, const ::rtl::OUString& aTargetFrameName, sal_Int32 nSearchFlags) throw(::com::sun::star::uno::RuntimeException);
+ virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatch > > SAL_CALL queryDispatches(const ::com::sun::star::uno::Sequence< ::com::sun::star::frame::DispatchDescriptor >& aDescripts) throw(::com::sun::star::uno::RuntimeException);
+
+// ::com::sun::star::frame::XDispatchProviderInterception
+ virtual void SAL_CALL registerDispatchProviderInterceptor(const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatchProviderInterceptor >& xInterceptor) throw(::com::sun::star::uno::RuntimeException);
+ virtual void SAL_CALL releaseDispatchProviderInterceptor(const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatchProviderInterceptor >& xInterceptor) throw(::com::sun::star::uno::RuntimeException);
+
+// ::com::sun::star::frame::XStatusListener
+ virtual void SAL_CALL statusChanged(const ::com::sun::star::frame::FeatureStateEvent& Event) throw(::com::sun::star::uno::RuntimeException);
+
+// ::com::sun::star::form::XResetListener
+ virtual sal_Bool SAL_CALL approveReset(const ::com::sun::star::lang::EventObject& rEvent) throw(::com::sun::star::uno::RuntimeException);
+ virtual void SAL_CALL resetted(const ::com::sun::star::lang::EventObject& rEvent) throw(::com::sun::star::uno::RuntimeException);
+
+protected:
+ virtual FmGridControl* imp_CreateControl(Window* pParent, WinBits nStyle);
+
+ static ::com::sun::star::uno::Sequence< ::com::sun::star::util::URL>& getSupportedURLs();
+ static ::com::sun::star::uno::Sequence<sal_uInt16>& getSupportedGridSlots();
+ void ConnectToDispatcher();
+ void DisConnectFromDispatcher();
+ void UpdateDispatches(); // will connect if not already connected and just update else
+
+ /** If a derived class wants to listen at some column properties, it doesn't have
+ to overload all methods affecting columns (setColumns, elementInserted, elementRemoved ...)
+ Instead it may use addColumnListeners and removeColumnListeners which are called in all
+ the cases.
+ */
+ virtual void addColumnListeners(const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xCol);
+ virtual void removeColumnListeners(const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xCol);
+
+ DECL_LINK(OnQueryGridSlotState, void*);
+ DECL_LINK(OnExecuteGridSlot, void*);
+};
+
+
+
+#endif // _SVX_FMGRID_HXX
+
diff --git a/svx/inc/fmhelp.hrc b/svx/inc/fmhelp.hrc
new file mode 100644
index 000000000000..a82535e5c4d6
--- /dev/null
+++ b/svx/inc/fmhelp.hrc
@@ -0,0 +1,322 @@
+/*************************************************************************
+ *
+ * $RCSfile: fmhelp.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:00:56 $
+ *
+ * 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 _SVX_FMHELP_HRC
+#define _SVX_FMHELP_HRC
+
+// include -----------------------------------------------------------
+#include <svtools/solar.hrc>
+
+// in solar.hrc
+//#define HID_FORMS_START (HID_LIB_START+4000)
+//#define HID_FORMS_END (HID_LIB_START+4999)
+
+// Help-Ids --------------------------------------------------------------
+
+// insgesamt 200
+#define HID_DLG_DBINFO (HID_FORMS_START + 0)
+#define HID_DLG_DBMSG (HID_FORMS_START + 1)
+
+#define HID_PROP_GROUPBOX (HID_FORMS_START + 2)
+#define HID_PROP_CONTROLSOURCE (HID_FORMS_START + 3)
+#define HID_PROP_NAME (HID_FORMS_START + 4)
+#define HID_PROP_TABINDEX (HID_FORMS_START + 5)
+#define HID_PROP_MASTERFIELDS (HID_FORMS_START + 6)
+#define HID_PROP_SLAVEFIELDS (HID_FORMS_START + 7)
+#define HID_PROP_DATASOURCE (HID_FORMS_START + 8)
+#define HID_PROP_CURSORSOURCE (HID_FORMS_START + 9)
+#define HID_PROP_CURSORSOURCETYPE (HID_FORMS_START + 10)
+#define HID_PROP_CURSORTYPE (HID_FORMS_START + 11)
+#define HID_PROP_READONLY (HID_FORMS_START + 12)
+#define HID_PROP_DATAENTRY (HID_FORMS_START + 13)
+#define HID_PROP_NAVIGATION (HID_FORMS_START + 14)
+#define HID_PROP_CYCLE (HID_FORMS_START + 15)
+#define HID_PROP_ALLOW_ADDITIONS (HID_FORMS_START + 16)
+#define HID_PROP_ALLOW_EDITS (HID_FORMS_START + 17)
+#define HID_PROP_ALLOW_DELETIONS (HID_FORMS_START + 18)
+#define HID_PROP_DIRTY (HID_FORMS_START + 19)
+#define HID_PROP_OLDVALUE (HID_FORMS_START + 20)
+#define HID_PROP_VALUE (HID_FORMS_START + 21)
+#define HID_PROP_LOCKED (HID_FORMS_START + 22)
+#define HID_PROP_FORMATKEY (HID_FORMS_START + 23)
+#define HID_PROP_REQUIRED (HID_FORMS_START + 24)
+#define HID_PROP_SCALE (HID_FORMS_START + 25)
+#define HID_PROP_SIZE (HID_FORMS_START + 26)
+#define HID_PROP_UNIQUE (HID_FORMS_START + 27)
+#define HID_PROP_CLASSID (HID_FORMS_START + 28)
+#define HID_PROP_LEFT (HID_FORMS_START + 29)
+#define HID_PROP_RIGHT (HID_FORMS_START + 30)
+#define HID_PROP_HEIGHT (HID_FORMS_START + 31)
+#define HID_PROP_WIDTH (HID_FORMS_START + 32)
+#define HID_PROP_BOUNDCOLUMN (HID_FORMS_START + 33)
+#define HID_PROP_LISTSOURCETYPE (HID_FORMS_START + 34)
+#define HID_PROP_LISTSOURCE (HID_FORMS_START + 35)
+#define HID_PROP_LISTINDEX (HID_FORMS_START + 36)
+#define HID_PROP_TEXT (HID_FORMS_START + 37)
+#define HID_PROP_LABEL (HID_FORMS_START + 38)
+#define HID_PROP_STRINGITEMLIST (HID_FORMS_START + 39)
+#define HID_PROP_SEARCHING (HID_FORMS_START + 40)
+#define HID_PROP_FONT (HID_FORMS_START + 41)
+#define HID_PROP_ROWHEIGHT (HID_FORMS_START + 42)
+#define HID_PROP_BACKGROUNDCOLOR (HID_FORMS_START + 43)
+#define HID_PROP_FILLCOLOR (HID_FORMS_START + 44)
+#define HID_PROP_TEXTCOLOR (HID_FORMS_START + 45)
+#define HID_PROP_LINECOLOR (HID_FORMS_START + 46)
+#define HID_PROP_BORDER (HID_FORMS_START + 47)
+#define HID_PROP_ALIGN (HID_FORMS_START + 48)
+#define HID_PROP_DROPDOWN (HID_FORMS_START + 49)
+#define HID_PROP_MULTILINE (HID_FORMS_START + 50)
+#define HID_PROP_HSCROLL (HID_FORMS_START + 51)
+#define HID_PROP_VSCROLL (HID_FORMS_START + 52)
+#define HID_PROP_TABSTOP (HID_FORMS_START + 53)
+#define HID_PROP_REFVALUE (HID_FORMS_START + 54)
+#define HID_PROP_BUTTONTYPE (HID_FORMS_START + 55)
+#define HID_PROP_SUBMIT_ACTION (HID_FORMS_START + 56)
+#define HID_PROP_SUBMIT_METHOD (HID_FORMS_START + 57)
+#define HID_PROP_SUBMIT_ENCODING (HID_FORMS_START + 58)
+#define HID_PROP_DEFAULTVALUE (HID_FORMS_START + 59)
+#define HID_PROP_SUBMIT_TARGET (HID_FORMS_START + 60)
+#define HID_PROP_DEFAULT_CHECKED (HID_FORMS_START + 61)
+#define HID_PROP_IMAGE_URL (HID_FORMS_START + 62)
+#define HID_PROP_DEFAULT_SELECT_SEQ (HID_FORMS_START + 63)
+#define HID_PROP_MULTISELECTION (HID_FORMS_START + 64)
+
+#define HID_PROP_DATE (HID_FORMS_START + 65)
+#define HID_PROP_DATEMIN (HID_FORMS_START + 66)
+#define HID_PROP_DATEMAX (HID_FORMS_START + 67)
+#define HID_PROP_DATEFORMAT (HID_FORMS_START + 68)
+#define HID_PROP_TIME (HID_FORMS_START + 69)
+#define HID_PROP_TIMEMIN (HID_FORMS_START + 70)
+#define HID_PROP_TIMEMAX (HID_FORMS_START + 71)
+#define HID_PROP_TIMEFORMAT (HID_FORMS_START + 72)
+#define HID_PROP_VALUEMIN (HID_FORMS_START + 73)
+#define HID_PROP_VALUEMAX (HID_FORMS_START + 74)
+#define HID_PROP_VALUESTEP (HID_FORMS_START + 75)
+#define HID_PROP_CURRENCYSYMBOL (HID_FORMS_START + 76)
+#define HID_PROP_EDITMASK (HID_FORMS_START + 77)
+#define HID_PROP_LITERALMASK (HID_FORMS_START + 78)
+#define HID_PROP_ENABLED (HID_FORMS_START + 79)
+#define HID_PROP_AUTOCOMPLETE (HID_FORMS_START + 80)
+#define HID_PROP_LINECOUNT (HID_FORMS_START + 81)
+#define HID_PROP_MAXTEXTLEN (HID_FORMS_START + 82)
+#define HID_PROP_SPIN (HID_FORMS_START + 83)
+#define HID_PROP_STRICTFORMAT (HID_FORMS_START + 84)
+#define HID_PROP_SHOWTHOUSANDSEP (HID_FORMS_START + 85)
+#define HID_PROP_HARDLINEBREAKS (HID_FORMS_START + 86)
+#define HID_PROP_PRINTABLE (HID_FORMS_START + 87)
+#define HID_PROP_TARGET_URL (HID_FORMS_START + 88)
+#define HID_PROP_TARGET_FRAME (HID_FORMS_START + 89)
+#define HID_PROP_TAG (HID_FORMS_START + 90)
+#define HID_PROP_ECHO_CHAR (HID_FORMS_START + 91)
+#define HID_PROP_EMPTY_IS_NULL (HID_FORMS_START + 92)
+#define HID_PROP_DECIMAL_ACCURACY (HID_FORMS_START + 93)
+#define HID_PROP_DATE_SHOW_CENTURY (HID_FORMS_START + 94)
+#define HID_PROP_DEFAULT_BUTTON (HID_FORMS_START + 95)
+#define HID_PROP_HIDDEN_VALUE (HID_FORMS_START + 96)
+#define HID_PROP_TRISTATE (HID_FORMS_START + 97)
+#define HID_PROP_NAVIGATIONBAR (HID_FORMS_START + 98)
+#define HID_PROP_FILTER_CRITERIA (HID_FORMS_START + 99)
+#define HID_PROP_SORT_CRITERIA (HID_FORMS_START + 100)
+#define HID_PROP_DEFAULT_LONG_VALUE (HID_FORMS_START + 101)
+#define HID_PROP_DEFAULT_TIME (HID_FORMS_START + 102)
+#define HID_PROP_DEFAULT_DATE (HID_FORMS_START + 103)
+#define HID_PROP_HELPTEXT (HID_FORMS_START + 104)
+#define HID_PROP_HELPURL (HID_FORMS_START + 105)
+#define HID_PROP_RECORDMARKER (HID_FORMS_START + 106)
+#define HID_PROP_FILTERPROPOSAL (HID_FORMS_START + 107)
+#define HID_PROP_EFFECTIVEMIN (HID_FORMS_START + 108)
+#define HID_PROP_EFFECTIVEMAX (HID_FORMS_START + 109)
+#define HID_PROP_EFFECTIVEDEFAULT (HID_FORMS_START + 110)
+#define HID_PROP_CONTROLLABEL (HID_FORMS_START + 111)
+#define HID_PROP_CURRSYM_POSITION (HID_FORMS_START + 112)
+
+//Unique Id's fuer Dialoge im Property-Editor
+#define UID_PROP_DLG (HID_FORMS_START + 180)
+#define UID_PROP_DLG_FONT_TYPE (UID_PROP_DLG + 0)
+#define UID_PROP_DLG_IMAGE_URL (UID_PROP_DLG + 1)
+#define UID_PROP_DLG_BACKGROUNDCOLOR (UID_PROP_DLG + 2)
+#define UID_PROP_DLG_GRAPHIC_IMPORT (UID_PROP_DLG + 3)
+#define UID_PROP_DLG_ATTR_DATASOURCE (UID_PROP_DLG + 4)
+#define UID_PROP_DLG_ATTR_TARGET_URL (UID_PROP_DLG + 5)
+#define UID_PROP_DLG_NUMBER_FORMAT (UID_PROP_DLG + 6)
+#define UID_PROP_DLG_CONTROLLABEL (UID_PROP_DLG + 7)
+
+// Events
+#define HID_EVT_START (HID_FORMS_START + 200)
+
+// insgesamt 100
+#define HID_EVT_ACTIONPERFORMED (HID_EVT_START + 0)
+#define HID_EVT_AFTERDELETE (HID_EVT_START + 1)
+#define HID_EVT_AFTERINSERT (HID_EVT_START + 2)
+#define HID_EVT_AFTERUPDATE (HID_EVT_START + 3)
+#define HID_EVT_BEFOREDELETE (HID_EVT_START + 4)
+#define HID_EVT_BEFOREINSERT (HID_EVT_START + 5)
+#define HID_EVT_BEFOREUPDATE (HID_EVT_START + 6)
+#define HID_EVT_COMPONENTHIDDEN (HID_EVT_START + 7)
+#define HID_EVT_COMPONENTMOVED (HID_EVT_START + 8)
+#define HID_EVT_COMPONENTPAINT (HID_EVT_START + 9)
+#define HID_EVT_COMPONENTRESIZED (HID_EVT_START + 10)
+#define HID_EVT_COMPONENTSHOWN (HID_EVT_START + 11)
+#define HID_EVT_CONFIRMDELETE (HID_EVT_START + 12)
+#define HID_EVT_ELEMENTINSERTED (HID_EVT_START + 13)
+#define HID_EVT_ELEMENTREMOVED (HID_EVT_START + 14)
+#define HID_EVT_ELEMENTREPLACED (HID_EVT_START + 15)
+#define HID_EVT_ERROROCCURED (HID_EVT_START + 16)
+#define HID_EVT_FIRING (HID_EVT_START + 17)
+#define HID_EVT_FOCUSGAINED (HID_EVT_START + 18)
+#define HID_EVT_FOCUSLOST (HID_EVT_START + 19)
+#define HID_EVT_ITEMSTATECHANGED (HID_EVT_START + 20)
+#define HID_EVT_KEYTYPED (HID_EVT_START + 21)
+#define HID_EVT_LOADED (HID_EVT_START + 22)
+#define HID_EVT_MOUSEDRAGGED (HID_EVT_START + 23)
+#define HID_EVT_MOUSEENTERED (HID_EVT_START + 24)
+#define HID_EVT_MOUSEEXITED (HID_EVT_START + 25)
+#define HID_EVT_MOUSEMOVED (HID_EVT_START + 26)
+#define HID_EVT_MOUSEPRESSED (HID_EVT_START + 27)
+#define HID_EVT_MOUSERELEASED (HID_EVT_START + 28)
+#define HID_EVT_POSITIONED (HID_EVT_START + 29)
+#define HID_EVT_PROPERTIESCHANGE (HID_EVT_START + 30)
+#define HID_EVT_PROPERTYCHANGE (HID_EVT_START + 31)
+#define HID_EVT_PROPERTYSTATECHANGE (HID_EVT_START + 32)
+#define HID_EVT_RESETTED (HID_EVT_START + 33)
+#define HID_EVT_SUBMITTED (HID_EVT_START + 34)
+#define HID_EVT_TEXTCHANGED (HID_EVT_START + 35)
+#define HID_EVT_UNLOADED (HID_EVT_START + 36)
+#define HID_EVT_UPDATECANCELED (HID_EVT_START + 37)
+#define HID_EVT_VETOABLECHANGE (HID_EVT_START + 38)
+#define HID_EVT_CHANGED (HID_EVT_START + 39)
+
+#define HID_EVT_APPROVEACTIONPERFORMED (HID_EVT_START + 40)
+#define HID_EVT_APPROVERESETTED (HID_EVT_START + 41)
+#define HID_EVT_KEYUP (HID_EVT_START + 42)
+#define HID_EVT_APPROVEPARAMETER (HID_EVT_START + 43)
+#define HID_EVT_POSITIONING (HID_EVT_START + 44)
+#define HID_EVT_RELOADED (HID_EVT_START + 45)
+#define HID_EVT_APPROVEROWCHANGE (HID_EVT_START + 46)
+#define HID_EVT_ROWCHANGE (HID_EVT_START + 47)
+
+// Fuer den Button "Makro zuweisen"- Dialog im Property-Editor
+#define UID_EVT_MACRODLG (HID_EVT_START + 99)
+
+#define HID_FM_OTHER_START (HID_FORMS_START + 300)
+#define HID_FORM_NAVIGATOR (HID_FM_OTHER_START + 0)
+#define HID_FORM_NAVIGATOR_WIN (HID_FM_OTHER_START + 1)
+#define HID_FIELD_SEL (HID_FM_OTHER_START + 2)
+#define HID_FIELD_SEL_WIN (HID_FM_OTHER_START + 3)
+#define HID_FILTER_NAVIGATOR (HID_FM_OTHER_START + 4)
+#define HID_FILTER_NAVIGATOR_WIN (HID_FM_OTHER_START + 5)
+
+#define HID_FORM_DLG_START (HID_FORMS_START + 400)
+#define HID_FM_DLG_PROP_FORM (HID_FORM_DLG_START + 0)
+#define HID_FM_DLG_PROP_CONTROL (HID_FORM_DLG_START + 1)
+#define HID_FM_DLG_PROP_GRIDCTR (HID_FORM_DLG_START + 2)
+#define HID_FM_PROPDLG_WINDOW (HID_FORM_DLG_START + 3)
+#define HID_FM_PROPDLG_CONTAINER (HID_FORM_DLG_START + 4)
+#define HID_FM_PROPDLG_TABCTR (HID_FORM_DLG_START + 5)
+#define HID_FM_PROPDLG_TAB_GENERAL (HID_FORM_DLG_START + 6)
+#define HID_FM_PROPDLG_TAB_DATA (HID_FORM_DLG_START + 7)
+#define HID_FM_PROPDLG_TAB_EVT (HID_FORM_DLG_START + 8)
+#define HID_FM_DLG_SEARCH (HID_FORM_DLG_START + 9)
+
+#define HID_SEARCH_TEXT (HID_FORM_DLG_START + 10)
+#define HID_SEARCH_ALLFIELDS (HID_FORM_DLG_START + 11)
+#define HID_SEARCH_SINGLEFIELD (HID_FORM_DLG_START + 12)
+#define HID_SEARCH_FIELDSELECTION (HID_FORM_DLG_START + 13)
+#define HID_SEARCH_POSITION (HID_FORM_DLG_START + 14)
+#define HID_SEARCH_FORMATTER (HID_FORM_DLG_START + 15)
+#define HID_SEARCH_CASE (HID_FORM_DLG_START + 16)
+#define HID_SEARCH_BACKWARD (HID_FORM_DLG_START + 17)
+#define HID_SEARCH_STARTOVER (HID_FORM_DLG_START + 18)
+#define HID_SEARCH_WILDCARD (HID_FORM_DLG_START + 19)
+#define HID_SEARCH_REGULAR (HID_FORM_DLG_START + 20)
+#define HID_SEARCH_APPROX (HID_FORM_DLG_START + 21)
+#define HID_SEARCH_APPROXSETTINGS (HID_FORM_DLG_START + 22)
+#define HID_SEARCH_BTN_SEARCH (HID_FORM_DLG_START + 23)
+#define HID_SEARCH_BTN_CLOSE (HID_FORM_DLG_START + 24)
+
+#define HID_TABORDER_CONTROLS (HID_FORM_DLG_START + 25)
+
+#define HID_CONTROLS_DATE_N_TIME (HID_FORM_DLG_START + 26)
+#define HID_FM_DLG_PARAM (HID_FORM_DLG_START + 27)
+
+#define HID_GRID_TRAVEL_FIRST (HID_FORM_DLG_START + 28)
+#define HID_GRID_TRAVEL_PREV (HID_FORM_DLG_START + 29)
+#define HID_GRID_TRAVEL_NEXT (HID_FORM_DLG_START + 30)
+#define HID_GRID_TRAVEL_LAST (HID_FORM_DLG_START + 31)
+#define HID_GRID_TRAVEL_NEW (HID_FORM_DLG_START + 32)
+#define HID_GRID_TRAVEL_ABSOLUTE (HID_FORM_DLG_START + 33)
+#define HID_GRID_NUMBEROFRECORDS (HID_FORM_DLG_START + 34)
+
+#define UID_SEARCH_RECORDSTATUS (HID_FORM_DLG_START + 35)
+#define UID_SQLERROR_BUTTONMORE (HID_FORM_DLG_START + 36)
+
+// -----------------------------------------------------------------------
+// "Uberlaufpr"ufung -----------------------------------------------------
+// -----------------------------------------------------------------------
+
+#define ACT_SVX_HID_END HID_GRID_NUMBEROFRECORDS
+
+#if ACT_SVX_HID_END > HID_FORMS_END
+#error Resource-Ueberlauf in #line, #file
+#endif
+
+
+#endif
+
diff --git a/svx/inc/fmobjfac.hxx b/svx/inc/fmobjfac.hxx
new file mode 100644
index 000000000000..2505575272cd
--- /dev/null
+++ b/svx/inc/fmobjfac.hxx
@@ -0,0 +1,86 @@
+/*************************************************************************
+ *
+ * $RCSfile: fmobjfac.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:00:56 $
+ *
+ * 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 _SVX_FMOBJFAC_HXX
+#define _SVX_FMOBJFAC_HXX
+
+#ifndef _LINK_HXX //autogen
+#include <tools/link.hxx>
+#endif
+
+class SdrObjFactory;
+
+
+
+class FmFormObjFactory
+{
+public:
+ FmFormObjFactory();
+ ~FmFormObjFactory();
+
+ DECL_LINK(MakeObject, SdrObjFactory*);
+};
+
+
+
+
+#endif // _FM_FMOBJFAC_HXX
+
diff --git a/svx/inc/fontitem.hxx b/svx/inc/fontitem.hxx
new file mode 100644
index 000000000000..96654f04ca71
--- /dev/null
+++ b/svx/inc/fontitem.hxx
@@ -0,0 +1,157 @@
+/*************************************************************************
+ *
+ * $RCSfile: fontitem.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:00:56 $
+ *
+ * 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 _SVX_FONTITEM_HXX
+#define _SVX_FONTITEM_HXX
+
+// include ---------------------------------------------------------------
+
+#ifndef _SFXPOOLITEM_HXX //autogen
+#include <svtools/poolitem.hxx>
+#endif
+#ifndef _STRING_HXX //autogen
+#include <tools/string.hxx>
+#endif
+#ifndef _FONT_HXX //autogen
+#include <vcl/font.hxx>
+#endif
+
+class SvXMLUnitConverter;
+#ifdef _USE_NAMESPACE
+namespace rtl
+{
+#endif
+ class OUString;
+#ifdef _USE_NAMESPACE
+}
+#endif
+
+// class SvxFontItem -----------------------------------------------------
+
+/*
+ [Beschreibung]
+ Dieses Item beschreibt einen Font.
+*/
+
+class SvxFontItem : public SfxPoolItem
+{
+ String aFamilyName;
+ String aStyleName;
+ FontFamily eFamily;
+ FontPitch ePitch;
+ rtl_TextEncoding eTextEncoding;
+
+public:
+ TYPEINFO();
+
+ SvxFontItem( const USHORT nId = ITEMID_FONT );
+ SvxFontItem( const FontFamily eFam, const String& rFamilyName,
+ const String& rStyleName,
+ const FontPitch eFontPitch = PITCH_DONTKNOW,
+ const rtl_TextEncoding eFontTextEncoding = RTL_TEXTENCODING_DONTKNOW,
+ const USHORT nId = ITEMID_FONT );
+
+ // "pure virtual Methoden" vom SfxPoolItem
+ virtual int operator==( const SfxPoolItem& ) const;
+ virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
+ virtual SfxPoolItem* Create(SvStream &, USHORT) const;
+ virtual SvStream& Store(SvStream &, USHORT nItemVersion) const;
+ virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
+ virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
+
+ virtual BOOL importXML( const NAMESPACE_RTL(OUString)& rValue, USHORT nMemberId, const SvXMLUnitConverter& rUnitConverter );
+ virtual BOOL exportXML( NAMESPACE_RTL(OUString)& rValue, USHORT nMemberId, const SvXMLUnitConverter& rUnitConverter ) const;
+
+ virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
+ SfxMapUnit eCoreMetric,
+ SfxMapUnit ePresMetric,
+ String &rText, const International * = 0 ) const;
+
+ // ZugriffsMethoden:
+ inline String &GetFamilyName() { return aFamilyName; }
+ inline const String &GetFamilyName() const { return aFamilyName; }
+
+ inline String &GetStyleName() { return aStyleName; }
+ inline const String &GetStyleName() const { return aStyleName; }
+
+ inline FontFamily &GetFamily() { return eFamily; }
+ inline FontFamily GetFamily() const { return eFamily; }
+
+ inline FontPitch &GetPitch() { return ePitch; }
+ inline FontPitch GetPitch() const { return ePitch; }
+
+ inline rtl_TextEncoding &GetCharSet() { return eTextEncoding; }
+ inline rtl_TextEncoding GetCharSet() const { return eTextEncoding; }
+
+ inline SvxFontItem& operator=(const SvxFontItem& rFont)
+ {
+ aFamilyName = rFont.GetFamilyName();
+ aStyleName = rFont.GetStyleName();
+ eFamily = rFont.GetFamily();
+ ePitch = rFont.GetPitch();
+ eTextEncoding = rFont.GetCharSet();
+ return *this;
+ }
+
+};
+
+#endif // #ifndef _SVX_FONTITEM_HXX
+
+
diff --git a/svx/inc/fontlb.hxx b/svx/inc/fontlb.hxx
new file mode 100644
index 000000000000..67e5ef9a4b8e
--- /dev/null
+++ b/svx/inc/fontlb.hxx
@@ -0,0 +1,122 @@
+/*************************************************************************
+ *
+ * $RCSfile: fontlb.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:00:56 $
+ *
+ * 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 SVX_FONTLB_HXX
+#define SVX_FONTLB_HXX
+
+#ifndef _SVTABBX_HXX //autogen
+#include <svtools/svtabbx.hxx>
+#endif
+
+#ifndef _SV_VIRDEV_HXX //autogen
+#include <vcl/virdev.hxx>
+#endif
+
+
+// Klasse fuer die Darstellung von schriftabhaengigen Strings
+class SvLBoxFontString : public SvLBoxString
+{
+ private:
+
+ Font aPrivatFont;
+
+public:
+ SvLBoxFontString( SvLBoxEntry*,USHORT nFlags,const XubString& rStr,
+ const Font& aFont);
+ SvLBoxFontString();
+ ~SvLBoxFontString();
+
+ void InitViewData( SvLBox*,SvLBoxEntry*,SvViewDataItem* );
+ void Paint( const Point&, SvLBox& rDev, USHORT nFlags,SvLBoxEntry* );
+ SvLBoxItem* Create() const;
+};
+
+// Listbox mit schriftabhaengiger Darstellung
+
+class SvxFontListBox : public SvTabListBox
+{
+ private:
+
+ VirtualDevice *pPrivatVDev;
+ Font aStandardFont;
+ Font aEntryFont;
+ BOOL bSettingFont;
+
+ protected:
+
+ virtual void InitEntry(SvLBoxEntry*, const XubString&,const Image&,const Image&);
+
+ public:
+
+ SvxFontListBox(Window* pParent,const ResId& aResID);
+ ~SvxFontListBox();
+
+ void InsertFontEntry( const String& rString, Font aActorFont);
+
+ void SelectEntryPos( USHORT nPos, BOOL bSelect=TRUE);
+ ULONG GetSelectEntryPos();
+ XubString GetSelectEntry();
+ void SetNoSelection();
+
+};
+
+
+#endif
diff --git a/svx/inc/fwdtitem.hxx b/svx/inc/fwdtitem.hxx
new file mode 100644
index 000000000000..0602807bd40e
--- /dev/null
+++ b/svx/inc/fwdtitem.hxx
@@ -0,0 +1,147 @@
+/*************************************************************************
+ *
+ * $RCSfile: fwdtitem.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:00:56 $
+ *
+ * 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 _SVX_FWDTITEM_HXX
+#define _SVX_FWDTITEM_HXX
+
+// include ---------------------------------------------------------------
+
+
+#ifndef _SFXPOOLITEM_HXX //autogen
+#include <svtools/poolitem.hxx>
+#endif
+#ifndef ITEMID_FONTWIDTH
+#define ITEMID_FONTWIDTH 0
+#endif
+
+
+// class SvxFontWidthItem -----------------------------------------------
+
+
+/* [Beschreibung]
+
+ Dieses Item beschreibt die Font-Breite.
+*/
+
+class SvxFontWidthItem : public SfxPoolItem
+{
+ UINT16 nWidth; // 0 = default
+ USHORT nProp; // default 100%
+public:
+ TYPEINFO();
+
+ SvxFontWidthItem( const USHORT nSz = 0,
+ const USHORT nPropWidth = 100,
+ const USHORT nId = ITEMID_FONTWIDTH );
+
+ // "pure virtual Methoden" vom SfxPoolItem
+ virtual int operator==( const SfxPoolItem& ) const;
+ virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
+ virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
+
+ virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
+ SfxMapUnit eCoreMetric,
+ SfxMapUnit ePresMetric,
+ String &rText, const International * = 0 ) const;
+
+ virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
+ virtual SfxPoolItem* Create(SvStream &, USHORT) const;
+ virtual SvStream& Store(SvStream &, USHORT nItemVersion) const;
+ virtual int ScaleMetrics( long nMult, long nDiv );
+ virtual int HasMetrics() const;
+
+ inline SvxFontWidthItem& operator=(const SvxFontWidthItem& rItem )
+ {
+ SetWidthValue( rItem.GetWidth() );
+ SetProp( rItem.GetProp() );
+ return *this;
+ }
+
+ void SetWidth( UINT16 nNewWidth, const USHORT nNewProp = 100 )
+ {
+ DBG_ASSERT( GetRef() == 0, "SetValue() with pooled item" );
+ nWidth = UINT16(( (UINT32)nNewWidth * nNewProp ) / 100 );
+ nProp = nNewProp;
+ }
+
+ UINT16 GetWidth() const { return nWidth; }
+
+ void SetWidthValue( UINT16 nNewWidth )
+ {
+ DBG_ASSERT( GetRef() == 0, "SetValue() with pooled item" );
+ nWidth = nNewWidth;
+ }
+
+ void SetProp( const USHORT nNewProp )
+ {
+ DBG_ASSERT( GetRef() == 0, "SetValue() with pooled item" );
+ nProp = nNewProp;
+ }
+
+ USHORT GetProp() const { return nProp; }
+};
+
+
+
+
+
+#endif
+
+
diff --git a/svx/inc/galbrws.hxx b/svx/inc/galbrws.hxx
new file mode 100644
index 000000000000..e763b52585e8
--- /dev/null
+++ b/svx/inc/galbrws.hxx
@@ -0,0 +1,144 @@
+/*************************************************************************
+ *
+ * $RCSfile: galbrws.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:00:56 $
+ *
+ * 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 _SVX_GALBRWS_HXX_
+#define _SVX_GALBRWS_HXX_
+
+#ifndef _SFXCTRLITEM_HXX
+#include <sfx2/ctrlitem.hxx>
+#endif
+#ifndef _SFXDOCKWIN_HXX
+#include <sfx2/dockwin.hxx>
+#endif
+
+// -----------
+// - Defines -
+// -----------
+
+#define GALLERYBROWSER() ((GalleryBrowser*)( SfxViewFrame::Current()->GetChildWindow(GalleryChildWindow::GetChildWindowId())->GetWindow()))
+
+// -------------------------
+// - SvxGalleryChildWindow -
+// -------------------------
+
+class GalleryChildWindow : public SfxChildWindow
+{
+public:
+ GalleryChildWindow( Window*, USHORT, SfxBindings*, SfxChildWinInfo* );
+ ~GalleryChildWindow();
+
+ SFX_DECL_CHILDWINDOW( GalleryChildWindow );
+};
+
+// ------------------
+// - FormModel -
+// ------------------
+
+class FmFormModel;
+
+// ------------------
+// - GalleryBrowser -
+// ------------------
+
+class GalleryBrowser1;
+class GalleryBrowser2;
+class Splitter;
+class Gallery;
+
+class GalleryBrowser : public SfxDockingWindow
+{
+ friend class GalleryBrowser1;
+ friend class GalleryBrowser2;
+
+private:
+
+ Size maLastSize;
+ Splitter* mpSplitter;
+ GalleryBrowser1* mpBrowser1;
+ GalleryBrowser2* mpBrowser2;
+ Gallery* mpGallery;
+ long mnDummy1;
+ long mnDummy2;
+ long mnDummy3;
+
+ virtual BOOL Close();
+ virtual void Resize();
+
+ DECL_LINK( SplitHdl, void* );
+
+protected:
+
+ void ThemeSelectionHasChanged();
+
+public:
+
+ GalleryBrowser( SfxBindings* pBindings, SfxChildWindow* pCW,
+ Window* pParent, const ResId& rResId );
+ ~GalleryBrowser();
+
+ INetURLObject GetURL() const;
+ String GetFilterName() const;
+ Graphic GetGraphic() const;
+ BOOL GetVCDrawModel( FmFormModel& rModel ) const;
+ BOOL IsLinkage() const;
+};
+
+#endif // _SVX_GALBRWS_HXX_
diff --git a/svx/inc/gallery.hxx b/svx/inc/gallery.hxx
new file mode 100644
index 000000000000..11569d949c9b
--- /dev/null
+++ b/svx/inc/gallery.hxx
@@ -0,0 +1,190 @@
+/*************************************************************************
+ *
+ * $RCSfile: gallery.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:00:56 $
+ *
+ * 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 _GALLERY_HXX_
+#define _GALLERY_HXX_
+
+#ifndef _SOLAR_H
+#include <tools/solar.h>
+#endif
+#ifndef _STRING_HXX
+#include <tools/string.hxx>
+#endif
+#ifndef _URLOBJ_HXX
+#include <tools/urlobj.hxx>
+#endif
+
+// -----------
+// - Defines -
+// -----------
+
+#define SGA_FORMAT_NONE 0x00000000L
+#define SGA_FORMAT_STRING 0x00000001L
+#define SGA_FORMAT_GRAPHIC 0x00000010L
+#define SGA_FORMAT_SOUND 0x00000100L
+#define SGA_FORMAT_OLE 0x00001000L
+#define SGA_FORMAT_SVDRAW 0x00010000L
+#define SGA_FORMAT_ALL 0xFFFFFFFFL
+
+#define SVX_GALLERY() (GalleryExplorer::GetGallery())
+
+// Defines for preinstalled themes
+#define GALLERY_THEME_3D 1
+#define GALLERY_THEME_ANIMATIONS 2
+#define GALLERY_THEME_BULLETS 3
+#define GALLERY_THEME_CLIPARTS 4
+#define GALLERY_THEME_FLAGS 5
+#define GALLERY_THEME_FLOWCHARTS 6
+#define GALLERY_THEME_FORMS 7
+#define GALLERY_THEME_PHOTOS 8
+#define GALLERY_THEME_BACKGROUNDS 9
+#define GALLERY_THEME_HOMEPAGE 10
+#define GALLERY_THEME_INTERACTION 11
+#define GALLERY_THEME_MAPS 12
+#define GALLERY_THEME_FURNITURE 13
+#define GALLERY_THEME_SURFACES 14
+#define GALLERY_THEME_HTMLBUTTONS 15
+#define GALLERY_THEME_POWERPOINT 16
+#define GALLERY_THEME_RULERS 17
+#define GALLERY_THEME_SOUNDS 18
+#define GALLERY_THEME_SYMBOLS 19
+
+#define GALLERY_THEME_DUMMY1 20
+#define GALLERY_THEME_DUMMY2 21
+#define GALLERY_THEME_DUMMY3 22
+#define GALLERY_THEME_DUMMY4 23
+#define GALLERY_THEME_DUMMY5 24
+
+// -------------------
+// - GalleryExplorer -
+// -------------------
+
+class List;
+class Gallery;
+class VCDrawModel;
+class FmFormModel;
+class Graphic;
+class FmFormModel;
+class Bitmap;
+
+class GalleryExplorer
+{
+private:
+
+ static Gallery* ImplGetGallery();
+
+public:
+
+ static GalleryExplorer* GetGallery();
+
+public:
+
+ INetURLObject GetURL() const;
+ String GetFilterName() const;
+ Graphic GetGraphic() const;
+ BOOL GetVCDrawModel( FmFormModel& rModel ) const;
+ BOOL IsLinkage() const;
+
+ static BOOL FillThemeList( List& rThemeList );
+
+ static BOOL FillObjList( const String& rThemeName, List& rObjList );
+ static BOOL FillObjList( ULONG nThemeId, List& rObjList );
+
+ static BOOL InsertURL( const String& rThemeName, const String& rURL );
+ static BOOL InsertURL( ULONG nThemeId, const String& rURL );
+
+ static BOOL InsertURL( const String& rThemeName, const String& rURL,
+ const ULONG nSgaFormat /* = SGA_FORMAT_ALL */ );
+ static BOOL InsertURL( ULONG nThemeId, const String& rURL,
+ const ULONG nSgaFormat /* = SGA_FORMAT_ALL */ );
+
+ static ULONG GetObjCount( const String& rThemeName );
+ static ULONG GetObjCount( ULONG nThemeId );
+
+ static BOOL GetGraphicObj( const String& rThemeName, ULONG nPos,
+ Graphic* pGraphic = NULL, Bitmap* pThumb = NULL,
+ BOOL bProgess = FALSE );
+ static BOOL GetGraphicObj( ULONG nThemeId, ULONG nPos,
+ Graphic* pGraphic = NULL, Bitmap* pThumb = NULL,
+ BOOL bProgess = FALSE );
+
+ static BOOL InsertGraphicObj( const String& rThemeName, const Graphic& rGraphic );
+ static BOOL InsertGraphicObj( ULONG nThemeId, const Graphic& rGraphic );
+
+ static ULONG GetSdrObjCount( const String& rThemeName );
+ static ULONG GetSdrObjCount( ULONG nThemeId );
+
+ static BOOL GetSdrObj( const String& rThemeName, ULONG nSdrModelPos,
+ FmFormModel* pModel = NULL, Bitmap* pThumb = NULL );
+ static BOOL GetSdrObj( ULONG nThemeId, ULONG nSdrModelPos,
+ FmFormModel* pModel = NULL, Bitmap* pThumb = NULL );
+
+ static BOOL InsertSdrObj( const String& rThemeName, FmFormModel& rModel );
+ static BOOL InsertSdrObj( ULONG nThemeId, FmFormModel& rModel );
+
+ static BOOL BeginLocking( const String& rThemeName );
+ static BOOL BeginLocking( ULONG nThemeId );
+
+ static BOOL EndLocking( const String& rThemeName );
+ static BOOL EndLocking( ULONG nThemeId );
+};
+
+#endif // _GALLERY_HXX_
diff --git a/svx/inc/globl3d.hxx b/svx/inc/globl3d.hxx
new file mode 100644
index 000000000000..c889785ac51d
--- /dev/null
+++ b/svx/inc/globl3d.hxx
@@ -0,0 +1,97 @@
+/*************************************************************************
+ *
+ * $RCSfile: globl3d.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:00:56 $
+ *
+ * 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 _E3D_GLOBL3D_HXX
+#define _E3D_GLOBL3D_HXX
+
+#include <tools/solar.h>
+
+//#define ESODEBUG
+#define E3D_STREAMING
+
+const double PrecisionLimit = 1.0e-14;
+
+const UINT32 E3dInventor = UINT32('E')*0x00000001+
+ UINT32('3')*0x00000100+
+ UINT32('D')*0x00010000+
+ UINT32('1')*0x01000000;
+
+const UINT16 E3D_DISPLAYOBJ_ID = 1;
+const UINT16 E3D_SCENE_ID = 2;
+const UINT16 E3D_POLYSCENE_ID = 3;
+const UINT16 E3D_LIGHT_ID = 5;
+const UINT16 E3D_DISTLIGHT_ID = 6;
+const UINT16 E3D_POINTLIGHT_ID = 7;
+const UINT16 E3D_SPOTLIGHT_ID = 8;
+const UINT16 E3D_OBJECT_ID = 10;
+const UINT16 E3D_POLYOBJ_ID = 11;
+const UINT16 E3D_CUBEOBJ_ID = 12;
+const UINT16 E3D_SPHEREOBJ_ID = 13;
+const UINT16 E3D_POINTOBJ_ID = 14;
+const UINT16 E3D_EXTRUDEOBJ_ID = 15;
+const UINT16 E3D_LATHEOBJ_ID = 16;
+const UINT16 E3D_LABELOBJ_ID = 20;
+const UINT16 E3D_COMPOUNDOBJ_ID = 21;
+const UINT16 E3D_POLYGONOBJ_ID = 22;
+
+
+
+#endif // _E3D_GLOBL3D_HXX
diff --git a/svx/inc/globlac.hrc b/svx/inc/globlac.hrc
new file mode 100644
index 000000000000..cefc86ea4d0c
--- /dev/null
+++ b/svx/inc/globlac.hrc
@@ -0,0 +1,245 @@
+/*************************************************************************
+ *
+ * $RCSfile: globlac.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:00:56 $
+ *
+ * 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 _GLOBALACC_SRC
+#define _GLOBALACC_SRC
+
+#define ACC_CODE( Id, c, bSh, bM1, bM2 ) \
+ AcceleratorItem { Identifier = Id; \
+ Key = KeyCode { Code = c ; \
+ Shift = bSh ; Modifier1 = bM1 ; Modifier2 = bM2 ; }; };
+
+#define ACC_FUNC( Id, f ) \
+ AcceleratorItem { Identifier = Id; \
+ Key = KeyCode { Function = f ; }; };
+
+#define ACC_KEY( language, c, bSh, bM1, bM2 ) \
+ Key[ language ] = KeyCode { Code = c ; \
+ Shift = bSh ; Modifier1 = bM1 ; Modifier2 = bM2 ; };
+
+#define ACC_DEF_KEY( c, bSh, bM1, bM2 ) \
+ Key = KeyCode { Code = c ; \
+ Shift = bSh ; Modifier1 = bM1 ; Modifier2 = bM2 ; };
+
+
+#define AI_HELPINDEX ACC_CODE( SID_HELPINDEX, KEY_F1, FALSE, TRUE, FALSE )
+
+#define AI_ATTR_CHAR ACC_CODE( SID_ATTR_CHAR, KEY_F2, FALSE, FALSE, FALSE )
+#define AI_PRESENTATION ACC_CODE( SID_PRESENTATION, KEY_F2, FALSE, TRUE, FALSE )
+#define AI_ENTER_GROUP ACC_CODE( SID_ENTER_GROUP, KEY_F3, FALSE, FALSE, FALSE )
+#define AI_COPYOBJECTS ACC_CODE( SID_COPYOBJECTS, KEY_F3, TRUE, FALSE, FALSE )
+#define AI_LEAVE_GROUP ACC_CODE( SID_LEAVE_GROUP, KEY_F3, FALSE, TRUE, FALSE )
+#define AI_ATTR_TRANSFORM ACC_CODE( SID_ATTR_TRANSFORM, KEY_F4, FALSE, FALSE, FALSE )
+#define AI_NAVIGATOR ACC_CODE( SID_NAVIGATOR, KEY_F5, FALSE, FALSE, FALSE )
+#define AI_SPELLING ACC_CODE( SID_SPELLING, KEY_F7, FALSE, FALSE, FALSE )
+#define AI_THESAURUS ACC_CODE( SID_THESAURUS, KEY_F7, FALSE, TRUE, FALSE )
+#define AI_BEZIER_EDIT ACC_CODE( SID_BEZIER_EDIT, KEY_F8, FALSE, FALSE, FALSE )
+#define AI_ATTR_TEXT_FITTOSIZE ACC_CODE( SID_ATTR_TEXT_FITTOSIZE, KEY_F8, TRUE, TRUE, FALSE )
+#define AI_STYLE_DESIGNER ACC_CODE( SID_STYLE_DESIGNER, KEY_F11, FALSE, FALSE, FALSE )
+#define AI_OUTLINEMODE ACC_CODE( SID_OUTLINEMODE, KEY_F12, FALSE, FALSE, FALSE )
+#define AI_DRAWINGMODE ACC_CODE( SID_DRAWINGMODE, KEY_F12, FALSE, TRUE, FALSE )
+
+#define AI_ATTR_PARA_LINESPACE_10 ACC_CODE( SID_ATTR_PARA_LINESPACE_10, KEY_1, FALSE, TRUE, FALSE )
+#define AI_ATTR_PARA_LINESPACE_20 ACC_CODE( SID_ATTR_PARA_LINESPACE_20, KEY_2, FALSE, TRUE, FALSE )
+#define AI_ATTR_PARA_LINESPACE_15 ACC_CODE( SID_ATTR_PARA_LINESPACE_15, KEY_5, FALSE, TRUE, FALSE )
+#define AI_SHOW_ITEMBROWSER ACC_CODE( SID_SHOW_ITEMBROWSER, KEY_9, TRUE, TRUE, TRUE )
+
+#define AI_ATTR_PARA_ADJUST_BLOCK AcceleratorItem { Identifier = SID_ATTR_PARA_ADJUST_BLOCK;\
+ ACC_DEF_KEY( KEY_B, FALSE, TRUE, FALSE ) \
+ ACC_KEY( English_us, KEY_J, FALSE, TRUE, FALSE ) \
+ ACC_KEY( Italian, KEY_F, FALSE, TRUE, FALSE ) \
+ ACC_KEY( Spanish, KEY_J, FALSE, TRUE, FALSE ) \
+ ACC_KEY( French, KEY_J, FALSE, TRUE, FALSE ) \
+ ACC_KEY( Dutch, KEY_J, FALSE, TRUE, FALSE ) \
+ ACC_KEY( polish, KEY_J, FALSE, TRUE, FALSE ) \
+ ACC_KEY( russian, KEY_J, FALSE, TRUE, FALSE ) };
+
+#define AI_ATTR_PARA_ADJUST_CENTER AcceleratorItem { Identifier = SID_ATTR_PARA_ADJUST_CENTER;\
+ ACC_DEF_KEY( KEY_E, FALSE, TRUE, FALSE ) \
+ ACC_KEY( English_us, KEY_E, FALSE, TRUE, FALSE ) \
+ ACC_KEY( Italian, KEY_E, FALSE, TRUE, FALSE ) \
+ ACC_KEY( Spanish, KEY_E, FALSE, TRUE, FALSE ) \
+ ACC_KEY( French, KEY_C, TRUE, TRUE, FALSE ) \
+ ACC_KEY( Dutch, KEY_J, FALSE, TRUE, FALSE ) };
+
+#define AI_ATTR_CHAR_WEIGHT AcceleratorItem { Identifier = SID_ATTR_CHAR_WEIGHT;\
+ ACC_DEF_KEY( KEY_F, FALSE, TRUE, FALSE ) \
+ ACC_KEY( English_us, KEY_B, FALSE, TRUE, FALSE ) \
+ ACC_KEY( Italian, KEY_G, FALSE, TRUE, FALSE ) \
+ ACC_KEY( Spanish, KEY_N, FALSE, TRUE, FALSE ) \
+ ACC_KEY( French, KEY_G, FALSE, TRUE, FALSE ) \
+ ACC_KEY( Dutch, KEY_B, FALSE, TRUE, FALSE ) \
+ ACC_KEY( danish, KEY_F, FALSE, TRUE, FALSE ) \
+ ACC_KEY( polish, KEY_B, FALSE, TRUE, FALSE ) \
+ ACC_KEY( russian, KEY_B, FALSE, TRUE, FALSE ) };
+
+#define AI_SEARCH_DLG AcceleratorItem { Identifier = SID_SEARCH_DLG;\
+ ACC_DEF_KEY( KEY_G, FALSE, TRUE, FALSE ) \
+ ACC_KEY( English_us, KEY_F, FALSE, TRUE, FALSE ) \
+ ACC_KEY( Italian, KEY_B, FALSE, TRUE, FALSE ) \
+ ACC_KEY( Spanish, KEY_G, FALSE, TRUE, FALSE ) \
+ ACC_KEY( French, KEY_F, FALSE, TRUE, FALSE ) \
+ ACC_KEY( Dutch, KEY_F, FALSE, TRUE, FALSE ) };
+
+#define AI_GROUP ACC_CODE( SID_GROUP, KEY_G, TRUE, TRUE, FALSE )
+#define AI_UNGROUP ACC_CODE( SID_UNGROUP, KEY_G, TRUE, TRUE, TRUE )
+
+// Weitersuchen ...
+#define AI_SET_SUPER_SCRIPT AcceleratorItem { Identifier = SID_SET_SUPER_SCRIPT;\
+ ACC_DEF_KEY( KEY_H, FALSE, TRUE, FALSE ) \
+ ACC_KEY( English_us, KEY_P, TRUE, TRUE, FALSE ) \
+ ACC_KEY( Italian, KEY_H, FALSE, TRUE, FALSE ) \
+ ACC_KEY( Spanish, KEY_H, FALSE, TRUE, FALSE ) \
+ ACC_KEY( French, KEY_H, FALSE, TRUE, FALSE ) \
+ ACC_KEY( Dutch, KEY_H, FALSE, TRUE, FALSE ) };
+
+#define AI_ATTR_CHAR_POSTURE AcceleratorItem { Identifier = SID_ATTR_CHAR_POSTURE;\
+ ACC_DEF_KEY( KEY_K, FALSE, TRUE, FALSE ) \
+ ACC_KEY( English_us, KEY_I, FALSE, TRUE, FALSE ) \
+ ACC_KEY( Italian, KEY_I, FALSE, TRUE, FALSE ) \
+ ACC_KEY( Spanish, KEY_K, FALSE, TRUE, FALSE ) \
+ ACC_KEY( French, KEY_I, FALSE, TRUE, FALSE ) \
+ ACC_KEY( Dutch, KEY_I, FALSE, TRUE, FALSE ) \
+ ACC_KEY( danish, KEY_K, FALSE, TRUE, FALSE ) \
+ ACC_KEY( polish, KEY_I, FALSE, TRUE, FALSE ) \
+ ACC_KEY( russian, KEY_I, FALSE, TRUE, FALSE ) };
+
+#define AI_COMBINE ACC_CODE( SID_COMBINE, KEY_K, TRUE, TRUE, FALSE )
+#define AI_DISMANTLE ACC_CODE( SID_DISMANTLE, KEY_K, TRUE, TRUE, TRUE )
+#define AI_ATTR_PARA_ADJUST_LEFT AcceleratorItem { Identifier = SID_ATTR_PARA_ADJUST_LEFT;\
+ ACC_DEF_KEY( KEY_L, FALSE, TRUE, FALSE ) \
+ ACC_KEY( English_us, KEY_L, FALSE, TRUE, FALSE ) \
+ ACC_KEY( Italian, KEY_T, FALSE, TRUE, FALSE ) \
+ ACC_KEY( Spanish, KEY_I, FALSE, TRUE, FALSE ) \
+ ACC_KEY( French, KEY_G, TRUE, TRUE, FALSE ) \
+ ACC_KEY( Dutch, KEY_L, FALSE, TRUE, FALSE ) };
+
+#define AI_ATTR_PARA_ADJUST_RIGHT AcceleratorItem { Identifier = SID_ATTR_PARA_ADJUST_RIGHT;\
+ ACC_DEF_KEY( KEY_R, FALSE, TRUE, FALSE ) \
+ ACC_KEY( English_us, KEY_R, FALSE, TRUE, FALSE ) \
+ ACC_KEY( Italian, KEY_R, FALSE, TRUE, FALSE ) \
+ ACC_KEY( Spanish, KEY_D, FALSE, TRUE, FALSE ) \
+ ACC_KEY( French, KEY_D, TRUE, TRUE, FALSE ) \
+ ACC_KEY( Dutch, KEY_R, FALSE, TRUE, FALSE ) };
+
+#define AI_SET_SUB_SCRIPT AcceleratorItem { Identifier = SID_SET_SUB_SCRIPT;\
+ ACC_DEF_KEY( KEY_T, FALSE, TRUE, FALSE ) \
+ ACC_KEY( English_us, KEY_B, TRUE, TRUE, FALSE ) \
+ ACC_KEY( Italian, KEY_B, TRUE, TRUE, FALSE ) \
+ ACC_KEY( Spanish, KEY_T, FALSE, TRUE, FALSE ) \
+ ACC_KEY( French, KEY_T, FALSE, TRUE, FALSE ) \
+ ACC_KEY( Dutch, KEY_P, TRUE, TRUE, FALSE ) };
+
+#define AI_ATTR_CHAR_UNDERLINE AcceleratorItem { Identifier = SID_ATTR_CHAR_UNDERLINE;\
+ ACC_DEF_KEY( KEY_U, FALSE, TRUE, FALSE ) \
+ ACC_KEY( English_us, KEY_U, FALSE, TRUE, FALSE ) \
+ ACC_KEY( Italian, KEY_U, FALSE, TRUE, FALSE ) \
+ ACC_KEY( Spanish, KEY_U, FALSE, TRUE, FALSE ) \
+ ACC_KEY( French, KEY_U, FALSE, TRUE, FALSE ) \
+ ACC_KEY( Dutch, KEY_U, FALSE, TRUE, FALSE ) \
+ ACC_KEY( danish, KEY_U, FALSE, TRUE, FALSE ) \
+ ACC_KEY( polish, KEY_U, FALSE, TRUE, FALSE ) \
+ ACC_KEY( russian, KEY_U, FALSE, TRUE, FALSE ) };
+
+#define AI_STYLE_CATALOG ACC_CODE( SID_STYLE_CATALOG, KEY_Y, FALSE, TRUE, FALSE )
+#define AI_WIN_FULLSCREEN ACC_CODE( SID_WIN_FULLSCREEN, KEY_J, TRUE, TRUE, FALSE )
+#define AI_DESKTOPMODE ACC_CODE( SID_DESKTOPMODE, KEY_I, TRUE, TRUE, FALSE )
+#define AI_FOCUSURLBOX ACC_CODE( SID_FOCUSURLBOX, KEY_O, TRUE, TRUE, FALSE )
+#define AI_SELECTALL ACC_CODE( SID_SELECTALL, KEY_A, FALSE, TRUE, FALSE )
+
+// Anordnung
+#define AI_FRAME_TO_TOP ACC_CODE( SID_FRAME_TO_TOP, KEY_ADD, TRUE, TRUE, FALSE )
+#define AI_MOREFRONT ACC_CODE( SID_MOREFRONT, KEY_ADD, FALSE, TRUE, FALSE )
+#define AI_FRAME_TO_BOTTOM ACC_CODE( SID_FRAME_TO_BOTTOM, KEY_SUBTRACT, TRUE, TRUE, FALSE )
+#define AI_MOREBACK ACC_CODE( SID_MOREBACK, KEY_SUBTRACT, FALSE, TRUE, FALSE )
+
+// Explorer / Beamer
+#define AI_FOCUS_EXPLORER ACC_CODE( SID_FOCUS_EXPLORER, KEY_E, TRUE, TRUE, FALSE )
+#define AI_FOCUS_BEAMER ACC_CODE( SID_FOCUS_BEAMER, KEY_B, TRUE, TRUE, FALSE )
+
+// sonstige Acceleratoren
+#define AI_NEWDOC ACC_FUNC( SID_NEWDOC, KEYFUNC_NEW )
+#define AI_OPENDOC ACC_FUNC( SID_OPENDOC, KEYFUNC_OPEN )
+
+// Mac
+#define AI_CLOSEWIN ACC_FUNC( SID_CLOSEWIN, KEYFUNC_CLOSE )
+
+#define AI_SAVEDOC ACC_FUNC( SID_SAVEDOC, KEYFUNC_SAVE )
+#define AI_SAVEASDOC ACC_FUNC( SID_SAVEASDOC, KEYFUNC_SAVEAS )
+#define AI_PRINTDOC ACC_FUNC( SID_PRINTDOC, KEYFUNC_PRINT )
+#define AI_QUITAPP ACC_FUNC( SID_QUITAPP, KEYFUNC_QUIT )
+#define AI_CUT ACC_FUNC( SID_CUT, KEYFUNC_CUT )
+#define AI_COPY ACC_FUNC( SID_COPY, KEYFUNC_COPY )
+#define AI_PASTE ACC_FUNC( SID_PASTE, KEYFUNC_PASTE )
+#define AI_UNDO ACC_FUNC( SID_UNDO, KEYFUNC_UNDO )
+#define AI_REDO ACC_FUNC( SID_REDO, KEYFUNC_REDO )
+#define AI_REPEAT ACC_FUNC( SID_REPEAT, KEYFUNC_REPEAT )
+#define AI_DELETE ACC_FUNC( SID_DELETE, KEYFUNC_DELETE )
+
+// Non Product
+#define AI_PIXELMODE ACC_CODE( SID_PIXELMODE, KEY_P, TRUE, TRUE, TRUE )
+#define AI_ANIMATIONMODE ACC_CODE( SID_ANIMATIONMODE, KEY_A, TRUE, TRUE, TRUE )
+
+#endif // _GLOBLACC_SRC
+
+
+
+
diff --git a/svx/inc/grafctrl.hxx b/svx/inc/grafctrl.hxx
new file mode 100644
index 000000000000..70e97bb929e1
--- /dev/null
+++ b/svx/inc/grafctrl.hxx
@@ -0,0 +1,185 @@
+/*************************************************************************
+ *
+ * $RCSfile: grafctrl.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:00:56 $
+ *
+ * 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 _SVX_GRAFCTRL_HXX
+#define _SVX_GRAFCTRL_HXX
+
+#ifndef _SFXLSTNER_HXX //autogen
+#include <svtools/lstner.hxx>
+#endif
+#ifndef _SFXTBXCTRL_HXX //autogen
+#include <sfx2/tbxctrl.hxx>
+#endif
+
+// -------------------------
+// - SvxGrafToolBoxControl -
+// -------------------------
+
+class SvxGrafToolBoxControl : public SfxToolBoxControl, public SfxListener
+{
+public:
+
+ SFX_DECL_TOOLBOX_CONTROL();
+ SvxGrafToolBoxControl( USHORT nId, ToolBox& rTbx, SfxBindings& rBind );
+ ~SvxGrafToolBoxControl();
+
+ virtual void StateChanged( USHORT nSID, SfxItemState eState, const SfxPoolItem* pState );
+ virtual Window* CreateItemWindow( Window *pParent );
+ virtual void SFX_NOTIFY( SfxBroadcaster& rBC, const TypeId& rBCType,
+ const SfxHint& rHint, const TypeId& rHintType );
+};
+
+// ----------------------------
+// - SvxGrafRedToolBoxControl -
+// ----------------------------
+
+class SvxGrafRedToolBoxControl : public SvxGrafToolBoxControl
+{
+public:
+ SFX_DECL_TOOLBOX_CONTROL();
+ SvxGrafRedToolBoxControl( USHORT nId, ToolBox& rTbx, SfxBindings& rBind );
+};
+
+// ------------------------------
+// - SvxGrafGreenToolBoxControl -
+// ------------------------------
+
+class SvxGrafGreenToolBoxControl : public SvxGrafToolBoxControl
+{
+public:
+ SFX_DECL_TOOLBOX_CONTROL();
+ SvxGrafGreenToolBoxControl( USHORT nId, ToolBox& rTbx, SfxBindings& rBind );
+};
+
+// -----------------------------
+// - SvxGrafBlueToolBoxControl -
+// -----------------------------
+
+class SvxGrafBlueToolBoxControl : public SvxGrafToolBoxControl
+{
+public:
+ SFX_DECL_TOOLBOX_CONTROL();
+ SvxGrafBlueToolBoxControl( USHORT nId, ToolBox& rTbx, SfxBindings& rBind );
+};
+
+// ----------------------------------
+// - SvxGrafLuminanceToolBoxControl -
+// ----------------------------------
+
+class SvxGrafLuminanceToolBoxControl : public SvxGrafToolBoxControl
+{
+public:
+ SFX_DECL_TOOLBOX_CONTROL();
+ SvxGrafLuminanceToolBoxControl( USHORT nId, ToolBox& rTbx, SfxBindings& rBind );
+};
+
+// ---------------------------------
+// - SvxGrafContrastToolBoxControl -
+// ---------------------------------
+
+class SvxGrafContrastToolBoxControl : public SvxGrafToolBoxControl
+{
+public:
+ SFX_DECL_TOOLBOX_CONTROL();
+ SvxGrafContrastToolBoxControl( USHORT nId, ToolBox& rTbx, SfxBindings& rBind );
+};
+
+// ------------------------------
+// - SvxGrafGammaToolBoxControl -
+// ------------------------------
+
+class SvxGrafGammaToolBoxControl : public SvxGrafToolBoxControl
+{
+public:
+ SFX_DECL_TOOLBOX_CONTROL();
+ SvxGrafGammaToolBoxControl( USHORT nId, ToolBox& rTbx, SfxBindings& rBind );
+};
+
+// -------------------------------------
+// - SvxGrafTransparenceToolBoxControl -
+// -------------------------------------
+
+class SvxGrafTransparenceToolBoxControl : public SvxGrafToolBoxControl
+{
+public:
+ SFX_DECL_TOOLBOX_CONTROL();
+ SvxGrafTransparenceToolBoxControl( USHORT nId, ToolBox& rTbx, SfxBindings& rBind );
+};
+
+// -----------------------------
+// - SvxGrafModeToolBoxControl -
+// -----------------------------
+
+class SvxGrafModeToolBoxControl : public SfxToolBoxControl, public SfxListener
+{
+public:
+ SFX_DECL_TOOLBOX_CONTROL();
+ SvxGrafModeToolBoxControl( USHORT nId, ToolBox& rTbx, SfxBindings& rBind );
+ ~SvxGrafModeToolBoxControl();
+
+ virtual void StateChanged( USHORT nSID, SfxItemState eState, const SfxPoolItem* pState );
+ virtual Window* CreateItemWindow( Window *pParent );
+ virtual void SFX_NOTIFY( SfxBroadcaster& rBC, const TypeId& rBCType,
+ const SfxHint& rHint, const TypeId& rHintType );
+};
+
+
+#endif // _SVX_GRAFCTRL_HXX
diff --git a/svx/inc/helpid.hrc b/svx/inc/helpid.hrc
new file mode 100644
index 000000000000..48ce8540bd00
--- /dev/null
+++ b/svx/inc/helpid.hrc
@@ -0,0 +1,461 @@
+/*************************************************************************
+ *
+ * $RCSfile: helpid.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:00:56 $
+ *
+ * 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 _SVX_HELPID_HRC
+#define _SVX_HELPID_HRC
+
+// include ---------------------------------------------------------------
+
+#include <svtools/solar.hrc>
+
+// Help-Ids --------------------------------------------------------------
+
+#define HID_GALLERY_BROWSER (HID_SVX_START + 0)
+#define HID_GALLERY_THEME (HID_SVX_START + 1)
+#define HID_GALLERY_NEW_THEME (HID_SVX_START + 2)
+#define HID_GALLERY_RENAME_THEME (HID_SVX_START + 3)
+#define HID_GALLERY_SEARCH (HID_SVX_START + 4)
+#define HID_GALLERY_APPLY (HID_SVX_START + 5)
+#define HID_GALLERY_ACTUALIZE (HID_SVX_START + 6)
+#define HID_GALLERY_WINDOW (HID_SVX_START + 7)
+#define HID_GALLERY_RENAME (HID_SVX_START + 8)
+#define HID_GALLERY_PROPERTIES (HID_SVX_START + 9)
+
+#define HID_TRANS_POSITION (HID_SVX_START + 10)
+#define HID_TRANS_SIZE (HID_SVX_START + 11)
+#define HID_TRANS_ANGLE (HID_SVX_START + 12)
+#define HID_TRANS_SLANT (HID_SVX_START + 13)
+
+#define HID_TABULATOR (HID_SVX_START + 14)
+#define HID_BORDER (HID_SVX_START + 15)
+#define HID_BACKGROUND (HID_SVX_START + 16)
+#define HID_ALIGNMENT (HID_SVX_START + 17)
+#define HID_NUMBERFORMAT (HID_SVX_START + 18)
+#define HID_CAPTION (HID_SVX_START + 19)
+
+#define HID_FORMAT_PAGE (HID_SVX_START + 20)
+#define HID_FORMAT_HEADER (HID_SVX_START + 21)
+#define HID_FORMAT_FOOTER (HID_SVX_START + 22)
+#define HID_FORMAT_CHAR_STD (HID_SVX_START + 23)
+#define HID_FORMAT_CHAR_EXT (HID_SVX_START + 24)
+#define HID_FORMAT_PARAGRAPH_STD (HID_SVX_START + 25)
+#define HID_FORMAT_PARAGRAPH_EXT (HID_SVX_START + 26)
+#define HID_FORMAT_PARAGRAPH_ALIGN (HID_SVX_START + 27)
+
+#define HID_AREA_AREA (HID_SVX_START + 30)
+#define HID_AREA_HATCH (HID_SVX_START + 31)
+#define HID_AREA_BITMAP (HID_SVX_START + 32)
+#define HID_AREA_GRADIENT (HID_SVX_START + 33)
+#define HID_LINE_LINE (HID_SVX_START + 34)
+#define HID_LINE_DEF (HID_SVX_START + 35)
+#define HID_LINE_ENDDEF (HID_SVX_START + 36)
+#define HID_AREA_SHADOW (HID_SVX_START + 37)
+#define HID_AREA_TRANSPARENCE (HID_SVX_START + 38)
+
+#define HID_OPTIONS_COLOR (HID_SVX_START + 40)
+#define HID_OPTIONS_SAVE (HID_SVX_START + 41)
+#define HID_OPTIONS_PATH (HID_SVX_START + 42)
+#define HID_OPTIONS_GENERAL (HID_SVX_START + 43)
+#define HID_OPTIONS_LINGU (HID_SVX_START + 44)
+#define HID_OPTIONS_SPELL (HID_SVX_START + 45)
+#define HID_OPTIONS_DICT_NEW (HID_SVX_START + 46)
+#define HID_OPTIONS_DICT_EDIT (HID_SVX_START + 47)
+#define HID_OPTIONS_GRID (HID_SVX_START + 48)
+#define HID_OPTIONS_INET (HID_SVX_START + 49)
+
+#define HID_DLG_NAME (HID_SVX_START + 50)
+#define HID_DLG_MESSBOX (HID_SVX_START + 51)
+#define HID_SEARCHATTR (HID_SVX_START + 52)
+#define HID_HYPHENATE (HID_SVX_START + 53)
+#define HID_SPELLCHECK (HID_SVX_START + 54)
+#define HID_SEARCHSIMILARITY (HID_SVX_START + 55)
+#define HID_PASSWORD (HID_SVX_START + 56)
+#define HID_MULTIPATH (HID_SVX_START + 57)
+
+//#define HID_BASICIDE_TOOLBOX (HID_SVX_START + 58)
+//#define HID_BASICIDE_OBJECTS (HID_SVX_START + 59)
+//#define HID_MACRO_OPTIONS (HID_SVX_START + 60)
+//#define HID_BASICIDE_BRKPNTS (HID_SVX_START + 61)
+//#define HID_BASICIDE_MODULS (HID_SVX_START + 62)
+//#define HID_BASICIDE_LIBS_TP (HID_SVX_START + 63)
+//#define HID_BASICIDE_LIBS_DLG (HID_SVX_START + 64)
+//#define HID_BASICIDE_CONTROLS (HID_SVX_START + 65)
+//#define HID_BASICIDE_MACROS (HID_SVX_START + 66)
+//#define HID_BASICIDE_LIBS (HID_SVX_START + 67)
+//#define HID_BASICIDE_ORG_TC (HID_SVX_START + 68)
+
+#define HID_POPUP_COLOR (HID_SVX_START + 70)
+#define HID_POPUP_BRUSH (HID_SVX_START + 71)
+#define HID_POPUP_FRAME (HID_SVX_START + 72)
+#define HID_POPUP_LINE (HID_SVX_START + 73)
+
+#define HID_OPTIONS_MAIL (HID_SVX_START + 74)
+#define HID_THES_LANGUAGE (HID_SVX_START + 75)
+
+#define HID_OPTIONS_PROXY (HID_SVX_START + 76)
+#define HID_OPTIONS_CACHE (HID_SVX_START + 77)
+#define HID_OPTIONS_TYPE (HID_SVX_START + 78)
+#define HID_OPTIONS_SEARCH (HID_SVX_START + 79)
+
+//#define HID_BASICIDE_MODULES_TREE (HID_SVX_START + 80)
+//#define HID_BASICIDE_LIBS_TREE (HID_SVX_START + 81)
+//#define HID_BASICIDE_LIBSDLG_TREE (HID_SVX_START + 82)
+//#define HID_BASICIDE_OBJECTCAT (HID_SVX_START + 83)
+
+#define HID_PAGE_LIGHT3D (HID_SVX_START + 84)
+#define HID_PAGE_MEASURE (HID_SVX_START + 85)
+#define HID_PAGE_TEXTATTR (HID_SVX_START + 86)
+#define HID_PAGE_3DATTR (HID_SVX_START + 87)
+#define HID_CTRL_COLOR (HID_SVX_START + 88)
+#define HID_PAGE_CONNECTION (HID_SVX_START + 89)
+#define HID_PAGE_CONNECTION_CTL_PREVIEW (HID_SVX_START + 90)
+#define HID_PAGE_DISTRIBUTE (HID_SVX_START + 91)
+
+#define HID_BACKGROUND_CTL_BGDCOLORSET (HID_SVX_START + 100)
+#define HID_BACKGROUND_CTL_PATTERNSET (HID_SVX_START + 101)
+#define HID_BACKGROUND_CTL_PATCOLORSET (HID_SVX_START + 102)
+#define HID_BACKGROUND_CTL_POSITION (HID_SVX_START + 103)
+#define HID_BMPMASK_CTL_QCOL_1 (HID_SVX_START + 104)
+#define HID_BMPMASK_CTL_PIPETTE (HID_SVX_START + 105)
+#define HID_BORDER_CTL_PRESETS (HID_SVX_START + 106)
+#define HID_BORDER_CTL_SHADOWS (HID_SVX_START + 107)
+#define HID_CHARMAP_CTL_SHOWSET (HID_SVX_START + 108)
+#define HID_CHARMAP_CTL_SHOWTEXT (HID_SVX_START + 109)
+#define HID_CHARMAP_CTL_SHOWCHAR (HID_SVX_START + 110)
+#define HID_FONTWORK_CTL_FORMS (HID_SVX_START + 111)
+#define HID_LIGHT3D_CTL_LIGHT (HID_SVX_START + 112)
+#define HID_MEASURE_CTL_POSITION (HID_SVX_START + 113)
+#define HID_MEASURE_CTL_PREVIEW (HID_SVX_START + 114)
+#define HID_SEARCHATTR_CTL_ATTR (HID_SVX_START + 115)
+#define HID_TEXTATTR_CTL_POSITION (HID_SVX_START + 116)
+#define HID_3DATTR_CTL_DISTANCE (HID_SVX_START + 117)
+#define HID_3DATTR_CTL_FOCALLENGTH (HID_SVX_START + 118)
+#define HID_COLOR_CTL_COLORS (HID_SVX_START + 119)
+#define HID_OPTPATH_CTL_PATH (HID_SVX_START + 120)
+#define HID_OPTLINGU_CTL_DICTS (HID_SVX_START + 121)
+#define HID_OPTINET2_CTL_TYPES (HID_SVX_START + 122)
+#define HID_OPTIONS_DICT_DELETE (HID_SVX_START + 123)
+
+#define HID_TPCOLOR_RGB_1 (HID_SVX_START + 124)
+#define HID_TPCOLOR_RGB_2 (HID_SVX_START + 125)
+#define HID_TPCOLOR_RGB_3 (HID_SVX_START + 126)
+#define HID_TPCOLOR_CMYK_1 (HID_SVX_START + 127)
+#define HID_TPCOLOR_CMYK_2 (HID_SVX_START + 128)
+#define HID_TPCOLOR_CMYK_3 (HID_SVX_START + 129)
+
+#define HID_BMPMASK_TBI_PIPETTE (HID_SVX_START + 130)
+//#define HID_BASICIDE_PROP_BROWSER (HID_SVX_START + 131)
+#define HID_STYLE_LISTBOX (HID_SVX_START + 132)
+
+#define HID_FONTWORK_TBI_STYLE_OFF (HID_SVX_START + 133)
+#define HID_FONTWORK_TBI_STYLE_ROTATE (HID_SVX_START + 134)
+#define HID_FONTWORK_TBI_STYLE_UPRIGHT (HID_SVX_START + 135)
+#define HID_FONTWORK_TBI_STYLE_SLANTX (HID_SVX_START + 136)
+#define HID_FONTWORK_TBI_STYLE_SLANTY (HID_SVX_START + 137)
+#define HID_FONTWORK_TBI_ADJUST_MIRROR (HID_SVX_START + 138)
+#define HID_FONTWORK_TBI_ADJUST_LEFT (HID_SVX_START + 139)
+#define HID_FONTWORK_TBI_ADJUST_CENTER (HID_SVX_START + 140)
+#define HID_FONTWORK_TBI_ADJUST_RIGHT (HID_SVX_START + 141)
+#define HID_FONTWORK_TBI_ADJUST_AUTOSIZE (HID_SVX_START + 142)
+#define HID_FONTWORK_TBI_SHOWFORM (HID_SVX_START + 143)
+#define HID_FONTWORK_TBI_OUTLINE (HID_SVX_START + 144)
+#define HID_FONTWORK_TBI_SHADOW_OFF (HID_SVX_START + 145)
+#define HID_FONTWORK_TBI_SHADOW_NORMAL (HID_SVX_START + 146)
+#define HID_FONTWORK_TBI_SHADOW_SLANT (HID_SVX_START + 147)
+
+#define HID_NUMBERFORMAT_TBI_ADD (HID_SVX_START + 148)
+#define HID_NUMBERFORMAT_TBI_REMOVE (HID_SVX_START + 149)
+
+#define HID_CONTDLG_APPLY (HID_SVX_START + 150)
+#define HID_CONTDLG_WORKPLACE (HID_SVX_START + 151)
+#define HID_CONTDLG_SELECT (HID_SVX_START + 152)
+#define HID_CONTDLG_RECT (HID_SVX_START + 153)
+#define HID_CONTDLG_CIRCLE (HID_SVX_START + 154)
+#define HID_CONTDLG_POLY (HID_SVX_START + 155)
+#define HID_CONTDLG_FREEPOLY (HID_SVX_START + 156)
+#define HID_CONTDLG_POLYEDIT (HID_SVX_START + 157)
+#define HID_CONTDLG_POLYMOVE (HID_SVX_START + 158)
+#define HID_CONTDLG_POLYINSERT (HID_SVX_START + 159)
+#define HID_CONTDLG_POLYDELETE (HID_SVX_START + 160)
+#define HID_CONTDLG_UNDO (HID_SVX_START + 161)
+#define HID_CONTDLG_REDO (HID_SVX_START + 162)
+#define HID_CONTDLG_AUTOCONTOUR (HID_SVX_START + 163)
+#define HID_CONTDLG_PIPETTE (HID_SVX_START + 164)
+
+//#define HID_BASICIDE_PROP_BROWSER_LBOX (HID_SVX_START + 165)
+#define HID_DRAWTOOL_TBX (HID_SVX_START + 166)
+#define HID_ALIGN_TBX (HID_SVX_START + 167)
+
+#define HID_IMAPDLG_APPLY (HID_SVX_START + 168)
+#define HID_IMAPDLG_OPEN (HID_SVX_START + 169)
+#define HID_IMAPDLG_SAVEAS (HID_SVX_START + 170)
+#define HID_IMAPDLG_SELECT (HID_SVX_START + 171)
+#define HID_IMAPDLG_RECT (HID_SVX_START + 172)
+#define HID_IMAPDLG_CIRCLE (HID_SVX_START + 173)
+#define HID_IMAPDLG_POLY (HID_SVX_START + 174)
+#define HID_IMAPDLG_FREEPOLY (HID_SVX_START + 175)
+#define HID_IMAPDLG_POLYEDIT (HID_SVX_START + 176)
+#define HID_IMAPDLG_POLYMOVE (HID_SVX_START + 177)
+#define HID_IMAPDLG_POLYINSERT (HID_SVX_START + 178)
+#define HID_IMAPDLG_POLYDELETE (HID_SVX_START + 179)
+#define HID_IMAPDLG_UNDO (HID_SVX_START + 180)
+#define HID_IMAPDLG_REDO (HID_SVX_START + 181)
+#define HID_IMAPDLG_ACTIVE (HID_SVX_START + 182)
+#define HID_IMAPDLG_MACRO (HID_SVX_START + 183)
+#define HID_IMAPDLG_PROPERTY (HID_SVX_START + 184)
+
+#define HID_SVXTBX_ALIGNMENT (HID_SVX_START + 185)
+#define HID_SVXTBX_DRAW (HID_SVX_START + 186)
+
+#define HID_GALLERY_MN_ADDMENU (HID_SVX_START + 187)
+#define HID_GALLERY_MN_ADD (HID_SVX_START + 188)
+#define HID_GALLERY_MN_ADD_LINK (HID_SVX_START + 189)
+#define HID_GALLERY_MN_BACKGROUND (HID_SVX_START + 190)
+#define HID_GALLERY_MN_PREVIEW (HID_SVX_START + 191)
+#define HID_GALLERY_MN_DELETE (HID_SVX_START + 192)
+#define HID_GALLERY_TITLE (HID_SVX_START + 193)
+
+//#define HID_BASICIDE_OBJCAT_SHOW (HID_SVX_START + 195)
+//#define HID_BASICIDE_OBJCAT_PROPS (HID_SVX_START + 196)
+//#define HID_BASICIDE_OBJCAT_HELP (HID_SVX_START + 197)
+
+#define HID_IMPGRF_BTN_STANDARD (HID_SVX_START + 198)
+#define HID_IMPGRF_BTN_INTERNET (HID_SVX_START + 199)
+#define HID_IMPGRF_BTN_PROPERTIES (HID_SVX_START + 200)
+#define HID_IMPGRF_BTN_FILTER (HID_SVX_START + 201)
+#define HID_IMPGRF_CB_LINK (HID_SVX_START + 202)
+#define HID_IMPGRF_CB_PREVIEW (HID_SVX_START + 203)
+
+//#define HID_BASICIDE_BRKDLG (HID_SVX_START + 204)
+//#define HID_BASICIDE_ACTIV (HID_SVX_START + 205)
+//#define HID_BASICIDE_BRKPROPS (HID_SVX_START + 206)
+//#define HID_BASICIDE_REMOVEWATCH (HID_SVX_START + 207)
+//#define HID_BASICIDE_GOTOALL (HID_SVX_START + 208)
+
+#define HID_SVX_OPT_EXT_LINGU (HID_SVX_START + 209)
+#define HID_CACHE_EXTRA_DLG (HID_SVX_START + 210)
+
+#define HID_CONTDLG_TOOLBOX (HID_SVX_START + 211)
+#define HID_CONTDLG_GRAPHWND (HID_SVX_START + 212)
+
+#define HID_IMAPDLG_TOOLBOX (HID_SVX_START + 213)
+#define HID_IMAPDLG_GRAPHWND (HID_SVX_START + 214)
+
+#define HID_OPTLINGU_TOOLBOX (HID_SVX_START + 215)
+
+#define HID_OPTLDAP_SERVERLIST (HID_SVX_START + 216)
+#define HID_OPTLDAP_EDITSERVER (HID_SVX_START + 217)
+
+#define HID_SPELLDLG_EXTRAS_AUDIT (HID_SVX_START + 218)
+#define HID_SPELLDLG_EXTRAS_AUTOCORR (HID_SVX_START + 219)
+#define HID_SPELLDLG_EXTRAS_THESAURUS (HID_SVX_START + 220)
+#define HID_SPELLDLG_EXTRAS_OPTIONS (HID_SVX_START + 221)
+
+#define HID_TPSHADOW_CTRL (HID_SVX_START + 222)
+#define HID_TPHATCH_CTRL (HID_SVX_START + 223)
+#define HID_TPPOSITION_CTRL (HID_SVX_START + 224)
+#define HID_TPSIZE_CTRL (HID_SVX_START + 225)
+#define HID_TPROTATION_CTRL1 (HID_SVX_START + 226)
+#define HID_TPROTATION_CTRL2 (HID_SVX_START + 227)
+
+#define HID_OPTIONS_SSLSITE (HID_SVX_START + 228)
+#define HID_OPTIONS_SSLPERSONAL (HID_SVX_START + 229)
+#define HID_OPTIONS_COOKIES (HID_SVX_START + 230)
+#define HID_OPTINET2_CTL_COOKIES (HID_SVX_START + 231)
+#define HID_OPTIONS_CHANNELS (HID_SVX_START + 232)
+#define HID_OPTINET2_CTL_CHANNELS (HID_SVX_START + 233)
+
+#define HID_CAPTION_CTL_TYPE (HID_SVX_START + 234)
+
+#define HID_NUMBERFORMAT_TBI_INFO (HID_SVX_START + 235)
+#define HID_NUMBERFORMAT_LB_FORMAT (HID_SVX_START + 236)
+
+#define HID_ALIGNMENT_CTR_DIAL (HID_SVX_START + 237)
+#define HID_ALIGNMENT_CTR_BORDER_LOCK (HID_SVX_START + 238)
+
+#define HID_REDLINING_FILTER_PAGE (HID_SVX_START + 239)
+#define HID_REDLINING_FILTER_CB_DATE (HID_SVX_START + 240)
+#define HID_REDLINING_FILTER_LB_DATE (HID_SVX_START + 241)
+#define HID_REDLINING_FILTER_DF_DATE (HID_SVX_START + 242)
+#define HID_REDLINING_FILTER_TF_DATE (HID_SVX_START + 243)
+#define HID_REDLINING_FILTER_IB_CLOCK (HID_SVX_START + 244)
+#define HID_REDLINING_FILTER_DF_DATE2 (HID_SVX_START + 245)
+#define HID_REDLINING_FILTER_TF_DATE2 (HID_SVX_START + 246)
+#define HID_REDLINING_FILTER_IB_CLOCK2 (HID_SVX_START + 247)
+#define HID_REDLINING_FILTER_CB_AUTOR (HID_SVX_START + 248)
+#define HID_REDLINING_FILTER_LB_AUTOR (HID_SVX_START + 249)
+#define HID_REDLINING_FILTER_CB_RANGE (HID_SVX_START + 250)
+#define HID_REDLINING_FILTER_ED_RANGE (HID_SVX_START + 251)
+#define HID_REDLINING_FILTER_LB_ACTION (HID_SVX_START + 252)
+#define HID_REDLINING_FILTER_BTN_REF (HID_SVX_START + 253)
+
+#define HID_REDLINING_VIEW_PAGE (HID_SVX_START + 254)
+#define HID_REDLINING_VIEW_DG_VIEW (HID_SVX_START + 255)
+#define HID_REDLINING_VIEW_PB_ACCEPT (HID_SVX_START + 256)
+#define HID_REDLINING_VIEW_PB_ACCEPTALL (HID_SVX_START + 257)
+#define HID_REDLINING_VIEW_PB_REJECT (HID_SVX_START + 258)
+#define HID_REDLINING_VIEW_PB_REJECTALL (HID_SVX_START + 259)
+
+#define HID_MNU_ZOOM_200 (HID_SVX_START + 260)
+#define HID_MNU_ZOOM_150 (HID_SVX_START + 261)
+#define HID_MNU_ZOOM_100 (HID_SVX_START + 262)
+#define HID_MNU_ZOOM_75 (HID_SVX_START + 263)
+#define HID_MNU_ZOOM_50 (HID_SVX_START + 264)
+#define HID_MNU_ZOOM_OPTIMAL (HID_SVX_START + 265)
+#define HID_MNU_ZOOM_PAGE_WIDTH (HID_SVX_START + 266)
+#define HID_MNU_ZOOM_WHOLE_PAGE (HID_SVX_START + 267)
+
+#define HID_MNU_FUNC_AVG (HID_SVX_START + 268)
+#define HID_MNU_FUNC_COUNT2 (HID_SVX_START + 269)
+#define HID_MNU_FUNC_COUNT (HID_SVX_START + 270)
+#define HID_MNU_FUNC_MAX (HID_SVX_START + 271)
+#define HID_MNU_FUNC_MIN (HID_SVX_START + 272)
+#define HID_MNU_FUNC_SUM (HID_SVX_START + 273)
+#define HID_MNU_FUNC_NONE (HID_SVX_START + 274)
+#define HID_REDLINING_FILTER_CB_ACTION (HID_SVX_START + 275)
+
+#define HID_REDLINING_DLG (HID_SVX_START + 276)
+#define HID_REDLINING_EDIT (HID_SVX_START + 277)
+#define HID_REDLINING_PREV (HID_SVX_START + 278)
+#define HID_REDLINING_NEXT (HID_SVX_START + 279)
+#define HID_REDLINING_TABCONTROL (HID_SVX_START + 280)
+
+#define HID_VALUESET_SINGLENUM (HID_SVX_START + 281)
+#define HID_VALUESET_BULLET (HID_SVX_START + 282)
+#define HID_VALUESET_NUM (HID_SVX_START + 283)
+#define HID_VALUESET_NUMBMP (HID_SVX_START + 284)
+#define HID_SVXPAGE_PICK_NUM (HID_SVX_START + 285)
+#define HID_SVXPAGE_PICK_SINGLE_NUM (HID_SVX_START + 286)
+#define HID_SVXPAGE_PICK_BMP (HID_SVX_START + 287)
+#define HID_SVXPAGE_PICK_BULLET (HID_SVX_START + 288)
+#define HID_SVXPAGE_NUM_OPTIONS (HID_SVX_START + 289)
+#define HID_SVXPAGE_NUM_POSITION (HID_SVX_START + 290)
+
+//#define HID_BASICIDE_MODULWINDOW (HID_SVX_START + 291)
+//#define HID_BASICIDE_DIALOGWINDOW (HID_SVX_START + 292)
+
+#define HID_REDLINING_FILTER_CB_COMMENT (HID_SVX_START + 293)
+#define HID_REDLINING_FILTER_ED_COMMENT (HID_SVX_START + 294)
+#define HID_REDLINING_VIEW_PB_UNDO (HID_SVX_START + 295)
+
+#define HID_OPTIONS_EXTERN_BROWSER (HID_SVX_START + 296)
+
+#define HID_EDITENG_SPELLER_START (HID_SVX_START + 297)
+#define HID_EDITENG_SPELLER_ADDWORD (HID_SVX_START + 298)
+#define HID_EDITENG_SPELLER_IGNORE (HID_SVX_START + 299)
+#define HID_EDITENG_SPELLER_AUTOCORRECT (HID_SVX_START + 300)
+
+#define HID_OPTPATH_HEADERBAR (HID_SVX_START + 301)
+#define HID_OPTCOOKIES_HEADERBAR (HID_SVX_START + 302)
+
+#define HID_TPPAGE_FULLSIZE (HID_SVX_START + 303)
+
+#define HID_POPUP_LINEEND (HID_SVX_START + 304)
+#define HID_POPUP_LINEEND_CTRL (HID_SVX_START + 305)
+
+#define HID_SPELLDLG_SETWORD (HID_SVX_START + 306)
+
+#define HID_BORDER_DISTANCE_DLG (HID_SVX_START + 307)
+#define HID_BORDER_DISTANCE_DLG_LEFT (HID_SVX_START + 308)
+#define HID_BORDER_DISTANCE_DLG_RIGHT (HID_SVX_START + 309)
+#define HID_BORDER_DISTANCE_DLG_TOP (HID_SVX_START + 310)
+#define HID_BORDER_DISTANCE_DLG_BOTTOM (HID_SVX_START + 311)
+#define HID_BORDER_DISTANCE_DLG_HELP_PB (HID_SVX_START + 312)
+#define HID_BORDER_DISTANCE_DLG_SYNC_CB (HID_SVX_START + 313)
+#define HID_BORDER_DISTANCE_DLG_EXAMPLE (HID_SVX_START + 314)
+
+#define HID_HYPERLINK_INTERNET (HID_SVX_START + 315)
+#define HID_HYPERLINK_MAIL (HID_SVX_START + 316)
+#define HID_HYPERLINK_DOCUMENT (HID_SVX_START + 317)
+#define HID_HYPERLINK_NEWDOCUMENT (HID_SVX_START + 318)
+#define HID_HYPERLINK_MARKWND (HID_SVX_START + 319)
+
+#define HID_ICCDIALOG_RESET_BTN (HID_SVX_START + 320)
+#define HID_ICCDIALOG_CHOICECTRL (HID_SVX_START + 321)
+
+#define HID_HYPERDLG_INET_PATH (HID_SVX_START + 322)
+#define HID_HYPERDLG_MAIL_PATH (HID_SVX_START + 323)
+#define HID_HYPERDLG_DOC_PATH (HID_SVX_START + 324)
+#define HID_ICCDIALOG_OK_BTN (HID_SVX_START + 325)
+#define HID_ICCDIALOG_CANCEL_BTN (HID_SVX_START + 326)
+
+#define HID_HYPERLINK_MARKWND_APPLY (HID_SVX_START + 327)
+#define HID_HYPERLINK_MARKWND_CLOSE (HID_SVX_START + 328)
+#define HID_HYPERLINK_MARKWND_TREE (HID_SVX_START + 329)
+#define HID_OPTIONS_EXTERNAL_LINGU (HID_SVX_START + 330)
+
+#define HID_AUTOCORR_HELP_START (HID_SVX_START + 331)
+#define HID_AUTOCORR_HELP_END (HID_SVX_START + 350)
+
+#define HID_SVXPAGE_GRFCROP (HID_SVX_START + 355)
+
+// -----------------------------------------------------------------------
+// "Uberlaufpr"ufung -----------------------------------------------------
+// -----------------------------------------------------------------------
+
+#define ACT_SVX_HID_END HID_SVXPAGE_GRFCROP
+
+#if ACT_SVX_HID_END > HID_SVX_END
+#error Resource-Ueberlauf in #line, #file
+#endif
+
+
+#endif
+
diff --git a/svx/inc/hlnkitem.hxx b/svx/inc/hlnkitem.hxx
new file mode 100644
index 000000000000..c864da7dafb1
--- /dev/null
+++ b/svx/inc/hlnkitem.hxx
@@ -0,0 +1,150 @@
+/*************************************************************************
+ *
+ * $RCSfile: hlnkitem.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:00:56 $
+ *
+ * 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 _SVX_HLNKITEM_HXX
+#define _SVX_HLNKITEM_HXX
+
+#ifndef _STRING_HXX
+#include <tools/string.hxx>
+#endif
+#ifndef _SFXPOOLITEM_HXX
+#include <svtools/poolitem.hxx>
+#endif
+#ifndef _SFXSIDS_HRC
+#include <sfx2/sfxsids.hrc>
+#endif
+
+#ifndef _SFXMACITEM_HXX
+#include <svtools/macitem.hxx>
+#endif
+
+#define HYPERDLG_EVENT_MOUSEOVER_OBJECT 0x0001
+#define HYPERDLG_EVENT_MOUSECLICK_OBJECT 0x0002
+#define HYPERDLG_EVENT_MOUSEOUT_OBJECT 0x0004
+
+enum SvxLinkInsertMode
+{
+ HLINK_DEFAULT,
+ HLINK_FIELD,
+ HLINK_BUTTON,
+ HLINK_HTMLMODE = 0x0080
+};
+
+class SvxHyperlinkItem : public SfxPoolItem
+{
+ String sName;
+ String sURL;
+ String sTarget;
+ SvxLinkInsertMode eType;
+
+ String sIntName;
+ SvxMacroTableDtor* pMacroTable;
+
+ USHORT nMacroEvents;
+
+public:
+ TYPEINFO();
+
+ SvxHyperlinkItem( USHORT nWhich = SID_HYPERLINK_GETLINK ):
+ SfxPoolItem(nWhich), pMacroTable(NULL) { eType = HLINK_DEFAULT; nMacroEvents=0; };
+ SvxHyperlinkItem( const SvxHyperlinkItem& rHyperlinkItem );
+ SvxHyperlinkItem( USHORT nWhich, String& rName, String& rURL,
+ String& rTarget, String& rIntName,
+ SvxLinkInsertMode eTyp = HLINK_FIELD,
+ USHORT nEvents = 0,
+ SvxMacroTableDtor *pMacroTbl =NULL );
+ virtual ~SvxHyperlinkItem () { delete pMacroTable; }
+
+ inline SvxHyperlinkItem& operator=( const SvxHyperlinkItem &rItem );
+
+ virtual int operator==( const SfxPoolItem& ) const;
+ virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
+
+ const String& GetName() const { return sName; }
+ void SetName(const String& rName) { sName = rName; }
+
+ const String& GetURL() const { return sURL; }
+ void SetURL(const String& rURL) { sURL = rURL; }
+
+ const String& GetIntName () const { return sIntName; }
+ void SetIntName(const String& rIntName) { sIntName = rIntName; }
+
+ const String& GetTargetFrame() const { return sTarget; }
+ void SetTargetFrame(const String& rTarget) { sTarget = rTarget; }
+
+ SvxLinkInsertMode GetInsertMode() const { return eType; }
+ void SetInsertMode( SvxLinkInsertMode eNew ) { eType = eNew; }
+
+ void SetMacro( USHORT nEvent, const SvxMacro& rMacro );
+
+ void SetMacroTable( const SvxMacroTableDtor& rTbl );
+ const SvxMacroTableDtor* GetMacroTbl() const { return pMacroTable; }
+
+ void SetMacroEvents (const USHORT nEvents) { nMacroEvents = nEvents; }
+ const USHORT GetMacroEvents() const { return nMacroEvents; }
+
+ virtual SvStream& Store( SvStream &, USHORT nItemVersion ) const;
+ virtual SfxPoolItem* Create( SvStream &, USHORT nVer ) const;
+
+};
+
+#endif
+
+
diff --git a/svx/inc/htmlmode.hxx b/svx/inc/htmlmode.hxx
new file mode 100644
index 000000000000..afafa25ab2ae
--- /dev/null
+++ b/svx/inc/htmlmode.hxx
@@ -0,0 +1,106 @@
+/*************************************************************************
+ *
+ * $RCSfile: htmlmode.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:00:56 $
+ *
+ * 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 _SVX_HTMLMODE_HXX
+#define _SVX_HTMLMODE_HXX
+
+// include ---------------------------------------------------------------
+
+// define ----------------------------------------------------------------
+
+#define HTMLMODE_ON 0x0001
+#define HTMLMODE_PARA_BORDER 0x0002 /* Absatzumrandungen */
+#define HTMLMODE_PARA_DISTANCE 0x0004 /* bestimmte Absatzabstaende */
+#define HTMLMODE_SMALL_CAPS 0x0008 /* Kapitaelchen */
+#define HTMLMODE_FRM_COLUMNS 0x0010 /* spaltige Rahmen */
+#define HTMLMODE_SOME_STYLES 0x0020 /* mind. MS IE */
+#define HTMLMODE_FULL_STYLES 0x0040 /* == SW */
+#define HTMLMODE_BLINK 0x0080 /* blinkende Zeichen*/
+#define HTMLMODE_PARA_BLOCK 0x0100 /* Blocksatz */
+#define HTMLMODE_DROPCAPS 0x0200 /* Initialen*/
+#define HTMLMODE_FIRSTLINE 0x0400 /* Erstzeileneinzug mit Spacer == NS 3.0 */
+#define HTMLMODE_GRAPH_POS 0x0800 /* Grafikpositionen Hintergrund */
+#define HTMLMODE_FULL_ABS_POS 0x1000 /* abs. Rahmenpositionierung */
+#define HTMLMODE_SOME_ABS_POS 0x2000 /* abs. Rahmenpositionierung vollst.*/
+#define HTMLMODE_RESERVED1 0x4000
+#define HTMLMODE_RESERVED0 0x8000
+
+
+
+#endif
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/svx/inc/hyperdlg.hxx b/svx/inc/hyperdlg.hxx
new file mode 100644
index 000000000000..f389b0535846
--- /dev/null
+++ b/svx/inc/hyperdlg.hxx
@@ -0,0 +1,156 @@
+/*************************************************************************
+ *
+ * $RCSfile: hyperdlg.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:00:56 $
+ *
+ * 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 _SVX_TAB_HYPERLINK_HXX
+#define _SVX_TAB_HYPERLINK_HXX
+
+// include ---------------------------------------------------------------
+
+#ifndef _SVX_HLNKITEM_HXX
+#include <hlnkitem.hxx>
+#endif
+#ifndef _SFX_CHILDWIN_HXX
+#include <sfx2/childwin.hxx>
+#endif
+#ifndef _SFXCTRLITEM_HXX
+#include <sfx2/ctrlitem.hxx>
+#endif
+#ifndef _SFX_BINDINGS_HXX
+#include <sfx2/bindings.hxx>
+#endif
+
+#ifndef _SV_IMAGE_HXX
+#include <vcl/image.hxx>
+#endif
+
+#include "iconcdlg.hxx"
+
+/*************************************************************************
+|*
+|* Hyperlink-Dialog
+|*
+\************************************************************************/
+
+class SvxHpLinkDlg;
+class SvxHlinkCtrl : public SfxControllerItem
+{
+private :
+ SvxHpLinkDlg *pParent;
+
+ SfxStatusForwarder aForwarder;
+
+public :
+ SvxHlinkCtrl( USHORT nId, SfxBindings & rBindings, SvxHpLinkDlg* pDlg);
+
+ virtual void StateChanged( USHORT nSID, SfxItemState eState,
+ const SfxPoolItem* pState );
+};
+
+/*************************************************************************
+|*
+|* Hyperlink-Dialog
+|*
+\************************************************************************/
+
+class SvxHlinkDlgWrapper : public SfxChildWindow
+{
+public:
+ SvxHlinkDlgWrapper( Window*pParent, USHORT nId,
+ SfxBindings* pBindings, SfxChildWinInfo* pInfo );
+
+ SFX_DECL_CHILDWINDOW(SvxHlinkDlgWrapper);
+};
+
+/*************************************************************************
+|*
+|* Hyperlink-Dialog
+|*
+\************************************************************************/
+
+class SvxHpLinkDlg : public IconChoiceDialog
+{
+private:
+ SvxHlinkCtrl maCtrl; // Controler
+ SfxBindings* mpBindings;
+ SfxItemSet* mpItemSet;
+
+ BOOL mbIsHTMLDoc;
+
+ DECL_LINK (ClickApplyHdl_Impl, void * );
+ DECL_LINK (ClickCloseHdl_Impl, void * );
+
+protected:
+ virtual BOOL Close();
+ virtual void Move();
+
+public:
+ SvxHpLinkDlg (Window* pParent, SfxBindings* pBindings );
+ ~SvxHpLinkDlg ();
+
+ USHORT SetPage( SvxHyperlinkItem* pItem );
+ void EnableInetBrowse( BOOL bEnable = TRUE );
+ const BOOL IsHTMLDoc() const { return mbIsHTMLDoc; }
+
+ SfxDispatcher* GetDispatcher() const { return mpBindings->GetDispatcher(); }
+};
+
+
+#endif // _SVX_TAB_HYPERLINK_HXX
diff --git a/svx/inc/imapdlg.hxx b/svx/inc/imapdlg.hxx
new file mode 100644
index 000000000000..23fdebb3bd11
--- /dev/null
+++ b/svx/inc/imapdlg.hxx
@@ -0,0 +1,239 @@
+/*************************************************************************
+ *
+ * $RCSfile: imapdlg.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:00:57 $
+ *
+ * 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 _IMAPDLG_HXX_
+#define _IMAPDLG_HXX_
+
+#ifndef _SFX_CHILDWIN_HXX //autogen
+#include <sfx2/childwin.hxx>
+#endif
+
+#ifndef _SFXCTRLITEM_HXX //autogen
+#include <sfx2/ctrlitem.hxx>
+#endif
+
+#ifndef _BASEDLGS_HXX //autogen
+#include <sfx2/basedlgs.hxx>
+#endif
+
+#ifndef _FIXED_HXX //autogen
+#include <vcl/fixed.hxx>
+#endif
+
+#ifndef _COMBOBOX_HXX //autogen
+#include <vcl/combobox.hxx>
+#endif
+
+#ifndef _EDIT_HXX //autogen
+#include <vcl/edit.hxx>
+#endif
+
+#ifndef _TOOLBOX_HXX //autogen
+#include <vcl/toolbox.hxx>
+#endif
+
+#ifndef _STATUS_HXX //autogen
+#include <vcl/status.hxx>
+#endif
+
+
+#ifndef _GOMISC_HXX
+class ImageMap;
+#endif
+
+
+/*************************************************************************
+|*
+|* Ableitung vom SfxChildWindow als "Behaelter" fuer Float
+|*
+\************************************************************************/
+
+class Graphic;
+class TargetList;
+
+class SvxIMapDlgChildWindow : public SfxChildWindow
+{
+ public:
+
+ SvxIMapDlgChildWindow( Window*, USHORT, SfxBindings*, SfxChildWinInfo* );
+
+ SFX_DECL_CHILDWINDOW( SvxIMapDlgChildWindow );
+
+ static void UpdateIMapDlg( const Graphic& rGraphic, const ImageMap* pImageMap = NULL,
+ const TargetList* pTargetList = NULL, void* pEditingObj = NULL );
+};
+
+
+#ifndef _REDUCED_IMAPDLG_HXX_
+#define _REDUCED_IMAPDLG_HXX_
+
+/*************************************************************************
+|*
+|*
+|*
+\************************************************************************/
+
+class SvxIMapDlg;
+
+class SvxIMapDlgItem : public SfxControllerItem
+{
+ SvxIMapDlg& rIMap;
+
+
+protected:
+
+ virtual void StateChanged( USHORT nSID, SfxItemState eState,
+ const SfxPoolItem* pState );
+
+
+public:
+
+ SvxIMapDlgItem( USHORT nId, SvxIMapDlg& rIMapDlg, SfxBindings& rBindings );
+};
+
+
+/*************************************************************************
+|*
+|*
+|*
+\************************************************************************/
+
+class IMapOwnData;
+
+class SvxIMapDlg : public SfxFloatingWindow
+{
+ friend class IMapOwnData;
+ friend class IMapWindow;
+
+ Size aLastSize;
+ IMapWindow* pIMapWnd;
+ IMapOwnData* pOwnData;
+ void* pCheckObj;
+ SvxIMapDlgItem aIMapItem;
+
+ ToolBox aTbxIMapDlg1;
+ StatusBar aStbStatus;
+ FixedText aFtURL;
+ FixedText aFtText;
+ ComboBox aCbbURL;
+ Edit aEdtText;
+
+ virtual void Resize();
+ virtual BOOL Close();
+
+#ifdef _IMAPDLG_PRIVATE
+
+ DECL_LINK( TbxClickHdl, ToolBox* );
+ DECL_LINK( InfoHdl, IMapWindow* );
+ DECL_LINK( MousePosHdl, IMapWindow* );
+ DECL_LINK( GraphSizeHdl, IMapWindow* );
+ DECL_LINK( URLModifyHdl, void* );
+ DECL_LINK( URLLoseFocusHdl, void* );
+ DECL_LINK( UpdateHdl, Timer* );
+ DECL_LINK( TbxUpdateHdl, Timer* );
+ DECL_LINK( StateHdl, IMapWindow* );
+
+ void DoOpen();
+ BOOL DoSave();
+
+#endif
+
+
+public:
+
+ SvxIMapDlg( SfxBindings *pBindings, SfxChildWindow *pCW,
+ Window* pParent, const ResId& rResId );
+ ~SvxIMapDlg();
+
+ void SetExecState( BOOL bEnable );
+
+ void SetGraphic( const Graphic& rGraphic );
+
+ void SetEditingObject( void* pObj ) { pCheckObj = pObj; }
+ const void* GetEditingObject() const { return pCheckObj; }
+
+ void SetImageMap( const ImageMap& rImageMap );
+ const ImageMap& GetImageMap() const;
+
+ void SetTargetList( const TargetList& rTargetList );
+ const TargetList& GetTargetList() const;
+
+ void Update( const Graphic& rGraphic, const ImageMap* pImageMap = NULL,
+ const TargetList* pTargetList = NULL, void* pEditingObj = NULL );
+};
+
+
+/*************************************************************************
+|*
+|* Defines
+|*
+\************************************************************************/
+
+#define SVXIMAPDLG() ( (SvxIMapDlg*) ( SfxViewFrame::Current()->GetChildWindow( \
+ SvxIMapDlgChildWindow::GetChildWindowId() )-> \
+ GetWindow() ) )
+
+
+#endif // _REDUCED_IMAPDLG_HXX_
+#endif // _IMAPDLG_HXX_
+
+
diff --git a/svx/inc/impgrf.hxx b/svx/inc/impgrf.hxx
new file mode 100644
index 000000000000..fc5de057ceff
--- /dev/null
+++ b/svx/inc/impgrf.hxx
@@ -0,0 +1,179 @@
+/*************************************************************************
+ *
+ * $RCSfile: impgrf.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:00:57 $
+ *
+ * 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 _SVX_IMPGRF_HXX
+#define _SVX_IMPGRF_HXX
+
+// include ---------------------------------------------------------------
+
+#ifndef _FILTER_HXX //autogen
+#include <svtools/filter.hxx>
+#endif
+
+#ifndef _BUTTON_HXX //autogen
+#include <vcl/button.hxx>
+#endif
+
+#ifndef _IODLG_HXX
+#include <sfx2/iodlg.hxx>
+#endif
+
+// forward ---------------------------------------------------------------
+
+class SvxGraphicHdl_Impl;
+class SfxObjectShell;
+struct SvxImportGraphicRes_Impl;
+class SvxGraphicPrevWin_Impl;
+class SfxMedium;
+
+// Funktionen ------------------------------------------------------------
+
+// returnt einen static Graphic-Filter, wird einmalig angelegt,
+// steht immer zur Verfuegung, DARF NIE geloescht werden!!!!
+GraphicFilter* GetGrfFilter();
+USHORT FillFilter( GraphicFilter& rFilter );
+int LoadGraphic( const String& rPath, const String& rFilter,
+ Graphic& rGraphic,
+ GraphicFilter* pFilter = NULL,
+ USHORT* pDeterminedFormat = NULL );
+
+// class SvxImportGraphicDialog ------------------------------------------
+#ifndef SV_NODIALOG
+
+#define ENABLE_STANDARD ((USHORT)0x0001) // Standard-Button
+#define ENABLE_LINK ((USHORT)0x0002) // Verkn"upfungs-Box
+#define ENABLE_STD_AND_LINK (ENABLE_STANDARD | ENABLE_LINK)
+#define ENABLE_PROPERTY ((USHORT)0x0004) // Eigenschaften-Button
+#define ENABLE_ALL ((USHORT)0x0007) // alle
+#define ENABLE_PROP_WITHOUTLINK ((USHORT)0x0008) // Eigenschaften ohne Link
+#define ENABLE_EMPTY_FILENAMES ((USHORT)0x0010) // Leere Dateinamen zulassen
+
+class SvxImportGraphicDialog : public SfxFileDialog
+{
+public:
+ SvxImportGraphicDialog( Window* pParent,
+ const String& rTitle,
+ const USHORT nEnable = ENABLE_STANDARD,
+ WinBits nWinBits = WB_OPEN | WB_3DLOOK );
+ ~SvxImportGraphicDialog();
+
+ short Execute();
+ void SetPath( const String& rPath, BOOL bDir,
+ BOOL bLink = FALSE );
+
+ BOOL IsURL() const;
+ BOOL AsLink() const
+ { return pLinkBox && pLinkBox->IsChecked(); }
+ GraphicFilter& GetFilter() { return *GetGrfFilter(); }
+ SvxGraphicPrevWin_Impl& GetPreviewWindow() { return *pPrevWin; }
+
+ void SetPreviewing( BOOL bPrev );
+ BOOL IsPreviewing() const { return bPreviewing; }
+
+ Link GetPropertyHdl() const { return aPropertyLink; }
+ void SetPropertyHdl( const Link& rLink )
+ { aPropertyLink = rLink; }
+
+ Graphic* GetGraphic() const;
+ String GetPath() const;
+
+private:
+friend class SvxGraphicPrevWin_Impl;
+
+ SvxImportGraphicRes_Impl* pResImpl;
+ SvxGraphicPrevWin_Impl* pPrevWin;
+
+ SfxMedium* pMedium;
+
+ PushButton* pStandardButton;
+ PushButton* pInternetButton;
+ PushButton* pPropertiesButton;
+ PushButton* pFilterButton;
+ CheckBox* pLinkBox;
+ CheckBox* pPreviewBox;
+
+ Link aPropertyLink;
+ String aStartPath;
+ String aCurrPath;
+ Timer aPrevTimer;
+ BOOL bPreviewing;
+ void FileSelect();
+ long OK();
+ void SetPath( const String& ); // just to make private
+
+#ifdef _SVX_IMPGRF_CXX
+ void Construct_Impl( const String &rTitle,
+ USHORT nEnable );
+
+ DECL_LINK( StandardHdl_Impl, Button * );
+ DECL_LINK( PropertiesHdl_Impl, Button * );
+ DECL_LINK( FilterHdl_Impl, Button * );
+ DECL_LINK( PreviewHdl_Impl, Button * );
+ DECL_LINK( TimeOutHdl_Impl, Timer * );
+ DECL_LINK( FilterSelectHdl_Impl, void * );
+ DECL_LINK( FileSelectHdl_Impl, void * );
+#endif
+};
+
+#endif // SV_NODIALOG
+
+
+#endif
+
diff --git a/svx/inc/insctrl.hxx b/svx/inc/insctrl.hxx
new file mode 100644
index 000000000000..8af21c793d91
--- /dev/null
+++ b/svx/inc/insctrl.hxx
@@ -0,0 +1,97 @@
+/*************************************************************************
+ *
+ * $RCSfile: insctrl.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:00:57 $
+ *
+ * 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 _SVX_INSCTRL_HXX
+#define _SVX_INSCTRL_HXX
+
+// include ---------------------------------------------------------------
+
+#ifndef _SFXSTBITEM_HXX //autogen
+#include <sfx2/stbitem.hxx>
+#endif
+
+// class SvxInsertToolBoxControl -----------------------------------------
+
+class SvxInsertStatusBarControl : public SfxStatusBarControl
+{
+public:
+ virtual void StateChanged( USHORT nSID, SfxItemState eState,
+ const SfxPoolItem* pState );
+ virtual void Click();
+ virtual void Paint( const UserDrawEvent& rEvt );
+
+ SFX_DECL_STATUSBAR_CONTROL();
+
+ SvxInsertStatusBarControl( USHORT nId, StatusBar& rStb, SfxBindings& rBind );
+ ~SvxInsertStatusBarControl();
+
+ static ULONG GetDefItemWidth(const StatusBar& rStb);
+
+private:
+ BOOL bInsert;
+
+#ifdef _SVX_INSCTRL_CXX
+ void DrawItemText_Impl();
+#endif
+};
+
+
+#endif
+
diff --git a/svx/inc/layctrl.hxx b/svx/inc/layctrl.hxx
new file mode 100644
index 000000000000..a8d2267ed804
--- /dev/null
+++ b/svx/inc/layctrl.hxx
@@ -0,0 +1,113 @@
+/*************************************************************************
+ *
+ * $RCSfile: layctrl.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:00:57 $
+ *
+ * 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 _SVX_LAYCTRL_HXX
+#define _SVX_LAYCTRL_HXX
+
+// include ---------------------------------------------------------------
+
+
+#ifndef _SFXTBXCTRL_HXX //autogen
+#include <sfx2/tbxctrl.hxx>
+#endif
+// class SvxTableToolBoxControl ------------------------------------------
+
+class SvxTableToolBoxControl : public SfxToolBoxControl
+{
+private:
+ FASTBOOL bEnabled;
+
+public:
+ virtual SfxPopupWindowType GetPopupWindowType() const;
+ virtual SfxPopupWindow* CreatePopupWindow();
+ virtual SfxPopupWindow* CreatePopupWindowCascading();
+ virtual void StateChanged( USHORT nSID,
+ SfxItemState eState,
+ const SfxPoolItem* pState );
+
+ SFX_DECL_TOOLBOX_CONTROL();
+
+ SvxTableToolBoxControl( USHORT nId, ToolBox& rTbx, SfxBindings& rBind );
+ ~SvxTableToolBoxControl();
+};
+
+// class SvxColumnsToolBoxControl ----------------------------------------
+
+class SvxColumnsToolBoxControl : public SfxToolBoxControl
+{
+ FASTBOOL bEnabled;
+public:
+ virtual SfxPopupWindowType GetPopupWindowType() const;
+ virtual SfxPopupWindow* CreatePopupWindow();
+ virtual SfxPopupWindow* CreatePopupWindowCascading();
+
+ SFX_DECL_TOOLBOX_CONTROL();
+
+ SvxColumnsToolBoxControl( USHORT nId, ToolBox& rTbx, SfxBindings& rBind );
+ ~SvxColumnsToolBoxControl();
+
+ virtual void StateChanged( USHORT nSID,
+ SfxItemState eState,
+ const SfxPoolItem* pState );
+};
+
+
+#endif
+
diff --git a/svx/inc/lightdlg.hxx b/svx/inc/lightdlg.hxx
new file mode 100644
index 000000000000..f3e5deac607e
--- /dev/null
+++ b/svx/inc/lightdlg.hxx
@@ -0,0 +1,183 @@
+/*************************************************************************
+ *
+ * $RCSfile: lightdlg.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:00:57 $
+ *
+ * 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 _SVX_LIGHT3D_HXX_
+#define _SVX_LIGHT3D_HXX_
+
+#include "dlgctl3d.hxx"
+
+#ifndef _SV_FIXED_HXX //autogen
+#include <vcl/fixed.hxx>
+#endif
+
+#ifndef _SV_GROUP_HXX //autogen
+#include <vcl/group.hxx>
+#endif
+
+#ifndef _SFXTABDLG_HXX //autogen
+#include <sfx2/tabdlg.hxx>
+#endif
+
+#ifndef _BASEDLGS_HXX //autogen
+#include <sfx2/basedlgs.hxx>
+#endif
+
+#ifndef _FIELD_HXX //autogen
+#include <vcl/field.hxx>
+#endif
+
+#ifndef _SVX_DLG_CTRL_HXX //autogen
+#include "dlgctrl.hxx"
+#endif
+
+class Vector3D;
+
+/*************************************************************************
+|*
+|* Dialog
+|*
+\************************************************************************/
+/*
+class SvxLight3DDlg : public ModalDialog
+{
+private:
+ SvxRectCtl3D aCtlLight;
+ FixedText aFtIntensity;
+ MetricField aMtrFldIntensity;
+ OKButton aBtnOK;
+ CancelButton aBtnCancel;
+ HelpButton aBtnHelp;
+
+public:
+ SvxLight3DDlg(Window* pWindow);
+ virtual ~SvxLight3DDlg();
+
+ Vector3D GetVector();
+ void SetLight( Vector3D aVect );
+ double GetIntensity();
+ void SetIntensity( double fIntens );
+};
+*/
+/*************************************************************************
+|*
+|* 3D-Tab-Dialog
+|*
+\************************************************************************/
+
+class Svx3DTabDialog : public SfxTabDialog
+{
+private:
+ const SfxItemSet& rOutAttrs;
+
+public:
+ Svx3DTabDialog( Window* pParent, const SfxItemSet* pAttr );
+ ~Svx3DTabDialog();
+};
+
+/*************************************************************************
+|*
+|* 3D-SingleTab-Dialog
+|*
+\************************************************************************/
+class Svx3DSingleTabDialog : public SfxSingleTabDialog
+{
+private:
+ const SfxItemSet& rOutAttrs;
+
+public:
+ Svx3DSingleTabDialog( Window* pParent, const SfxItemSet* pAttr );
+ ~Svx3DSingleTabDialog();
+};
+
+/*************************************************************************
+|*
+|* Light-Tab-Page
+|*
+\************************************************************************/
+class SvxLight3DTabPage : public SfxTabPage
+{
+private:
+ SvxRectCtl3D aCtlLight;
+ FixedText aFtLightIntensity;
+ MetricField aMtrFldLightIntensity;
+ FixedText aFtLightColor;
+ ColorLB aLbLightColor;
+ GroupBox aGrpLight;
+ FixedText aFtIntensity;
+ MetricField aMtrFldIntensity;
+ FixedText aFtColor;
+ ColorLB aLbColor;
+ GroupBox aGrpAmbient;
+ const SfxItemSet& rOutAttrs;
+
+public:
+ SvxLight3DTabPage( Window* pParent, const SfxItemSet& rInAttrs );
+
+ static SfxTabPage* Create( Window*, const SfxItemSet& );
+ static USHORT* GetRanges();
+
+ virtual BOOL FillItemSet( SfxItemSet& );
+ virtual void Reset( const SfxItemSet & );
+};
+
+#endif // _SVX_LIGHT3D_HXX_
+
diff --git a/svx/inc/linectrl.hxx b/svx/inc/linectrl.hxx
new file mode 100644
index 000000000000..5a735a8b845b
--- /dev/null
+++ b/svx/inc/linectrl.hxx
@@ -0,0 +1,201 @@
+/*************************************************************************
+ *
+ * $RCSfile: linectrl.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:00:57 $
+ *
+ * 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 _SVX_LINECTRL_HXX
+#define _SVX_LINECTRL_HXX
+
+
+#ifndef _VALUESET_HXX //autogen
+#include <svtools/valueset.hxx>
+#endif
+#ifndef _SFXLSTNER_HXX //autogen
+#include <svtools/lstner.hxx>
+#endif
+#ifndef _SFXTBXCTRL_HXX //autogen
+#include <sfx2/tbxctrl.hxx>
+#endif
+class XLineStyleItem;
+class XLineDashItem;
+class SvxLineBox;
+class SvxMetricField;
+class SvxColorBox;
+class XLineEndList;
+
+//========================================================================
+// SvxLineStyleController:
+//========================================================================
+
+class SvxLineStyleToolBoxControl : public SfxToolBoxControl, public SfxListener
+{
+private:
+ XLineStyleItem* pStyleItem;
+ XLineDashItem* pDashItem;
+
+ SfxStatusForwarder aDashForwarder;
+ BOOL bUpdate;
+
+public:
+ SFX_DECL_TOOLBOX_CONTROL();
+
+ SvxLineStyleToolBoxControl( USHORT nId, ToolBox& rTbx, SfxBindings& rBind );
+ ~SvxLineStyleToolBoxControl();
+
+ virtual void StateChanged( USHORT nSID, SfxItemState eState,
+ const SfxPoolItem* pState );
+ virtual void SFX_NOTIFY( SfxBroadcaster& rBC, const TypeId& rBCType,
+ const SfxHint& rHint, const TypeId& rHintType );
+ virtual Window* CreateItemWindow( Window *pParent );
+};
+
+//========================================================================
+// SvxLineWidthController:
+//========================================================================
+
+class SvxLineWidthToolBoxControl : public SfxToolBoxControl, public SfxListener
+{
+public:
+ SFX_DECL_TOOLBOX_CONTROL();
+
+ SvxLineWidthToolBoxControl( USHORT nId, ToolBox& rTbx, SfxBindings& rBind );
+ ~SvxLineWidthToolBoxControl();
+
+ virtual void StateChanged( USHORT nSID, SfxItemState eState,
+ const SfxPoolItem* pState );
+ virtual void SFX_NOTIFY( SfxBroadcaster& rBC, const TypeId& rBCType,
+ const SfxHint& rHint, const TypeId& rHintType );
+ virtual Window* CreateItemWindow( Window *pParent );
+};
+
+//========================================================================
+// SvxLineColorController:
+//========================================================================
+
+class SvxLineColorToolBoxControl : public SfxToolBoxControl, public SfxListener
+{
+public:
+ SFX_DECL_TOOLBOX_CONTROL();
+
+ SvxLineColorToolBoxControl( USHORT nId, ToolBox& rTbx, SfxBindings& rBind );
+ ~SvxLineColorToolBoxControl();
+
+ virtual void StateChanged( USHORT nSID, SfxItemState eState,
+ const SfxPoolItem* pState );
+ virtual void SFX_NOTIFY( SfxBroadcaster& rBC, const TypeId& rBCType,
+ const SfxHint& rHint, const TypeId& rHintType );
+ virtual Window* CreateItemWindow( Window *pParent );
+};
+
+//========================================================================
+// class SvxLineEndWindow
+//========================================================================
+class SvxLineEndWindow : public SfxPopupWindow, public SfxListener
+{
+private:
+ XLineEndList* pLineEndList;
+ ValueSet aLineEndSet;
+ USHORT nCols;
+ USHORT nLines;
+ ULONG nLineEndWidth;
+ Size aBmpSize;
+ BOOL bPopupMode;
+
+ DECL_LINK( SelectHdl, void * );
+ void FillValueSet();
+ void SetSize();
+
+protected:
+ virtual void Resizing( Size& rSize );
+ virtual void Resize();
+ virtual BOOL Close();
+ virtual void PopupModeEnd();
+
+public:
+ SvxLineEndWindow( USHORT nId, const String& rWndTitle,
+ SfxBindings& rBindings );
+ ~SvxLineEndWindow();
+
+ void StartSelection();
+
+ virtual void SFX_NOTIFY( SfxBroadcaster& rBC, const TypeId& rBCType,
+ const SfxHint& rHint, const TypeId& rHintType );
+ virtual SfxPopupWindow* Clone() const;
+};
+
+//========================================================================
+// class SvxColorToolBoxControl
+//========================================================================
+
+class SvxLineEndToolBoxControl : public SfxToolBoxControl
+{
+public:
+ SFX_DECL_TOOLBOX_CONTROL();
+ SvxLineEndToolBoxControl( USHORT nId, ToolBox& rTbx, SfxBindings& rBindings );
+ ~SvxLineEndToolBoxControl();
+
+ virtual void StateChanged( USHORT nSID, SfxItemState eState,
+ const SfxPoolItem* pState );
+ virtual SfxPopupWindowType GetPopupWindowType() const;
+ virtual SfxPopupWindow* CreatePopupWindow();
+};
+
+
+
+#endif
+
diff --git a/svx/inc/linkmgr.hxx b/svx/inc/linkmgr.hxx
new file mode 100644
index 000000000000..c9a0262430ef
--- /dev/null
+++ b/svx/inc/linkmgr.hxx
@@ -0,0 +1,135 @@
+/*************************************************************************
+ *
+ * $RCSfile: linkmgr.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:00:57 $
+ *
+ * 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 _SVXLINKMGR_HXX
+#define _SVXLINKMGR_HXX
+
+
+#ifndef _LINKMGR_HXX //autogen
+#include <so3/linkmgr.hxx>
+#endif
+
+class Graphic;
+class Size;
+
+// Damit der Link ueber den Status der zu ladenen Grafik informierten werden
+// verschickt das FileObject ein SvData, mit der FormatId
+// "RegisterStatusInfoId" und ein einem String als Datentraeger. Dieser
+// enthaelt den folgenden enum.
+enum LinkState
+{
+ STATE_LOAD_OK,
+ STATE_LOAD_ERROR,
+ STATE_LOAD_ABORT
+};
+
+class SvxLinkManager : public SvLinkManager
+{
+ SvxLinkManager( const SvLinkManager& );
+ SvxLinkManager& operator=( const SvLinkManager& );
+
+public:
+ SvxLinkManager( SvPersist * pCacheCont );
+
+ // den Link mit einem PseudoObject verbinden und in die Liste eintragen
+ BOOL InsertFileLink( SvBaseLink&,
+ USHORT nFileType,
+ const String& rTxt,
+ const String* pFilterNm = 0,
+ const String* pRange = 0 );
+
+ // falls am Link schon alles eingestellt ist !
+ BOOL InsertFileLink( SvBaseLink& );
+
+ // erfrage die Strings fuer den Dialog
+ virtual BOOL GetDisplayNames( const SvBaseLink&,
+ String* pType,
+ String* pFile = 0,
+ String* pLink = 0,
+ String* pFilter = 0 ) const;
+
+ virtual SvPseudoObjectRef CreateObj( SvBaseLink & );
+
+ // eine Uebertragung wird abgebrochen, also alle DownloadMedien canceln
+ // (ist zur Zeit nur fuer die FileLinks interressant!)
+ void CancelTransfers();
+
+ static void SetTransferPriority( SvBaseLink& rLink, USHORT nPrio );
+
+ // PrepareReload - alle FileObjects des LinksManagers oder den spz.
+ // aus dem Cache entfernen.
+ virtual void PrepareReload( SvBaseLink* pLnk = 0 );
+
+ // um Status Informationen aus dem FileObject an den BaseLink zu
+ // senden, gibt es eine eigene ClipBoardId. Das SvData-Object hat
+ // dann die entsprechenden Informationen als String.
+ // Wird zur Zeit fuer FileObject in Verbindung mit JavaScript benoetigt
+ // - das braucht Informationen ueber Load/Abort/Error
+ static ULONG RegisterStatusInfoId();
+};
+
+
+// siehe im Cache nach, ob diese Graphic schon existiert
+BOOL GetCacheGraphic( const String& rName, Graphic* pGrf, Size* pSize );
+
+
+
+#endif
+
diff --git a/svx/inc/measctrl.hxx b/svx/inc/measctrl.hxx
new file mode 100644
index 000000000000..815fcee644d2
--- /dev/null
+++ b/svx/inc/measctrl.hxx
@@ -0,0 +1,104 @@
+/*************************************************************************
+ *
+ * $RCSfile: measctrl.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:00:57 $
+ *
+ * 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 _SVX_MEASCTRL_HXX
+#define _SVX_MEASCTRL_HXX
+
+// include ---------------------------------------------------------------
+
+#ifndef _CTRL_HXX //autogen
+#include <vcl/ctrl.hxx>
+#endif
+
+
+class SfxItemSet;
+
+class ExtOutputDevice;
+class SdrMeasureObj;
+class SdrModel;
+
+/*************************************************************************
+|*
+|* SvxXMeasurePreview
+|*
+\************************************************************************/
+class SvxXMeasurePreview : public Control
+{
+ friend class SvxMeasurePage;
+
+private:
+ const SfxItemSet& rAttrs;
+ ExtOutputDevice* pExtOutDev;
+ SdrMeasureObj* pMeasureObj;
+ SdrModel* pModel;
+
+public:
+ SvxXMeasurePreview( Window* pParent, const ResId& rResId,
+ const SfxItemSet& rInAttrs );
+ ~SvxXMeasurePreview();
+
+ virtual void Paint( const Rectangle& rRect );
+ virtual void MouseButtonDown( const MouseEvent& rMEvt );
+
+ void SetAttributes( const SfxItemSet& rInAttrs );
+};
+
+#endif
+
diff --git a/svx/inc/modctrl.hxx b/svx/inc/modctrl.hxx
new file mode 100644
index 000000000000..e2f5f524c693
--- /dev/null
+++ b/svx/inc/modctrl.hxx
@@ -0,0 +1,95 @@
+/*************************************************************************
+ *
+ * $RCSfile: modctrl.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:00:57 $
+ *
+ * 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 _SVX_MODCTRL_HXX
+#define _SVX_MODCTRL_HXX
+
+// include ---------------------------------------------------------------
+
+#ifndef _SFXSTBITEM_HXX //autogen
+#include <sfx2/stbitem.hxx>
+#endif
+
+// class SvxModifyControl ------------------------------------------------
+
+class SvxModifyControl : public SfxStatusBarControl
+{
+public:
+ virtual void StateChanged( USHORT nSID, SfxItemState eState,
+ const SfxPoolItem* pState );
+ virtual void Paint( const UserDrawEvent& rEvt );
+
+ SFX_DECL_STATUSBAR_CONTROL();
+
+ SvxModifyControl( USHORT nId, StatusBar& rStb, SfxBindings& rBind );
+
+ static ULONG GetDefItemWidth(const StatusBar& rStb);
+
+private:
+ BOOL bState;
+
+#ifdef _SVX_MODCTRL_CXX
+ void DrawItemText_Impl();
+#endif
+};
+
+
+#endif
+
diff --git a/svx/inc/msoleexp.hxx b/svx/inc/msoleexp.hxx
new file mode 100644
index 000000000000..0d793dc5199c
--- /dev/null
+++ b/svx/inc/msoleexp.hxx
@@ -0,0 +1,89 @@
+/*************************************************************************
+ *
+ * $RCSfile: msoleexp.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:00:57 $
+ *
+ * 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 _MSOLEEXP_HXX
+#define _MSOLEEXP_HXX
+
+// for the CreateSdrOLEFromStorage we need the information, how we handle
+// convert able OLE-Objects - this ist stored in
+#define OLE_STARMATH_2_MATHTYPE 0x0001
+#define OLE_STARWRITER_2_WINWORD 0x0002
+#define OLE_STARCALC_2_EXCEL 0x0004
+#define OLE_STARIMPRESS_2_POWERPOINT 0x0008
+
+class SvInPlaceObject;
+class SvStorage;
+
+class SvxMSExportOLEObjects
+{
+ UINT32 nConvertFlags;
+public:
+ SvxMSExportOLEObjects( UINT32 nCnvrtFlgs ) : nConvertFlags(nCnvrtFlgs) {}
+
+ void SetFlags( UINT32 n ) { nConvertFlags = n; }
+ UINT32 GetFlags() const { return nConvertFlags; }
+
+ void ExportOLEObject( SvInPlaceObject& rObj, SvStorage& rDestStg );
+};
+
+
+
+#endif
+
diff --git a/svx/inc/nlbkitem.hxx b/svx/inc/nlbkitem.hxx
new file mode 100644
index 000000000000..40dcc459c3f9
--- /dev/null
+++ b/svx/inc/nlbkitem.hxx
@@ -0,0 +1,108 @@
+/*************************************************************************
+ *
+ * $RCSfile: nlbkitem.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:00:57 $
+ *
+ * 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 _SVX_NLBKITEM_HXX
+#define _SVX_NLBKITEM_HXX
+
+// include ---------------------------------------------------------------
+
+
+#ifndef _SFXENUMITEM_HXX //autogen
+#include <svtools/eitem.hxx>
+#endif
+
+// class SvxNoLinebreakItem ----------------------------------------------
+
+
+/* [Beschreibung]
+
+ PB: ???
+*/
+
+class SvxNoLinebreakItem : public SfxBoolItem
+{
+public:
+ TYPEINFO();
+
+ SvxNoLinebreakItem( const BOOL bBreak = TRUE,
+ const USHORT nId = ITEMID_NOLINEBREAK );
+
+ // "pure virtual Methoden" vom SfxPoolItem
+ virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
+ virtual SfxPoolItem* Create(SvStream &, USHORT) const;
+ virtual SvStream& Store(SvStream &, USHORT nItemVersion) const;
+
+ virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
+ SfxMapUnit eCoreMetric,
+ SfxMapUnit ePresMetric,
+ String &rText, const International * = 0 ) const;
+
+ inline SvxNoLinebreakItem& operator=(const SvxNoLinebreakItem& rLB)
+ {
+ SetValue( rLB.GetValue() );
+ return *this;
+ }
+};
+
+
+
+#endif
+
+
diff --git a/svx/inc/numvset.hxx b/svx/inc/numvset.hxx
new file mode 100644
index 000000000000..19e6b77b9f16
--- /dev/null
+++ b/svx/inc/numvset.hxx
@@ -0,0 +1,170 @@
+/*************************************************************************
+ *
+ * $RCSfile: numvset.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:00:57 $
+ *
+ * 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 _SVX_NUMVSET_HXX
+#define _SVX_NUMVSET_HXX
+
+
+// include ---------------------------------------------------------------
+
+
+#ifndef _VALUESET_HXX //autogen
+#include <svtools/valueset.hxx>
+#endif
+#include <limits.h>
+class SvxBrushItem;
+class SvxNumRule;
+/*-----------------13.02.97 14.02-------------------
+
+--------------------------------------------------*/
+
+struct SvxBmpItemInfo
+{
+ SvxBrushItem* pBrushItem;
+ USHORT nItemId;
+};
+
+/*-----------------09/09/97 01:05pm-----------------
+
+--------------------------------------------------*/
+class SvxNumValueSet : public ValueSet
+{
+ Color aLineColor;
+ USHORT nPageType;
+ BOOL bHTMLMode;
+ Rectangle aOrgRect;
+ VirtualDevice* pVDev;
+ public:
+ SvxNumValueSet( Window* pParent, const ResId& rResId, USHORT nType );
+ ~SvxNumValueSet();
+
+ virtual void UserDraw( const UserDrawEvent& rUDEvt );
+
+ void SetHTMLMode(BOOL bSet) {bHTMLMode = bSet;}
+
+};
+
+/*-----------------13.02.97 09.32-------------------
+
+--------------------------------------------------*/
+
+class SvxBmpNumValueSet : public SvxNumValueSet
+{
+ const List& rStrList;
+ List aGrfBrushItems;
+ Timer aFormatTimer;
+ BOOL bGrfNotFound;
+
+ protected:
+ DECL_STATIC_LINK(SvxBmpNumValueSet, GraphicArrivedHdl_Impl, SvxBrushItem*);
+ DECL_LINK(FormatHdl_Impl, Timer*);
+
+ void SetGrfNotFound(BOOL bSet) {bGrfNotFound = bSet;}
+ BOOL IsGrfNotFound()const {return bGrfNotFound;}
+
+ const List& GetStringList(){return rStrList;}
+ List& GetGrfBrushItems() {return aGrfBrushItems;}
+
+ Timer& GetFormatTimer() {return aFormatTimer;}
+
+ public:
+ SvxBmpNumValueSet( Window* pParent, const ResId& rResId, const List& rStrNames);
+ ~SvxBmpNumValueSet();
+
+ SvxBmpItemInfo* FindInfo(USHORT nInfo);
+ virtual void UserDraw( const UserDrawEvent& rUDEvt );
+
+};
+/*-----------------02.12.97 10:31-------------------
+
+--------------------------------------------------*/
+
+class SvxNumberingPreview : public Window
+{
+ const SvxNumRule* pActNum;
+ Font aStdFont;
+ long nPageWidth;
+ const String* pOutlineNames;
+ BOOL bPosition;
+ UINT16 nActLevel;
+
+ protected:
+ virtual void Paint( const Rectangle& rRect );
+
+ public:
+ SvxNumberingPreview(Window* pParent, const ResId& rResId ) :
+ Window(pParent, rResId),
+ pActNum(0),nPageWidth(0), pOutlineNames(0), bPosition(FALSE), nActLevel(USHRT_MAX) {}
+
+ void SetNumRule(const SvxNumRule* pNum)
+ {pActNum = pNum; Invalidate();};
+ void SetPageWidth(long nPgWidth)
+ {nPageWidth = nPgWidth;}
+ void SetOutlineNames(const String* pNames)
+ {pOutlineNames = pNames;}
+ void SetPositionMode()
+ { bPosition = TRUE;}
+ void SetLevel(USHORT nSet) {nActLevel = nSet;}
+
+};
+
+
+#endif
+
diff --git a/svx/inc/objfac3d.hxx b/svx/inc/objfac3d.hxx
new file mode 100644
index 000000000000..a863adab7594
--- /dev/null
+++ b/svx/inc/objfac3d.hxx
@@ -0,0 +1,90 @@
+/*************************************************************************
+ *
+ * $RCSfile: objfac3d.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:00:57 $
+ *
+ * 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 _OBJFAC3D_HXX
+#define _OBJFAC3D_HXX
+
+
+/*************************************************************************
+|*
+|* Factory fuer Chart-spezifische Objekte
+|*
+\************************************************************************/
+
+class SdrObjFactory;
+
+
+#ifndef _LINK_HXX //autogen
+#include <tools/link.hxx>
+#endif
+
+class E3dObjFactory
+{
+public:
+ E3dObjFactory();
+ ~E3dObjFactory();
+
+ DECL_LINK(MakeObject, SdrObjFactory*);
+};
+
+
+
+#endif // _OBJFAC3D_HXX
diff --git a/svx/inc/opaqitem.hxx b/svx/inc/opaqitem.hxx
new file mode 100644
index 000000000000..5bb39c0bce91
--- /dev/null
+++ b/svx/inc/opaqitem.hxx
@@ -0,0 +1,123 @@
+/*************************************************************************
+ *
+ * $RCSfile: opaqitem.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:00:57 $
+ *
+ * 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 _SVX_OPAQITEM_HXX
+#define _SVX_OPAQITEM_HXX
+
+// include ---------------------------------------------------------------
+
+#ifndef _SFXENUMITEM_HXX //autogen
+#include <svtools/eitem.hxx>
+#endif
+
+class SvXMLUnitConverter;
+#ifdef _USE_NAMESPACE
+namespace rtl
+{
+#endif
+ class OUString;
+#ifdef _USE_NAMESPACE
+}
+#endif
+
+// class SvxOpaqueItem ---------------------------------------------------
+
+
+/*
+[Beschreibung]
+Dieses Item beschreibt eine logische Variable "Undurchsichtig ja oder nein".
+*/
+
+class SvxOpaqueItem : public SfxBoolItem
+{
+public:
+ TYPEINFO();
+
+ SvxOpaqueItem( const USHORT nId = ITEMID_OPAQUE, const BOOL bOpa = TRUE );
+ inline SvxOpaqueItem &operator=( const SvxOpaqueItem &rCpy );
+
+ // "pure virtual Methoden" vom SfxPoolItem
+ virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
+ virtual SfxPoolItem* Create(SvStream &, USHORT) const;
+ virtual SvStream& Store(SvStream &, USHORT nItemVersion ) const;
+
+ virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
+ SfxMapUnit eCoreMetric,
+ SfxMapUnit ePresMetric,
+ String &rText, const International * = 0 ) const;
+
+ virtual BOOL importXML( const NAMESPACE_RTL(OUString)& rValue, USHORT nMemberId, const SvXMLUnitConverter& rUnitConverter );
+ virtual BOOL exportXML( NAMESPACE_RTL(OUString)& rValue, USHORT nMemberId, const SvXMLUnitConverter& rUnitConverter ) const;
+};
+
+inline SvxOpaqueItem::SvxOpaqueItem( const USHORT nId, const BOOL bOpa )
+ : SfxBoolItem( nId, bOpa )
+{}
+
+inline SvxOpaqueItem &SvxOpaqueItem::operator=( const SvxOpaqueItem &rCpy )
+{
+ SetValue( rCpy.GetValue() );
+ return *this;
+}
+
+
+
+#endif
+
diff --git a/svx/inc/optgenrl.hxx b/svx/inc/optgenrl.hxx
new file mode 100644
index 000000000000..cee8c657acd4
--- /dev/null
+++ b/svx/inc/optgenrl.hxx
@@ -0,0 +1,169 @@
+/*************************************************************************
+ *
+ * $RCSfile: optgenrl.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:00:58 $
+ *
+ * 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 _SVX_OPTGENRL_HXX
+#define _SVX_OPTGENRL_HXX
+
+// include ---------------------------------------------------------------
+
+#ifndef _SFXTABDLG_HXX //autogen
+#include <sfx2/tabdlg.hxx>
+#endif
+#ifndef _FIXED_HXX //autogen
+#include <vcl/fixed.hxx>
+#endif
+#ifndef _EDIT_HXX //autogen
+#include <vcl/edit.hxx>
+#endif
+#ifndef _GROUP_HXX //autogen
+#include <vcl/group.hxx>
+#endif
+
+// forward ---------------------------------------------------------------
+
+class SvxAddressItem;
+struct GeneralTabPage_Impl;
+
+// define ----------------------------------------------------------------
+
+#define SfxGeneralTabPage SvxGeneralTabPage
+
+// defines um von Aussen "uber einen Slot einem bestimmten Edit
+// den Fokus zu setzen.
+#define UNKNOWN_EDIT ((USHORT)0)
+#define COMPANY_EDIT ((USHORT)1)
+#define FIRSTNAME_EDIT ((USHORT)2)
+#define LASTNAME_EDIT ((USHORT)3)
+#define STREET_EDIT ((USHORT)4)
+#define COUNTRY_EDIT ((USHORT)5)
+#define PLZ_EDIT ((USHORT)6)
+#define CITY_EDIT ((USHORT)7)
+#define STATE_EDIT ((USHORT)8)
+#define TITLE_EDIT ((USHORT)9)
+#define POSITION_EDIT ((USHORT)10)
+#define SHORTNAME_EDIT ((USHORT)11)
+#define TELPRIV_EDIT ((USHORT)12)
+#define TELCOMPANY_EDIT ((USHORT)13)
+#define FAX_EDIT ((USHORT)14)
+#define EMAIL_EDIT ((USHORT)15)
+
+// class SvxGeneralTabPage -----------------------------------------------
+
+class SvxGeneralTabPage : public SfxTabPage
+{
+private:
+ FixedText aCompanyLbl;
+ Edit aCompanyEdit;
+ FixedText aNameLbl;
+ FixedText aNameLblRuss;
+ Edit aFatherName;
+ Edit aFirstName;
+ Edit aName;
+ Edit aShortName;
+ FixedText aStreetLbl;
+ FixedText aStreetLblRuss;
+ Edit aStreetEdit;
+ Edit aApartmentNrEdit;
+ FixedText aCityLbl;
+ Edit aPLZEdit;
+ Edit aCityEdit;
+ Edit aUsCityEdit;
+ Edit aUsStateEdit;
+ Edit aUsZipEdit;
+ FixedText aCountryLbl;
+ Edit aCountryEdit;
+ FixedText aTitlePosLbl;
+ Edit aTitleEdit;
+ Edit aPositionEdit;
+ FixedText aPhoneLbl;
+ Edit aTelPrivEdit;
+ Edit aTelCompanyEdit;
+ FixedText aFaxMailLbl;
+ Edit aFaxEdit;
+ Edit aEmailEdit;
+ GroupBox aAddrFrm;
+ CheckBox aUseDataCB;
+
+ GeneralTabPage_Impl* pImpl;
+
+
+#ifdef _SVX_OPTGENRL_CXX
+ DECL_LINK( ModifyHdl_Impl, Edit * );
+
+ String GetAddress_Impl();
+ void SetAddress_Impl( const SvxAddressItem& rAddress );
+#endif
+
+protected:
+ virtual int DeactivatePage( SfxItemSet* pSet );
+
+public:
+ SvxGeneralTabPage( Window* pParent, const SfxItemSet& rSet );
+ ~SvxGeneralTabPage();
+
+ static SfxTabPage* Create( Window* pParent, const SfxItemSet& rAttrSet );
+
+ virtual BOOL FillItemSet( SfxItemSet& rSet );
+ virtual void Reset( const SfxItemSet& rSet );
+};
+
+#endif // #ifndef _SVX_OPTGENRL_HXX
+
+
diff --git a/svx/inc/optgrid.hxx b/svx/inc/optgrid.hxx
new file mode 100644
index 000000000000..8999361daae8
--- /dev/null
+++ b/svx/inc/optgrid.hxx
@@ -0,0 +1,208 @@
+/*************************************************************************
+ *
+ * $RCSfile: optgrid.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:00:58 $
+ *
+ * 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 _SVX_OPTGRID_HXX
+#define _SVX_OPTGRID_HXX
+
+// include ---------------------------------------------------------------
+
+#ifndef _SFXTABDLG_HXX //autogen
+#include <sfx2/tabdlg.hxx>
+#endif
+#ifndef _SFXENUMITEM_HXX //autogen
+#include <svtools/eitem.hxx>
+#endif
+#ifndef _SV_GROUP_HXX //autogen
+#include <vcl/group.hxx>
+#endif
+#ifndef _SV_FIXED_HXX //autogen
+#include <vcl/fixed.hxx>
+#endif
+#ifndef _SV_FIELD_HXX //autogen
+#include <vcl/field.hxx>
+#endif
+
+class SvxGridTabPage;
+
+// class SvxOptionsGrid --------------------------------------------------
+
+class SvxOptionsGrid
+{
+protected:
+ UINT32 nFldDrawX;
+ UINT32 nFldDivisionX;
+ UINT32 nFldDrawY;
+ UINT32 nFldDivisionY;
+ UINT32 nFldSnapX;
+ UINT32 nFldSnapY;
+ BOOL bUseGridsnap:1;
+ BOOL bSynchronize:1;
+ BOOL bGridVisible:1;
+ BOOL bEqualGrid: 1;
+
+public:
+ SvxOptionsGrid();
+ ~SvxOptionsGrid();
+
+ void SetFldDrawX( UINT32 nSet){nFldDrawX = nSet;}
+ void SetFldDivisionX(UINT32 nSet){nFldDivisionX = nSet;}
+ void SetFldDrawY ( UINT32 nSet){nFldDrawY = nSet;}
+ void SetFldDivisionY(UINT32 nSet){nFldDivisionY = nSet;}
+ void SetFldSnapX( UINT32 nSet){nFldSnapX = nSet;}
+ void SetFldSnapY ( UINT32 nSet){nFldSnapY = nSet;}
+ void SetUseGridSnap( BOOL bSet ) {bUseGridsnap = bSet;}
+ void SetSynchronize( BOOL bSet ) {bSynchronize = bSet;}
+ void SetGridVisible( BOOL bSet ) {bGridVisible = bSet;}
+ void SetEqualGrid( BOOL bSet ) {bEqualGrid = bSet;}
+
+ UINT32 GetFldDrawX( ) const { return nFldDrawX; }
+ UINT32 GetFldDivisionX() const { return nFldDivisionX;}
+ UINT32 GetFldDrawY ( ) const { return nFldDrawY; }
+ UINT32 GetFldDivisionY() const { return nFldDivisionY;}
+ UINT32 GetFldSnapX( ) const { return nFldSnapX; }
+ UINT32 GetFldSnapY ( ) const { return nFldSnapY; }
+ BOOL GetUseGridSnap( ) const { return bUseGridsnap; }
+ BOOL GetSynchronize( ) const { return bSynchronize; }
+ BOOL GetGridVisible( ) const { return bGridVisible; }
+ BOOL GetEqualGrid() const { return bEqualGrid; }
+};
+
+// class SvxGridItem -----------------------------------------------------
+
+class SvxGridItem : public SvxOptionsGrid, public SfxPoolItem
+{
+ friend SvxGridTabPage;
+
+public:
+ SvxGridItem( USHORT nWhich) : SfxPoolItem(nWhich){};
+ SvxGridItem( const SvxGridItem& pTestItem );
+
+ virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
+ virtual int operator==( const SfxPoolItem& ) const;
+
+ virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
+ SfxMapUnit eCoreMetric,
+ SfxMapUnit ePresMetric,
+ String &rText, const International * = 0 ) const;
+
+};
+
+// class SvxGridTabPage --------------------------------------------------
+
+class SvxGridTabPage : public SfxTabPage
+{
+public:
+ SvxGridTabPage( Window* pParent, const SfxItemSet& rSet );
+
+ static SfxTabPage* Create( Window* pParent, const SfxItemSet& rAttrSet );
+
+ virtual BOOL FillItemSet( SfxItemSet& rSet );
+ virtual void Reset( const SfxItemSet& rSet );
+
+ virtual void ActivatePage( const SfxItemSet& rSet );
+ virtual int DeactivatePage( SfxItemSet* pSet );
+
+ void HideSnapGrid();
+
+private:
+ CheckBox aCbxUseGridsnap;
+ CheckBox aCbxGridVisible;
+ CheckBox aCbxSynchronize;
+ GroupBox aGrpOptions; // Neu
+
+ FixedText aFtResolution;
+ FixedText aFtDrawX;
+ MetricField aMtrFldDrawX;
+ FixedText aFtDrawY;
+ MetricField aMtrFldDrawY;
+ FixedText aFtDivision;
+ MetricField aMtrFldDivisionX;
+ MetricField aMtrFldDivisionY;
+ GroupBox aGrpDrawGrid; // Neu
+
+ CheckBox aCbxEqualGrid; // Neu
+ FixedText aFtSnapX; // Neu
+ MetricField aMtrFldSnapX; // Neu
+ FixedText aFtSnapY; // Neu
+ MetricField aMtrFldSnapY; // Neu
+ GroupBox aGrpSnapGrid; // Neu
+
+ BOOL bAttrModified;
+ BOOL bEqualGrid; // Neu
+
+#ifdef _SVX_OPTGRID_CXX
+ DECL_LINK( ChangeDrawXHdl_Impl, void * );
+ DECL_LINK( ChangeDrawYHdl_Impl, void * );
+ DECL_LINK( ChangeSnapXHdl_Impl, void * );
+ DECL_LINK( ChangeSnapYHdl_Impl, void * );
+ DECL_LINK( ChangeGridsnapHdl_Impl, void * );
+ DECL_LINK( ChangeEqualGridHdl_Impl, void * );
+ DECL_LINK( ChangeDivisionXHdl_Impl, void * );
+ DECL_LINK( ChangeDivisionYHdl_Impl, void * );
+
+ //void Init();
+ //void AutoClickHdl(CheckBox* pBox);
+ //void ModifyHdl(Edit* );
+#endif
+};
+
+
+#endif
+
diff --git a/svx/inc/optitems.hxx b/svx/inc/optitems.hxx
new file mode 100644
index 000000000000..a4a07ed575b2
--- /dev/null
+++ b/svx/inc/optitems.hxx
@@ -0,0 +1,168 @@
+/*************************************************************************
+ *
+ * $RCSfile: optitems.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:00:58 $
+ *
+ * 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 _SVX_OPTITEMS_HXX
+#define _SVX_OPTITEMS_HXX
+
+// include ---------------------------------------------------------------
+
+#ifndef _SFXPOOLITEM_HXX //autogen
+#include <svtools/poolitem.hxx>
+#endif
+
+//#ifndef _COM_SUN_STAR_LINGUISTIC_XSPELLALTERNATIVES_HPP_
+//#include <com/sun/star/linguistic/XSpellAlternatives.hpp>
+//#endif
+//#ifndef _COM_SUN_STAR_LINGUISTIC_SPELLFAILURE_HPP_
+//#include <com/sun/star/linguistic/SpellFailure.hpp>
+//#endif
+//#ifndef _COM_SUN_STAR_LINGUISTIC_XSPELLCHECKER_HPP_
+//#include <com/sun/star/linguistic/XSpellChecker.hpp>
+//#endif
+//#ifndef _COM_SUN_STAR_LINGUISTIC_XSPELLCHECKER1_HPP_
+//#include <com/sun/star/linguistic/XSpellChecker1.hpp>
+//#endif
+#ifndef _COM_SUN_STAR_UNO_REFERENCE_HXX_
+#include <com/sun/star/uno/Reference.hxx>
+#endif
+
+// forward ---------------------------------------------------------------
+namespace com{namespace sun{namespace star{
+namespace beans{
+// class XPropertySet;
+}
+namespace linguistic{
+// class XDictionary;
+ class XSpellChecker1;
+// class XOtherLingu;
+ }}}}
+
+
+// class SfxSpellCheckItem -----------------------------------------------
+
+#ifdef ITEMID_SPELLCHECK
+
+class SfxSpellCheckItem: public SfxPoolItem
+{
+public:
+ TYPEINFO();
+
+ SfxSpellCheckItem( ::com::sun::star::uno::Reference< ::com::sun::star::linguistic::XSpellChecker1 > &xChecker,
+ sal_uInt16 nWhich = ITEMID_SPELLCHECK );
+ SfxSpellCheckItem( const SfxSpellCheckItem& rItem );
+
+ virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
+ SfxMapUnit eCoreMetric,
+ SfxMapUnit ePresMetric,
+ String &rText, const International * = 0 ) const;
+
+ virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
+ virtual int operator==( const SfxPoolItem& ) const;
+
+ ::com::sun::star::uno::Reference< ::com::sun::star::linguistic::XSpellChecker1 > GetXSpellChecker() const { return xSpellCheck; }
+
+private:
+ ::com::sun::star::uno::Reference< ::com::sun::star::linguistic::XSpellChecker1 > xSpellCheck;
+};
+#endif
+
+// class SfxHyphenRegionItem ---------------------------------------------
+
+#ifdef ITEMID_HYPHENREGION
+
+class SfxHyphenRegionItem: public SfxPoolItem
+{
+ sal_uInt8 nMinLead;
+ sal_uInt8 nMinTrail;
+
+public:
+ TYPEINFO();
+
+ SfxHyphenRegionItem( const sal_uInt16 nId = ITEMID_HYPHENREGION );
+ SfxHyphenRegionItem( const SfxHyphenRegionItem& rItem );
+
+ virtual int operator==( const SfxPoolItem& ) const;
+ virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
+ SfxMapUnit eCoreMetric,
+ SfxMapUnit ePresMetric,
+ String &rText, const International * = 0 ) const;
+
+ virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
+ virtual SfxPoolItem* Create( SvStream& rStrm, sal_uInt16 nVer ) const;
+ virtual SvStream& Store( SvStream& rStrm, sal_uInt16 ) const;
+
+ inline sal_uInt8 &GetMinLead() { return nMinLead; }
+ inline sal_uInt8 GetMinLead() const { return nMinLead; }
+
+ inline sal_uInt8 &GetMinTrail() { return nMinTrail; }
+ inline sal_uInt8 GetMinTrail() const { return nMinTrail; }
+
+ inline SfxHyphenRegionItem& operator=( const SfxHyphenRegionItem& rNew )
+ {
+ nMinLead = rNew.GetMinLead();
+ nMinTrail = rNew.GetMinTrail();
+ return *this;
+ }
+};
+#endif
+
+
+#endif
+
diff --git a/svx/inc/passwd.hxx b/svx/inc/passwd.hxx
new file mode 100644
index 000000000000..0c1c2509c92f
--- /dev/null
+++ b/svx/inc/passwd.hxx
@@ -0,0 +1,127 @@
+/*************************************************************************
+ *
+ * $RCSfile: passwd.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:00:58 $
+ *
+ * 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 _SVX_PASSWD_HXX
+#define _SVX_PASSWD_HXX
+
+// include ---------------------------------------------------------------
+
+#ifndef _BASEDLGS_HXX //autogen
+#include <sfx2/basedlgs.hxx>
+#endif
+
+#ifndef _FIXED_HXX //autogen
+#include <vcl/fixed.hxx>
+#endif
+
+#ifndef _EDIT_HXX //autogen
+#include <vcl/edit.hxx>
+#endif
+
+#ifndef _GROUP_HXX //autogen
+#include <vcl/group.hxx>
+#endif
+
+#ifndef _BUTTON_HXX //autogen
+#include <vcl/button.hxx>
+#endif
+
+// class SvxPasswordDialog -----------------------------------------------
+
+class SvxPasswordDialog : public SfxModalDialog
+{
+private:
+ FixedText aOldPasswdFT;
+ Edit aOldPasswdED;
+ GroupBox aOldGB;
+ FixedText aNewPasswdFT;
+ Edit aNewPasswdED;
+ FixedText aRepeatPasswdFT;
+ Edit aRepeatPasswdED;
+ GroupBox aNewGB;
+ OKButton aOKBtn;
+ CancelButton aEscBtn;
+ HelpButton aHelpBtn;
+
+ String aOldPassword;
+ String aOldPasswdErrStr;
+ String aRepeatPasswdErrStr;
+
+ FASTBOOL bVerify;
+ FASTBOOL bEmpty;
+
+#ifdef _SVX_PASSWD_CXX
+ DECL_LINK( OKHdl_Impl, OKButton * );
+ DECL_LINK( ModifyHdl_Impl, Edit * );
+#endif
+
+public:
+ SvxPasswordDialog( Window* pParent,
+ FASTBOOL bAllowEmptyPasswords = FALSE );
+ ~SvxPasswordDialog();
+
+ String GetOldPassword() const { return aOldPasswdED.GetText(); }
+ void SetOldPassword( const String& rOld );
+ String GetNewPassword() const { return aNewPasswdED.GetText(); }
+};
+
+
+#endif
+
diff --git a/svx/inc/pfiledlg.hxx b/svx/inc/pfiledlg.hxx
new file mode 100644
index 000000000000..37f7bee29352
--- /dev/null
+++ b/svx/inc/pfiledlg.hxx
@@ -0,0 +1,89 @@
+/*************************************************************************
+ *
+ * $RCSfile: pfiledlg.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:00:58 $
+ *
+ * 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 _SVX_PFILEDLG_HXX
+#define _SVX_PFILEDLG_HXX
+
+// include ---------------------------------------------------------------
+
+#include <sfx2/iodlg.hxx>
+
+/*************************************************************************
+|*
+|* Filedialog to insert Plugin-Fileformats
+|*
+\************************************************************************/
+
+class SvxPluginFileDlg : public SfxFileDialog
+{
+private:
+
+public:
+ // with nKind = SID_INSERT_SOUND or
+ // nKind = SID_INSERT_VIDEO
+ SvxPluginFileDlg (Window *pParent, USHORT nKind );
+ ~SvxPluginFileDlg ();
+
+ static BOOL IsAvailable (USHORT nKind);
+};
+
+#endif // _SVX_PFILEDLG_HXX
+
+
diff --git a/svx/inc/postattr.hxx b/svx/inc/postattr.hxx
new file mode 100644
index 000000000000..550618e17d91
--- /dev/null
+++ b/svx/inc/postattr.hxx
@@ -0,0 +1,168 @@
+/*************************************************************************
+ *
+ * $RCSfile: postattr.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:00:58 $
+ *
+ * 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 _SVX_POSTATTR_HXX
+#define _SVX_POSTATTR_HXX
+
+// include ---------------------------------------------------------------
+
+#ifndef _SFXSTRITEM_HXX //autogen
+#include <svtools/stritem.hxx>
+#endif
+
+// class SvxPostItAuthorItem ---------------------------------------------
+
+#ifdef ITEMID_AUTHOR
+
+/*
+[Beschreibung]
+Dieses Item beschreibt das Autoren-Kuerzel eines Notizzettels.
+*/
+
+class SvxPostItAuthorItem: public SfxStringItem
+{
+public:
+ TYPEINFO();
+
+ SvxPostItAuthorItem( USHORT nWhich = ITEMID_AUTHOR );
+
+ SvxPostItAuthorItem( const String& rAuthor, USHORT nWhich = ITEMID_AUTHOR );
+ virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
+ SfxMapUnit eCoreMetric,
+ SfxMapUnit ePresMetric,
+ String &rText, const International * = 0 ) const;
+
+ virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
+
+ inline SvxPostItAuthorItem& operator=( const SvxPostItAuthorItem& rAuthor )
+ {
+ SetValue( rAuthor.GetValue() );
+ return *this;
+ }
+};
+#endif
+
+// class SvxPostItDateItem -----------------------------------------------
+
+#ifdef ITEMID_DATE
+
+/*
+[Beschreibung]
+Dieses Item beschreibt das Datum eines Notizzettels.
+*/
+
+class SvxPostItDateItem: public SfxStringItem
+{
+public:
+ TYPEINFO();
+
+ SvxPostItDateItem( USHORT nWhich = ITEMID_DATE );
+
+ SvxPostItDateItem( const String& rDate, USHORT nWhich = ITEMID_DATE );
+ virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
+ SfxMapUnit eCoreMetric,
+ SfxMapUnit ePresMetric,
+ String &rText, const International * = 0 ) const;
+ virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
+
+ inline SvxPostItDateItem& operator=( const SvxPostItDateItem& rDate )
+ {
+ SetValue( rDate.GetValue() );
+ return *this;
+ }
+};
+#endif
+
+// class SvxPostItTextItem -----------------------------------------------
+
+#ifdef ITEMID_TEXT
+
+/*
+[Beschreibung]
+Dieses Item beschreibt den Text eines Notizzettels.
+*/
+
+class SvxPostItTextItem: public SfxStringItem
+{
+public:
+ TYPEINFO();
+
+ SvxPostItTextItem( USHORT nWhich = ITEMID_TEXT );
+
+ SvxPostItTextItem( const String& rText, USHORT nWhich = ITEMID_TEXT );
+ // "pure virtual Methoden" vom SfxPoolItem
+ virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
+ SfxMapUnit eCoreMetric,
+ SfxMapUnit ePresMetric,
+ String &rText, const International * = 0 ) const;
+
+ virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
+
+ inline SvxPostItTextItem& operator=( const SvxPostItTextItem& rText )
+ {
+ SetValue( rText.GetValue() );
+ return *this;
+ }
+};
+#endif
+
+
+#endif
+
diff --git a/svx/inc/prntitem.hxx b/svx/inc/prntitem.hxx
new file mode 100644
index 000000000000..a4b3b58911bc
--- /dev/null
+++ b/svx/inc/prntitem.hxx
@@ -0,0 +1,117 @@
+/*************************************************************************
+ *
+ * $RCSfile: prntitem.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:00:58 $
+ *
+ * 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 _SVX_PRNTITEM_HXX
+#define _SVX_PRNTITEM_HXX
+
+// include ---------------------------------------------------------------
+
+#ifndef _SFXENUMITEM_HXX //autogen
+#include <svtools/eitem.hxx>
+#endif
+
+
+
+// class SvxPrintItem ----------------------------------------------------
+
+
+/*
+[Beschreibung]
+Dieses Item beschreibt eine logische Variable "Drucken ja oder nein".
+*/
+
+
+class SvxPrintItem : public SfxBoolItem
+{
+public:
+ TYPEINFO();
+
+ SvxPrintItem( const USHORT nId = ITEMID_PRINT, const BOOL bPrt = TRUE );
+ inline SvxPrintItem &operator=( const SvxPrintItem &rCpy );
+
+ // "pure virtual Methoden" vom SfxPoolItem
+ virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
+ virtual SfxPoolItem* Create(SvStream &, USHORT) const;
+ virtual SvStream& Store(SvStream &, USHORT nItemVersion ) const;
+
+ virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
+ SfxMapUnit eCoreMetric,
+ SfxMapUnit ePresMetric,
+ String &rText, const International * = 0 ) const;
+
+ BOOL importXML( const NAMESPACE_RTL(OUString)& rValue, USHORT nMemberId, const SvXMLUnitConverter& rUnitConverter );
+ BOOL exportXML( NAMESPACE_RTL(OUString)& rValue, USHORT nMemberId, const SvXMLUnitConverter& rUnitConverter ) const;
+};
+
+inline SvxPrintItem::SvxPrintItem( const USHORT nId, const BOOL bPrt )
+ : SfxBoolItem( nId, bPrt )
+{}
+
+inline SvxPrintItem &SvxPrintItem::operator=( const SvxPrintItem &rCpy )
+{
+ SetValue( rCpy.GetValue() );
+ return *this;
+}
+
+
+
+
+#endif
+
diff --git a/svx/inc/protitem.hxx b/svx/inc/protitem.hxx
new file mode 100644
index 000000000000..65606f3480d9
--- /dev/null
+++ b/svx/inc/protitem.hxx
@@ -0,0 +1,147 @@
+/*************************************************************************
+ *
+ * $RCSfile: protitem.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:00:58 $
+ *
+ * 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 _SVX_PROTITEM_HXX
+#define _SVX_PROTITEM_HXX
+
+// include ---------------------------------------------------------------
+
+
+#ifndef _SFXPOOLITEM_HXX //autogen
+#include <svtools/poolitem.hxx>
+#endif
+
+class SvXMLUnitConverter;
+#ifdef _USE_NAMESPACE
+namespace rtl
+{
+#endif
+ class OUString;
+#ifdef _USE_NAMESPACE
+}
+#endif
+
+// class SvxProtectItem --------------------------------------------------
+
+
+/*
+[Beschreibung]
+Dieses Item beschreibt, ob Inhalt, Groesse oder Position geschuetzt werden
+sollen.
+*/
+
+class SvxProtectItem : public SfxPoolItem
+{
+ BOOL bCntnt :1; //Inhalt geschuetzt
+ BOOL bSize :1; //Groesse geschuetzt
+ BOOL bPos :1; //Position geschuetzt
+
+public:
+ TYPEINFO();
+
+ inline SvxProtectItem( const USHORT nId = ITEMID_PROTECT );
+ inline SvxProtectItem &operator=( const SvxProtectItem &rCpy );
+
+ // "pure virtual Methoden" vom SfxPoolItem
+ virtual int operator==( const SfxPoolItem& ) const;
+
+ virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
+ SfxMapUnit eCoreMetric,
+ SfxMapUnit ePresMetric,
+ String &rText, const International * = 0 ) const;
+
+
+ virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
+ virtual SfxPoolItem* Create(SvStream &, USHORT) const;
+ virtual SvStream& Store(SvStream &, USHORT nItemVersion ) const;
+
+ BOOL IsCntntProtected() const { return bCntnt; }
+ BOOL IsSizeProtected() const { return bSize; }
+ BOOL IsPosProtected() const { return bPos; }
+ void SetCntntProtect( BOOL bNew ) { bCntnt = bNew; }
+ void SetSizeProtect ( BOOL bNew ) { bSize = bNew; }
+ void SetPosProtect ( BOOL bNew ) { bPos = bNew; }
+
+ virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
+ virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
+
+ virtual BOOL importXML( const NAMESPACE_RTL(OUString)& rValue, USHORT nMemberId, const SvXMLUnitConverter& rUnitConverter );
+ virtual BOOL exportXML( NAMESPACE_RTL(OUString)& rValue, USHORT nMemberId, const SvXMLUnitConverter& rUnitConverter ) const;
+};
+
+inline SvxProtectItem::SvxProtectItem( const USHORT nId )
+ : SfxPoolItem( nId )
+{
+ bCntnt = bSize = bPos = FALSE;
+}
+
+inline SvxProtectItem &SvxProtectItem::operator=( const SvxProtectItem &rCpy )
+{
+ bCntnt = rCpy.IsCntntProtected();
+ bSize = rCpy.IsSizeProtected();
+ bPos = rCpy.IsPosProtected();
+ return *this;
+}
+
+
+
+
+#endif
+
diff --git a/svx/inc/prtqry.hxx b/svx/inc/prtqry.hxx
new file mode 100644
index 000000000000..e37e54945f3d
--- /dev/null
+++ b/svx/inc/prtqry.hxx
@@ -0,0 +1,75 @@
+/*************************************************************************
+ *
+ * $RCSfile: prtqry.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:00:58 $
+ *
+ * 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 _SVX_PRTQRY_HXX
+#define _SVX_PRTQRY_HXX
+
+#ifndef _SV_MSGBOX_HXX
+#include <vcl/msgbox.hxx>
+#endif
+
+class SvxPrtQryBox : public MessBox
+{
+public:
+ SvxPrtQryBox(Window* pParent);
+ ~SvxPrtQryBox();
+};
+
+#endif
diff --git a/svx/inc/pszctrl.hxx b/svx/inc/pszctrl.hxx
new file mode 100644
index 000000000000..6e2a84d98f6c
--- /dev/null
+++ b/svx/inc/pszctrl.hxx
@@ -0,0 +1,101 @@
+/*************************************************************************
+ *
+ * $RCSfile: pszctrl.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:00:58 $
+ *
+ * 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 _SVX_PSZCTRL_HXX
+#define _SVX_PSZCTRL_HXX
+
+// include ---------------------------------------------------------------
+
+#ifndef _SFXSTBITEM_HXX //autogen
+#include <sfx2/stbitem.hxx>
+#endif
+
+// forward ---------------------------------------------------------------
+
+class SvxSizeItem;
+struct SvxPosSizeStatusBarControl_Impl;
+
+// class SvxPosSizeToolBoxControl ----------------------------------------
+
+class SvxPosSizeStatusBarControl : public SfxStatusBarControl
+{
+private:
+ SvxPosSizeStatusBarControl_Impl* pImp;
+
+ SfxStatusForwarder aPosForwarder;
+ SfxStatusForwarder aTableForwarder;
+ SfxStatusForwarder aFuncForwarder;
+
+public:
+ SFX_DECL_STATUSBAR_CONTROL();
+
+ SvxPosSizeStatusBarControl( USHORT nId, StatusBar& rStb, SfxBindings& rBind );
+ ~SvxPosSizeStatusBarControl();
+
+ virtual void StateChanged( USHORT nSID, SfxItemState eState, const SfxPoolItem* pState );
+ virtual void Paint( const UserDrawEvent& rEvt );
+ virtual void Command( const CommandEvent& rCEvt );
+
+ static ULONG GetDefItemWidth( const StatusBar& rStb );
+};
+
+
+#endif
+
diff --git a/svx/inc/relfld.hxx b/svx/inc/relfld.hxx
new file mode 100644
index 000000000000..45230e83e73d
--- /dev/null
+++ b/svx/inc/relfld.hxx
@@ -0,0 +1,105 @@
+/*************************************************************************
+ *
+ * $RCSfile: relfld.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:00:58 $
+ *
+ * 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 _SVX_RELFLD_HXX
+#define _SVX_RELFLD_HXX
+
+// include ---------------------------------------------------------------
+
+#ifndef _FIELD_HXX //autogen
+#include <vcl/field.hxx>
+#endif
+
+
+
+// class SvxRelativeField ------------------------------------------------
+/*
+ [Beschreibung]
+
+ "Ahnlich der Klasse FontSizeBox. Abgeleitet von der Klasse MetricField.
+ Zus"atzliche Funktionalit"at: relative Angaben.
+*/
+
+class SvxRelativeField : public MetricField
+{
+private:
+ USHORT nRelMin;
+ USHORT nRelMax;
+ USHORT nRelStep;
+ BOOL bRelativeMode;
+ BOOL bRelative;
+
+protected:
+ void Modify();
+
+public:
+ SvxRelativeField( Window* pParent, WinBits nWinStyle = 0 );
+ SvxRelativeField( Window* pParent, const ResId& rResId );
+
+ void EnableRelativeMode( USHORT nMin = 50, USHORT nMax = 150,
+ USHORT nStep = 5 );
+ BOOL IsRelativeMode() const { return bRelativeMode; }
+ void SetRelative( BOOL bRelative = FALSE );
+ BOOL IsRelative() const { return bRelative; }
+};
+
+
+#endif
+
diff --git a/svx/inc/rotmodit.hxx b/svx/inc/rotmodit.hxx
new file mode 100644
index 000000000000..2c563926d47c
--- /dev/null
+++ b/svx/inc/rotmodit.hxx
@@ -0,0 +1,104 @@
+/*************************************************************************
+ *
+ * $RCSfile: rotmodit.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:00:58 $
+ *
+ * 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 _SVX_ROTMODIT_HXX
+#define _SVX_ROTMODIT_HXX
+
+#ifndef _SFXENUMITEM_HXX //autogen
+#include <svtools/eitem.hxx>
+#endif
+
+//----------------------------------------------------------------------------
+// Ausrichtung bei gedrehtem Text
+
+enum SvxRotateMode
+{
+ SVX_ROTATE_MODE_STANDARD,
+ SVX_ROTATE_MODE_TOP,
+ SVX_ROTATE_MODE_CENTER,
+ SVX_ROTATE_MODE_BOTTOM
+};
+
+class SvxRotateModeItem: public SfxEnumItem
+{
+public:
+ TYPEINFO();
+
+ SvxRotateModeItem( SvxRotateMode eMode, USHORT nWhich);
+ SvxRotateModeItem( const SvxRotateModeItem& rItem );
+ ~SvxRotateModeItem();
+
+ virtual USHORT GetValueCount() const;
+ virtual String GetValueText( USHORT nVal ) const;
+ virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
+ virtual SfxPoolItem* Create(SvStream &, USHORT) const;
+ virtual USHORT GetVersion( USHORT nFileVersion ) const;
+ virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
+ SfxMapUnit eCoreMetric,
+ SfxMapUnit ePresMetric,
+ String& rText, const International * = 0 ) const;
+ virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
+ virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
+};
+
+
+#endif
+
diff --git a/svx/inc/rulritem.hxx b/svx/inc/rulritem.hxx
new file mode 100644
index 000000000000..0b3c0ddbcd81
--- /dev/null
+++ b/svx/inc/rulritem.hxx
@@ -0,0 +1,306 @@
+/*************************************************************************
+ *
+ * $RCSfile: rulritem.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:00:58 $
+ *
+ * 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 _SVX_RULRITEM_HXX
+#define _SVX_RULRITEM_HXX
+
+// include ---------------------------------------------------------------
+
+
+#ifndef _GEN_HXX //autogen
+#include <tools/gen.hxx>
+#endif
+#ifndef _SFXPOOLITEM_HXX //autogen
+#include <svtools/poolitem.hxx>
+#endif
+
+// class SvxLongLRSpaceItem ----------------------------------------------
+
+class SvxLongLRSpaceItem : public SfxPoolItem
+{
+ long lLeft; // nLeft oder der neg. Erstzeileneinzug
+ long lRight; // der unproblematische rechte Rand
+
+ protected:
+
+ virtual int operator==( const SfxPoolItem& ) const;
+
+ virtual String GetValueText() const;
+ virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
+ SfxMapUnit eCoreMetric,
+ SfxMapUnit ePresMetric,
+ String &rText, const International * = 0 ) const;
+
+ virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
+
+private:
+ const SvxLongLRSpaceItem& operator=(const SvxLongLRSpaceItem &); // n.i.
+
+public:
+ TYPEINFO();
+ SvxLongLRSpaceItem(long lLeft, long lRight, USHORT nId);
+ SvxLongLRSpaceItem(const SvxLongLRSpaceItem &);
+
+ long GetLeft() const { return lLeft; }
+ long GetRight() const { return lRight; }
+ void SetLeft(long lArgLeft) {lLeft=lArgLeft;}
+ void SetRight(long lArgRight) {lRight=lArgRight;}
+};
+
+// class SvxLongULSpaceItem ----------------------------------------------
+
+class SvxLongULSpaceItem : public SfxPoolItem
+{
+ long lLeft; // nLeft oder der neg. Erstzeileneinzug
+ long lRight; // der unproblematische rechte Rand
+
+ protected:
+
+ virtual int operator==( const SfxPoolItem& ) const;
+
+ virtual String GetValueText() const;
+ virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
+ SfxMapUnit eCoreMetric,
+ SfxMapUnit ePresMetric,
+ String &rText, const International * = 0 ) const;
+
+ virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
+
+private:
+ const SvxLongULSpaceItem& operator=(const SvxLongULSpaceItem &); // n.i.
+
+public:
+ TYPEINFO();
+ SvxLongULSpaceItem(long lUpper, long lLower, USHORT nId);
+ SvxLongULSpaceItem(const SvxLongULSpaceItem &);
+
+ long GetUpper() const { return lLeft; }
+ long GetLower() const { return lRight; }
+ void SetUpper(long lArgLeft) {lLeft=lArgLeft;}
+ void SetLower(long lArgRight) {lRight=lArgRight;}
+};
+
+// class SvxPagePosSizeItem ----------------------------------------------
+
+class SvxPagePosSizeItem : public SfxPoolItem
+{
+ Point aPos;
+ long lWidth;
+ long lHeight;
+protected:
+ virtual int operator==( const SfxPoolItem& ) const;
+
+ virtual String GetValueText() const;
+ virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
+ SfxMapUnit eCoreMetric,
+ SfxMapUnit ePresMetric,
+ String &rText, const International * = 0 ) const;
+
+ virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
+
+private:
+ const SvxPagePosSizeItem& operator=(const SvxPagePosSizeItem &); // n.i.
+public:
+ TYPEINFO();
+ SvxPagePosSizeItem(const Point &rPos, long lWidth, long lHeight);
+ SvxPagePosSizeItem(const SvxPagePosSizeItem &);
+
+ const Point &GetPos() const { return aPos; }
+ long GetWidth() const { return lWidth; }
+ long GetHeight() const { return lHeight; }
+};
+
+// struct SvxColumnDescription -------------------------------------------
+
+struct SvxColumnDescription
+{
+ USHORT nStart; /* Spaltenbeginn */
+ USHORT nEnd; /* Spaltenende */
+ BOOL bVisible; /* Sichtbarkeit */
+ SvxColumnDescription():
+ nStart(0), nEnd(0), bVisible(TRUE) {}
+ SvxColumnDescription(const SvxColumnDescription &rCopy) :
+ nStart(rCopy.nStart), nEnd(rCopy.nEnd), bVisible(rCopy.bVisible) {}
+ SvxColumnDescription(USHORT start, USHORT end, BOOL bVis = TRUE):
+ nStart(start), nEnd(end), bVisible(bVis) {}
+ int operator==(const SvxColumnDescription &rCmp) const {
+ return nStart == rCmp.nStart &&
+ bVisible == rCmp.bVisible &&
+ nEnd == rCmp.nEnd;
+ }
+ int operator!=(const SvxColumnDescription &rCmp) const {
+ return !operator==(rCmp);
+ }
+ USHORT GetWidth() const { return nEnd - nStart; }
+};
+
+// class SvxColumnItem ---------------------------------------------------
+
+typedef SvPtrarr SvxColumns;
+
+class SvxColumnItem : public SfxPoolItem
+{
+ SvxColumns aColumns;// Spaltenarray
+ long nLeft, // Linker Rand bei Tabelle
+ nRight; // Rechter Rand bei Tabelle; bei Spalten immer gleich
+ // zum umgebenden Rahmen
+ USHORT nActColumn; // die aktuelle Spalte
+ BOOL bTable; // Tabelle?
+ BOOL bOrtho; // Gleichverteilte Spalten
+
+ void DeleteAndDestroyColumns();
+
+protected:
+ virtual int operator==( const SfxPoolItem& ) const;
+
+ virtual String GetValueText() const;
+ virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
+ SfxMapUnit eCoreMetric,
+ SfxMapUnit ePresMetric,
+ String &rText, const International * = 0 ) const;
+
+ virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
+public:
+ TYPEINFO();
+ // rechter Rand des umgebenden Rahmens
+ // nLeft, nRight jeweils der Abstand zum umgebenden Rahmen
+ SvxColumnItem(USHORT nAct = 0); // Spalten
+ SvxColumnItem(USHORT nActCol,
+ USHORT nLeft, USHORT nRight = 0); // Tabelle mit Raendern
+ SvxColumnItem(const SvxColumnItem &);
+ ~SvxColumnItem();
+
+ const SvxColumnItem &operator=(const SvxColumnItem &);
+
+ USHORT Count() const { return aColumns.Count(); }
+ SvxColumnDescription &operator[](USHORT i)
+ { return *(SvxColumnDescription*)aColumns[i]; }
+ const SvxColumnDescription &operator[](USHORT i) const
+ { return *(SvxColumnDescription*)aColumns[i]; }
+ void Insert(const SvxColumnDescription &rDesc, USHORT nPos) {
+ SvxColumnDescription* pDesc = new SvxColumnDescription(rDesc);
+ aColumns.Insert(pDesc, nPos);
+ }
+ void Append(const SvxColumnDescription &rDesc) { Insert(rDesc, Count()); }
+ void SetLeft(long left) { nLeft = left; }
+ void SetRight(long right) { nRight = right; }
+ void SetActColumn(USHORT nCol) { nActColumn = nCol; }
+
+ USHORT GetActColumn() const { return nActColumn; }
+ BOOL IsFirstAct() const { return nActColumn == 0; }
+ BOOL IsLastAct() const { return nActColumn == Count()-1; }
+ long GetLeft() { return nLeft; }
+ long GetRight() { return nRight; }
+
+ BOOL IsTable() const { return bTable; }
+
+ BOOL CalcOrtho() const;
+ void SetOrtho(BOOL bVal) { bOrtho = bVal; }
+ BOOL IsOrtho () const { return FALSE ; }
+
+ BOOL IsConsistent() const { return nActColumn < aColumns.Count(); }
+ long GetVisibleRight() const;// rechter sichtbare Rand der aktuellen Spalte
+};
+
+// class SvxObjectItem ---------------------------------------------------
+
+class SvxObjectItem : public SfxPoolItem
+{
+private:
+ long nStartX; /* Beginn in X-Richtung */
+ long nEndX; /* Ende in X-Richtung */
+ long nStartY; /* Beginn in Y-Richtung */
+ long nEndY; /* Ende in Y-Richtung */
+ BOOL bLimits; /* Grenzwertkontrolle durch die Applikation */
+protected:
+ virtual int operator==( const SfxPoolItem& ) const;
+
+ virtual String GetValueText() const;
+ virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
+ SfxMapUnit eCoreMetric,
+ SfxMapUnit ePresMetric,
+ String &rText, const International * = 0 ) const;
+
+ virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
+private:
+ const SvxObjectItem &operator=(const SvxObjectItem &); // n.i.
+public:
+ TYPEINFO();
+ SvxObjectItem(long nStartX, long nEndX,
+ long nStartY, long nEndY,
+ BOOL bLimits = FALSE);
+ SvxObjectItem(const SvxObjectItem &);
+
+ BOOL HasLimits() const { return bLimits; }
+
+ long GetStartX() const { return nStartX; }
+ long GetEndX() const { return nEndX; }
+ long GetStartY() const { return nStartY; }
+ long GetEndY() const { return nEndY; }
+
+ void SetStartX(long l) { nStartX = l; }
+ void SetEndX(long l) { nEndX = l; }
+ void SetStartY(long l) { nStartY = l; }
+ void SetEndY(long l) { nEndY = l; }
+};
+
+
+#endif
+
diff --git a/svx/inc/selctrl.hxx b/svx/inc/selctrl.hxx
new file mode 100644
index 000000000000..16ea59bbf307
--- /dev/null
+++ b/svx/inc/selctrl.hxx
@@ -0,0 +1,96 @@
+/*************************************************************************
+ *
+ * $RCSfile: selctrl.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:00:59 $
+ *
+ * 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 _SVX_SELCTRL_HXX
+#define _SVX_SELCTRL_HXX
+
+// include ---------------------------------------------------------------
+
+#ifndef _SFXSTBITEM_HXX //autogen
+#include <sfx2/stbitem.hxx>
+#endif
+
+// class SvxSelModeControl -----------------------------------------------
+
+class SvxSelectionModeControl : public SfxStatusBarControl
+{
+public:
+ virtual void StateChanged( USHORT nSID, SfxItemState eState,
+ const SfxPoolItem* pState );
+ virtual void Click();
+ virtual void Paint( const UserDrawEvent& rEvt );
+
+ SFX_DECL_STATUSBAR_CONTROL();
+
+ SvxSelectionModeControl( USHORT nId, StatusBar& rStb, SfxBindings& rBind );
+
+ static ULONG GetDefItemWidth(const StatusBar& rStb);
+
+private:
+ USHORT nState;
+
+#ifdef _SVX_SELCTRL_CXX
+ void DrawItemText_Impl();
+#endif
+};
+
+
+#endif
+
diff --git a/svx/inc/sjctrl.hxx b/svx/inc/sjctrl.hxx
new file mode 100644
index 000000000000..3f86a043a662
--- /dev/null
+++ b/svx/inc/sjctrl.hxx
@@ -0,0 +1,682 @@
+/*************************************************************************
+ *
+ * $RCSfile: sjctrl.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:00:59 $
+ *
+ * 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): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef SOLAR_JAVA
+
+#ifndef _SFXSFXJS_HXX
+#include <sfx2/sfxjs.hxx>
+#endif
+
+class VCControl;
+class VCForm;
+class VCManager;
+class VCRadioManager;
+
+
+// Basis-Klasse aller VCControl-Wrapper-Klassen
+// Haelt Verweis auf das Control und handelt einige gemeinsame Properties
+class ImpSjJScriptControlBase
+{
+ protected:
+ VCControl* pControl;
+
+ public:
+ // Beibehalten bis zum Vollupdate
+ /*
+ String getName() const;
+ void setName( const String & aStrg );
+ String getValue() const;
+ String getType() const;
+ */
+
+ // Methoden von Java --> C++ (f"ur Properties)
+ //--------------------------------------------
+ String ImpGetName() const;
+ void ImpSetName( const String & aStrg );
+ String ImpGetValue() const;
+ void ImpSetValue( const String & aStrg );
+ String ImpGetType() const;
+
+ // Konstruktor
+ ImpSjJScriptControlBase::ImpSjJScriptControlBase( VCControl* _pControl );
+};
+
+//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+
+// Button-Control
+class ImpSjJScriptButtonObject : public SjJScriptButtonObject, ImpSjJScriptControlBase
+{
+ public:
+ // Methoden von Java --> C++ (f"ur Properties)
+ //--------------------------------------------
+ // Basisklassen-Properties, werden an ImpSjJScriptControlBase durchgereicht
+ virtual String getName() const;
+ virtual void setName( const String & aStrg );
+ virtual String getValue() const;
+ virtual void setValue( const String & aStrg );
+ virtual String getType() const;
+
+ // Methoden des Objektes
+ virtual void click();
+
+ // Events (C++ --> Java)
+ //----------------------
+#if SUPD > 356 || defined(AB_EVENT_TEST)
+ // Neue Event-Schnittstelle mit Function-Objekten
+ virtual SjJScriptFunctionObject* getOnClick_Fct() const;
+ virtual void setOnClick_Fct( SjJScriptFunctionObject* pFunctionObject );
+#endif
+ virtual String getOnClick() const;
+ virtual void setOnClick( const String & aSourceStrg );
+ void onClick();
+
+ // Konstruktor
+ ImpSjJScriptButtonObject( VCControl* _pControl, SjJSbxObject * p );
+};
+
+//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+
+// PasswordControl (Edit-Control zur Password-Eingabe)
+class ImpSjJScriptPasswordObject : public SjJScriptPasswordObject, ImpSjJScriptControlBase
+{
+ public:
+ // Methoden von Java --> C++ (f"ur Properties)
+ //--------------------------------------------
+ // Basisklassen-Properties, werden an ImpSjJScriptControlBase durchgereicht
+ virtual String getName() const;
+ virtual void setName( const String & aStrg );
+ virtual String getValue() const;
+ virtual String getType() const;
+
+ virtual String getDefaultValue() const;
+ virtual void setDefaultValue( const String & aStrg );
+ virtual void setValue( const String & aStrg );
+
+ // Methoden des Objektes
+ virtual void focus();
+ virtual void blur();
+ virtual void select();
+
+ // Events (C++ --> Java)
+ //----------------------
+ // keine !
+
+ // Konstruktor
+ ImpSjJScriptPasswordObject( VCControl* _pControl, SjJSbxObject * p );
+};
+
+//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+
+class ImpSjJScriptCheckboxObject : public SjJScriptCheckboxObject, ImpSjJScriptControlBase
+{
+ public:
+ // Methoden von Java --> C++ (f"ur Properties)
+ //--------------------------------------------
+ // Basisklassen-Properties, werden an ImpSjJScriptControlBase durchgereicht
+ virtual String getName() const;
+ virtual void setName( const String & aStrg );
+ virtual String getValue() const;
+ virtual String getType() const;
+
+ virtual BOOL getChecked() const;
+ virtual void setChecked( BOOL bCheck );
+ virtual BOOL getDefaultChecked() const;
+ virtual void setDefaultChecked( BOOL bCheck );
+ // getValue() wird in der Basisklasse definiert
+ virtual void setValue( const String & aStrg );
+
+ // Methoden des Objektes
+ virtual void click();
+
+ // Events (C++ --> Java)
+ //----------------------
+#if SUPD > 356 || defined(AB_EVENT_TEST)
+ // Neue Event-Schnittstelle mit Function-Objekten
+ virtual SjJScriptFunctionObject* getOnClick_Fct() const;
+ virtual void setOnClick_Fct( SjJScriptFunctionObject* pFunctionObject );
+#endif
+ virtual String getOnClick() const;
+ virtual void setOnClick( const String & aSourceStrg );
+ void onClick();
+
+ // Konstruktor
+ ImpSjJScriptCheckboxObject( VCControl* _pControl, SjJSbxObject * p );
+};
+
+//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+
+// Wrapper-Klasse fuer RadioArray
+class ImpSjJScriptRadioArray: public SjJSbxArrayObject
+{
+ VCRadioManager* pMgr;
+public:
+ INT32 ImpSjJScriptRadioArray::getLength() const;
+ SjJSbxObject* ImpSjJScriptRadioArray::getElement( INT32 nIndex ) const;
+ SjJSbxObject* ImpSjJScriptRadioArray::getElement_String( const String & aName ) const;
+
+ // Konstruktor
+ ImpSjJScriptRadioArray::ImpSjJScriptRadioArray( VCRadioManager* _pMgr, SjJSbxObject * p );
+};
+
+//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+
+class ImpSjJScriptRadioObject : public SjJScriptRadioObject, ImpSjJScriptControlBase
+{
+ public:
+ // Methoden von Java --> C++ (f"ur Properties)
+ //--------------------------------------------
+ // Basisklassen-Properties, werden an ImpSjJScriptControlBase durchgereicht
+ virtual String getName() const;
+ virtual void setName( const String & aStrg );
+ virtual String getValue() const;
+ virtual String getType() const;
+
+ // Properties von SjJScriptCheckboxObject
+ virtual BOOL getChecked() const;
+ virtual void setChecked( BOOL bCheck );
+ virtual BOOL getDefaultChecked() const;
+ virtual void setDefaultChecked( BOOL bCheck );
+ // getValue() wird in der Basisklasse definiert
+ virtual void setValue( const String & aStrg );
+
+ // yyy Raus zum inkompatiblen
+ //virtual INT32 getLength();
+
+ // Methoden des Objektes
+ virtual void click();
+
+ // Events (C++ --> Java)
+#if SUPD > 356 || defined(AB_EVENT_TEST)
+ // Neue Event-Schnittstelle mit Function-Objekten
+ virtual SjJScriptFunctionObject* getOnClick_Fct() const;
+ virtual void setOnClick_Fct( SjJScriptFunctionObject* pFunctionObject );
+#endif
+ virtual String getOnClick() const;
+ virtual void setOnClick( const String & aSourceStrg );
+ void onClick();
+
+ // Konstruktor
+ ImpSjJScriptRadioObject( VCControl* _pControl, SjJSbxObject * p );
+};
+
+//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+
+class ImpSjJScriptSelectObject : public SjJScriptSelectObject, ImpSjJScriptControlBase
+{
+ public:
+ // Methoden von Java --> C++ (f"ur Properties)
+ //--------------------------------------------
+ // Basisklassen-Properties, werden an ImpSjJScriptControlBase durchgereicht
+ virtual String getName() const;
+ virtual void setName( const String & aStrg );
+ virtual String getValue() const;
+ virtual String getType() const;
+
+ virtual INT32 getLength();
+ virtual INT32 getSelectedIndex() const;
+ virtual void setSelectedIndex( INT32 nNo );
+
+ // liefert eine Array von Option-Objekten
+ //yyy Raus zum inkompatiblen
+ //virtual SjJSbxArrayObject * getOptions();
+
+ // Methoden des Objektes
+ virtual void focus();
+ virtual void blur();
+
+ // Events (C++ --> Java)
+ //----------------------
+#if SUPD > 356 || defined(AB_EVENT_TEST)
+ // Neue Event-Schnittstelle mit Function-Objekten
+ virtual SjJScriptFunctionObject* getOnBlur_Fct() const;
+ virtual void setOnBlur_Fct( SjJScriptFunctionObject* pFunctionObject );
+ virtual SjJScriptFunctionObject* getOnChange_Fct() const;
+ virtual void setOnChange_Fct( SjJScriptFunctionObject* pFunctionObject );
+ virtual SjJScriptFunctionObject* getOnFocus_Fct() const;
+ virtual void setOnFocus_Fct( SjJScriptFunctionObject* pFunctionObject );
+#endif
+ virtual String getOnBlur() const;
+ virtual void setOnBlur( const String & aSourceStrg );
+ void onBlur();
+ virtual String getOnChange() const;
+ virtual void setOnChange( const String & aSourceStrg );
+ void onChange();
+ virtual String getOnFocus() const;
+ virtual void setOnFocus( const String & aSourceStrg );
+ void onFocus();
+
+ // SjJSbxArrayObject-Methoden
+ virtual INT32 getLength() const;
+ // Zugriff "uber den Index
+ virtual SjJSbxObject * getElement( INT32 nIndex ) const;
+ // Zugriff "uber den Namen
+ // native Java-Methoden k"onnen (noch) nicht "uberladen werden
+ //virtual SjJSbxObject * getElement_String( const String & aName ) const;
+
+ // Konstruktor
+ ImpSjJScriptSelectObject( VCControl* _pControl, SjJSbxObject * p );
+
+ // zum Setzen von Eintr"agen am Objket (zum Aufruf von Java aus) 15.1.1997
+ virtual void setOption( INT32 nIndex, const String & aOptionText,
+ const String & aOptionValue,
+ BOOL bDefaultSelected, BOOL bSelected );
+
+ // Schnittstelle fuer die Properties der Option-Objekte
+ virtual BOOL getOptionDefaultSelected( INT32 nIndex ) const;
+ virtual void setOptionDefaultSelected( BOOL bSelected, INT32 nIndex );
+ virtual BOOL getOptionSelected( INT32 nIndex ) const;
+ virtual void setOptionSelected( BOOL bSelected, INT32 nIndex );
+ virtual String getOptionText( INT32 nIndex ) const;
+ virtual void setOptionText( const String & sText, INT32 nIndex );
+ virtual void setOptionValue( const String & sText, INT32 nIndex );
+ virtual String getOptionValue( INT32 nIndex ) const;
+};
+
+//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+
+// Wieso von Controlbase abgeleitet?
+
+class ImpSjJScriptOptionObject : public SjJScriptOptionObject, ImpSjJScriptControlBase
+{
+ USHORT nListBoxIndex;
+ public:
+ // Methoden von Java --> C++ (f"ur Properties)
+ //--------------------------------------------
+ virtual BOOL getdefaultSelected() const;
+ virtual void setdefaultSelected( BOOL bSelected );
+ virtual INT32 getIndex() const;
+ virtual BOOL getSelected() const;
+ virtual void setSelected( BOOL bSelected );
+
+
+ //yyy Zum Vollupdate raus:
+ /*
+ virtual INT32 getSelectedIndex() const;
+ virtual void setSelectedIndex( INT32 nNo );
+ */
+
+
+ virtual String getText() const;
+ virtual void setText( const String & sText );
+ // getValue() wird in der Basisklasse definiert
+ virtual String getValue() const;
+ virtual void setValue( const String & aStrg );
+
+
+ // DUMMY-Methoden
+ virtual String getName() const { return "";}
+ virtual void setName( const String &s) { }
+ virtual String getType() const { return "";}
+ // Methoden des Objektes
+ // keine !
+
+ // Events (C++ --> Java)
+ //----------------------
+ // keine !
+
+ // Konstruktor
+ ImpSjJScriptOptionObject( VCControl* _pControl, SjJSbxObject * p, USHORT _nListBoxIndex );
+};
+
+//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+
+// Eigene Klasse fuer forms-Array anlegen
+class SjJSbxFormsArray: public SfxJSArray
+{
+ VCManager* pManager;
+
+ public:
+ // SjJSbxArrayObject-Methoden
+ virtual INT32 getLength() const;
+ // Zugriff "uber den Index
+ virtual SjJSbxObject * getElement( INT32 nIndex ) const;
+ // Zugriff "uber den Namen
+ // native Java-Methoden k"onnen (noch) nicht "uberladen werden
+ virtual SjJSbxObject * getElement_String( const String & aName ) const;
+
+ // Konstruktor
+ SjJSbxFormsArray( VCManager * _pManager, SjJSbxObject * p );
+};
+
+//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+
+class ImpSjJScriptTextObject : public SjJScriptTextObject, ImpSjJScriptControlBase
+{
+ public:
+ // Methoden von Java --> C++ (f"ur Properties)
+ //--------------------------------------------
+ // Basisklassen-Properties, werden an ImpSjJScriptControlBase durchgereicht
+ virtual String getName() const;
+ virtual void setName( const String & aStrg );
+ virtual String getValue() const;
+ virtual String getType() const;
+
+ virtual String getDefaultValue() const;
+ virtual void setDefaultValue( const String & aStrg );
+ // getValue() wird in der Basisklasse definiert
+ virtual void setValue( const String & aStrg );
+
+ // Methoden des Objektes
+ virtual void focus();
+ virtual void blur();
+ virtual void select();
+
+ // Events (C++ --> Java)
+ //----------------------
+#if SUPD > 356 || defined(AB_EVENT_TEST)
+ // Neue Event-Schnittstelle mit Function-Objekten
+ virtual SjJScriptFunctionObject* getOnBlur_Fct() const;
+ virtual void setOnBlur_Fct( SjJScriptFunctionObject* pFunctionObject );
+ virtual SjJScriptFunctionObject* getOnChange_Fct() const;
+ virtual void setOnChange_Fct( SjJScriptFunctionObject* pFunctionObject );
+ virtual SjJScriptFunctionObject* getOnFocus_Fct() const;
+ virtual void setOnFocus_Fct( SjJScriptFunctionObject* pFunctionObject );
+ virtual SjJScriptFunctionObject* getOnSelect_Fct() const;
+ virtual void setOnSelect_Fct( SjJScriptFunctionObject* pFunctionObject );
+#endif
+ virtual String getOnBlur() const;
+ virtual void setOnBlur( const String & aSourceStrg );
+ void onBlur();
+ virtual String getOnChange() const;
+ virtual void setOnChange( const String & aSourceStrg );
+ void onChange();
+ virtual String getOnFocus() const;
+ virtual void setOnFocus( const String & aSourceStrg );
+ void onFocus();
+ virtual String getOnSelect() const;
+ virtual void setOnSelect( const String & aSourceStrg );
+ void onSelect();
+
+ // Konstruktor
+ ImpSjJScriptTextObject( VCControl* _pControl, SjJSbxObject * p );
+};
+
+//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+
+class ImpSjJScriptTextareaObject : public SjJScriptTextareaObject, ImpSjJScriptControlBase
+{
+ public:
+ // Methoden von Java --> C++ (f"ur Properties)
+ //--------------------------------------------
+ // Basisklassen-Properties, werden an ImpSjJScriptControlBase durchgereicht
+ virtual String getName() const;
+ virtual void setName( const String & aStrg );
+ virtual String getValue() const;
+ virtual String getType() const;
+
+ virtual String getDefaultValue() const;
+ virtual void setDefaultValue( const String & aStrg );
+ // getValue() wird in der Basisklasse definiert
+ virtual void setValue( const String & aStrg );
+
+ // Methoden des Objektes
+ virtual void focus();
+ virtual void blur();
+ virtual void select();
+
+ // Events (C++ --> Java)
+ //----------------------
+#if SUPD > 356 || defined(AB_EVENT_TEST)
+ // Neue Event-Schnittstelle mit Function-Objekten
+ virtual SjJScriptFunctionObject* getOnBlur_Fct() const;
+ virtual void setOnBlur_Fct( SjJScriptFunctionObject* pFunctionObject );
+ virtual SjJScriptFunctionObject* getOnChange_Fct() const;
+ virtual void setOnChange_Fct( SjJScriptFunctionObject* pFunctionObject );
+ virtual SjJScriptFunctionObject* getOnFocus_Fct() const;
+ virtual void setOnFocus_Fct( SjJScriptFunctionObject* pFunctionObject );
+ virtual SjJScriptFunctionObject* getOnSelect_Fct() const;
+ virtual void setOnSelect_Fct( SjJScriptFunctionObject* pFunctionObject );
+#endif
+ virtual String getOnBlur() const;
+ virtual void setOnBlur( const String & aSourceStrg );
+ void onBlur();
+ virtual String getOnChange() const;
+ virtual void setOnChange( const String & aSourceStrg );
+ void onChange();
+ virtual String getOnFocus() const;
+ virtual void setOnFocus( const String & aSourceStrg );
+ void onFocus();
+ virtual String getOnSelect() const;
+ virtual void setOnSelect( const String & aSourceStrg );
+ void onSelect();
+
+ // Konstruktor
+ ImpSjJScriptTextareaObject( VCControl* _pControl, SjJSbxObject * p );
+};
+
+//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+
+class ImpSjJScriptSubmitObject : public SjJScriptSubmitObject, ImpSjJScriptControlBase
+{
+ // Identisch mit ButtonObject
+ public:
+ // Methoden von Java --> C++ (f"ur Properties)
+ //--------------------------------------------
+ // Basisklassen-Properties, werden an ImpSjJScriptControlBase durchgereicht
+ virtual String getName() const;
+ virtual void setName( const String & aStrg );
+ virtual String getValue() const;
+ virtual void setValue( const String & aStrg );
+ virtual String getType() const;
+
+ // Methoden des Objektes
+ virtual void click();
+
+ // Events (C++ --> Java)
+ //----------------------
+#if SUPD > 356 || defined(AB_EVENT_TEST)
+ // Neue Event-Schnittstelle mit Function-Objekten
+ virtual SjJScriptFunctionObject* getOnClick_Fct() const;
+ virtual void setOnClick_Fct( SjJScriptFunctionObject* pFunctionObject );
+#endif
+ virtual String getOnClick() const;
+ virtual void setOnClick( const String & aSourceStrg );
+ void onClick();
+
+ // Konstruktor
+ ImpSjJScriptSubmitObject( VCControl* _pControl, SjJSbxObject * p );
+};
+
+//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+
+class ImpSjJScriptResetObject : public SjJScriptResetObject, ImpSjJScriptControlBase
+{
+ // Identisch mit ButtonObject
+ public:
+ // Methoden von Java --> C++ (f"ur Properties)
+ //--------------------------------------------
+ // Basisklassen-Properties, werden an ImpSjJScriptControlBase durchgereicht
+ virtual String getName() const;
+ virtual void setName( const String & aStrg );
+ virtual String getValue() const;
+ virtual void setValue( const String & aStrg );
+ virtual String getType() const;
+
+ // Methoden des Objektes
+ virtual void click();
+
+ // Events (C++ --> Java)
+ //----------------------
+#if SUPD > 356 || defined(AB_EVENT_TEST)
+ // Neue Event-Schnittstelle mit Function-Objekten
+ virtual SjJScriptFunctionObject* getOnClick_Fct() const;
+ virtual void setOnClick_Fct( SjJScriptFunctionObject* pFunctionObject );
+#endif
+ virtual String getOnClick() const;
+ virtual void setOnClick( const String & aSourceStrg );
+ void onClick();
+
+ // Konstruktor
+ ImpSjJScriptResetObject( VCControl* _pControl, SjJSbxObject * p );
+};
+
+//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+
+class ImpSjJScriptHiddenObject : public SjJScriptHiddenObject, ImpSjJScriptControlBase
+{
+ public:
+ // Methoden von Java --> C++ (f"ur Properties)
+ //--------------------------------------------
+ // Basisklassen-Properties, werden an ImpSjJScriptControlBase durchgereicht
+ virtual String getName() const;
+ virtual void setName( const String & aStrg );
+ virtual String getValue() const;
+ virtual String getType() const;
+
+ // getValue() wird in der Basisklasse definiert
+ virtual void setValue( const String & aStrg );
+
+ // Methoden des Objektes
+ // keine !
+
+ // Events (C++ --> Java)
+ //----------------------
+ // keine !
+
+ // Konstruktor
+ ImpSjJScriptHiddenObject( VCControl* _pControl, SjJSbxObject * p );
+};
+
+//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+
+class ImpSjJScriptFileUploadObject : public SjJScriptFileUploadObject, ImpSjJScriptControlBase
+{
+ public:
+ // Methoden von Java --> C++ (f"ur Properties)
+ //--------------------------------------------
+ // Basisklassen-Properties, werden an ImpSjJScriptControlBase durchgereicht
+ virtual String getName() const;
+ virtual void setName( const String & aStrg );
+ virtual String getValue() const;
+ virtual String getType() const;
+
+ // Methoden des Objektes
+ // keine !
+
+ // Events (C++ --> Java)
+ //----------------------
+ // keine !
+
+ // Konstruktor
+ ImpSjJScriptFileUploadObject( VCControl* _pControl, SjJSbxObject * p );
+};
+
+//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+
+class ImpSjJScriptFormObject : public SjJScriptFormObject
+{
+ VCForm* pVCForm;
+
+ public:
+ // Methoden von Java --> C++ (f"ur Properties)
+ //--------------------------------------------
+ virtual String getName() const;
+ virtual void setName( const String & aStrg );
+ virtual String getValue() const;
+ virtual String getType() const;
+
+ virtual String getAction() const;
+ virtual void setAction( const String & sValue );
+ virtual String getEncoding() const;
+ virtual void setEncoding( const String & sValue );
+ virtual String getMethod() const;
+ virtual void setMethod( const String & sValue );
+ virtual String getTarget() const;
+ virtual void setTarget( const String & sValue );
+
+ // SjJSbxArrayObject-Methoden
+ INT32 getLength() const;
+ SjJSbxObject* getElement( INT32 nIndex ) const;
+ SjJSbxObject* getElement_String( const String & aName ) const;
+
+ // liefert ein Array-Objekt mit Elementen vom Typ JScriptAbstractControlsObject
+ // yyy Raus zum inkompatiblen
+ //virtual SjJSbxArrayObject * getElements();
+
+ // Zugriff ueber den Namen eines Controls (falls ein Name zugeordnet ist)
+ // yyy Raus zum inkompatiblen
+ //virtual SjJSbxObject * getElement( const String & aName );
+
+ // Methoden des Objektes
+ virtual void submit();
+ virtual void reset();
+
+ // Events (C++ --> Java)
+ //----------------------
+#if SUPD > 356 || defined(AB_EVENT_TEST)
+ // Neue Event-Schnittstelle mit Function-Objekten
+ virtual SjJScriptFunctionObject* getOnSubmit_Fct() const;
+ virtual void setOnSubmit_Fct( SjJScriptFunctionObject* pFunctionObject );
+ virtual SjJScriptFunctionObject* getOnReset_Fct() const;
+ virtual void setOnReset_Fct( SjJScriptFunctionObject* pFunctionObject );
+#endif
+ virtual String getOnSubmit() const;
+ virtual void setOnSubmit( const String & aSourceStrg );
+ void onSubmit();
+ virtual String getOnReset() const;
+ virtual void setOnReset( const String & aSourceStrg );
+ void onReset();
+
+ // Konstruktor
+ ImpSjJScriptFormObject( VCForm* _pVCForm, SjJSbxObject * p );
+};
+
+#endif
diff --git a/svx/inc/srchdlg.hxx b/svx/inc/srchdlg.hxx
new file mode 100644
index 000000000000..92efdddca1b3
--- /dev/null
+++ b/svx/inc/srchdlg.hxx
@@ -0,0 +1,340 @@
+/*************************************************************************
+ *
+ * $RCSfile: srchdlg.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:00:59 $
+ *
+ * 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 _SVX_SRCHDLG_HXX
+#define _SVX_SRCHDLG_HXX
+
+// include ---------------------------------------------------------------
+
+
+#ifndef _STDCTRL_HXX //autogen
+#include <svtools/stdctrl.hxx>
+#endif
+#ifndef _COMBOBOX_HXX //autogen
+#include <vcl/combobox.hxx>
+#endif
+#ifndef _EDIT_HXX //autogen
+#include <vcl/edit.hxx>
+#endif
+#ifndef _LSTBOX_HXX //autogen
+#include <vcl/lstbox.hxx>
+#endif
+#ifndef _BUTTON_HXX //autogen
+#include <vcl/button.hxx>
+#endif
+#ifndef _GROUP_HXX //autogen
+#include <vcl/group.hxx>
+#endif
+#ifndef _FIXED_HXX //autogen
+#include <vcl/fixed.hxx>
+#endif
+#ifndef _DIALOG_HXX //autogen
+#include <vcl/dialog.hxx>
+#endif
+#ifndef _SFX_CHILDWIN_HXX //autogen
+#include <sfx2/childwin.hxx>
+#endif
+#ifndef _SVARRAY_HXX //autogen
+#include <svtools/svarray.hxx>
+#endif
+#define _SVSTDARR_STRINGSDTOR
+#include <svtools/svstdarr.hxx>
+
+#ifndef _SVEDIT_HXX //autogen
+#include <svtools/svmedit.hxx>
+#endif
+
+// defines ---------------------------------------------------------------
+
+#define SEARCH_OPTIONS_SEARCH ((USHORT)0x0001)
+#define SEARCH_OPTIONS_SEARCH_ALL ((USHORT)0x0002)
+#define SEARCH_OPTIONS_REPLACE ((USHORT)0x0004)
+#define SEARCH_OPTIONS_REPLACE_ALL ((USHORT)0x0008)
+#define SEARCH_OPTIONS_WHOLE_WORDS ((USHORT)0x0010)
+#define SEARCH_OPTIONS_BACKWARDS ((USHORT)0x0020)
+#define SEARCH_OPTIONS_REG_EXP ((USHORT)0x0040)
+#define SEARCH_OPTIONS_EXACT ((USHORT)0x0080)
+#define SEARCH_OPTIONS_SELECTION ((USHORT)0x0100)
+#define SEARCH_OPTIONS_FAMILIES ((USHORT)0x0200)
+#define SEARCH_OPTIONS_FORMAT ((USHORT)0x0400)
+#define SEARCH_OPTIONS_MORE ((USHORT)0x0800)
+#define SEARCH_OPTIONS_SIMILARITY ((USHORT)0x1000)
+#define SEARCH_OPTIONS_CONTENT ((USHORT)0x2000)
+
+// forward ---------------------------------------------------------------
+
+class SvxSearchItem;
+class MoreButton;
+class SfxStyleSheetBasePool;
+struct SearchDlg_Impl;
+
+#ifndef NO_SVX_SEARCH
+
+// struct SearchAttrItem -------------------------------------------------
+
+struct SearchAttrItem
+{
+ USHORT nSlot;
+ SfxPoolItem* pItem;
+};
+
+// class SearchAttrItemList ----------------------------------------------
+
+SV_DECL_VARARR(SrchAttrItemList, SearchAttrItem, 8, 8);
+
+class SearchAttrItemList : private SrchAttrItemList
+{
+public:
+ SearchAttrItemList() {}
+ SearchAttrItemList( const SearchAttrItemList& rList );
+ ~SearchAttrItemList();
+
+ void Put( const SfxItemSet& rSet );
+ SfxItemSet& Get( SfxItemSet& rSet );
+ void Clear();
+ USHORT Count() const { return SrchAttrItemList::Count(); }
+ SearchAttrItem& operator[](USHORT nPos) const
+ { return SrchAttrItemList::operator[]( nPos ); }
+ SearchAttrItem& GetObject( USHORT nPos ) const
+ { return SrchAttrItemList::GetObject( nPos ); }
+
+ // der Pointer auf das Item wird nicht kopiert!!! (also nicht l"oschen)
+ void Insert( const SearchAttrItem& rItem )
+ { SrchAttrItemList::Insert( rItem, SrchAttrItemList::Count() ); }
+ // l"oscht die Pointer auf die Items
+ void Remove( USHORT nPos, USHORT nLen = 1 );
+};
+
+#ifndef SV_NODIALOG
+
+// class SvxSearchDialogWrapper ------------------------------------------
+
+class SvxSearchDialogWrapper : public SfxChildWindow
+{
+public:
+ SvxSearchDialogWrapper( Window*pParent, USHORT nId,
+ SfxBindings* pBindings, SfxChildWinInfo* pInfo );
+
+ SFX_DECL_CHILDWINDOW(SvxSearchDialogWrapper);
+};
+
+// class SvxSearchDialog -------------------------------------------------
+
+/*
+ {k:\svx\prototyp\dialog\srchdlg.hxx}
+
+ [Beschreibung]
+ In diesem Modeless-Dialog werden die Attribute einer Suche eingestellt
+ und damit eine Suche gestartet. Es sind mehrere Sucharten
+ ( Suchen, Alle suchen, Ersetzen, Alle ersetzen ) m"oglich.
+
+ [Items]
+ <SvxSearchItem><SID_ATTR_SEARCH>
+*/
+
+class SvxSearchDialog : public ModelessDialog
+{
+ friend class SvxSearchController;
+ friend class SvxSearchDialogWrapper;
+
+public:
+ SvxSearchDialog( Window* pParent, SfxBindings& rBind );
+ ~SvxSearchDialog();
+
+ virtual BOOL Close();
+
+ void GetSearchItems( SfxItemSet& rSet );
+ void GetReplaceItems( SfxItemSet& rSet );
+
+ const SearchAttrItemList* GetSearchItemList() const
+ { return pSearchList; }
+ const SearchAttrItemList* GetReplaceItemList() const
+ { return pReplaceList; }
+
+ inline BOOL HasSearchAttributes() const;
+ inline BOOL HasReplaceAttributes() const;
+
+ PushButton& GetReplaceBtn() { return aReplaceBtn; }
+
+private:
+ FixedText aSearchText;
+ ComboBox aSearchLB;
+ ListBox aSearchTmplLB;
+ FixedInfo aSearchAttrText;
+ MultiLineEdit aSearchFormatsED;
+ GroupBox aSearchAttrBox;
+
+ FixedText aReplaceText;
+ ComboBox aReplaceLB;
+ ListBox aReplaceTmplLB;
+ FixedInfo aReplaceAttrText;
+ MultiLineEdit aReplaceFormatsED;
+ GroupBox aReplaceAttrBox;
+
+ PushButton aSearchAllBtn;
+ PushButton aSearchBtn;
+ PushButton aReplaceAllBtn;
+ PushButton aReplaceBtn;
+ PushButton aAttributeBtn;
+ CancelButton aCloseBtn;
+ PushButton aFormatBtn;
+ HelpButton aHelpBtn;
+ PushButton aNoFormatBtn;
+ MoreButton* pMoreBtn;
+
+ CheckBox aWordBtn;
+ CheckBox aExactBtn;
+ CheckBox aBackwardsBtn;
+ CheckBox aSelectionBtn;
+ CheckBox aRegExpBtn;
+ CheckBox aLayoutBtn;
+ // "Ahnlichkeitssuche
+ CheckBox aSimilarityBox;
+ PushButton aSimilarityBtn;
+ GroupBox aOptionsBox;
+
+ // nur f"ur Calc
+ RadioButton aFormulasBtn;
+ RadioButton aValuesBtn;
+ RadioButton aNotesBtn;
+ GroupBox aSearchBox;
+
+ RadioButton aRowsBtn;
+ RadioButton aColumnsBtn;
+ GroupBox aSearchDirBox;
+
+ CheckBox aAllTablesCB;
+ GroupBox aCalcExtrasBox;
+
+ SfxBindings& rBindings;
+ BOOL bWriter;
+ BOOL bSearch;
+ BOOL bFormat;
+ USHORT nOptions;
+ FASTBOOL bSet;
+ FASTBOOL bReadOnly;
+ FASTBOOL bConstruct;
+ ULONG nModifyFlag;
+ String aStylesStr;
+ String aLayoutStr;
+ String aCalcStr;
+
+ SvStringsDtor aSearchStrings;
+ SvStringsDtor aReplaceStrings;
+
+ SearchDlg_Impl* pImpl;
+ SearchAttrItemList* pSearchList;
+ SearchAttrItemList* pReplaceList;
+ SvxSearchItem* pSearchItem;
+
+ SvxSearchController* pSearchController;
+ SvxSearchController* pOptionsController;
+ SvxSearchController* pFamilyController;
+ SvxSearchController* pSearchSetController;
+ SvxSearchController* pReplaceSetController;
+
+#ifdef _SVX_SRCHDLG_CXX
+ DECL_LINK( ModifyHdl_Impl, ComboBox* pEdit );
+ DECL_LINK( FlagHdl_Impl, Button* pBtn );
+ DECL_LINK( CommandHdl_Impl, Button* pBtn );
+ DECL_LINK( TemplateHdl_Impl, Button* );
+ DECL_LINK( FocusHdl_Impl, Control* );
+ DECL_LINK( LoseFocusHdl_Impl, Control* );
+ DECL_LINK( FormatHdl_Impl, Button* );
+ DECL_LINK( NoFormatHdl_Impl, Button* );
+ DECL_LINK( AttributeHdl_Impl, Button* );
+ DECL_LINK( TimeoutHdl_Impl, Timer* );
+
+ void InitControls_Impl();
+ void Init_Impl( int bHasItemSet );
+ void InitAttrList_Impl( const SfxItemSet* pSSet,
+ const SfxItemSet* pRSet );
+ void Remember_Impl( const String &rStr,BOOL bSearch );
+ void PaintAttrText_Impl();
+ String& BuildAttrText_Impl( String& rStr, BOOL bSrchFlag ) const;
+
+ void TemplatesChanged_Impl( SfxStyleSheetBasePool& rPool );
+ void EnableControls_Impl( const USHORT nFlags );
+ void EnableControl_Impl( Control* pCtrl );
+ void SetItem_Impl( const SvxSearchItem* pItem );
+
+ void SetModifyFlag_Impl( const Control* pCtrl );
+ void SaveToModule_Impl();
+#endif
+};
+
+inline BOOL SvxSearchDialog::HasSearchAttributes() const
+{
+ int bLen = aSearchAttrText.GetText().Len();
+ return ( aSearchAttrText.IsEnabled() && bLen );
+}
+
+inline BOOL SvxSearchDialog::HasReplaceAttributes() const
+{
+ int bLen = aReplaceAttrText.GetText().Len();
+ return ( aReplaceAttrText.IsEnabled() && bLen );
+}
+
+#endif // SV_NODIALOG
+#endif // NO_SVX_SEARCH
+
+
+#endif
+
diff --git a/svx/inc/srchitem.hxx b/svx/inc/srchitem.hxx
new file mode 100644
index 000000000000..15049fc639ee
--- /dev/null
+++ b/svx/inc/srchitem.hxx
@@ -0,0 +1,68 @@
+/*************************************************************************
+ *
+ * $RCSfile: srchitem.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:00:59 $
+ *
+ * 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 _SVX_SRCHITEM_HXX
+#define _SVX_SRCHITEM_HXX
+
+#include <sfx2/srchitem.hxx>
+
+#endif
+
+
diff --git a/svx/inc/svdglob.hxx b/svx/inc/svdglob.hxx
new file mode 100644
index 000000000000..6883e2001ea0
--- /dev/null
+++ b/svx/inc/svdglob.hxx
@@ -0,0 +1,108 @@
+/*************************************************************************
+ *
+ * $RCSfile: svdglob.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:01:00 $
+ *
+ * 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 _SVDGLOB_HXX
+#define _SVDGLOB_HXX
+
+#ifndef _CONTNR_HXX //autogen
+#include <tools/contnr.hxx>
+#endif
+
+#ifndef _RESID_HXX //autogen
+#include <vcl/resid.hxx>
+#endif
+
+#ifndef _STRING_HXX
+#include <tools/string.hxx>
+#endif
+
+//************************************************************
+// Vorausdeklarationen
+//************************************************************
+
+class Link;
+class ResMgr;
+class SdrEngineDefaults;
+class ImpSdrStrCache;
+
+//************************************************************
+// Defines
+//************************************************************
+
+// Den zur App passenden Resourcemanager holen
+ResMgr* ImpGetResMgr();
+
+class SdrResId: ResId {
+public:
+ SdrResId(USHORT nId): ResId(nId,ImpGetResMgr()) {}
+};
+
+// ResourceCache fuer haeuffig benoetigte Strings
+// gecachet werden globale String-Resourcen mit den
+// IDs von SDR_StringCacheBegin (256) bis
+// SDR_StringCacheEnd (weiss ich grad' nicht).
+// Hierzu siehe auch SvdStr.Hrc
+const String& ImpGetResStr(USHORT nResID);
+
+////////////////////////////////////////////////////////////////////////////////////////////////////
+
+#endif //_SVDGLOB_HXX
+
diff --git a/svx/inc/svdibrow.hxx b/svx/inc/svdibrow.hxx
new file mode 100644
index 000000000000..45ed2ced90e6
--- /dev/null
+++ b/svx/inc/svdibrow.hxx
@@ -0,0 +1,177 @@
+/*************************************************************************
+ *
+ * $RCSfile: svdibrow.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:01:00 $
+ *
+ * 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 _SVDIBROW_HXX
+#define _SVDIBROW_HXX
+
+#ifndef _SVX_BRWBOX_HXX //autogen
+#include <svtools/brwbox.hxx>
+#endif
+
+#ifndef _SV_EDIT_HXX //autogen
+#include <vcl/edit.hxx>
+#endif
+
+#ifndef _SV_FLOATWIN_HXX //autogen
+#include <vcl/floatwin.hxx>
+#endif
+
+class SfxItemSet;
+class ImpItemListRow;
+class BrowserMouseEvent;
+
+class _SdrItemBrowserControl: public BrowseBox
+{
+friend class ImpItemEdit;
+ Container aList;
+ long nAktPaintRow;
+ Edit* pEditControl;
+ XubString aWNamMerk;
+ Link aEntryChangedHdl;
+ Link aSetDirtyHdl;
+ ImpItemListRow* pAktChangeEntry;
+ long nLastWhichOfs;
+ USHORT nLastWhich;
+ USHORT nLastWhichOben;
+ USHORT nLastWhichUnten;
+ FASTBOOL bWhichesButNames;
+ FASTBOOL bDontHideIneffectiveItems;
+ FASTBOOL bDontSortItems;
+ FASTBOOL bShowWhichIds;
+ FASTBOOL bShowRealValues;
+private:
+#if __PRIVATE
+ void ImpCtor();
+ void ImpSetEntry(const ImpItemListRow& rEntry, ULONG nEntryNum);
+ ImpItemListRow* ImpGetEntry(ULONG nPos) const { return (ImpItemListRow*)aList.GetObject(nPos); }
+ void ImpSaveWhich();
+ void ImpRestoreWhich();
+#endif // __PRIVATE
+protected:
+ virtual long GetRowCount() const;
+ virtual BOOL SeekRow(long nRow);
+ virtual void PaintField(OutputDevice& rDev, const Rectangle& rRect, USHORT nColumnId) const;
+#if SUPD >= 345
+ virtual void DoubleClick(const BrowserMouseEvent&);
+#else
+ virtual void DoubleClick();
+#endif
+ virtual void KeyInput(const KeyEvent& rEvt);
+ virtual void Select();
+ virtual void SetDirty(); // wird z.B. bei Modusumschaltungen gerufen
+public:
+ _SdrItemBrowserControl(Window* pParent, WinBits nBits=WB_3DLOOK|WB_BORDER|WB_TABSTOP);
+ virtual ~_SdrItemBrowserControl();
+ void Clear();
+ void SetAttributes(const SfxItemSet* pAttr, const SfxItemSet* p2ndSet=NULL);
+ ULONG GetCurrentPos() const;
+ USHORT GetCurrentWhich() const;
+ virtual FASTBOOL BegChangeEntry(ULONG nPos);
+ virtual FASTBOOL EndChangeEntry();
+ virtual void BrkChangeEntry();
+ const ImpItemListRow* GetAktChangeEntry() const { return pAktChangeEntry; }
+ XubString GetNewEntryValue() const { return pEditControl->GetText(); }
+ void SetEntryChangedHdl(const Link& rLink) { aEntryChangedHdl=rLink; }
+ const Link& GetEntryChangedHdl() const { return aEntryChangedHdl; }
+ void SetSetDirtyHdl(const Link& rLink) { aSetDirtyHdl=rLink; }
+ const Link& GetSetDirtyHdl() const { return aSetDirtyHdl; }
+};
+
+#define WB_STDSIZEABLEDOCKWIN (WB_STDDOCKWIN|WB_3DLOOK|WB_CLOSEABLE|WB_SIZEMOVE)
+#define WB_STDSIZEABLEFLOATWIN (WB_STDFLOATWIN|WB_3DLOOK|WB_CLOSEABLE|WB_SIZEMOVE)
+
+class _SdrItemBrowserWindow: public FloatingWindow {
+ _SdrItemBrowserControl aBrowse;
+public:
+ _SdrItemBrowserWindow(Window* pParent, WinBits nBits=WB_STDSIZEABLEDOCKWIN);
+ virtual ~_SdrItemBrowserWindow();
+ virtual void Resize();
+ virtual void GetFocus();
+ void Clear() { aBrowse.Clear(); }
+ void SetAttributes(const SfxItemSet* pAttr, const SfxItemSet* p2ndSet=NULL) { aBrowse.SetAttributes(pAttr,p2ndSet); }
+ void SetFloatingMode(FASTBOOL bOn) {}
+ const _SdrItemBrowserControl& GetBrowserControl() const { return aBrowse; }
+ _SdrItemBrowserControl& GetBrowserControl() { return aBrowse; }
+};
+
+class SdrView;
+
+class SdrItemBrowser: public _SdrItemBrowserWindow {
+ Timer aIdleTimer;
+ SdrView* pView;
+ FASTBOOL bDirty;
+private:
+ static Window* ImpGetViewWin(SdrView& rView);
+ DECL_LINK(IdleHdl,Timer*);
+ DECL_LINK(ChangedHdl,_SdrItemBrowserControl*);
+ DECL_LINK(SetDirtyHdl,_SdrItemBrowserControl*);
+public:
+ SdrItemBrowser(SdrView& rView);
+ void ForceParent();
+ void SetView(SdrView& rView) { pView=&rView; ForceParent(); SetDirty(); }
+ void SetDirty();
+ void Undirty();
+ void ForceUndirty() { if (bDirty) Undirty(); }
+};
+
+#endif //_SVDIBROW_HXX
+
+
diff --git a/svx/inc/svditer.hxx b/svx/inc/svditer.hxx
new file mode 100644
index 000000000000..3bed82d4c00a
--- /dev/null
+++ b/svx/inc/svditer.hxx
@@ -0,0 +1,124 @@
+/*************************************************************************
+ *
+ * $RCSfile: svditer.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:01:00 $
+ *
+ * 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 _SVDITER_HXX
+#define _SVDITER_HXX
+
+#ifndef _SOLAR_H
+#include <tools/solar.h>
+#endif
+
+/* Iterieren ueber eine Objektliste:
+ SdrObjListIter aIter(pPage);
+ while (aIter.IsMore()) Next()->...;
+
+ SdrIterMode:
+ IM_FLAT: Die Suche erfolgt flach entlang der uebergebenen Liste. Next()
+ liefert also nacheinander alle Objekte die direkt in der Liste
+ verankert sind.
+ Der HitTest() bei einem Mausklick erfolgt z.B. in diesem Modus.
+ IM_DEEPWITHGROUPS: Stoesst Next() bei der Suche auf ein Gruppenobjekt, ein
+ Zeiger auf dieses Gruppenobjekt zuruekgegeben (wie IM_Flat). Das
+ naechste Next() sucht allerdings nicht in der selben Liste weiter,
+ sondern durchsucht zunaechst die Unterliste des Gruppenobjekts. Wird
+ in dieser Unterliste wieder ein Gruppenobjekt gefunden, dann wird
+ spaeter auch dessen Unterliste durchsucht, ... .
+ Dieser Modus wird benoetigt, wenn man Zugriff auf alle Einzelobjekte
+ inkl. der Gruppenobjekte benoetigt.
+ IM_DEEPNOGROUPS: Die Suche erfolgt nach aehnlichem Muster wie im Modus
+ IM_DEEPWITHGROUPS. Die einzige Ausnahme ist, da Gruppenobjekte
+ selbst uebersprungen werden. Sobald Next() auf ein Gruppenobjekt
+ stoesst liefert es sofort das erste Objekt dessen Unterliste, ohne
+ zuvor einen Zeiger auf das Gruppenobjekt zu liefern.
+ Dieser Modus z.B. beim Repaint verwendet, da SdrObjGroup.Paint()
+ ja sonst die gesamte Unterliste der Gruppe painten wuerde, ohne
+ eine Unterbrechung durch einen Event zuzulassen.
+ Die Rueckwaertssuche ist derzeit nur fuer den Modus IM_FLAT implementiert.
+*/
+
+enum SdrIterMode {IM_FLAT, // Flach ueber die Liste
+ IM_DEEPWITHGROUPS, // Mit rekursivem Abstieg, Next() liefert auch Gruppenobjekte
+ IM_DEEPNOGROUPS}; // Mit rekursivem Abstieg, Next() liefert keine Gruppenobjekte
+
+class SdrObject;
+class SdrObjList;
+
+class SdrObjListIter {
+protected:
+ const SdrObjList* pMainList; // zu durchsuchende Liste
+ const SdrObjList* pAktList; // Aktuelle (Sub-)Liste
+ const SdrObject* pAktGroup; // Aktuelles Gruppenobjekt
+ const SdrObject* pNextObj; //
+ ULONG nAktNum; // Objektnummer in aktueller (Sub-)Liste
+ ULONG nObjAnz; // Anzahl der Objekte in der Hauptliste
+ FASTBOOL bReverse; // rueckwaerts durchsuchen
+ FASTBOOL bRecurse; // In Gruppen hinabsteigen
+ FASTBOOL bSkipGrp; // Gruppenobjekte ueberspringen ?
+public:
+ SdrObjListIter(const SdrObjList& rObjList, SdrIterMode eMode=IM_DEEPNOGROUPS, FASTBOOL bRevSearch=FALSE);
+ SdrObjListIter(const SdrObject& rGroup, SdrIterMode eMode=IM_DEEPNOGROUPS, FASTBOOL bRevSearch=FALSE);
+ void Reset();
+ FASTBOOL IsMore() const { return pNextObj!=NULL; }
+ SdrObject* Next();
+};
+
+#endif //_SVDITER_HXX
+
diff --git a/svx/inc/svdpomv.hxx b/svx/inc/svdpomv.hxx
new file mode 100644
index 000000000000..6b81c5153764
--- /dev/null
+++ b/svx/inc/svdpomv.hxx
@@ -0,0 +1,95 @@
+/*************************************************************************
+ *
+ * $RCSfile: svdpomv.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:01:01 $
+ *
+ * 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): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#error dieser Header entfaellt nun!
+
+#ifndef _SVDPOMV_HXX
+#define _SVDPOMV_HXX
+
+#ifndef _SVDMRKV_HXX
+#include "svdmrkv.hxx"
+#endif
+
+////////////////////////////////////////////////////////////////////////////////////////////////////
+//
+// @@@@@ @@@@ @@ @@ @@ @@ @@ @@@@ @@@@@ @@ @@ @@ @@ @@ @@@@@ @@ @@
+// @@ @@ @@ @@ @@ @@ @@ @@@ @@@ @@ @@ @@ @@ @@ @@ @@ @@ @@ @@ @@ @ @@
+// @@@@@ @@ @@ @@ @@@@ @@@@@@@ @@@@@@ @@@@@ @@@@ @@@@@ @@ @@@@ @@@@@@@
+// @@ @@ @@ @@ @@ @@ @ @@ @@ @@ @@ @@ @@ @@ @@@ @@ @@ @@@ @@@
+// @@ @@@@ @@@@@ @@ @@ @@ @@ @@ @@ @@ @@ @@ @ @@ @@@@@ @@ @@
+//
+////////////////////////////////////////////////////////////////////////////////////////////////////
+
+class SdrPolyMarkView: public SdrMarkView {
+private:
+#ifndef _SVDRAW_HXX
+ void ImpClearVars();
+#endif
+public:
+ SdrPolyMarkView(SdrModel* pModel1, OutputDevice* pOut);
+ SdrPolyMarkView(SdrModel* pModel1, ExtOutputDevice* pXOut);
+ ~SdrPolyMarkView();
+};
+
+////////////////////////////////////////////////////////////////////////////////////////////////////
+
+#endif //_SVDPOMV_HXX
+
diff --git a/svx/inc/svdshort.hxx b/svx/inc/svdshort.hxx
new file mode 100644
index 000000000000..e8e584053726
--- /dev/null
+++ b/svx/inc/svdshort.hxx
@@ -0,0 +1,131 @@
+/*************************************************************************
+ *
+ * $RCSfile: svdshort.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:01:01 $
+ *
+ * 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): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#error svdshort wird nicht mehr verwendet!
+
+#ifndef _SVDSHORT_HXX
+#define _SVDSHORT_HXX
+
+////////////////////////////////////////////////////////////////////////////////////////////////////
+
+#ifdef Weg_Mit_Den_Doofen_Abkuerzungen
+ // Statistik - Stand 02-03-1995
+ // Haeufigkeit Ersparnis
+#define SdrObjSurrogate SdrSU
+#define SdrHelpLineKind SdrFLK /* HL ist schon besetzt */
+#define SdrHelpLineList SdrFLL /* HL ist schon besetzt */
+#define SdrHelpLine SdrFL /* HL ist schon besetzt */
+#define SdrMasterPageDescriptorList SdrMPL
+#define SdrMasterPageDescriptor SdrMP
+#define SdrObjTransformInfoRec SdrTI
+#define SdrDragCrook SdrDC
+#define SdrDragMirror SdrDI
+#define SdrDragMovHdl SdrDH
+#define SdrDragResize SdrDZ
+#define SdrDragRotate SdrDR
+#define SdrDragShear SdrDE
+#define SdrDragMove SdrDM
+#define SdrCreateCmd SdrCC
+#define SdrUndoAttrObj SdrAU
+#define SdrObjKind SdrOK
+#define SdrUndoGroup SdrUG
+#define SdrUndoAction SdrUA
+#define SdrAttrObj SdrAO
+#define SdrGrafObj SdrGO
+#define SdrMarkList SdrML
+#define SdrHdlList SdrHL
+#define SdrLayerAdmin SdrLA
+//#define SdrObjEditRec SdrER
+#define SdrObjIOHeader SdrOH
+#define SdrObjUserCall SdrUC
+#define SdrObjUnknown SdrUO
+#define SdrExchangeView SdrXV
+#define SdrCreateView SdrCV
+#define SdrOle2Obj SdrOO
+#define SdrObjGeoData SdrGD
+#define SdrDragView SdrDV
+#define SdrSnapView SdrSV
+#define SdrObjList SdrOL
+#define SdrEdgeObj SdrEO
+#define SdrCircObj SdrCO
+#define SdrObjGroup SdrOG
+#define SdrPage SdrPg
+#define SdrObjEditView SdrOV
+#define SdrModel SdrMD
+#define ExtOutputDevice SdrXO
+#define SdrEditView SdrEV
+#define SdrPaintView SdrNV
+#define SdrPolyObj SdrPO
+#define SdrRectObj SdrRO
+#define SdrTextObj SdrTO
+#define SdrMarkView SdrMV
+#define SdrPathObj SdrBO
+#define SdrPageView SdrPV
+#define SdrDragStat SdrDS
+#define SdrVirtObj SdrVO
+#define SdrObject SdrO
+
+#endif
+
+////////////////////////////////////////////////////////////////////////////////////////////////////
+
+#endif //_SVDSHORT_HXX
+
diff --git a/svx/inc/svdstr.hrc b/svx/inc/svdstr.hrc
new file mode 100644
index 000000000000..54df4b23383b
--- /dev/null
+++ b/svx/inc/svdstr.hrc
@@ -0,0 +1,779 @@
+/*************************************************************************
+ *
+ * $RCSfile: svdstr.hrc,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:01:01 $
+ *
+ * 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): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#define SDR_ResourceBegin 2560
+
+////////////////////////////////////////////////////////////////////////////////////////////////////
+// Achtung: Alle Strings zwischen SDR_StringCacheBegin und
+// SDR_StringCacheEnd muessen buendig aneinander liegen.
+#define SDR_StringCacheBegin (SDR_ResourceBegin)
+
+#define STR_ObjNameBegin (SDR_ResourceBegin)
+#define STR_ObjNameSingulNONE (STR_ObjNameBegin + 0)
+#define STR_ObjNamePluralNONE (STR_ObjNameBegin + 1)
+#define STR_ObjNameSingulGRUP (STR_ObjNameBegin + 2)
+#define STR_ObjNamePluralGRUP (STR_ObjNameBegin + 3)
+#define STR_ObjNameSingulGRUPEMPTY (STR_ObjNameBegin + 4)
+#define STR_ObjNamePluralGRUPEMPTY (STR_ObjNameBegin + 5)
+#define STR_ObjNameSingulGRUPLNK (STR_ObjNameBegin + 6)
+#define STR_ObjNamePluralGRUPLNK (STR_ObjNameBegin + 7)
+#define STR_ObjNameSingulLINE (STR_ObjNameBegin + 8)
+#define STR_ObjNameSingulLINE_Hori (STR_ObjNameBegin + 9)
+#define STR_ObjNameSingulLINE_Vert (STR_ObjNameBegin + 10)
+#define STR_ObjNameSingulLINE_Diag (STR_ObjNameBegin + 11)
+#define STR_ObjNamePluralLINE (STR_ObjNameBegin + 12)
+#define STR_ObjNameSingulRECT (STR_ObjNameBegin + 13)
+#define STR_ObjNamePluralRECT (STR_ObjNameBegin + 14)
+#define STR_ObjNameSingulQUAD (STR_ObjNameBegin + 15)
+#define STR_ObjNamePluralQUAD (STR_ObjNameBegin + 16)
+#define STR_ObjNameSingulPARAL (STR_ObjNameBegin + 17)
+#define STR_ObjNamePluralPARAL (STR_ObjNameBegin + 18)
+#define STR_ObjNameSingulRAUTE (STR_ObjNameBegin + 19)
+#define STR_ObjNamePluralRAUTE (STR_ObjNameBegin + 20)
+#define STR_ObjNameSingulRECTRND (STR_ObjNameBegin + 21)
+#define STR_ObjNamePluralRECTRND (STR_ObjNameBegin + 22)
+#define STR_ObjNameSingulQUADRND (STR_ObjNameBegin + 23)
+#define STR_ObjNamePluralQUADRND (STR_ObjNameBegin + 24)
+#define STR_ObjNameSingulPARALRND (STR_ObjNameBegin + 25)
+#define STR_ObjNamePluralPARALRND (STR_ObjNameBegin + 26)
+#define STR_ObjNameSingulRAUTERND (STR_ObjNameBegin + 27)
+#define STR_ObjNamePluralRAUTERND (STR_ObjNameBegin + 28)
+#define STR_ObjNameSingulCIRC (STR_ObjNameBegin + 29)
+#define STR_ObjNamePluralCIRC (STR_ObjNameBegin + 30)
+#define STR_ObjNameSingulSECT (STR_ObjNameBegin + 31)
+#define STR_ObjNamePluralSECT (STR_ObjNameBegin + 32)
+#define STR_ObjNameSingulCARC (STR_ObjNameBegin + 33)
+#define STR_ObjNamePluralCARC (STR_ObjNameBegin + 34)
+#define STR_ObjNameSingulCCUT (STR_ObjNameBegin + 35)
+#define STR_ObjNamePluralCCUT (STR_ObjNameBegin + 36)
+#define STR_ObjNameSingulCIRCE (STR_ObjNameBegin + 37)
+#define STR_ObjNamePluralCIRCE (STR_ObjNameBegin + 38)
+#define STR_ObjNameSingulSECTE (STR_ObjNameBegin + 39)
+#define STR_ObjNamePluralSECTE (STR_ObjNameBegin + 40)
+#define STR_ObjNameSingulCARCE (STR_ObjNameBegin + 41)
+#define STR_ObjNamePluralCARCE (STR_ObjNameBegin + 42)
+#define STR_ObjNameSingulCCUTE (STR_ObjNameBegin + 43)
+#define STR_ObjNamePluralCCUTE (STR_ObjNameBegin + 44)
+#define STR_ObjNameSingulPOLY (STR_ObjNameBegin + 45)
+#define STR_ObjNameSingulPOLY_PntAnz (STR_ObjNameBegin + 46)
+#define STR_ObjNamePluralPOLY (STR_ObjNameBegin + 47)
+#define STR_ObjNameSingulPLIN (STR_ObjNameBegin + 48)
+#define STR_ObjNameSingulPLIN_PntAnz (STR_ObjNameBegin + 49)
+#define STR_ObjNamePluralPLIN (STR_ObjNameBegin + 50)
+#define STR_ObjNameSingulPATHLINE (STR_ObjNameBegin + 51)
+#define STR_ObjNamePluralPATHLINE (STR_ObjNameBegin + 52)
+#define STR_ObjNameSingulPATHFILL (STR_ObjNameBegin + 53)
+#define STR_ObjNamePluralPATHFILL (STR_ObjNameBegin + 54)
+#define STR_ObjNameSingulFREELINE (STR_ObjNameBegin + 55)
+#define STR_ObjNamePluralFREELINE (STR_ObjNameBegin + 56)
+#define STR_ObjNameSingulFREEFILL (STR_ObjNameBegin + 57)
+#define STR_ObjNamePluralFREEFILL (STR_ObjNameBegin + 58)
+#define STR_ObjNameSingulCOMBLINE (STR_ObjNameBegin + 59)
+#define STR_ObjNamePluralCOMBLINE (STR_ObjNameBegin + 60)
+#define STR_ObjNameSingulCOMBFILL (STR_ObjNameBegin + 61)
+#define STR_ObjNamePluralCOMBFILL (STR_ObjNameBegin + 62)
+#define STR_ObjNameSingulNATSPLN (STR_ObjNameBegin + 63)
+#define STR_ObjNamePluralNATSPLN (STR_ObjNameBegin + 64)
+#define STR_ObjNameSingulPERSPLN (STR_ObjNameBegin + 65)
+#define STR_ObjNamePluralPERSPLN (STR_ObjNameBegin + 66)
+#define STR_ObjNameSingulTEXT (STR_ObjNameBegin + 67)
+#define STR_ObjNamePluralTEXT (STR_ObjNameBegin + 68)
+#define STR_ObjNameSingulTEXTLNK (STR_ObjNameBegin + 69)
+#define STR_ObjNamePluralTEXTLNK (STR_ObjNameBegin + 70)
+#define STR_ObjNameSingulFITTEXT (STR_ObjNameBegin + 71)
+#define STR_ObjNamePluralFITTEXT (STR_ObjNameBegin + 72)
+#define STR_ObjNameSingulFITALLTEXT (STR_ObjNameBegin + 73)
+#define STR_ObjNamePluralFITALLTEXT (STR_ObjNameBegin + 74)
+#define STR_ObjNameSingulTITLETEXT (STR_ObjNameBegin + 75)
+#define STR_ObjNamePluralTITLETEXT (STR_ObjNameBegin + 76)
+#define STR_ObjNameSingulOUTLINETEXT (STR_ObjNameBegin + 77)
+#define STR_ObjNamePluralOUTLINETEXT (STR_ObjNameBegin + 78)
+#define STR_ObjNameSingulGRAF (STR_ObjNameBegin + 79)
+#define STR_ObjNamePluralGRAF (STR_ObjNameBegin + 80)
+#define STR_ObjNameSingulGRAFLNK (STR_ObjNameBegin + 81)
+#define STR_ObjNamePluralGRAFLNK (STR_ObjNameBegin + 82)
+#define STR_ObjNameSingulGRAFNONE (STR_ObjNameBegin + 83)
+#define STR_ObjNamePluralGRAFNONE (STR_ObjNameBegin + 84)
+#define STR_ObjNameSingulGRAFNONELNK (STR_ObjNameBegin + 85)
+#define STR_ObjNamePluralGRAFNONELNK (STR_ObjNameBegin + 86)
+#define STR_ObjNameSingulGRAFMTF (STR_ObjNameBegin + 87)
+#define STR_ObjNamePluralGRAFMTF (STR_ObjNameBegin + 88)
+#define STR_ObjNameSingulGRAFMTFLNK (STR_ObjNameBegin + 89)
+#define STR_ObjNamePluralGRAFMTFLNK (STR_ObjNameBegin + 90)
+#define STR_ObjNameSingulGRAFBMP (STR_ObjNameBegin + 91)
+#define STR_ObjNamePluralGRAFBMP (STR_ObjNameBegin + 92)
+#define STR_ObjNameSingulGRAFBMPLNK (STR_ObjNameBegin + 93)
+#define STR_ObjNamePluralGRAFBMPLNK (STR_ObjNameBegin + 94)
+#define STR_ObjNameSingulGRAFMAC (STR_ObjNameBegin + 95)
+#define STR_ObjNamePluralGRAFMAC (STR_ObjNameBegin + 96)
+#define STR_ObjNameSingulGRAFMACLNK (STR_ObjNameBegin + 97)
+#define STR_ObjNamePluralGRAFMACLNK (STR_ObjNameBegin + 98)
+#define STR_ObjNameSingulOLE2 (STR_ObjNameBegin + 99)
+#define STR_ObjNamePluralOLE2 (STR_ObjNameBegin +100)
+#define STR_ObjNameSingulOLE2LNK (STR_ObjNameBegin +101)
+#define STR_ObjNamePluralOLE2LNK (STR_ObjNameBegin +102)
+#define STR_ObjOLE2NamePrefix (STR_ObjNameBegin +103)
+#define STR_ObjNameSingulFrame (STR_ObjNameBegin +104)
+#define STR_ObjNamePluralFrame (STR_ObjNameBegin +105)
+#define STR_ObjFrameNamePrefix (STR_ObjNameBegin +106)
+#define STR_ObjNameSingulEDGE (STR_ObjNameBegin +107)
+#define STR_ObjNamePluralEDGE (STR_ObjNameBegin +108)
+#define STR_ObjNameSingulCAPTION (STR_ObjNameBegin +109)
+#define STR_ObjNamePluralCAPTION (STR_ObjNameBegin +110)
+#define STR_ObjNameSingulPAGE (STR_ObjNameBegin +111)
+#define STR_ObjNamePluralPAGE (STR_ObjNameBegin +112)
+#define STR_ObjNameSingulMEASURE (STR_ObjNameBegin +113)
+#define STR_ObjNamePluralMEASURE (STR_ObjNameBegin +114)
+#define STR_ObjNamePlural (STR_ObjNameBegin +115)
+#define STR_ObjNameNoObj (STR_ObjNameBegin +116)
+#define STR_ObjNameAnd (STR_ObjNameBegin +117)
+#define STR_ObjNameSingulPlural (STR_ObjNameBegin +118)
+#define STR_ObjNameSingulUno (STR_ObjNameBegin +119)
+#define STR_ObjNamePluralUno (STR_ObjNameBegin +120)
+
+// Neu ab 537: Namen fuer 3D-Objekte
+#define STR_ObjNameSingulCube3d (STR_ObjNameBegin + 121)
+#define STR_ObjNamePluralCube3d (STR_ObjNameBegin + 122)
+#define STR_ObjNameSingulExtrude3d (STR_ObjNameBegin + 123)
+#define STR_ObjNamePluralExtrude3d (STR_ObjNameBegin + 124)
+#define STR_ObjNameSingulLabel3d (STR_ObjNameBegin + 125)
+#define STR_ObjNamePluralLabel3d (STR_ObjNameBegin + 126)
+#define STR_ObjNameSingulLathe3d (STR_ObjNameBegin + 127)
+#define STR_ObjNamePluralLathe3d (STR_ObjNameBegin + 128)
+#define STR_ObjNameSingulObj3d (STR_ObjNameBegin + 129)
+#define STR_ObjNamePluralObj3d (STR_ObjNameBegin + 130)
+#define STR_ObjNameSingulPoly3d (STR_ObjNameBegin + 131)
+#define STR_ObjNamePluralPoly3d (STR_ObjNameBegin + 132)
+#define STR_ObjNameSingulScene3d (STR_ObjNameBegin + 133)
+#define STR_ObjNamePluralScene3d (STR_ObjNameBegin + 134)
+#define STR_ObjNameSingulSphere3d (STR_ObjNameBegin + 135)
+#define STR_ObjNamePluralSphere3d (STR_ObjNameBegin + 136)
+
+#define STR_ObjNameEnd (STR_ObjNamePluralSphere3d)
+
+#define STR_EditBegin (STR_ObjNameEnd+1)
+#define STR_EditWithCopy (STR_EditBegin + 0)
+#define STR_EditPosSize (STR_EditBegin + 1)
+#define STR_EditDelete (STR_EditBegin + 2)
+#define STR_EditMovToTop (STR_EditBegin + 3)
+#define STR_EditMovToBtm (STR_EditBegin + 4)
+#define STR_EditPutToTop (STR_EditBegin + 5)
+#define STR_EditPutToBtm (STR_EditBegin + 6)
+#define STR_EditRevOrder (STR_EditBegin + 7)
+#define STR_EditMove (STR_EditBegin + 8)
+#define STR_EditResize (STR_EditBegin + 9)
+#define STR_EditRotate (STR_EditBegin + 10)
+#define STR_EditMirrorHori (STR_EditBegin + 11)
+#define STR_EditMirrorVert (STR_EditBegin + 12)
+#define STR_EditMirrorDiag (STR_EditBegin + 13)
+#define STR_EditMirrorFree (STR_EditBegin + 14)
+#define STR_EditShear (STR_EditBegin + 15)
+#define STR_EditCrook (STR_EditBegin + 16)
+#define STR_EditCrookContortion (STR_EditBegin + 17)
+#define STR_EditDistort (STR_EditBegin + 18)
+#define STR_EditRipUp (STR_EditBegin + 19)
+#define STR_EditSetPointsSmooth (STR_EditBegin + 20)
+#define STR_EditSetSegmentsKind (STR_EditBegin + 21)
+#define STR_EditShut (STR_EditBegin + 22)
+#define STR_EditSetGlueEscDir (STR_EditBegin + 23)
+#define STR_EditSetGluePercent (STR_EditBegin + 24)
+#define STR_EditSetGlueAlign (STR_EditBegin + 25)
+#define STR_EditGroup (STR_EditBegin + 26)
+#define STR_EditUngroup (STR_EditBegin + 27)
+#define STR_EditSetAttributes (STR_EditBegin + 28)
+#define STR_EditSetStylesheet (STR_EditBegin + 29)
+#define STR_EditDelStylesheet (STR_EditBegin + 30)
+#define STR_EditConvToPoly (STR_EditBegin + 31)
+#define STR_EditConvToPolys (STR_EditBegin + 32)
+#define STR_EditConvToCurve (STR_EditBegin + 33)
+#define STR_EditConvToCurves (STR_EditBegin + 34)
+#define STR_EditAlign (STR_EditBegin + 35)
+#define STR_EditAlignVTop (STR_EditBegin + 36)
+#define STR_EditAlignVBottom (STR_EditBegin + 37)
+#define STR_EditAlignVCenter (STR_EditBegin + 38)
+#define STR_EditAlignHLeft (STR_EditBegin + 39)
+#define STR_EditAlignHRight (STR_EditBegin + 40)
+#define STR_EditAlignHCenter (STR_EditBegin + 41)
+#define STR_EditAlignCenter (STR_EditBegin + 42)
+#define STR_EditTransform (STR_EditBegin + 43)
+#define STR_EditCombine_PolyPoly (STR_EditBegin + 44)
+#define STR_EditCombine_OnePoly (STR_EditBegin + 45)
+#define STR_EditDismantle_Polys (STR_EditBegin + 46)
+#define STR_EditDismantle_Lines (STR_EditBegin + 47)
+#define STR_EditImportMtf (STR_EditBegin + 48)
+#define STR_EditImportSGV (STR_EditBegin + 49)
+#define STR_EditImportHPGL (STR_EditBegin + 50)
+#define STR_EditImportDXF (STR_EditBegin + 51)
+#define STR_EditConvToContour (STR_EditBegin + 52)
+#define STR_EditConvToContours (STR_EditBegin + 53)
+#define STR_EditMergeMergePoly (STR_EditBegin + 54)
+#define STR_EditMergeSubstractPoly (STR_EditBegin + 55)
+#define STR_EditMergeIntersectPoly (STR_EditBegin + 56)
+#define STR_DistributeMarkedObjects (STR_EditBegin + 57)
+#define STR_EditEnd (STR_DistributeMarkedObjects)
+
+#define STR_ExchangeBegin (STR_EditEnd+1)
+#define STR_ExchangePaste (STR_ExchangeBegin +0)
+#define STR_ExchangeClpCut (STR_ExchangeBegin +1)
+#define STR_ExchangeClpPaste (STR_ExchangeBegin +2)
+#define STR_ExchangeDD (STR_ExchangeBegin +3)
+#define STR_ExchangeDDPaste (STR_ExchangeBegin +4)
+#define STR_ExchangeEnd (STR_ExchangeDDPaste)
+
+#define STR_DragBegin (STR_ExchangeEnd+1)
+#define STR_DragInsertPoint (STR_DragBegin + 0)
+#define STR_DragInsertGluePoint (STR_DragBegin + 1)
+#define STR_DragMethMovHdl (STR_DragBegin + 2)
+#define STR_DragMethObjOwn (STR_DragBegin + 3)
+#define STR_DragMethMove (STR_DragBegin + 4)
+#define STR_DragMethResize (STR_DragBegin + 5)
+#define STR_DragMethRotate (STR_DragBegin + 6)
+#define STR_DragMethMirrorHori (STR_DragBegin + 7)
+#define STR_DragMethMirrorVert (STR_DragBegin + 8)
+#define STR_DragMethMirrorDiag (STR_DragBegin + 9)
+#define STR_DragMethMirrorFree (STR_DragBegin +10)
+#define STR_DragMethShear (STR_DragBegin +11)
+#define STR_DragMethCrook (STR_DragBegin +12)
+#define STR_DragMethCrookContortion (STR_DragBegin +13)
+#define STR_DragMethDistort (STR_DragBegin +14)
+#define STR_DragRectEckRad (STR_DragBegin +15)
+#define STR_DragPathObj (STR_DragBegin +16)
+#define STR_DragRectResize (STR_DragBegin +17)
+#define STR_DragCaptFram (STR_DragBegin +18)
+#define STR_DragCaptTail (STR_DragBegin +19)
+#define STR_DragCircAngle (STR_DragBegin +20)
+#define STR_DragEdgeTail (STR_DragBegin +21)
+#define STR_DragMethGradient (STR_DragBegin +22)
+#define STR_DragMethTransparence (STR_DragBegin +23)
+#define STR_DragEnd (STR_DragMethTransparence)
+
+#define STR_ViewBegin (STR_DragEnd+1)
+#define STR_ViewTextEdit (STR_ViewBegin + 0)
+#define STR_ViewMarked (STR_ViewBegin + 1)
+#define STR_ViewMarkedPoint (STR_ViewBegin + 2)
+#define STR_ViewMarkedPoints (STR_ViewBegin + 3)
+#define STR_ViewMarkedGluePoint (STR_ViewBegin + 4)
+#define STR_ViewMarkedGluePoints (STR_ViewBegin + 5)
+#define STR_ViewMarkObjs (STR_ViewBegin + 6)
+#define STR_ViewMarkMoreObjs (STR_ViewBegin + 7)
+#define STR_ViewMarkPoints (STR_ViewBegin + 8)
+#define STR_ViewMarkMorePoints (STR_ViewBegin + 9)
+#define STR_ViewMarkGluePoints (STR_ViewBegin +10)
+#define STR_ViewMarkMoreGluePoints (STR_ViewBegin +11)
+#define STR_ViewCreateObj (STR_ViewBegin +12)
+#define STR_ViewEnd (STR_ViewCreateObj)
+
+#define STR_UndoBegin (STR_ViewEnd+1)
+#define STR_UndoInsertObj (STR_UndoBegin + 0)
+#define STR_UndoCopyObj (STR_UndoBegin + 1)
+#define STR_UndoObjOrdNum (STR_UndoBegin + 2)
+#define STR_UndoObjSetText (STR_UndoBegin + 3)
+
+#define STR_UndoNewPage (STR_UndoBegin + 4)
+#define STR_UndoDelPage (STR_UndoBegin + 5)
+#define STR_UndoCopPage (STR_UndoBegin + 6)
+#define STR_UndoMovPage (STR_UndoBegin + 7)
+
+#define STR_UndoNewPageMasterDscr (STR_UndoBegin + 8)
+#define STR_UndoDelPageMasterDscr (STR_UndoBegin + 9)
+#define STR_UndoMovPageMasterDscr (STR_UndoBegin +10)
+#define STR_UndoChgPageMasterDscr (STR_UndoBegin +11)
+
+#define STR_UndoMergeModel (STR_UndoBegin +12)
+
+#define STR_UndoNewLayer (STR_UndoBegin +13)
+#define STR_UndoDelLayer (STR_UndoBegin +14)
+#define STR_UndoMovLayer (STR_UndoBegin +15)
+#define STR_UndoEnd (STR_UndoMovLayer)
+
+
+#define STR_LayerBegin (STR_UndoEnd+1)
+#define STR_StandardLayerName (STR_LayerBegin +0)
+#define STR_LayerEnd (STR_StandardLayerName)
+
+
+#define STR_ItemBegin (STR_LayerEnd+1)
+#define STR_ItemValBegin (STR_ItemBegin)
+#define STR_ItemValON (STR_ItemValBegin + 0)
+#define STR_ItemValOFF (STR_ItemValBegin + 1)
+#define STR_ItemValYES (STR_ItemValBegin + 2)
+#define STR_ItemValNO (STR_ItemValBegin + 3)
+#define STR_ItemValCAPTIONTYPE1 (STR_ItemValBegin + 4)
+#define STR_ItemValCAPTIONTYPE2 (STR_ItemValBegin + 5)
+#define STR_ItemValCAPTIONTYPE3 (STR_ItemValBegin + 6)
+#define STR_ItemValCAPTIONTYPE4 (STR_ItemValBegin + 7)
+#define STR_ItemValCAPTIONESCHORI (STR_ItemValBegin + 8)
+#define STR_ItemValCAPTIONESCVERT (STR_ItemValBegin + 9)
+#define STR_ItemValCAPTIONESCBESTFIT (STR_ItemValBegin + 10)
+#define STR_ItemValFITTOSIZENONE (STR_ItemValBegin + 11)
+#define STR_ItemValFITTOSIZEPROP (STR_ItemValBegin + 12)
+#define STR_ItemValFITTOSIZEALLLINES (STR_ItemValBegin + 13)
+#define STR_ItemValFITTOSIZERESIZEAT (STR_ItemValBegin + 14)
+#define STR_ItemValTEXTVADJTOP (STR_ItemValBegin + 15)
+#define STR_ItemValTEXTVADJCENTER (STR_ItemValBegin + 16)
+#define STR_ItemValTEXTVADJBOTTOM (STR_ItemValBegin + 17)
+#define STR_ItemValTEXTVADJBLOCK (STR_ItemValBegin + 18)
+#define STR_ItemValTEXTVADJSTRETCH (STR_ItemValBegin + 19)
+#define STR_ItemValTEXTHADJLEFT (STR_ItemValBegin + 20)
+#define STR_ItemValTEXTHADJCENTER (STR_ItemValBegin + 21)
+#define STR_ItemValTEXTHADJRIGHT (STR_ItemValBegin + 22)
+#define STR_ItemValTEXTHADJBLOCK (STR_ItemValBegin + 23)
+#define STR_ItemValTEXTHADJSTRETCH (STR_ItemValBegin + 24)
+#define STR_ItemValTEXTANI_NONE (STR_ItemValBegin + 25)
+#define STR_ItemValTEXTANI_BLINK (STR_ItemValBegin + 26)
+#define STR_ItemValTEXTANI_SCROLL (STR_ItemValBegin + 27)
+#define STR_ItemValTEXTANI_ALTERNATE (STR_ItemValBegin + 28)
+#define STR_ItemValTEXTANI_SLIDE (STR_ItemValBegin + 29)
+#define STR_ItemValTEXTANI_LEFT (STR_ItemValBegin + 30)
+#define STR_ItemValTEXTANI_RIGHT (STR_ItemValBegin + 31)
+#define STR_ItemValTEXTANI_UP (STR_ItemValBegin + 32)
+#define STR_ItemValTEXTANI_DOWN (STR_ItemValBegin + 33)
+#define STR_ItemValEDGE_ORTHOLINES (STR_ItemValBegin + 34)
+#define STR_ItemValEDGE_THREELINES (STR_ItemValBegin + 35)
+#define STR_ItemValEDGE_ONELINE (STR_ItemValBegin + 36)
+#define STR_ItemValEDGE_BEZIER (STR_ItemValBegin + 37)
+#define STR_ItemValMEASURE_STD (STR_ItemValBegin + 38)
+#define STR_ItemValMEASURE_RADIUS (STR_ItemValBegin + 39)
+#define STR_ItemValMEASURE_TEXTHAUTO (STR_ItemValBegin + 40)
+#define STR_ItemValMEASURE_TEXTLEFTOUTSIDE (STR_ItemValBegin + 41)
+#define STR_ItemValMEASURE_TEXTINSIDE (STR_ItemValBegin + 42)
+#define STR_ItemValMEASURE_TEXTRIGHTOUTSID (STR_ItemValBegin + 43)
+#define STR_ItemValMEASURE_TEXTVAUTO (STR_ItemValBegin + 44)
+#define STR_ItemValMEASURE_ABOVE (STR_ItemValBegin + 45)
+#define STR_ItemValMEASURETEXT_BREAKEDLINE (STR_ItemValBegin + 46)
+#define STR_ItemValMEASURE_BELOW (STR_ItemValBegin + 47)
+#define STR_ItemValMEASURETEXT_VERTICALCEN (STR_ItemValBegin + 48)
+#define STR_ItemValCIRC_FULL (STR_ItemValBegin + 49)
+#define STR_ItemValCIRC_SECT (STR_ItemValBegin + 50)
+#define STR_ItemValCIRC_CUT (STR_ItemValBegin + 51)
+#define STR_ItemValCIRC_ARC (STR_ItemValBegin + 52)
+#define STR_ItemValEnd (STR_ItemValCIRC_ARC)
+
+#define STR_ItemNamBegin (STR_ItemValEnd+1)
+#define STR_ItemNam_SHADOW (STR_ItemNamBegin + 0)
+#define STR_ItemNam_SHADOWCOLOR (STR_ItemNamBegin + 1)
+#define STR_ItemNam_SHADOWXDIST (STR_ItemNamBegin + 2)
+#define STR_ItemNam_SHADOWYDIST (STR_ItemNamBegin + 3)
+#define STR_ItemNam_SHADOWTRANSPARENCE (STR_ItemNamBegin + 4)
+#define STR_ItemNam_SHADOW3D (STR_ItemNamBegin + 5)
+#define STR_ItemNam_SHADOWPERSP (STR_ItemNamBegin + 6)
+#define STR_ItemNam_SHADOWRESERVE1 (STR_ItemNamBegin + 7)
+#define STR_ItemNam_SHADOWRESERVE2 (STR_ItemNamBegin + 8)
+#define STR_ItemNam_SHADOWRESERVE3 (STR_ItemNamBegin + 9)
+#define STR_ItemNam_SHADOWRESERVE4 (STR_ItemNamBegin + 10)
+#define STR_ItemNam_SHADOWRESERVE5 (STR_ItemNamBegin + 11)
+#define STR_ItemNamSET_SHADOW (STR_ItemNamBegin + 12)
+#define STR_ItemNam_CAPTIONTYPE (STR_ItemNamBegin + 13)
+#define STR_ItemNam_CAPTIONFIXEDANGLE (STR_ItemNamBegin + 14)
+#define STR_ItemNam_CAPTIONANGLE (STR_ItemNamBegin + 15)
+#define STR_ItemNam_CAPTIONGAP (STR_ItemNamBegin + 16)
+#define STR_ItemNam_CAPTIONESCDIR (STR_ItemNamBegin + 17)
+#define STR_ItemNam_CAPTIONESCISREL (STR_ItemNamBegin + 18)
+#define STR_ItemNam_CAPTIONESCREL (STR_ItemNamBegin + 19)
+#define STR_ItemNam_CAPTIONESCABS (STR_ItemNamBegin + 20)
+#define STR_ItemNam_CAPTIONLINELEN (STR_ItemNamBegin + 21)
+#define STR_ItemNam_CAPTIONFITLINELEN (STR_ItemNamBegin + 22)
+#define STR_ItemNam_CAPTIONRESERVE1 (STR_ItemNamBegin + 23)
+#define STR_ItemNam_CAPTIONRESERVE2 (STR_ItemNamBegin + 24)
+#define STR_ItemNam_CAPTIONRESERVE3 (STR_ItemNamBegin + 25)
+#define STR_ItemNam_CAPTIONRESERVE4 (STR_ItemNamBegin + 26)
+#define STR_ItemNam_CAPTIONRESERVE5 (STR_ItemNamBegin + 27)
+#define STR_ItemNamSET_CAPTION (STR_ItemNamBegin + 28)
+#define STR_ItemNamSET_OUTLINER (STR_ItemNamBegin + 29)
+
+#define STR_ItemNam_ECKENRADIUS (STR_ItemNamBegin + 30)
+#define STR_ItemNam_TEXT_LEFTDIST (STR_ItemNamBegin + 31)
+#define STR_ItemNam_TEXT_RIGHTDIST (STR_ItemNamBegin + 32)
+#define STR_ItemNam_TEXT_UPPERDIST (STR_ItemNamBegin + 33)
+#define STR_ItemNam_TEXT_LOWERDIST (STR_ItemNamBegin + 34)
+#define STR_ItemNam_TEXT_AUTOGROWHEIGHT (STR_ItemNamBegin + 35)
+#define STR_ItemNam_TEXT_MINFRAMEHEIGHT (STR_ItemNamBegin + 36)
+#define STR_ItemNam_TEXT_MAXFRAMEHEIGHT (STR_ItemNamBegin + 37)
+#define STR_ItemNam_TEXT_AUTOGROWWIDTH (STR_ItemNamBegin + 38)
+#define STR_ItemNam_TEXT_MINFRAMEWIDTH (STR_ItemNamBegin + 39)
+#define STR_ItemNam_TEXT_MAXFRAMEWIDTH (STR_ItemNamBegin + 40)
+#define STR_ItemNam_TEXT_VERTADJUST (STR_ItemNamBegin + 41)
+#define STR_ItemNam_TEXT_HORZADJUST (STR_ItemNamBegin + 42)
+#define STR_ItemNam_TEXT_FITTOSIZE (STR_ItemNamBegin + 43)
+#define STR_ItemNam_GRAFRED (STR_ItemNamBegin + 44)
+#define STR_ItemNam_GRAFGREEN (STR_ItemNamBegin + 45)
+#define STR_ItemNam_GRAFBLUE (STR_ItemNamBegin + 46)
+#define STR_ItemNam_GRAFLUMINANCE (STR_ItemNamBegin + 47)
+#define STR_ItemNam_GRAFCONTRAST (STR_ItemNamBegin + 48)
+#define STR_ItemNam_GRAFGAMMA (STR_ItemNamBegin + 49)
+#define STR_ItemNam_GRAFTRANSPARENCE (STR_ItemNamBegin + 50)
+#define STR_ItemNam_GRAFINVERT (STR_ItemNamBegin + 51)
+#define STR_ItemNam_GRAFMODE (STR_ItemNamBegin + 52)
+#define STR_ItemNam_GRAFRESERVE2 (STR_ItemNamBegin + 53)
+#define STR_ItemNam_GRAFRESERVE3 (STR_ItemNamBegin + 54)
+#define STR_ItemNam_GRAFRESERVE4 (STR_ItemNamBegin + 55)
+#define STR_ItemNam_GRAFRESERVE5 (STR_ItemNamBegin + 56)
+#define STR_ItemNam_GRAFRESERVE6 (STR_ItemNamBegin + 57)
+#define STR_ItemNam_RESERVE19 (STR_ItemNamBegin + 58)
+#define STR_ItemNamSET_MISC (STR_ItemNamBegin + 59)
+#define STR_ItemNam_OBJMOVEPROTECT (STR_ItemNamBegin + 60)
+#define STR_ItemNam_OBJSIZEPROTECT (STR_ItemNamBegin + 61)
+#define STR_ItemNam_OBJPRINTABLE (STR_ItemNamBegin + 62)
+#define STR_ItemNam_LAYERID (STR_ItemNamBegin + 63)
+#define STR_ItemNam_LAYERNAME (STR_ItemNamBegin + 64)
+#define STR_ItemNam_OBJECTNAME (STR_ItemNamBegin + 65)
+#define STR_ItemNam_STARTANGLE (STR_ItemNamBegin + 66)
+#define STR_ItemNam_ENDANGLE (STR_ItemNamBegin + 67)
+#define STR_ItemNam_POSITIONX (STR_ItemNamBegin + 68)
+#define STR_ItemNam_POSITIONY (STR_ItemNamBegin + 69)
+#define STR_ItemNam_SIZEWIDTH (STR_ItemNamBegin + 70)
+#define STR_ItemNam_SIZEHEIGHT (STR_ItemNamBegin + 71)
+#define STR_ItemNam_ROTATEANGLE (STR_ItemNamBegin + 72)
+#define STR_ItemNam_SHEARANGLE (STR_ItemNamBegin + 73)
+#define STR_ItemNamEnd (STR_ItemNam_SHEARANGLE)
+#define STR_ItemEnd STR_ItemNamEnd
+
+// 64 Resource-Id's reserviert fuer kompatible Erweiterungen
+#define STR_SvDraw_CacheReserve_Begin (STR_ItemEnd+1)
+#define STR_SvDraw_CacheReserve_End (STR_SvDraw_CacheReserve_Begin+63)
+#define SDR_StringCacheEnd (STR_SvDraw_CacheReserve_Begin-1)
+
+#define STR_ErrorBegin (STR_SvDraw_CacheReserve_End+1)
+#define STR_SvDraw_ErrorReserve_Begin (STR_ErrorBegin + 2)
+// hier ist Platz fuer 30 Eintraege
+#define STR_SvDraw_ErrorReserve_End (STR_SvDraw_ErrorReserve_Begin + 29)
+#define STR_ErrorEnd STR_SvDraw_ErrorReserve_End
+
+// 22-05-98: 2 Eintraege fuer die Bitmaps von der StrErrorReserve abgeknapst
+#define BMAP_Begin (STR_ErrorEnd+1)
+#define BMAP_GrafikEi (BMAP_Begin +0)
+#define BMAP_GrafikDe (BMAP_Begin +1)
+#define BMAP_End (BMAP_Begin +1)
+
+// Strings fuer den Vorlagen-Dialog
+#define SIP_Begin (BMAP_End)
+
+#define SIP_UNKNOWN_ATTR (SIP_Begin + 0)
+#define SIP_XA_LINESTYLE (SIP_Begin + 1)
+#define SIP_XA_LINEDASH (SIP_Begin + 2)
+#define SIP_XA_LINEWIDTH (SIP_Begin + 3)
+#define SIP_XA_LINECOLOR (SIP_Begin + 4)
+#define SIP_XA_LINESTART (SIP_Begin + 5)
+#define SIP_XA_LINEEND (SIP_Begin + 6)
+#define SIP_XA_LINESTARTWIDTH (SIP_Begin + 7)
+#define SIP_XA_LINEENDWIDTH (SIP_Begin + 8)
+#define SIP_XA_LINESTARTCENTER (SIP_Begin + 9)
+#define SIP_XA_LINEENDCENTER (SIP_Begin + 10)
+#define SIP_XA_LINETRANSPARENCE (SIP_Begin + 11)
+#define SIP_XA_LINEJOINT (SIP_Begin + 12)
+#define SIP_XA_LINERESERVED2 (SIP_Begin + 13)
+#define SIP_XA_LINERESERVED3 (SIP_Begin + 14)
+#define SIP_XA_LINERESERVED4 (SIP_Begin + 15)
+#define SIP_XA_LINERESERVED5 (SIP_Begin + 16)
+#define SIP_XA_LINERESERVED_LAST (SIP_Begin + 17)
+#define SIP_XATTRSET_LINE (SIP_Begin + 18)
+#define SIP_XA_FILLSTYLE (SIP_Begin + 19)
+#define SIP_XA_FILLCOLOR (SIP_Begin + 20)
+#define SIP_XA_FILLGRADIENT (SIP_Begin + 21)
+#define SIP_XA_FILLHATCH (SIP_Begin + 22)
+#define SIP_XA_FILLBITMAP (SIP_Begin + 23)
+#define SIP_XA_FILLTRANSPARENCE (SIP_Begin + 24)
+#define SIP_XA_GRADIENTSTEPCOUNT (SIP_Begin + 25)
+#define SIP_XA_FILLBMP_TILE (SIP_Begin + 26)
+#define SIP_XA_FILLBMP_POS (SIP_Begin + 27)
+#define SIP_XA_FILLBMP_SIZEX (SIP_Begin + 28)
+#define SIP_XA_FILLBMP_SIZEY (SIP_Begin + 29)
+#define SIP_XA_FILLFLOATTRANSPARENCE (SIP_Begin + 30)
+#define SIP_XA_FILLRESERVED2 (SIP_Begin + 31)
+#define SIP_XA_FILLBMP_SIZELOG (SIP_Begin + 32)
+#define SIP_XA_FILLBMP_TILEOFFSETX (SIP_Begin + 33)
+#define SIP_XA_FILLBMP_TILEOFFSETY (SIP_Begin + 34)
+#define SIP_XA_FILLBMP_STRETCH (SIP_Begin + 35)
+#define SIP_XA_FILLRESERVED3 (SIP_Begin + 36)
+#define SIP_XA_FILLRESERVED4 (SIP_Begin + 37)
+#define SIP_XA_FILLRESERVED5 (SIP_Begin + 38)
+#define SIP_XA_FILLRESERVED6 (SIP_Begin + 39)
+#define SIP_XA_FILLRESERVED7 (SIP_Begin + 40)
+#define SIP_XA_FILLRESERVED8 (SIP_Begin + 41)
+#define SIP_XA_FILLBMP_POSOFFSETX (SIP_Begin + 42)
+#define SIP_XA_FILLBMP_POSOFFSETY (SIP_Begin + 43)
+#define SIP_XA_FILLBACKGROUND (SIP_Begin + 44)
+#define SIP_XA_FILLRESERVED10 (SIP_Begin + 45)
+#define SIP_XA_FILLRESERVED11 (SIP_Begin + 46)
+#define SIP_XA_FILLRESERVED_LAST (SIP_Begin + 47)
+#define SIP_XATTRSET_FILL (SIP_Begin + 48)
+#define SIP_XA_FORMTXTSTYLE (SIP_Begin + 49)
+#define SIP_XA_FORMTXTADJUST (SIP_Begin + 50)
+#define SIP_XA_FORMTXTDISTANCE (SIP_Begin + 51)
+#define SIP_XA_FORMTXTSTART (SIP_Begin + 52)
+#define SIP_XA_FORMTXTMIRROR (SIP_Begin + 53)
+#define SIP_XA_FORMTXTOUTLINE (SIP_Begin + 54)
+#define SIP_XA_FORMTXTSHADOW (SIP_Begin + 55)
+#define SIP_XA_FORMTXTSHDWCOLOR (SIP_Begin + 56)
+#define SIP_XA_FORMTXTSHDWXVAL (SIP_Begin + 57)
+#define SIP_XA_FORMTXTSHDWYVAL (SIP_Begin + 58)
+#define SIP_XA_FORMTXTSTDFORM (SIP_Begin + 59)
+#define SIP_XA_FORMTXTHIDEFORM (SIP_Begin + 60)
+#define SIP_XA_FORMTXTSHDWTRANSP (SIP_Begin + 61)
+#define SIP_XA_FTRESERVED2 (SIP_Begin + 62)
+#define SIP_XA_FTRESERVED3 (SIP_Begin + 63)
+#define SIP_XA_FTRESERVED4 (SIP_Begin + 64)
+#define SIP_XA_FTRESERVED5 (SIP_Begin + 65)
+#define SIP_XA_FTRESERVED_LAST (SIP_Begin + 66)
+#define SIP_XATTRSET_TEXT (SIP_Begin + 67)
+#define SIP_SA_SHADOW (SIP_Begin + 68)
+#define SIP_SA_SHADOWCOLOR (SIP_Begin + 69)
+#define SIP_SA_SHADOWXDIST (SIP_Begin + 70)
+#define SIP_SA_SHADOWYDIST (SIP_Begin + 71)
+#define SIP_SA_SHADOWTRANSPARENCE (SIP_Begin + 72)
+#define SIP_SA_SHADOW3D (SIP_Begin + 73)
+#define SIP_SA_SHADOWPERSP (SIP_Begin + 74)
+#define SIP_SA_SHADOWRESERVE1 (SIP_Begin + 75)
+#define SIP_SA_SHADOWRESERVE2 (SIP_Begin + 76)
+#define SIP_SA_SHADOWRESERVE3 (SIP_Begin + 77)
+#define SIP_SA_SHADOWRESERVE4 (SIP_Begin + 78)
+#define SIP_SA_SHADOWRESERVE5 (SIP_Begin + 79)
+#define SIP_SDRATTRSET_SHADOW (SIP_Begin + 80)
+#define SIP_SA_CAPTIONTYPE (SIP_Begin + 81)
+#define SIP_SA_CAPTIONFIXEDANGLE (SIP_Begin + 82)
+#define SIP_SA_CAPTIONANGLE (SIP_Begin + 83)
+#define SIP_SA_CAPTIONGAP (SIP_Begin + 84)
+#define SIP_SA_CAPTIONESCDIR (SIP_Begin + 85)
+#define SIP_SA_CAPTIONESCISREL (SIP_Begin + 86)
+#define SIP_SA_CAPTIONESCREL (SIP_Begin + 87)
+#define SIP_SA_CAPTIONESCABS (SIP_Begin + 88)
+#define SIP_SA_CAPTIONLINELEN (SIP_Begin + 89)
+#define SIP_SA_CAPTIONFITLINELEN (SIP_Begin + 90)
+#define SIP_SA_CAPTIONRESERVE1 (SIP_Begin + 91)
+#define SIP_SA_CAPTIONRESERVE2 (SIP_Begin + 92)
+#define SIP_SA_CAPTIONRESERVE3 (SIP_Begin + 93)
+#define SIP_SA_CAPTIONRESERVE4 (SIP_Begin + 94)
+#define SIP_SA_CAPTIONRESERVE5 (SIP_Begin + 95)
+#define SIP_SDRATTRSET_CAPTION (SIP_Begin + 96)
+#define SIP_SDRATTRSET_OUTLINER (SIP_Begin + 97)
+#define SIP_SA_ECKENRADIUS (SIP_Begin + 98)
+#define SIP_SA_TEXT_MINFRAMEHEIGHT (SIP_Begin + 99)
+#define SIP_SA_TEXT_AUTOGROWHEIGHT (SIP_Begin + 100)
+#define SIP_SA_TEXT_FITTOSIZE (SIP_Begin + 101)
+#define SIP_SA_TEXT_LEFTDIST (SIP_Begin + 102)
+#define SIP_SA_TEXT_RIGHTDIST (SIP_Begin + 103)
+#define SIP_SA_TEXT_UPPERDIST (SIP_Begin + 104)
+#define SIP_SA_TEXT_LOWERDIST (SIP_Begin + 105)
+#define SIP_SA_TEXT_VERTADJUST (SIP_Begin + 106)
+#define SIP_SA_TEXT_MAXFRAMEHEIGHT (SIP_Begin + 107)
+#define SIP_SA_TEXT_MINFRAMEWIDTH (SIP_Begin + 108)
+#define SIP_SA_TEXT_MAXFRAMEWIDTH (SIP_Begin + 109)
+#define SIP_SA_TEXT_AUTOGROWWIDTH (SIP_Begin + 110)
+#define SIP_SA_TEXT_HORZADJUST (SIP_Begin + 111)
+#define SIP_SA_TEXT_ANIKIND (SIP_Begin + 112)
+#define SIP_SA_TEXT_ANIDIRECTION (SIP_Begin + 113)
+#define SIP_SA_TEXT_ANISTARTINSIDE (SIP_Begin + 114)
+#define SIP_SA_TEXT_ANISTOPINSIDE (SIP_Begin + 115)
+#define SIP_SA_TEXT_ANICOUNT (SIP_Begin + 116)
+#define SIP_SA_TEXT_ANIDELAY (SIP_Begin + 117)
+#define SIP_SA_TEXT_ANIAMOUNT (SIP_Begin + 118)
+#define SIP_SA_TEXT_CONTOURFRAME (SIP_Begin + 119)
+#define SIP_SA_AUTOSHAPE_ADJUSTMENT (SIP_Begin + 120)
+#define SIP_SA_RESERVE14 (SIP_Begin + 121)
+#define SIP_SA_RESERVE15 (SIP_Begin + 122)
+#define SIP_SA_RESERVE16 (SIP_Begin + 123)
+#define SIP_SA_RESERVE17 (SIP_Begin + 124)
+#define SIP_SA_RESERVE18 (SIP_Begin + 125)
+#define SIP_SA_RESERVE19 (SIP_Begin + 126)
+#define SIP_SDRATTRSET_MISC (SIP_Begin + 127)
+#define SIP_SA_EDGEKIND (SIP_Begin + 128)
+#define SIP_SA_EDGENODE1HORZDIST (SIP_Begin + 129)
+#define SIP_SA_EDGENODE1VERTDIST (SIP_Begin + 130)
+#define SIP_SA_EDGENODE2HORZDIST (SIP_Begin + 131)
+#define SIP_SA_EDGENODE2VERTDIST (SIP_Begin + 132)
+#define SIP_SA_EDGENODE1GLUEDIST (SIP_Begin + 133)
+#define SIP_SA_EDGENODE2GLUEDIST (SIP_Begin + 134)
+#define SIP_SA_EDGELINEDELTAANZ (SIP_Begin + 135)
+#define SIP_SA_EDGELINE1DELTA (SIP_Begin + 136)
+#define SIP_SA_EDGELINE2DELTA (SIP_Begin + 137)
+#define SIP_SA_EDGELINE3DELTA (SIP_Begin + 138)
+#define SIP_SA_EDGERESERVE02 (SIP_Begin + 139)
+#define SIP_SA_EDGERESERVE03 (SIP_Begin + 140)
+#define SIP_SA_EDGERESERVE04 (SIP_Begin + 141)
+#define SIP_SA_EDGERESERVE05 (SIP_Begin + 142)
+#define SIP_SA_EDGERESERVE06 (SIP_Begin + 143)
+#define SIP_SA_EDGERESERVE07 (SIP_Begin + 144)
+#define SIP_SA_EDGERESERVE08 (SIP_Begin + 145)
+#define SIP_SA_EDGERESERVE09 (SIP_Begin + 146)
+#define SIP_SDRATTRSET_EDGE (SIP_Begin + 147)
+#define SIP_SA_MEASUREKIND (SIP_Begin + 148)
+#define SIP_SA_MEASURETEXTHPOS (SIP_Begin + 149)
+#define SIP_SA_MEASURETEXTVPOS (SIP_Begin + 150)
+#define SIP_SA_MEASURELINEDIST (SIP_Begin + 151)
+#define SIP_SA_MEASUREHELPLINEOVERHANG (SIP_Begin + 152)
+#define SIP_SA_MEASUREHELPLINEDIST (SIP_Begin + 153)
+#define SIP_SA_MEASUREHELPLINE1LEN (SIP_Begin + 154)
+#define SIP_SA_MEASUREHELPLINE2LEN (SIP_Begin + 155)
+#define SIP_SA_MEASUREBELOWREFEDGE (SIP_Begin + 156)
+#define SIP_SA_MEASURETEXTROTA90 (SIP_Begin + 157)
+#define SIP_SA_MEASURETEXTUPSIDEDOWN (SIP_Begin + 158)
+#define SIP_SA_MEASUREOVERHANG (SIP_Begin + 159)
+#define SIP_SA_MEASUREUNIT (SIP_Begin + 160)
+#define SIP_SA_MEASURESCALE (SIP_Begin + 161)
+#define SIP_SA_MEASURESHOWUNIT (SIP_Begin + 162)
+#define SIP_SA_MEASUREFORMATSTRING (SIP_Begin + 163)
+#define SIP_SA_MEASURETEXTAUTOANGLE (SIP_Begin + 164)
+#define SIP_SA_MEASURETEXTAUTOANGLEVIEW (SIP_Begin + 165)
+#define SIP_SA_MEASURETEXTISFIXEDANGLE (SIP_Begin + 166)
+#define SIP_SA_MEASURETEXTFIXEDANGLE (SIP_Begin + 167)
+#define SIP_SA_MEASURERESERVE04 (SIP_Begin + 168)
+#define SIP_SA_MEASURERESERVE05 (SIP_Begin + 169)
+#define SIP_SA_MEASURERESERVE06 (SIP_Begin + 170)
+#define SIP_SA_MEASURERESERVE07 (SIP_Begin + 171)
+#define SIP_SDRATTRSET_MEASURE (SIP_Begin + 172)
+#define SIP_SA_CIRCKIND (SIP_Begin + 173)
+#define SIP_SA_CIRCSTARTANGLE (SIP_Begin + 174)
+#define SIP_SA_CIRCENDANGLE (SIP_Begin + 175)
+#define SIP_SA_CIRCRESERVE0 (SIP_Begin + 176)
+#define SIP_SA_CIRCRESERVE1 (SIP_Begin + 177)
+#define SIP_SA_CIRCRESERVE2 (SIP_Begin + 178)
+#define SIP_SA_CIRCRESERVE3 (SIP_Begin + 179)
+#define SIP_SDRATTRSET_CIRC (SIP_Begin + 180)
+#define SIP_SA_OBJMOVEPROTECT (SIP_Begin + 181)
+#define SIP_SA_OBJSIZEPROTECT (SIP_Begin + 182)
+#define SIP_SA_OBJPRINTABLE (SIP_Begin + 183)
+#define SIP_SA_LAYERID (SIP_Begin + 184)
+#define SIP_SA_LAYERNAME (SIP_Begin + 185)
+#define SIP_SA_OBJECTNAME (SIP_Begin + 186)
+#define SIP_SA_ALLPOSITIONX (SIP_Begin + 187)
+#define SIP_SA_ALLPOSITIONY (SIP_Begin + 188)
+#define SIP_SA_ALLSIZEWIDTH (SIP_Begin + 189)
+#define SIP_SA_ALLSIZEHEIGHT (SIP_Begin + 190)
+#define SIP_SA_ONEPOSITIONX (SIP_Begin + 191)
+#define SIP_SA_ONEPOSITIONY (SIP_Begin + 192)
+#define SIP_SA_ONESIZEWIDTH (SIP_Begin + 193)
+#define SIP_SA_ONESIZEHEIGHT (SIP_Begin + 194)
+#define SIP_SA_LOGICSIZEWIDTH (SIP_Begin + 195)
+#define SIP_SA_LOGICSIZEHEIGHT (SIP_Begin + 196)
+#define SIP_SA_ROTATEANGLE (SIP_Begin + 197)
+#define SIP_SA_SHEARANGLE (SIP_Begin + 198)
+#define SIP_SA_MOVEX (SIP_Begin + 199)
+#define SIP_SA_MOVEY (SIP_Begin + 200)
+#define SIP_SA_RESIZEXONE (SIP_Begin + 201)
+#define SIP_SA_RESIZEYONE (SIP_Begin + 202)
+#define SIP_SA_ROTATEONE (SIP_Begin + 203)
+#define SIP_SA_HORZSHEARONE (SIP_Begin + 204)
+#define SIP_SA_VERTSHEARONE (SIP_Begin + 205)
+#define SIP_SA_RESIZEXALL (SIP_Begin + 206)
+#define SIP_SA_RESIZEYALL (SIP_Begin + 207)
+#define SIP_SA_ROTATEALL (SIP_Begin + 208)
+#define SIP_SA_HORZSHEARALL (SIP_Begin + 209)
+#define SIP_SA_VERTSHEARALL (SIP_Begin + 210)
+#define SIP_SA_TRANSFORMREF1X (SIP_Begin + 211)
+#define SIP_SA_TRANSFORMREF1Y (SIP_Begin + 212)
+#define SIP_SA_TRANSFORMREF2X (SIP_Begin + 213)
+#define SIP_SA_TRANSFORMREF2Y (SIP_Begin + 214)
+#define SIP_EE_PARA_HYPHENATE (SIP_Begin + 215)
+#define SIP_EE_PARA_BULLETSTATE (SIP_Begin + 216)
+#define SIP_EE_PARA_OUTLLRSPACE (SIP_Begin + 217)
+#define SIP_EE_PARA_OUTLLEVEL (SIP_Begin + 218)
+#define SIP_EE_PARA_BULLET (SIP_Begin + 219)
+#define SIP_EE_PARA_LRSPACE (SIP_Begin + 220)
+#define SIP_EE_PARA_ULSPACE (SIP_Begin + 221)
+#define SIP_EE_PARA_SBL (SIP_Begin + 222)
+#define SIP_EE_PARA_JUST (SIP_Begin + 223)
+#define SIP_EE_PARA_TABS (SIP_Begin + 224)
+#define SIP_EE_CHAR_COLOR (SIP_Begin + 225)
+#define SIP_EE_CHAR_FONTINFO (SIP_Begin + 226)
+#define SIP_EE_CHAR_FONTHEIGHT (SIP_Begin + 227)
+#define SIP_EE_CHAR_FONTWIDTH (SIP_Begin + 228)
+#define SIP_EE_CHAR_WEIGHT (SIP_Begin + 229)
+#define SIP_EE_CHAR_UNDERLINE (SIP_Begin + 230)
+#define SIP_EE_CHAR_STRIKEOUT (SIP_Begin + 231)
+#define SIP_EE_CHAR_ITALIC (SIP_Begin + 232)
+#define SIP_EE_CHAR_OUTLINE (SIP_Begin + 233)
+#define SIP_EE_CHAR_SHADOW (SIP_Begin + 234)
+#define SIP_EE_CHAR_ESCAPEMENT (SIP_Begin + 235)
+#define SIP_EE_CHAR_PAIRKERNING (SIP_Begin + 236)
+#define SIP_EE_CHAR_KERNING (SIP_Begin + 237)
+#define SIP_EE_CHAR_WLM (SIP_Begin + 238)
+#define SIP_EE_FEATURE_TAB (SIP_Begin + 239)
+#define SIP_EE_FEATURE_LINEBR (SIP_Begin + 240)
+#define SIP_EE_FEATURE_NOTCONV (SIP_Begin + 241)
+#define SIP_EE_FEATURE_FIELD (SIP_Begin + 242)
+
+#define SIP_SA_GRAFRED (SIP_Begin + 243)
+#define SIP_SA_GRAFGREEN (SIP_Begin + 244)
+#define SIP_SA_GRAFBLUE (SIP_Begin + 245)
+#define SIP_SA_GRAFLUMINANCE (SIP_Begin + 246)
+#define SIP_SA_GRAFCONTRAST (SIP_Begin + 247)
+#define SIP_SA_GRAFGAMMA (SIP_Begin + 248)
+#define SIP_SA_GRAFTRANSPARENCE (SIP_Begin + 249)
+#define SIP_SA_GRAFINVERT (SIP_Begin + 250)
+#define SIP_SA_GRAFMODE (SIP_Begin + 251)
+#define SIP_SA_GRAFRESERVE2 (SIP_Begin + 252)
+#define SIP_SA_GRAFRESERVE3 (SIP_Begin + 253)
+#define SIP_SA_GRAFRESERVE4 (SIP_Begin + 254)
+#define SIP_SA_GRAFRESERVE5 (SIP_Begin + 255)
+#define SIP_SA_GRAFRESERVE6 (SIP_Begin + 256)
+#define SIP_SDRATTRSET_GRAF (SIP_Begin + 257)
+
+#define SIP_SA_MARKERS (SIP_Begin + 258)
+#define SIP_SA_FINE_MARKERS (SIP_Begin + 259)
+
+#define SIP_End (SIP_SA_FINE_MARKERS)
+
+#define SDR_ResourceEnd (SIP_End)
+
+////////////////////////////////////////////////////////////////////////////////////////////////////
+
+
+
diff --git a/svx/inc/svdtouch.hxx b/svx/inc/svdtouch.hxx
new file mode 100644
index 000000000000..3c26ee5807bd
--- /dev/null
+++ b/svx/inc/svdtouch.hxx
@@ -0,0 +1,98 @@
+/*************************************************************************
+ *
+ * $RCSfile: svdtouch.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:01:01 $
+ *
+ * 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 _SVDTOUCH_HXX
+#define _SVDTOUCH_HXX
+
+#ifndef _SOLAR_H
+#include <tools/solar.h>
+#endif
+
+////////////////////////////////////////////////////////////////////////////////////////////////////
+
+class Point;
+class Polygon;
+class PolyPolygon;
+class XPolygon;
+class XPolyPolygon;
+class Rectangle;
+class OutputDevice;
+
+FASTBOOL IsPointInsidePoly(const Polygon& rPoly, const Point& rHit);
+FASTBOOL IsPointInsidePoly(const PolyPolygon& rPoly, const Point& rHit);
+FASTBOOL IsPointInsidePoly(const XPolygon& rPoly, const Point& rHit, OutputDevice* pOut=NULL);
+FASTBOOL IsPointInsidePoly(const XPolyPolygon& rPoly, const Point& rHit, OutputDevice* pOut=NULL);
+
+FASTBOOL IsRectTouchesPoly(const Polygon& rPoly, const Rectangle& rHit);
+FASTBOOL IsRectTouchesPoly(const PolyPolygon& rPoly, const Rectangle& rHit);
+FASTBOOL IsRectTouchesPoly(const XPolygon& rPoly, const Rectangle& rHit, OutputDevice* pOut=NULL);
+FASTBOOL IsRectTouchesPoly(const XPolyPolygon& rPoly, const Rectangle& rHit, OutputDevice* pOut=NULL);
+
+FASTBOOL IsRectTouchesLine(const Point& rPt1, const Point& rPt2, const Rectangle& rHit);
+FASTBOOL IsRectTouchesLine(const Polygon& rLine, const Rectangle& rHit);
+FASTBOOL IsRectTouchesLine(const PolyPolygon& rLine, const Rectangle& rHit);
+FASTBOOL IsRectTouchesLine(const XPolygon& rLine, const Rectangle& rHit, OutputDevice* pOut=NULL);
+FASTBOOL IsRectTouchesLine(const XPolyPolygon& rLine, const Rectangle& rHit, OutputDevice* pOut=NULL);
+
+////////////////////////////////////////////////////////////////////////////////////////////////////
+
+#endif //_SVDTOUCH_HXX
+
diff --git a/svx/inc/svdviter.hxx b/svx/inc/svdviter.hxx
new file mode 100644
index 000000000000..b5efda013293
--- /dev/null
+++ b/svx/inc/svdviter.hxx
@@ -0,0 +1,150 @@
+/*************************************************************************
+ *
+ * $RCSfile: svdviter.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:01:01 $
+ *
+ * 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 _SVDVITER_HXX
+#define _SVDVITER_HXX
+
+#ifndef _SOLAR_H
+#include <tools/solar.h>
+#endif
+
+////////////////////////////////////////////////////////////////////////////////////////////////////
+
+class OutputDevice;
+class Window;
+class SdrView;
+class SdrPageView;
+class SdrModel;
+class SdrPage;
+class SdrObject;
+class SetOfByte;
+
+////////////////////////////////////////////////////////////////////////////////////////////////////
+
+class SdrViewIter {
+ const SdrModel* pModel;
+ const SdrPage* pPage;
+ const SdrObject* pObject;
+ SdrView* pAktView;
+ FASTBOOL bNoMasterPage;
+ USHORT nListenerNum;
+ USHORT nPageViewNum;
+ USHORT nOutDevNum;
+private:
+ void ImpInitVars();
+ SdrView* ImpFindView();
+ SdrPageView* ImpFindPageView();
+ OutputDevice* ImpFindOutDev();
+ Window* ImpFindWindow();
+ FASTBOOL ImpCheckPageView(SdrPageView* pPV) const;
+public:
+ SdrViewIter(const SdrModel* pModel);
+ SdrViewIter(const SdrPage* pPage, FASTBOOL bNoMasterPage=FALSE);
+ SdrViewIter(const SdrObject* pObject, FASTBOOL bNoMasterPage=FALSE);
+ SdrView* FirstView();
+ SdrView* NextView();
+ SdrPageView* FirstPageView();
+ SdrPageView* NextPageView();
+ OutputDevice* FirstOutDev();
+ OutputDevice* NextOutDev();
+ Window* FirstWindow();
+ Window* NextWindow();
+};
+
+////////////////////////////////////////////////////////////////////////////////////////////////////
+
+#ifdef _JUST_DESCRIPTION
+
+Mit dieser Klasse kann man rausbekommen:
+- SdrView* First/NextView()
+ - Alle Views in denen ein Models dargestellt wird
+ - Alle Views in denen eine bestimme Page sichtbar ist (ww. auch als MasterPage)
+ - Alle Views in denen ein bestimmes Objekt sichtbar ist (ww. auch auf MasterPage)
+- SdrPageView* First/NextPageView()
+ - Alle PageViews in denen ein Models dargestellt wird
+ - Alle PageViews in denen eine bestimme Page sichtbar ist (ww. auch als MasterPage)
+ - Alle PageViews in denen ein bestimmes Objekt sichtbar ist (ww. auch auf MasterPage)
+- OutputDevice* First/NextOutDev()
+ - Alle OutputDevices in denen ein Models dargestellt wird
+ - Alle OutputDevices in denen eine bestimme Page sichtbar ist (ww. auch als MasterPage)
+ - Alle OutputDevices in denen ein bestimmes Objekt sichtbar ist (ww. auch auf MasterPage)
+- Window* First/NextWindow()
+ - Alle Windows in denen ein Models dargestellt wird
+ - Alle Windows in denen eine bestimme Page sichtbar ist (auch als MasterPage)
+ - Alle Windows in denen ein bestimmes Objekt sichtbar ist (auch auf MasterPage)
+Ob die Auswahl auf ein(e) bestimmte(s) Page/Objekt beschraenkt wird, bestimmt man
+durch die Wahl des Konstruktors.
+
+Es werden u.a. auch berueksichtigt:
+- Layer Sichtbarkeitsstatus
+- Visible Layer von MasterPages
+- Mehrfachlayer bei Gruppenobjekten
+
+Es wird nicht berueksichtigt:
+- Ob die Pages/Objekte wirklich schon gepaintet wurden oder noch ein Invalidate ansteht, ...
+- Ob die Pages/Objekte in einem Window im sichtbaren Bereich liegen
+
+#endif // _JUST_DESCRIPTION
+
+////////////////////////////////////////////////////////////////////////////////////////////////////
+
+#endif //_SVDVITER_HXX
+
diff --git a/svx/inc/svimbase.hxx b/svx/inc/svimbase.hxx
new file mode 100644
index 000000000000..d13dbfbc5172
--- /dev/null
+++ b/svx/inc/svimbase.hxx
@@ -0,0 +1,556 @@
+/*************************************************************************
+ *
+ * $RCSfile: svimbase.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:01:01 $
+ *
+ * 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 _SVIMBASE_HXX
+#define _SVIMBASE_HXX
+
+#ifdef VCL
+
+#ifndef _SV_BITMAP_HXX //autogen
+#include <vcl/bitmap.hxx>
+#endif
+#ifndef _SV_SALBTYPE_HXX //autogen
+#include <vcl/salbtype.hxx>
+#endif
+
+
+// -----------
+// - Defines -
+// -----------
+
+#ifdef WIN
+#define _SVHUGE huge
+#else
+#define _SVHUGE
+#endif
+
+// ----------------
+// - SimDepthType -
+// ----------------
+
+enum SimDepthType
+{
+ SIM_DEPTH_1,
+ SIM_DEPTH_4,
+ SIM_DEPTH_8,
+ SIM_DEPTH_24
+};
+
+// ------------
+// - SimColor -
+// ------------
+
+struct SimColor
+{
+ BYTE cBlue;
+ BYTE cGreen;
+ BYTE cRed;
+};
+
+// ------------------------------------------------------------------------
+
+inline BOOL operator==( const SimColor& rCol1, const SimColor& rCol2 )
+{
+ return ( ( rCol1.cRed == rCol2.cRed ) &&
+ ( rCol1.cGreen == rCol2.cGreen ) &&
+ ( rCol1.cBlue == rCol2.cBlue ) );
+}
+
+// --------------
+// - SimPalette -
+// --------------
+
+struct SimPalette
+{
+ ULONG nColors;
+ SimColor aColorArray[ 256 ];
+};
+
+// ---------------
+// - SvImageBase -
+// ---------------
+
+class SfxViewFrame;
+class SfxProgress;
+
+class SvImageBase
+{
+private:
+
+ Bitmap aOutBitmap;
+ HPBYTE pArray1;
+ HPBYTE pArray2;
+ HPBYTE pArray3;
+ HPBYTE pArray4;
+ HPBYTE pOrgArray;
+ HPBYTE pDestArray;
+ SimPalette* pPal1;
+ SimPalette* pPal2;
+ SimPalette* pPal3;
+ SimPalette* pPal4;
+ ULONG nWidth1;
+ ULONG nWidth2;
+ ULONG nWidth3;
+ ULONG nWidth4;
+ ULONG nHeight1;
+ ULONG nHeight2;
+ ULONG nHeight3;
+ ULONG nHeight4;
+ ULONG nAlignedWidth1;
+ ULONG nAlignedWidth2;
+ ULONG nAlignedWidth3;
+ ULONG nAlignedWidth4;
+ ULONG nWhichOrg;
+ SimDepthType eOrgDepth;
+ SimDepthType eUndoDepth;
+ SimDepthType eRedoDepth;
+ BOOL bIsUndo;
+ BOOL bIsRedo;
+ BOOL bCreateUndo;
+ BOOL bValid;
+ BOOL bDitherAll;
+
+ HPBYTE BitmapToArray24( const Bitmap& rBitmap, ULONG* pWidth,
+ ULONG* pHeight, ULONG* pAlignedWidth,
+ SfxViewFrame *pFrame = NULL );
+ BOOL Array24ToBitmap( HPBYTE pArray, Bitmap &rBitmap,
+ const ULONG nWidth, const ULONG nHeight,
+ const ULONG nColorCount = 256,
+ ULONG nLast = 0, SfxProgress* pProgress = NULL );
+
+ Bitmap CreateSaveBitmap( const SimDepthType eDepth, SfxViewFrame *pFrame = NULL );
+
+ HPBYTE CreateArray24( ULONG nWidth, ULONG nHeight );
+ void DeleteArray( HPBYTE pArray );
+
+ SvImageBase(const SvImageBase& rSvImageBase);
+ const SvImageBase& operator=(const SvImageBase& rSvImageBase);
+
+public:
+
+ SvImageBase();
+ SvImageBase( const Bitmap& rBitmap,
+ const ULONG nColorCount = 256,
+ ULONG nLast = 0, SfxProgress* pProgress = NULL );
+ ~SvImageBase();
+
+ BOOL IsValid() { return bValid; }
+
+ ULONG GetOrgWidth() const { return nWhichOrg == 1 ? nWidth1 : nWidth2; }
+ ULONG GetDestWidth() const { return nWhichOrg == 1 ? nWidth2 : nWidth1; }
+
+ ULONG GetOrgHeight() const { return nWhichOrg == 1 ? nHeight1 : nHeight2; }
+ ULONG GetDestHeight() const { return nWhichOrg == 1 ? nHeight2 : nHeight1; }
+
+ ULONG GetOrgAlignedWidth() const { return nWhichOrg == 1 ? nAlignedWidth1 : nAlignedWidth2; }
+ ULONG GetDestAlignedWidth() const { return nWhichOrg == 1 ? nAlignedWidth2 : nAlignedWidth1; }
+
+ ULONG GetOrgAlignedSize() const { return GetOrgAlignedWidth() * GetOrgHeight(); }
+ ULONG GetDestAlignedSize() const { return GetDestAlignedWidth() * GetDestHeight(); }
+
+ // Farbtiefe des Ausgangsbildes ermitteln und setzen
+ SimDepthType GetDepth() const { return eOrgDepth; }
+ void SetDepth( const SimDepthType eDepth ) { eOrgDepth = eDepth; }
+
+ // Farbtiefen nach Undo und Redo ermitteln und setzen
+ SimDepthType GetUndoDepth() const { return eUndoDepth; }
+ void SetUndoDepth(const SimDepthType eDepth) { eUndoDepth = eDepth; }
+
+ SimDepthType GetRedoDepth() const { return eRedoDepth; }
+ void SetRedoDepth(const SimDepthType eDepth) { eRedoDepth = eDepth; }
+
+ // Vor- und Ruecklauf der Bildverarbeitung
+ BOOL BeginProcessing( BOOL bUndo = TRUE );
+ void EndProcessing();
+
+ BOOL BeginProcessingExt(ULONG nWidth, ULONG nHeight, BOOL bUndo = TRUE);
+ void EndProcessingExt() { EndProcessing(); }
+
+ // Zeiger auf Arrays zur Verfuegung stellen
+ HPBYTE GetOrgPointer() { return pOrgArray; }
+ HPBYTE GetDestPointer() { return pDestArray; }
+
+ // DIB-Erzeugung fuer Anzeige
+ BOOL CreateOutBitmap( const ULONG nColorCount = 256, ULONG nLast = 0,
+ SfxProgress* pProgress = NULL );
+
+ // Undo-Verwaltung
+ BOOL DoUndo( SfxProgress* pProgress = NULL );
+ BOOL DoRedo( SfxProgress* pProgress = NULL );
+
+ // DIB-Rueckgabe fuer Anzeige
+ const Bitmap& GetOutBitmap() const;
+
+ // DIB-Rueckgabe fuer Speicherung
+ Bitmap GetSaveBitmap();
+
+ // Palette besorgen
+ SimPalette* GetOrgPalette() const { return nWhichOrg == 1 ? pPal1 : pPal2; }
+ SimPalette* GetDestPalette() const { return nWhichOrg == 1 ? pPal2 : pPal1; }
+};
+
+// ----------------
+// - DitherBitmap -
+// ----------------
+
+BOOL DitherBitmap( Bitmap& rBitmap, BOOL bDitherAlways = FALSE );
+
+#else // VCL
+
+#ifndef _BITMAP_HXX //autogen
+#include <vcl/bitmap.hxx>
+#endif
+#ifndef _PAL_HXX
+#include <vcl/pal.hxx>
+#endif
+#ifndef _SVWIN_H
+#include <tools/svwin.h>
+#endif
+
+
+#undef GetPrinter
+#undef SetPrinter
+
+#ifndef _SVHUGE
+#ifdef WIN
+#define _SVHUGE huge
+#else
+#define _SVHUGE
+#endif // WIN
+#endif // _SVHUGE
+
+
+class SfxViewFrame;
+class SfxProgress;
+
+
+/******************************************************************************/
+
+
+enum SimDepthType
+{
+ SIM_DEPTH_1,
+ SIM_DEPTH_4,
+ SIM_DEPTH_8,
+ SIM_DEPTH_24
+};
+
+
+/******************************************************************************/
+
+
+struct SimColor
+{
+ BYTE cBlue;
+ BYTE cGreen;
+ BYTE cRed;
+};
+
+
+BOOL operator==( const SimColor& rCol1, const SimColor& rCol2 );
+
+
+/******************************************************************************/
+
+
+struct SimPalette
+{
+ ULONG nColors;
+ SimColor aColorArray[ 256 ];
+};
+
+
+/******************************************************************************/
+
+
+class SvImageBase
+{
+#if defined(WIN) || defined(WNT)
+
+ HGLOBAL hArray1;
+ HGLOBAL hArray2;
+ HGLOBAL hArray3;
+ HGLOBAL hArray4;
+
+
+protected:
+
+ HGLOBAL BitmapToArray24(const Bitmap& rBitmap, ULONG* pWidth,
+ ULONG* pHeight, ULONG* pAlignedWidth,
+ SfxViewFrame* pFrame = NULL);
+ BOOL Array24ToBitmap(HGLOBAL hArray, Bitmap &rBitmap,
+ const ULONG nWidth, const ULONG nHeight,
+ const ULONG nColorCount = 256,
+ ULONG nLast = 0,
+ SfxProgress* pProgress = NULL);
+
+ HGLOBAL CreateArray24(ULONG nWidth, ULONG nHeight);
+ void DeleteArray(HGLOBAL hArray);
+
+ // DIB-Funktionen, die noch nicht frei in SV zur Verfuegung stehen
+ HBITMAP DDBtoDIB(HBITMAP hBitmap, HPALETTE hPalette);
+ ULONG PaletteSize(void* p);
+
+ // RLE-Dekomprimierung
+ BOOL DecompressRLE4(BYTE _SVHUGE* pSrc, BYTE _SVHUGE* pDst,
+ ULONG nWidth, BITMAPINFO* pBMI);
+
+ BOOL DecompressRLE8(BYTE _SVHUGE* pSrc, BYTE _SVHUGE* pDst,
+ ULONG nWidth, BITMAPINFO* pBMI);
+
+#endif // WIN || WNT
+
+
+/******************************************************************************/
+
+
+#if defined(OS2) || defined(UNX) || defined(MAC)
+
+ BYTE _SVHUGE* pArray1;
+ BYTE _SVHUGE* pArray2;
+ BYTE _SVHUGE* pArray3;
+ BYTE _SVHUGE* pArray4;
+
+
+protected:
+
+ BYTE _SVHUGE* BitmapToArray24(const Bitmap& rBitmap, ULONG* pWidth,
+ ULONG* pHeight, ULONG* pAlignedWidth,
+ SfxViewFrame *pFrame = NULL);
+ BOOL Array24ToBitmap(BYTE _SVHUGE*, Bitmap &rBitmap,
+ const ULONG nWidth, const ULONG nHeight,
+ const ULONG nColorCount = 256,
+ ULONG nLast = 0,
+ SfxProgress* pProgress = NULL);
+
+
+ BYTE _SVHUGE* CreateArray24(ULONG nWidth, ULONG nHeight);
+ void DeleteArray(BYTE _SVHUGE* pArray);
+
+#if defined OS2
+
+ // RLE-Dekomprimierung
+ BOOL DecompressRLE4(BYTE* pSrc, BYTE* pDst,
+ ULONG nWidth, BmpPaletteEntryOS2* pPal);
+
+ BOOL DecompressRLE8(BYTE* pSrc, BYTE* pDst,
+ ULONG nWidth, BmpPaletteEntryOS2* pPal);
+
+#endif // OS2
+
+#endif // OS2 || UNX || MAC
+
+
+/******************************************************************************/
+
+
+private:
+ Palette aDithPal;
+
+ BYTE _SVHUGE* pOrgArray;
+ BYTE _SVHUGE* pDestArray;
+ BYTE _SVHUGE* pUndoArray;
+ BYTE _SVHUGE* pMergeArray;
+
+ Bitmap* pOutBitmap;
+
+ SimPalette* pPal1;
+ SimPalette* pPal2;
+ SimPalette* pPal3;
+ SimPalette* pPal4;
+
+ long nDummy1;
+ long nDummy2;
+ long nDummy3;
+ long nDummy4;
+
+ ULONG nWidth1;
+ ULONG nWidth2;
+ ULONG nWidth3;
+ ULONG nWidth4;
+
+ ULONG nHeight1;
+ ULONG nHeight2;
+ ULONG nHeight3;
+ ULONG nHeight4;
+
+ ULONG nAlignedWidth1;
+ ULONG nAlignedWidth2;
+ ULONG nAlignedWidth3;
+ ULONG nAlignedWidth4;
+
+ USHORT nWhichOrg;
+ BOOL bIsUndo;
+ BOOL bIsRedo;
+ BOOL bCreateUndo;
+
+ SimDepthType eOrgDepth;
+ SimDepthType eUndoDepth;
+ SimDepthType eRedoDepth;
+
+ BOOL bValid;
+
+ BOOL bDitherAll;
+
+
+ // !!! steht nicht zur Verfuegung !!!
+ SvImageBase(const SvImageBase& rSvImageBase);
+ const SvImageBase& operator=(const SvImageBase& rSvImageBase);
+
+
+public:
+
+ SvImageBase();
+ SvImageBase(const Bitmap& rBitmap, const ULONG nColorCount = 256, ULONG nLast = 0, SfxProgress* pProgress = NULL);
+ ~SvImageBase();
+
+ // alles korrekt erzeugt?
+ BOOL IsValid() { return bValid; }
+
+ // Allgemeine Informationsfunktionen (Bildgroesse etc.)
+ ULONG GetOrgWidth() const { return nWhichOrg == 1 ? nWidth1 : nWidth2; }
+ ULONG GetDestWidth() const { return nWhichOrg == 1 ? nWidth2 : nWidth1; }
+ ULONG GetUndoWidth() const { return nWidth3; }
+ ULONG GetMergeWidth() const { return nWidth4; }
+
+ ULONG GetOrgHeight() const { return nWhichOrg == 1 ? nHeight1 : nHeight2; }
+ ULONG GetDestHeight() const { return nWhichOrg == 1 ? nHeight2 : nHeight1; }
+ ULONG GetUndoHeight() const { return nHeight3; }
+ ULONG GetMergeHeight() const { return nHeight4; }
+
+ ULONG GetOrgAlignedWidth() const { return nWhichOrg == 1 ? nAlignedWidth1 : nAlignedWidth2; }
+ ULONG GetDestAlignedWidth() const { return nWhichOrg == 1 ? nAlignedWidth2 : nAlignedWidth1; }
+ ULONG GetUndoAlignedWidth() const { return nAlignedWidth3; }
+ ULONG GetMergeAlignedWidth() const { return nAlignedWidth4; }
+
+ ULONG GetOrgAlignedSize() const { return GetOrgAlignedWidth() * GetOrgHeight(); }
+ ULONG GetDestAlignedSize() const { return GetDestAlignedWidth() * GetDestHeight(); }
+ ULONG GetUndoAlignedSize() const { return GetUndoAlignedWidth() * GetUndoHeight(); }
+ ULONG GetMergeAlignedSize() const { return GetMergeAlignedWidth() * GetMergeHeight(); }
+
+ // Farbtiefe des Ausgangsbildes ermitteln und setzen
+ SimDepthType GetDepth() const { return eOrgDepth; }
+ void SetDepth(const SimDepthType eDepth) { eOrgDepth = eDepth; }
+
+ // Farbtiefen nach Undo und Redo ermitteln und setzen
+ SimDepthType GetUndoDepth() const { return eUndoDepth; }
+ SimDepthType GetRedoDepth() const { return eRedoDepth; }
+ void SetUndoDepth(const SimDepthType eDepth) { eUndoDepth = eDepth; }
+ void SetRedoDepth(const SimDepthType eDepth) { eRedoDepth = eDepth; }
+
+ // Vor- und Ruecklauf der Bildverarbeitung
+ BOOL BeginProcessing(BOOL bUndo = TRUE);
+ void EndProcessing();
+
+ BOOL BeginProcessingExt(ULONG nWidth, ULONG nHeight, BOOL bUndo = TRUE);
+ void EndProcessingExt();
+
+ BOOL BeginProcessingMerge(BOOL bUndo = TRUE);
+ void EndProcessingMerge();
+
+ // Zeiger auf Arrays zur Verfuegung stellen
+ BYTE _SVHUGE* GetOrgPointer() { return pOrgArray; }
+ BYTE _SVHUGE* GetDestPointer() { return pDestArray; }
+ BYTE _SVHUGE* GetUndoPointer() { return pUndoArray; }
+ BYTE _SVHUGE* GetMergePointer() { return pMergeArray; }
+
+ // Zeiger auf Ursprungs-Array zur Verfuegung stellen,
+ // wenn dieses nicht veraendert werden soll
+#if defined(WIN) || defined(WNT)
+ HGLOBAL GetOrgPointerUnchanged() { return (nWhichOrg == 1 ? hArray1 : hArray2); }
+#endif // WIN || WNT
+
+#if defined(OS2) || defined(UNX) || defined(MAC)
+ BYTE _SVHUGE* GetOrgPointerUnchanged() { return (nWhichOrg == 1 ? pArray1 : pArray2); }
+#endif // OS2 || UNX || MAC
+
+ // Setzen des Ausgangs-DIB's
+ void SetOrgBitmap(const Bitmap& rBitmap) { pOutBitmap = new Bitmap(rBitmap); }
+
+ // DIB-Erzeugung fuer Anzeige
+ BOOL CreateOutBitmap(const ULONG nColorCount = 256, ULONG nLast = 0, SfxProgress* pProgress = NULL );
+
+ // DIB-Erzeugung fuer Speicherung
+ Bitmap CreateSaveBitmap(const SimDepthType eDepth, SfxViewFrame *pFrame = NULL );
+
+ // Undo-Verwaltung
+ BOOL DoUndo( SfxProgress* pProgress = NULL );
+ BOOL DoRedo( SfxProgress* pProgress = NULL );
+
+ // DIB-Rueckgabe fuer Anzeige
+ Bitmap& GetOutBitmap() const;
+
+ // DIB-Rueckgabe fuer Speicherung
+ Bitmap GetSaveBitmap() { return CreateSaveBitmap( eOrgDepth ); }
+
+ // Palette besorgen
+ SimPalette* GetOrgPalette() const { return nWhichOrg == 1 ? pPal1 : pPal2; }
+ SimPalette* GetDestPalette() const { return nWhichOrg == 1 ? pPal2 : pPal1; }
+};
+
+// ----------------
+// - DitherBitmap -
+// ----------------
+
+BOOL DitherBitmap( Bitmap& rBitmap );
+
+#endif // VCL
+#endif // _SVIMBASE_HXX
diff --git a/svx/inc/svxempty.hxx b/svx/inc/svxempty.hxx
new file mode 100644
index 000000000000..bdcd69c1bb6f
--- /dev/null
+++ b/svx/inc/svxempty.hxx
@@ -0,0 +1,81 @@
+/*************************************************************************
+ *
+ * $RCSfile: svxempty.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:01:01 $
+ *
+ * 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 _SVXEMPTY_HXX
+#define _SVXEMPTY_HXX
+
+
+#ifndef _STRING_HXX //autogen
+#include <tools/string.hxx>
+#endif
+
+#ifndef ICC
+extern XubString& rImplEmptyStr;
+inline const XubString& GetEmptyStr() { return rImplEmptyStr; }
+#define GetEmptySStr GetEmptyStr
+#else
+// CSET stellt rImplEmptyStr nicht in items.lib (?)
+const XubString& GetEmptyStr();
+#define GetEmptySStr GetEmptyStr
+#endif
+
+
+#endif
+
diff --git a/svx/inc/svxerr.hxx b/svx/inc/svxerr.hxx
new file mode 100644
index 000000000000..46eafae1fd76
--- /dev/null
+++ b/svx/inc/svxerr.hxx
@@ -0,0 +1,130 @@
+/*************************************************************************
+ *
+ * $RCSfile: svxerr.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:01:01 $
+ *
+ * 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 _SVXERR_HXX
+#define _SVXERR_HXX
+
+// include ---------------------------------------------------------------
+
+#ifndef _ERRCODE_HXX
+#include <tools/errcode.hxx>
+#endif
+
+// define ----------------------------------------------------------------
+
+#define ERRCODE_SVX_LINGU_THESAURUSNOTEXISTS (1UL | ERRCODE_AREA_SVX | \
+ ERRCODE_CLASS_NOTEXISTS)
+#define ERRCODE_SVX_LINGU_LANGUAGENOTEXISTS (2UL | ERRCODE_AREA_SVX | \
+ ERRCODE_CLASS_NOTEXISTS)
+#define ERRCODE_SVX_LINGU_LINGUNOTEXISTS (3UL | ERRCODE_AREA_SVX | \
+ ERRCODE_CLASS_NOTEXISTS )
+#define ERRCODE_SVX_LINGU_HYPHENNOTEXISTS (4UL | ERRCODE_AREA_SVX | \
+ ERRCODE_CLASS_NOTEXISTS )
+#define ERRCODE_SVX_LINGU_DICT_NOTREADABLE (5UL | ERRCODE_AREA_SVX | \
+ ERRCODE_CLASS_READ )
+#define ERRCODE_SVX_LINGU_DICT_NOTWRITEABLE (6UL | ERRCODE_AREA_SVX | \
+ ERRCODE_CLASS_WRITE )
+
+#define ERRCODE_SVX_GRAPHIC_NOTREADABLE (7UL | ERRCODE_AREA_SVX | \
+ ERRCODE_CLASS_READ )
+#define ERRCODE_SVX_GRAPHIC_WRONG_FILEFORMAT (8UL | ERRCODE_AREA_SVX | \
+ ERRCODE_CLASS_READ )
+#define ERRCODE_SVX_LINGU_NOLANGUAGE (9UL | ERRCODE_AREA_SVX | \
+ ERRCODE_CLASS_NOTEXISTS )
+#define ERRCODE_SVX_FORMS_NOIOSERVICES (10UL | ERRCODE_AREA_SVX )
+#define ERRCODE_SVX_FORMS_READWRITEFAILED (11UL | ERRCODE_AREA_SVX )
+
+#define ERRCODE_SVX_BULLETITEM_NOBULLET (12UL | ERRCODE_AREA_SVX )
+
+#define ERRCODE_SVX_MODIFIED_VBASIC_STORAGE (13UL | ERRCODE_AREA_SVX \
+ | ERRCODE_WARNING_MASK \
+ | ERRCODE_CLASS_WRITE )
+
+#define ERRCODE_SVX_VBASIC_STORAGE_EXIST (14UL | ERRCODE_AREA_SVX \
+ | ERRCODE_WARNING_MASK \
+ | ERRCODE_CLASS_WRITE )
+
+// both codes will be used twice : with ERRCODE_CLASS_READ- and ERRCODE_CLASS_WRITE-bits
+#define ERRCTX_SVX_LINGU_THESAURUS 1
+#define ERRCTX_SVX_LINGU_SPELLING 2
+#define ERRCTX_SVX_LINGU_HYPHENATION 3
+#define ERRCTX_SVX_LINGU_DICTIONARY 4
+#define ERRCTX_SVX_BACKGROUND 5
+#define ERRCTX_SVX_IMPORT_GRAPHIC 6
+
+// class SvxErrorHandler -------------------------------------------------
+
+#ifndef __RSC
+
+#ifndef _EHDL_HXX //autogen
+#include <svtools/ehdl.hxx>
+#endif
+
+class SvxErrorHandler : private SfxErrorHandler
+{
+ public:
+ SvxErrorHandler();
+};
+
+#endif
+
+
+#endif
+
diff --git a/svx/inc/svxmsbas.hxx b/svx/inc/svxmsbas.hxx
new file mode 100644
index 000000000000..6b35472f3efa
--- /dev/null
+++ b/svx/inc/svxmsbas.hxx
@@ -0,0 +1,128 @@
+/*************************************************************************
+ *
+ * $RCSfile: svxmsbas.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:01:01 $
+ *
+ * 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 _SVXMSBAS_HXX
+#define _SVXMSBAS_HXX
+
+#ifndef _SOLAR_H
+#include <tools/solar.h>
+#endif
+
+#ifndef _SVSTOR_HXX
+#include <so3/svstor.hxx>
+#endif
+
+class SfxObjectShell;
+
+/* Construct with the root storage of the office document, with bImportCode
+ * set the visual basic code will be imported into the stardocument when Import * is called, with bCopyStorage set, the visual basic storage tree will be
+ * copied completely into staroffice, so that any future export to a msoffice
+ * format will retain the vba code, allowing a lossless roundtrip from
+ * msoffice to staroffice and back.
+ *
+ * Setting bAsComment to true in Import will import the visual basic as a
+ * starbasic comment. Which is currently necessary, as vb is not valid sb.
+ *
+ * Setting bStripped will remove the "Attribute" lines from the vb, msoffice
+ * does this itself when it shows the vb code in the vbeditor, so this is
+ * probably what the user expects to see when viewing the code
+ */
+
+class SvxImportMSVBasic
+{
+public:
+ SvxImportMSVBasic( SfxObjectShell &rDocS, SvStorage &rRoot,
+ BOOL bImportCode = TRUE, BOOL bCopyStorage = TRUE )
+ : xRoot(&rRoot), rDocSh(rDocS),
+ bImport(bImportCode), bCopy(bCopyStorage)
+ {}
+ // returns the status of import:
+ // 0 - nothing has done
+ // bit 0 = 1 -> any code is imported to the SO-Basic
+ // bit 1 = 1 -> the VBA - storage is copy to the ObjectShell storage
+ int Import( const String& rStorageName, const String &rSubStorageName,
+ BOOL bAsComment=TRUE, BOOL bStripped=TRUE );
+
+ // only for the export - copy or delete the saved VBA-macro-storage
+ // form the ObjectShell
+ // - returns a warning code if a modified basic exist, in all other
+ // cases return ERRCODE_NONE.
+ ULONG SaveOrDelMSVBAStorage( BOOL bSaveInto, const String& rStorageName );
+
+ // check if the MS-VBA-Storage exist in the RootStorage of the DocShell.
+ // If it exist, then return the WarningId for loosing the information.
+ static ULONG GetSaveWarningOfMSVBAStorage( SfxObjectShell &rDocS );
+
+ static String GetMSBasicStorageName();
+private:
+ SvStorageRef xRoot;
+ SfxObjectShell &rDocSh;
+ BOOL bImport;
+ BOOL bCopy;
+
+ BOOL ImportCode_Impl( const String& rStorageName,
+ const String &rSubStorageName,
+ BOOL bAsComment, BOOL bStripped);
+ BOOL CopyStorage_Impl( const String& rStorageName,
+ const String &rSubStorageName);
+};
+
+#endif
diff --git a/svx/inc/svxrtf.hxx b/svx/inc/svxrtf.hxx
new file mode 100644
index 000000000000..2c59cb874a43
--- /dev/null
+++ b/svx/inc/svxrtf.hxx
@@ -0,0 +1,514 @@
+/*************************************************************************
+ *
+ * $RCSfile: svxrtf.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:01:01 $
+ *
+ * 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 _SVXRTF_HXX
+#define _SVXRTF_HXX
+
+#ifndef _TABLE_HXX //autogen
+#include <tools/table.hxx>
+#endif
+#ifndef _STRING_HXX //autogen
+#include <tools/string.hxx>
+#endif
+#ifndef _SFXITEMSET_HXX //autogen
+#include <svtools/itemset.hxx>
+#endif
+#ifndef _PARRTF_HXX //autogen
+#include <svtools/parrtf.hxx>
+#endif
+
+#define _SVSTDARR_USHORTS
+#include <svtools/svstdarr.hxx>
+
+
+class Font;
+class Color;
+class Graphic;
+class DateTime;
+struct SvxRTFStyleType;
+class SvxRTFItemStackType;
+class SvxRTFItemStackList;
+class SfxDocumentInfo;
+
+// Mapper-Klassen fuer die verschiedenen Anforderungen an Doc-Positionen
+// Swg - NodePosition ist ein SwIndex, der intern veraendert wird
+// EditEngine - ULONG auf Liste von Absaetzen
+// .....
+
+class SvxNodeIdx
+{
+public:
+ virtual ~SvxNodeIdx() {}
+ virtual ULONG GetIdx() const = 0;
+ virtual SvxNodeIdx* Clone() const = 0; // erzeuge von sich eine Kopie
+};
+
+class SvxPosition
+{
+public:
+ virtual ~SvxPosition() {}
+
+ virtual ULONG GetNodeIdx() const = 0;
+ virtual xub_StrLen GetCntIdx() const = 0;
+
+ virtual SvxPosition* Clone() const = 0; // erzeuge von sich eine Kopie
+ virtual SvxNodeIdx* MakeNodeIdx() const = 0; // erzeuge vom NodeIndex eine Kopie
+};
+
+
+typedef Color* ColorPtr;
+SV_DECL_PTRARR( SvxRTFColorTbl, ColorPtr, 16, 4 )
+DECLARE_TABLE( SvxRTFFontTbl, Font* )
+DECLARE_TABLE( SvxRTFStyleTbl, SvxRTFStyleType* )
+typedef SvxRTFItemStackType* SvxRTFItemStackTypePtr;
+SV_DECL_PTRARR_DEL( SvxRTFItemStackList, SvxRTFItemStackTypePtr, 1, 1 )
+SV_DECL_PTRARR_STACK( SvxRTFItemStack, SvxRTFItemStackTypePtr, 0, 1 )
+
+// einige Hilfsklassen fuer den RTF-Parser
+struct SvxRTFStyleType
+{
+ SfxItemSet aAttrSet; // die Attribute vom Style (+Ableitung!)
+ String sName;
+ USHORT nBasedOn, nNext;
+ BYTE nOutlineNo;
+ BOOL bIsCharFmt;
+
+ SvxRTFStyleType( SfxItemPool& rPool, const USHORT* pWhichRange );
+};
+
+
+// Bitmap - Mode
+
+struct SvxRTFPictureType
+{
+ // Format der Bitmap
+ enum RTF_BMPSTYLE
+ {
+ RTF_BITMAP, // Bitmap, die Planes sind in den Pict.Daten
+ WIN_METAFILE, // in den Pict.Daten steht ein Window-Metafile
+ MAC_QUICKDRAW, // in den Pict.Daten steht ein Mac-QuickDraw
+ OS2_METAFILE, // in den Pict.Daten steht ein OS2-Metafile
+ RTF_DI_BMP // Device Independent Bitmap,
+ } eStyle;
+
+ enum RTF_BMPMODE
+ {
+ BINARY_MODE,
+ HEX_MODE
+ } nMode;
+
+ USHORT nType;
+ USHORT uPicLen;
+ USHORT nWidth, nHeight;
+ USHORT nGoalWidth, nGoalHeight;
+ USHORT nBitsPerPixel;
+ USHORT nPlanes;
+ USHORT nWidthBytes;
+ USHORT nScalX, nScalY;
+ short nCropT, nCropB, nCropL, nCropR;
+
+ SvxRTFPictureType() { ResetValues(); }
+ // alle Werte auf default; wird nach einlesen der Bitmap aufgerufen !
+ void ResetValues();
+};
+
+// Hier sind die Ids fuer alle Charakter-Attribute, die vom SvxParser
+// erkannt und in einem SfxItemSet gesetzt werden koennen.
+// Die Ids werden ueber die SlotIds vom POOL richtig gesetzt.
+struct RTFPlainAttrMapIds
+{
+ USHORT nCaseMap,
+ nBgColor,
+ nColor,
+ nContour,
+ nCrossedOut,
+ nEscapement,
+ nFont,
+ nFontHeight,
+ nKering,
+ nLanguage,
+ nPosture,
+ nShadowed,
+ nUnderline,
+ nWeight,
+ nWordlineMode,
+ nAutoKerning
+ ;
+ RTFPlainAttrMapIds( const SfxItemPool& rPool );
+};
+
+// Hier sind die Ids fuer alle Paragraph-Attribute, die vom SvxParser
+// erkannt und in einem SfxItemSet gesetzt werden koennen.
+// Die Ids werden ueber die SlotIds vom POOL richtig gesetzt.
+struct RTFPardAttrMapIds
+{
+ USHORT nLinespacing,
+ nAdjust,
+ nTabStop,
+ nHyphenzone,
+ nLRSpace,
+ nULSpace,
+ nBrush,
+ nBox,
+ nShadow,
+ nOutlineLvl,
+ nSplit,
+ nKeep
+ ;
+ RTFPardAttrMapIds( const SfxItemPool& rPool );
+};
+
+
+
+// -----------------------------------------------------------------------
+
+
+class SvxRTFParser : public SvRTFParser
+{
+ SvxRTFColorTbl aColorTbl;
+ SvxRTFFontTbl aFontTbl;
+ SvxRTFStyleTbl aStyleTbl;
+ SvxRTFItemStack aAttrStack;
+ SvxRTFItemStackList aAttrSetList;
+
+ SvUShorts aPlainMap;
+ SvUShorts aPardMap;
+ SvUShorts aWhichMap;
+ String sBaseURL;
+
+ SvxPosition* pInsPos;
+ SfxItemPool* pAttrPool;
+ Color* pDfltColor;
+ Font* pDfltFont;
+ SfxDocumentInfo* pSfxInfo;
+
+ long nVersionNo;
+ int nDfltFont;
+
+ BOOL bNewDoc : 1; // FALSE - in ein bestehendes lesen
+ BOOL bNewGroup : 1; // TRUE - es gab eine oeffnende Klammer
+ BOOL bIsSetDfltTab : 1; // TRUE - DefTab wurde eingelesen
+ BOOL bChkStyleAttr : 1; // TRUE - StyleSheets werden ausgewertet
+ BOOL bCalcValue : 1; // TRUE - Twipwerte an APP anpassen
+ BOOL bPardTokenRead : 1; // TRUE - Token \pard wurde erkannt
+ BOOL bReadDocInfo : 1; // TRUE - DocInfo mit einlesen
+
+
+
+ void ClearColorTbl();
+ void ClearFontTbl();
+ void ClearStyleTbl();
+ void ClearAttrStack();
+
+ SvxRTFItemStackTypePtr _GetAttrSet( int bCopyAttr=FALSE ); // neue ItemStackType anlegen
+ void _ClearStyleAttr( SvxRTFItemStackType& rStkType );
+
+ // setzt alle Attribute, die unterschiedlich zum aktuellen sind
+ void SetAttrSet( SfxItemSet& rAttrSet, SvxPosition& rSttPos );
+ void SetAttrSet( SvxRTFItemStackType &rSet );
+ void SetDefault( int nToken, short nValue );
+
+ // pard / plain abarbeiten
+ void RTFPardPlain( int bPard, SfxItemSet** ppSet );
+
+ void BuildWhichTbl();
+
+protected:
+
+ String& DelCharAtEnd( String& rStr, const sal_Unicode cDel );
+
+ // wird fuer jedes Token gerufen, das in CallParser erkannt wird
+ virtual void NextToken( int nToken );
+
+ virtual void ReadBitmapData();
+ virtual void ReadOLEData();
+
+ void ReadStyleTable();
+ void ReadColorTable();
+ void ReadFontTable();
+ void ReadAttr( int nToken, SfxItemSet* pSet );
+ void ReadTabAttr( int nToken, SfxItemSet& rSet );
+
+ // Dokument-Info lesen
+ DateTime& GetDateTimeStamp( DateTime& rDT );
+ String& GetTextToEndGroup( String& rStr );
+ virtual void ReadInfo( const sal_Char* pChkForVerNo = 0 );
+
+ inline SfxItemSet& GetAttrSet();
+ // wurde noch kein Text eingefuegt ? (SttPos vom obersten StackEintrag!)
+ int IsAttrSttPos();
+ void AttrGroupEnd(); // den akt. Bearbeiten, vom Stack loeschen
+ void SetAllAttrOfStk(); // end all Attr. and set it into doc
+
+
+ virtual void InsertPara() = 0;
+ virtual void InsertText() = 0;
+ virtual void MovePos( int bForward = TRUE ) = 0;
+ virtual void SetEndPrevPara( SvxNodeIdx*& rpNodePos,
+ xub_StrLen& rCntPos )=0;
+ virtual void SetAttrInDoc( SvxRTFItemStackType &rSet );
+ // fuer Tokens, die im ReadAttr nicht ausgewertet werden
+ virtual void UnknownAttrToken( int nToken, SfxItemSet* pSet );
+
+ // falls jemand keine Twips haben moechte
+ virtual void CalcValue();
+
+ SvxRTFParser( SfxItemPool& rAttrPool,
+ SvStream& rIn,
+ int bReadNewDoc = TRUE );
+ virtual ~SvxRTFParser();
+
+ int IsNewDoc() const { return bNewDoc; }
+ void SetNewDoc( int bFlag ) { bNewDoc = bFlag; }
+ int IsNewGroup() const { return bNewGroup; }
+ void SetNewGroup( int bFlag ) { bNewGroup = bFlag; }
+ int IsChkStyleAttr() const { return bChkStyleAttr; }
+ void SetChkStyleAttr( int bFlag ) { bChkStyleAttr = bFlag; }
+ int IsCalcValue() const { return bCalcValue; }
+ void SetCalcValue( int bFlag ) { bCalcValue = bFlag; }
+ int IsPardTokenRead() const { return bPardTokenRead; }
+ void SetPardTokenRead( int bFlag ) { bPardTokenRead = bFlag; }
+ int IsReadDocInfo() const { return bReadDocInfo; }
+ void SetReadDocInfo( int bFlag ) { bReadDocInfo = bFlag; }
+
+ // erfrage/setze die aktuelle Einfuegeposition
+ SvxPosition& GetInsPos() const { return *pInsPos; }
+ void SetInsPos( const SvxPosition& rNew );
+
+ long GetVersionNo() const { return nVersionNo; }
+
+ // erfrage/setze die Mapping-Ids fuer die Pard/Plain Attribute
+ // (Set: es werden sich die Pointer gemerkt, also keine Kopie erzeugt!!! )
+ void AddPardAttr( USHORT nWhich ) { aPardMap.Insert( nWhich, aPardMap.Count() ); }
+ void AddPlainAttr( USHORT nWhich ) { aPlainMap.Insert( nWhich, aPlainMap.Count() ); }
+
+ SvxRTFStyleTbl& GetStyleTbl() { return aStyleTbl; }
+ SvxRTFItemStack& GetAttrStack() { return aAttrStack; }
+ SvxRTFColorTbl& GetColorTbl() { return aColorTbl; }
+ SvxRTFFontTbl& GetFontTbl() { return aFontTbl; }
+
+ SfxDocumentInfo* GetDocInfo() const { return pSfxInfo; }
+
+ const String& GetBaseURL() const { return sBaseURL; }
+
+ // lesen die GrafikDaten und fuelle damit die Grafik und die
+ // die PicDaten.
+ // Return - TRUE: die Grafik ist gueltig
+ BOOL ReadBmpData( Graphic& rGrf, SvxRTFPictureType& rPicType );
+ // wandel die ASCII-HexCodes in binaere Zeichen um. Werden
+ // ungueltige Daten gefunden (Zeichen ausser 0-9|a-f|A-F, so
+ // wird USHRT_MAX returnt, ansonsten die Anzahl der umgewandelten Ze.
+ xub_StrLen HexToBin( String& rToken );
+
+public:
+
+ virtual SvParserState CallParser(); // Aufruf des Parsers
+
+ inline const Color& GetColor( USHORT nId ) const;
+ const Font& GetFont( USHORT nId ); // aendert den dflt Font
+
+ virtual int IsEndPara( SvxNodeIdx* pNd, xub_StrLen nCnt ) const = 0;
+
+ // um einen anderen Attribut-Pool setzen zukoennen. Darf nur vorm
+ // CallParser erfolgen!! Die Maps werden nicht neu erzeugt!
+ void SetAttrPool( SfxItemPool* pNewPool ) { pAttrPool = pNewPool; }
+ // um andere WhichIds fuer einen anderen Pool zusetzen.
+ RTFPardAttrMapIds& GetPardMap()
+ { return (RTFPardAttrMapIds&)*aPardMap.GetData(); }
+ RTFPlainAttrMapIds& GetPlainMap()
+ { return (RTFPlainAttrMapIds&)*aPlainMap.GetData(); }
+ // um diese von aussen z.B. Tabellenzellen zuordnen zu koennen
+ void ReadBorderAttr( int nToken, SfxItemSet& rSet, int bTableDef=FALSE );
+ void ReadBackgroundAttr( int nToken, SfxItemSet& rSet, int bTableDef=FALSE );
+
+ // fuers asynchrone lesen aus dem SvStream
+// virtual void SaveState( int nToken );
+// virtual void RestoreState();
+ virtual void Continue( int nToken );
+};
+
+// der Stack fuer die Attribute:
+// diese Klasse darf nur vom SvxRTFParser benutzt werden!
+class SvxRTFItemStackType
+{
+ friend class SvxRTFParser;
+ friend class SvxRTFItemStackList;
+
+ SfxItemSet aAttrSet;
+ SvxNodeIdx *pSttNd, *pEndNd;
+ xub_StrLen nSttCnt, nEndCnt;
+ SvxRTFItemStackList* pChildList;
+ USHORT nStyleNo;
+
+ SvxRTFItemStackType( SfxItemPool&, const USHORT* pWhichRange,
+ const SvxPosition& );
+ ~SvxRTFItemStackType();
+
+ void Add( SvxRTFItemStackTypePtr );
+ void Compress( const SvxRTFParser& );
+
+public:
+ SvxRTFItemStackType( const SvxRTFItemStackType&, const SvxPosition&,
+ int bCopyAttr = FALSE );
+ void SetStartPos( const SvxPosition& rPos );
+
+ ULONG GetSttNodeIdx() const { return pSttNd->GetIdx(); }
+ ULONG GetEndNodeIdx() const { return pEndNd->GetIdx(); }
+
+ const SvxNodeIdx& GetSttNode() const { return *pSttNd; }
+ const SvxNodeIdx& GetEndNode() const { return *pEndNd; }
+
+ xub_StrLen GetSttCnt() const { return nSttCnt; }
+ xub_StrLen GetEndCnt() const { return nEndCnt; }
+
+ SfxItemSet& GetAttrSet() { return aAttrSet; }
+ const SfxItemSet& GetAttrSet() const { return aAttrSet; }
+
+ USHORT StyleNo() const { return nStyleNo; }
+};
+
+
+// ----------- Inline Implementierungen --------------
+
+inline const Color& SvxRTFParser::GetColor( USHORT nId ) const
+{
+ ColorPtr pColor = (ColorPtr)pDfltColor;
+ if( nId < aColorTbl.Count() )
+ pColor = aColorTbl[ nId ];
+ return *pColor;
+}
+
+inline SfxItemSet& SvxRTFParser::GetAttrSet()
+{
+ SvxRTFItemStackTypePtr pTmp;
+ if( bNewGroup || 0 == ( pTmp = aAttrStack.Top()) )
+ pTmp = _GetAttrSet();
+ return pTmp->aAttrSet;
+}
+
+
+/*************************************************************************
+
+ Source Code Control System - Header
+
+ $Header: /zpool/svn/migration/cvs_rep_09_09_08/code/svx/inc/svxrtf.hxx,v 1.1.1.1 2000-09-18 17:01:01 hr Exp $
+
+ Source Code Control System - Update
+
+ $Log: not supported by cvs2svn $
+ Revision 1.42 2000/09/18 12:41:51 willem.vandorp
+ OpenOffice header added.
+
+ Revision 1.41 2000/09/05 10:54:06 willem.vandorp
+ Header and footer replaced
+
+ Revision 1.40 2000/04/14 13:16:59 jp
+ Unicode changes
+
+ Revision 1.39 2000/04/13 16:02:58 jp
+ Unicode changes
+
+ Revision 1.38 2000/03/30 16:03:30 aw
+ UNICODE conversions
+
+ Revision 1.37 2000/02/10 19:38:13 hr
+ #70473# changes for unicode ( patched by automated patchtool )
+
+ Revision 1.36 1999/11/18 09:13:27 jp
+ read BaseURL from info-struct
+
+ Revision 1.35 1999/08/03 17:37:42 jp
+ Bug #68028#: new SetAllAttrOfStk
+
+ Revision 1.34 1999/04/15 15:17:04 JP
+ zu Bug #60140#: RTF-OLE-Objecte in laden
+
+
+ Rev 1.33 15 Apr 1999 17:17:04 JP
+ zu Bug #60140#: RTF-OLE-Objecte in laden
+
+ Rev 1.32 20 Apr 1998 10:19:10 JP
+ eCodeSet in die BasisKlasse verschoben
+
+ Rev 1.31 08 Apr 1998 19:24:04 JP
+ GetColorTbl/GetFontTbl exportiert
+
+ Rev 1.30 03 Apr 1998 18:53:48 JP
+ RTF-Parser um neue Tokens erweitert, nTokenValue wurde ein long
+
+ Rev 1.29 23 Feb 1998 17:33:52 TJ
+ include
+
+ Rev 1.28 26 Jan 1998 15:13:06 JP
+ Bug #46608# AttrGroupEnd - ungueltige Bereiche ueberspringen; ReadStyleTable: Zeichenvorlagen lesen
+
+ Rev 1.27 29 Nov 1997 17:21:24 MA
+ includes
+
+ Rev 1.26 20 Nov 1997 22:38:16 JP
+ HeaderFile Umstellung
+
+*************************************************************************/
+
+
+#endif
+ //_SVXRTF_HXX
+
diff --git a/svx/inc/tbxalign.hxx b/svx/inc/tbxalign.hxx
new file mode 100644
index 000000000000..ed87277c57bc
--- /dev/null
+++ b/svx/inc/tbxalign.hxx
@@ -0,0 +1,80 @@
+/*************************************************************************
+ *
+ * $RCSfile: tbxalign.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:01:03 $
+ *
+ * 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 _TBXALIGN_HXX
+#define _TBXALIGN_HXX
+
+#ifndef _SFXTBXCTRL_HXX //autogen
+#include <sfx2/tbxctrl.hxx>
+#endif
+
+
+class SvxTbxCtlAlign: public SfxToolBoxControl
+{
+public:
+ virtual SfxPopupWindowType GetPopupWindowType() const;
+ virtual SfxPopupWindow* CreatePopupWindow();
+
+ SFX_DECL_TOOLBOX_CONTROL();
+
+ SvxTbxCtlAlign(USHORT nId, ToolBox& rTbx, SfxBindings&);
+ ~SvxTbxCtlAlign() {}
+};
+#endif
diff --git a/svx/inc/tbxctl.hxx b/svx/inc/tbxctl.hxx
new file mode 100644
index 000000000000..636e484be6d5
--- /dev/null
+++ b/svx/inc/tbxctl.hxx
@@ -0,0 +1,96 @@
+/*************************************************************************
+ *
+ * $RCSfile: tbxctl.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:01:02 $
+ *
+ * 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 _TBXCTL_HXX
+#define _TBXCTL_HXX
+
+#ifndef _SFXTBXCTRL_HXX //autogen
+#include <sfx2/tbxctrl.hxx>
+#endif
+
+/*************************************************************************
+|*
+|* Klasse f"ur SwToolbox
+|*
+\************************************************************************/
+
+class SvxTbxCtlDraw : public SfxToolBoxControl
+{
+private:
+ USHORT nLastAction;
+
+public:
+ virtual void Select( BOOL bMod1 = FALSE );
+ virtual void StateChanged( USHORT nSID, SfxItemState eState,
+ const SfxPoolItem* pState );
+ virtual SfxPopupWindowType GetPopupWindowType() const;
+ virtual SfxPopupWindow* CreatePopupWindow();
+
+ SFX_DECL_TOOLBOX_CONTROL();
+
+ SvxTbxCtlDraw( USHORT nId, ToolBox& rTbx, SfxBindings& );
+ ~SvxTbxCtlDraw() {}
+
+ void SetLastAction( USHORT nAction ) { nLastAction = nAction; }
+};
+
+
+#endif
+
diff --git a/svx/inc/tbxdraw.hxx b/svx/inc/tbxdraw.hxx
new file mode 100644
index 000000000000..e33a991c76d6
--- /dev/null
+++ b/svx/inc/tbxdraw.hxx
@@ -0,0 +1,112 @@
+/*************************************************************************
+ *
+ * $RCSfile: tbxdraw.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:01:03 $
+ *
+ * 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 _TBXDRAW_HXX
+#define _TBXDRAW_HXX
+
+// include ---------------------------------------------------------------
+
+#ifndef _SFXTBXMGR_HXX //autogen
+#include <sfx2/tbxmgr.hxx>
+#endif
+#ifndef _SFXTBXCTRL_HXX //autogen
+#include <sfx2/tbxctrl.hxx>
+#endif
+
+// class SvxPopupWindowTbxMgr --------------------------------------------
+
+class SvxPopupWindowTbxMgr : public SfxPopupWindow
+{
+ SfxToolBoxManager aTbx;
+ void* pNiemalsDenPointerAufDieErzeugendeToolBoxMerken; // MI!
+ ResId aRIdWinTemp;
+ ResId aRIdTbxTemp;
+
+ Link aTbxClickHdl;
+
+
+ DECL_LINK( TbxSelectHdl, ToolBox*);
+ DECL_LINK( TbxClickHdl, ToolBox*);
+
+public:
+ SvxPopupWindowTbxMgr( USHORT nId,
+ SfxToolBoxControl* pTbxCtl,
+ ResId aRIdWin,
+ ResId aRIdTbx,
+ SfxBindings& rBindings );
+ SvxPopupWindowTbxMgr( USHORT nId,
+ WindowAlign eAlign,
+ ResId aRIdWin,
+ ResId aRIdTbx,
+ SfxBindings& rBindings );
+ ~SvxPopupWindowTbxMgr();
+
+ virtual void StateChanged( USHORT nSID, SfxItemState eState,
+ const SfxPoolItem* pState);
+ virtual SfxPopupWindow* Clone() const;
+ virtual void PopupModeEnd();
+
+ void StartSelection();
+ inline SfxToolBoxManager& GetTbxMgr() { return aTbx; }
+};
+
+
+#endif // _TBX_DRAW_HXX
+
diff --git a/svx/inc/textconv.hxx b/svx/inc/textconv.hxx
new file mode 100644
index 000000000000..d1c789b4d68b
--- /dev/null
+++ b/svx/inc/textconv.hxx
@@ -0,0 +1,160 @@
+/*************************************************************************
+ *
+ * $RCSfile: textconv.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:01:03 $
+ *
+ * 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 ENABLEUNICODE // Keine Konvertierung bei Unicode
+
+#ifndef _TEXTCONV_HXX
+#define _TEXTCONV_HXX
+
+#ifndef _SOLAR_H
+#include <tools/solar.h>
+#endif
+#ifndef _STRING_HXX //autogen
+#include <tools/string.hxx>
+#endif
+#ifndef _SVARRAY_HXX //autogen
+#include <svtools/svarray.hxx>
+#endif
+
+class OutputDevice;
+class Font;
+
+#define INVPOS 0xFFFF
+
+// nStart und nEnd sind normale Char-Positionen, nicht wie Index vom PaM.
+
+struct AttribRange
+{
+ USHORT nStart;
+ USHORT nEnd;
+
+ AttribRange() { nStart = 0; nEnd = 0; }
+ AttribRange( USHORT nS, USHORT nE ) { nStart = nS; nEnd = nE; }
+
+ USHORT GetLen() const { return nEnd-nStart+1; }
+};
+
+SV_DECL_VARARR( NonConvChars, AttribRange, 0, 4 );
+
+class TextConverter
+{
+private:
+ CharSet eSourceCharSet;
+ CharSet eDestCharSet;
+ NonConvChars aNonConvblChars;
+ NonConvChars aNotConvertedChars;
+
+#ifdef _TEXTCONV_CXX
+ inline void GetNonConvblRange( USHORT nRange, USHORT& nStart, USHORT& nEnd );
+#endif
+
+public:
+ TextConverter();
+ TextConverter( CharSet eSource, CharSet eDest );
+
+ void SetSourceCharSet( CharSet eSource ) { eSourceCharSet = eSource; }
+ CharSet GetSourceCharSet() const { return eSourceCharSet; }
+
+ void SetDestCharSet( CharSet eDest ) { eDestCharSet = eDest; }
+ CharSet GetDestCharSet() const { return eDestCharSet; }
+
+ void SetNonConvblChars( const NonConvChars& rNonConvbl )
+ {
+ aNonConvblChars.Remove( 0, aNonConvblChars.Count() );
+ aNonConvblChars.Insert( &rNonConvbl, 0 );
+ }
+ NonConvChars& GetNonConvblChars()
+ { return aNonConvblChars; }
+ void ResetNonConvblChars()
+ { aNonConvblChars.Remove( 0, aNonConvblChars.Count() ); }
+
+ const NonConvChars& GetNotConvertedChars() const
+ { return aNotConvertedChars; }
+
+ void Convert( String& rText, BOOL bSmartReplace = TRUE );
+
+ static char GetReplaceChar( OutputDevice* pDev, char c, CharSet eCharSet, Font& rFont )
+ { return GetReplaceChar( pDev, String::ConvertToUnicode( c, eCharSet ), rFont ); }
+ static char GetReplaceChar( OutputDevice* pDev, sal_Unicode cUnicode, Font& rFont );
+};
+
+#ifdef _TEXTCONV_CXX
+
+inline void TextConverter::GetNonConvblRange( USHORT nRange, USHORT& nStart, USHORT& nEnd )
+{
+ if ( aNonConvblChars.Count() > nRange )
+ {
+ nStart = aNonConvblChars[nRange].nStart;
+ nEnd = aNonConvblChars[nRange].nEnd;
+ }
+ else
+ {
+ nStart = INVPOS;
+ nEnd = 0;
+ }
+}
+
+#endif // _TEXTCONV_CXX
+
+#endif // _TEXTCONV_HXX
+
+#endif // ENABLEUNICODE
+
diff --git a/svx/inc/txtrange.hxx b/svx/inc/txtrange.hxx
new file mode 100644
index 000000000000..a4fde89ff576
--- /dev/null
+++ b/svx/inc/txtrange.hxx
@@ -0,0 +1,148 @@
+/*************************************************************************
+ *
+ * $RCSfile: txtrange.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:01:03 $
+ *
+ * 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 _MyTXTRANGE_HXX
+#define _MyTXTRANGE_HXX
+
+#ifndef _TXTRANGE_HXX
+#define _SVSTDARR_BOOLS
+#define _SVSTDARR_LONGS
+#include <svtools/svstdarr.hxx>
+#endif
+
+class PolyPolygon;
+class XPolyPolygon;
+class Range;
+class Rectangle;
+
+typedef SvLongs* SvLongsPtr;
+
+/*************************************************************************
+|*
+|* class TextRanger
+|*
+|* Beschreibung
+|* Ersterstellung 20.01.97
+|* Letzte Aenderung AMA 20.01.97
+|*
+*************************************************************************/
+class TextRanger
+{
+ Range *pRangeArr;
+ SvLongsPtr *pCache;
+ PolyPolygon *pPoly; // Flaechenpolygon
+ PolyPolygon *pLine; // Linienpolygon
+ Rectangle *pBound; // Umfassendes Rechteck
+ USHORT nCacheSize; // Cache-Size
+ USHORT nCacheIdx; // Cache-Index
+ USHORT nRight; // Abstand Kontur-Text
+ USHORT nLeft; // Abstand Text-Kontur
+ USHORT nUpper; // Abstand Kontur-Text
+ USHORT nLower; // Abstand Text-Kontur
+ USHORT nPointCount; // Anzahl der Polygonpunkte
+ BOOL bSimple : 1; // Nur Aussenkante
+ BOOL bInner : 1; // TRUE: Objekt beschriften (EditEngine);
+ // FALSE: Objekt umfliessen (StarWriter);
+ BOOL bFlag2 :1; // TestFlags fuer Umlaufexperimente
+ BOOL bFlag3 :1;
+ BOOL bFlag4 :1;
+ BOOL bFlag5 :1;
+ BOOL bFlag6 :1;
+ BOOL bFlag7 :1;
+ TextRanger( const TextRanger& ); // not implemented
+ const Rectangle& _GetBoundRect();
+public:
+ TextRanger( const XPolyPolygon& rXPoly, const XPolyPolygon* pXLine,
+ USHORT nCacheSize, USHORT nLeft, USHORT nRight,
+ BOOL bSimple, BOOL bInner );
+ ~TextRanger();
+ SvLongsPtr GetTextRanges( const Range& rRange );
+ USHORT GetRight() const { return nRight; }
+ USHORT GetLeft() const { return nLeft; }
+ USHORT GetUpper() const { return nUpper; }
+ USHORT GetLower() const { return nLower; }
+ USHORT GetPointCount() const { return nPointCount; }
+ BOOL IsSimple() const { return bSimple; }
+ BOOL IsInner() const { return bInner; }
+ BOOL HasBorder() const { return nRight || nLeft; }
+ const PolyPolygon& GetPolyPolygon() const { return *pPoly; }
+ const PolyPolygon* GetLinePolygon() const { return pLine; }
+ const Rectangle& GetBoundRect()
+ { return pBound ? *pBound : _GetBoundRect(); }
+ void SetUpper( USHORT nNew ){ nUpper = nNew; }
+ void SetLower( USHORT nNew ){ nLower = nNew; }
+ BOOL IsFlag2() const { return bFlag2; }
+ void SetFlag2( BOOL bNew ) { bFlag2 = bNew; }
+ BOOL IsFlag3() const { return bFlag3; }
+ void SetFlag3( BOOL bNew ) { bFlag3 = bNew; }
+ BOOL IsFlag4() const { return bFlag4; }
+ void SetFlag4( BOOL bNew ) { bFlag4 = bNew; }
+ BOOL IsFlag5() const { return bFlag5; }
+ void SetFlag5( BOOL bNew ) { bFlag5 = bNew; }
+ BOOL IsFlag6() const { return bFlag6; }
+ void SetFlag6( BOOL bNew ) { bFlag6 = bNew; }
+ BOOL IsFlag7() const { return bFlag7; }
+ void SetFlag7( BOOL bNew ) { bFlag7 = bNew; }
+};
+
+
+
+#endif // _TXTRANGE_HXX
diff --git a/svx/inc/uiks.hxx b/svx/inc/uiks.hxx
new file mode 100644
index 000000000000..8293903489d0
--- /dev/null
+++ b/svx/inc/uiks.hxx
@@ -0,0 +1,123 @@
+/*************************************************************************
+ *
+ * $RCSfile: uiks.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:01:03 $
+ *
+ * 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 _SVX_UIKS_HXX
+#define _SVX_UIKS_HXX
+
+#ifndef _USR_UIKS_HXX
+#include <usr/uiks.hxx>
+#endif
+
+// DBENGINE
+
+#define UIK_XDATABASEENGINE UIK_DATABASE(00)
+#define UIK_XDATABASEFAVORITES UIK_DATABASE(01)
+#define UIK_XDATABASE UIK_DATABASE(02)
+#define UIK_XDATABASECONNECTION UIK_DATABASE(03)
+#define UIK_XTRANSACTIONSUPPORT UIK_DATABASE(04)
+#define UIK_XDATABASECURSOR UIK_DATABASE(05)
+#define UIK_XDATABASETABLE UIK_DATABASE(06)
+#define UIK_XDATABASETABLES UIK_DATABASE(07)
+#define UIK_XDATABASEQUERY UIK_DATABASE(08)
+#define UIK_XDATABASEQUERIES UIK_DATABASE(09)
+#define UIK_XDATABASERELATION UIK_DATABASE(0a)
+#define UIK_XDATABASERELATIONS UIK_DATABASE(0b)
+#define UIK_XDATABASEFIELD UIK_DATABASE(0c)
+#define UIK_XDATABASEFIELDS UIK_DATABASE(0d)
+#define UIK_XDATABASEINDEX UIK_DATABASE(0e)
+#define UIK_XDATABASEINDEXES UIK_DATABASE(0f)
+#define UIK_XDATABASEDOCUMENT UIK_DATABASE(10)
+#define UIK_XDATABASEDOCUMENTS UIK_DATABASE(11)
+#define UIK_XDATABASEWORKSPACE UIK_DATABASE(12)
+#define UIK_XDATABASEWORKSPACES UIK_DATABASE(13)
+#define UIK_XDATABASEITERATOR UIK_DATABASE(14)
+#define UIK_XPREPAREDDATABASECURSOR UIK_DATABASE(15)
+
+
+// DBENGINE
+
+// FORMS
+
+#define UIK_XFORM UIK_FORMS(01)
+#define UIK_XFORMS UIK_FORMS(02)
+#define UIK_XFORMCONTROL UIK_FORMS(03)
+
+#define UIK_XHTMLFORM UIK_FORMS(05)
+#define UIK_XHTMLFORMLISTENER UIK_FORMS(06)
+#define UIK_XDATABASEFORM UIK_FORMS(07)
+#define UIK_XBOUNDCONTROL UIK_FORMS(08)
+#define UIK_XINSERTRECORDLISTENER UIK_FORMS(09)
+#define UIK_XUPDATERECORDLISTENER UIK_FORMS(0a)
+#define UIK_XDESTROYRECORDLISTENER UIK_FORMS(0b)
+#define UIK_XCURRENTRECORDLISTENER UIK_FORMS(0c)
+#define UIK_XBOUNDCONTROLLISTENER UIK_FORMS(0d)
+#define UIK_XLOADLISTENER UIK_FORMS(0e)
+#define UIK_XERRORLISTENER UIK_FORMS(0f)
+
+#define UIK_XFORMCONTROLFACTORY UIK_FORMS(10)
+#define UIK_XFORMCONTROLLER UIK_FORMS(11)
+#define UIK_XFORMCONTROLLERLISTENER UIK_FORMS(12)
+
+// FORMS
+
+
+
+#endif
+
diff --git a/svx/inc/unoapi.hxx b/svx/inc/unoapi.hxx
new file mode 100644
index 000000000000..f8cc3e2dc320
--- /dev/null
+++ b/svx/inc/unoapi.hxx
@@ -0,0 +1,91 @@
+/*************************************************************************
+ *
+ * $RCSfile: unoapi.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:01:03 $
+ *
+ * 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 _SVX_UNOAPI_HXX_
+#define _SVX_UNOAPI_HXX_
+
+#ifndef _COM_SUN_STAR_DRAWING_XSHAPE_HPP_
+#include <com/sun/star/drawing/XShape.hpp>
+#endif
+
+#ifndef _GRFMGR_HXX
+#include <goodies/grfmgr.hxx>
+#endif
+
+class SvxShape;
+class SdrObject;
+
+/** creates a StarOffice API wrapper with the given type and inventor
+ Deprecated: This will be replaced with a function returning XShape.
+*/
+SvxShape* CreateSvxShapeByTypeAndInventor( sal_uInt16 nType, sal_uInt32 nInventor ) throw();
+
+/** returns a StarOffice API wrapper for the given SdrObject */
+::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape > GetXShapeForSdrObject( SdrObject* pObj ) throw ();
+
+/** returns the SdrObject from the given StarOffice API wrapper */
+SdrObject* GetSdrObjectFromXShape( ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape > xShape ) throw() ;
+
+/** returns a GraphicObject for this URL */
+GraphicObject CreateGraphicObjectFromURL( const ::rtl::OUString &rURL ) throw() ;
+
+#endif _SVX_UNOAPI_HXX_
+
diff --git a/svx/inc/unofdesc.hxx b/svx/inc/unofdesc.hxx
new file mode 100644
index 000000000000..e1c2c4da25b7
--- /dev/null
+++ b/svx/inc/unofdesc.hxx
@@ -0,0 +1,97 @@
+/*************************************************************************
+ *
+ * $RCSfile: unofdesc.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:01:03 $
+ *
+ * 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 SVX_UNOFDESC_HXX
+#define SVX_UNOFDESC_HXX
+
+#ifndef _COM_SUN_STAR_AWT_FONTDESCRIPTOR_HPP_
+#include <com/sun/star/awt/FontDescriptor.hpp>
+#endif
+#ifndef _COM_SUN_STAR_BEANS_PROPERTYSTATE_HPP_
+#include <com/sun/star/beans/PropertyState.hpp>
+#endif
+
+#ifndef _SFXITEMSET_HXX //autogen
+#include <svtools/itemset.hxx>
+#endif
+
+#ifndef _SV_FONT_HXX //autogen
+#include <vcl/font.hxx>
+#endif
+
+class SvxUnoFontDescriptor
+{
+public:
+ static void ConvertToFont( const ::com::sun::star::awt::FontDescriptor& rDesc, Font& rFont );
+ static void ConvertFromFont( const Font& rFont, ::com::sun::star::awt::FontDescriptor& rDesc );
+
+ static void FillItemSet( const ::com::sun::star::awt::FontDescriptor& rDesc, SfxItemSet& rSet );
+ static void FillFromItemSet( const SfxItemSet& rSet, ::com::sun::star::awt::FontDescriptor& rDesc );
+
+ static com::sun::star::beans::PropertyState getPropertyState( const SfxItemSet& rSet );
+ static void setPropertyToDefault( SfxItemSet& rSet );
+ static ::com::sun::star::uno::Any getPropertyDefault( SfxItemPool* pPool );
+
+};
+
+
+#endif
+
diff --git a/svx/inc/unofill.hxx b/svx/inc/unofill.hxx
new file mode 100644
index 000000000000..4c7bf4c918e0
--- /dev/null
+++ b/svx/inc/unofill.hxx
@@ -0,0 +1,79 @@
+/*************************************************************************
+ *
+ * $RCSfile: unofill.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:01:03 $
+ *
+ * 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 _SVX_UNOFILL_HXX_
+#define _SVX_UNOFILL_HXX_
+
+#ifndef _COM_SUN_STAR_UNO_XINTERFACE_HPP_
+#include <com/sun/star/uno/XInterface.hpp>
+#endif
+
+class SdrModel;
+
+::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL SvxUnoGradientTable_createInstance( SdrModel* pModel );
+::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL SvxUnoHatchTable_createInstance( SdrModel* pModel );
+::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL SvxUnoBitmapTable_createInstance( SdrModel* pModel );
+::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL SvxUnoTransGradientTable_createInstance( SdrModel* pModel );
+::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL SvxUnoMarkerTable_createInstance( SdrModel* pModel );
+::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL SvxUnoDashTable_createInstance( SdrModel* pModel );
+
+#endif _SVX_UNOFILL_HXX_
+
diff --git a/svx/inc/unolingu.hxx b/svx/inc/unolingu.hxx
new file mode 100644
index 000000000000..6c084688eda4
--- /dev/null
+++ b/svx/inc/unolingu.hxx
@@ -0,0 +1,297 @@
+/*************************************************************************
+ *
+ * $RCSfile: unolingu.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:01:03 $
+ *
+ * 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 _UNO_LINGU_HXX
+#define _UNO_LINGU_HXX
+
+#ifndef _LANG_HXX
+#include <tools/lang.hxx>
+#endif
+#ifndef _STRING_HXX
+#include <tools/string.hxx>
+#endif
+#ifndef _VOS_REFERNCE_HXX_
+#include <vos/refernce.hxx>
+#endif
+
+#ifndef _COM_SUN_STAR_UTIL_LANGUAGE_HPP_
+#include <com/sun/star/util/Language.hpp>
+#endif
+#ifndef _COM_SUN_STAR_LANG_LOCALE_HPP_
+#include <com/sun/star/lang/Locale.hpp>
+#endif
+#ifndef _COM_SUN_STAR_LINGUISTIC_XSPELLCHECKER1_HPP_
+#include <com/sun/star/linguistic/XSpellChecker1.hpp>
+#endif
+#ifndef _COM_SUN_STAR_LINGUISTIC_XHYPHENATOR_HPP_
+#include <com/sun/star/linguistic/XHyphenator.hpp>
+#endif
+#ifndef _COM_SUN_STAR_LINGUISTIC_XTHESAURUS_HPP_
+#include <com/sun/star/linguistic/XThesaurus.hpp>
+#endif
+#ifndef _COM_SUN_STAR_LINGUISTIC_XDICTIONARYLIST_HPP_
+#include <com/sun/star/linguistic/XDictionaryList.hpp>
+#endif
+#ifndef _COM_SUN_STAR_BEANS_XPROPERTYSET_HPP_
+#include <com/sun/star/beans/XPropertySet.hpp>
+#endif
+#ifndef _COM_SUN_STAR_LINGUISTIC_XDICTIONARY1_HPP_
+#include <com/sun/star/linguistic/XDictionary1.hpp>
+#endif
+
+class LinguMgrExitLstnr;
+
+class Window;
+
+// SvxAddEntryToDic return values
+#define DIC_ERR_NONE 0
+#define DIC_ERR_FULL 1
+#define DIC_ERR_READONLY 2
+#define DIC_ERR_UNKNOWN 3
+#define DIC_ERR_NOT_EXISTS 4
+//#define DIC_ERR_ENTRY_EXISTS 5
+//#define DIC_ERR_ENTRY_NOTEXISTS 6
+
+///////////////////////////////////////////////////////////////////////////
+
+class LinguMgr
+{
+ friend class LinguMgrExitLstnr;
+
+ //static ::VOS::ORefCount aRefCount;
+
+ static ::com::sun::star::uno::Reference<
+ ::com::sun::star::linguistic::XSpellChecker1 > xSpell;
+ static ::com::sun::star::uno::Reference<
+ ::com::sun::star::linguistic::XHyphenator > xHyph;
+ static ::com::sun::star::uno::Reference<
+ ::com::sun::star::linguistic::XThesaurus > xThes;
+ static ::com::sun::star::uno::Reference<
+ ::com::sun::star::linguistic::XDictionaryList > xDicList;
+ static ::com::sun::star::uno::Reference<
+ ::com::sun::star::beans::XPropertySet > xProp;
+
+ static ::com::sun::star::uno::Reference<
+ ::com::sun::star::linguistic::XDictionary1 > xIgnoreAll;
+ static ::com::sun::star::uno::Reference<
+ ::com::sun::star::linguistic::XDictionary1 > xChangeAll;
+
+ static LinguMgrExitLstnr *pExitLstnr;
+ static sal_Bool bExiting;
+
+ static ::com::sun::star::uno::Reference<
+ ::com::sun::star::linguistic::XSpellChecker1 > GetSpell();
+ static ::com::sun::star::uno::Reference<
+ ::com::sun::star::linguistic::XHyphenator > GetHyph();
+ static ::com::sun::star::uno::Reference<
+ ::com::sun::star::linguistic::XThesaurus > GetThes();
+ static ::com::sun::star::uno::Reference<
+ ::com::sun::star::linguistic::XDictionaryList > GetDicList();
+ static ::com::sun::star::uno::Reference<
+ ::com::sun::star::beans::XPropertySet > GetProp();
+ static ::com::sun::star::uno::Reference<
+ ::com::sun::star::linguistic::XDictionary1 > GetStandard();
+ static ::com::sun::star::uno::Reference<
+ ::com::sun::star::linguistic::XDictionary1 > GetIgnoreAll();
+ static ::com::sun::star::uno::Reference<
+ ::com::sun::star::linguistic::XDictionary1 > GetChangeAll();
+
+ // disallow access to copy-constructor and assignment-operator
+ LinguMgr(const LinguMgr &);
+ LinguMgr & operator = (const LinguMgr &);
+
+public:
+
+ static ::com::sun::star::uno::Reference<
+ ::com::sun::star::linguistic::XSpellChecker1 > GetSpellChecker();
+ static ::com::sun::star::uno::Reference<
+ ::com::sun::star::linguistic::XHyphenator > GetHyphenator();
+ static ::com::sun::star::uno::Reference<
+ ::com::sun::star::linguistic::XThesaurus > GetThesaurus();
+ static ::com::sun::star::uno::Reference<
+ ::com::sun::star::linguistic::XDictionaryList > GetDictionaryList();
+ static ::com::sun::star::uno::Reference<
+ ::com::sun::star::beans::XPropertySet > GetLinguPropertySet();
+
+ static ::com::sun::star::uno::Reference<
+ ::com::sun::star::linguistic::XDictionary1 > GetStandardDic();
+ static ::com::sun::star::uno::Reference<
+ ::com::sun::star::linguistic::XDictionary1 > GetIgnoreAllList();
+ static ::com::sun::star::uno::Reference<
+ ::com::sun::star::linguistic::XDictionary1 > GetChangeAllList();
+};
+
+///////////////////////////////////////////////////////////////////////////
+
+#ifdef TL_NOTYET
+
+namespace com { namespace sun { namespace star { namespace linguistic2 {
+ class XHyphenatedWord;
+}}}};
+
+
+struct SvxAlternativeSpelling
+{
+ String aReplacement;
+ ::com::sun::star::uno::Reference<
+ ::com::sun::star::linguistic2::XHyphenatedWord > xHyphWord;
+ INT16 nChangedPos,
+ nChangedLength;
+ BOOL bIsAltSpelling;
+
+ inline SvxAlternativeSpelling();
+};
+
+inline SvxAlternativeSpelling::SvxAlternativeSpelling() :
+ nChangedPos(-1), nChangedLength(-1), bIsAltSpelling(FALSE)
+{
+}
+
+
+SvxAlternativeSpelling SvxGetAltSpelling(
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::linguistic2::XHyphenatedWord > & rHyphWord );
+
+#endif //TL_NOTYET
+
+///////////////////////////////////////////////////////////////////////////
+
+class SvxDicListChgClamp
+{
+private:
+ ::com::sun::star::uno::Reference<
+ ::com::sun::star::linguistic::XDictionaryList > xDicList;
+
+ // disallow access to copy-constructor and assignment-operator
+ SvxDicListChgClamp(const SvxDicListChgClamp &);
+ SvxDicListChgClamp & operator = (const SvxDicListChgClamp &);
+
+public:
+ SvxDicListChgClamp( ::com::sun::star::uno::Reference<
+ ::com::sun::star::linguistic::XDictionaryList > &rxDicList );
+ ~SvxDicListChgClamp();
+};
+
+///////////////////////////////////////////////////////////////////////////
+
+//TL:TODO: remove those functions or make them inline
+::com::sun::star::uno::Reference<
+ ::com::sun::star::linguistic::XSpellChecker1 > SvxGetSpellChecker();
+::com::sun::star::uno::Reference<
+ ::com::sun::star::linguistic::XHyphenator > SvxGetHyphenator();
+::com::sun::star::uno::Reference<
+ ::com::sun::star::linguistic::XThesaurus > SvxGetThesaurus();
+::com::sun::star::uno::Reference<
+ ::com::sun::star::linguistic::XDictionaryList > SvxGetDictionaryList();
+::com::sun::star::uno::Reference<
+ ::com::sun::star::beans::XPropertySet > SvxGetLinguPropertySet();
+//TL:TODO: remove argument or provide SvxGetIgnoreAllList with the same one
+::com::sun::star::uno::Reference<
+ ::com::sun::star::linguistic::XDictionary1 > SvxGetOrCreatePosDic(
+ ::com::sun::star::uno::Reference<
+ ::com::sun::star::linguistic::XDictionaryList > xDicList );
+::com::sun::star::uno::Reference<
+ ::com::sun::star::linguistic::XDictionary1 > SvxGetIgnoreAllList();
+::com::sun::star::uno::Reference<
+ ::com::sun::star::linguistic::XDictionary1 > SvxGetChangeAllList();
+
+///////////////////////////////////////////////////////////////////////////
+// misc functions
+//
+
+LanguageType SvxLocaleToLanguage(
+ const ::com::sun::star::lang::Locale& rLocale );
+::com::sun::star::lang::Locale& SvxLanguageToLocale(
+ ::com::sun::star::lang::Locale& rLocale, LanguageType eLang );
+::com::sun::star::lang::Locale SvxCreateLocale( LanguageType eLang );
+
+// Sequence of non XSpellChecker, XHyphenator or XThesaurus specific
+// languages that are frequently used
+const ::com::sun::star::uno::Sequence<
+ ::com::sun::star::util::Language > & SvxGetSelectableLanguages();
+
+// returns position of language in sequence.
+// If not found a negative value will be returned.
+sal_Int32 SvxGetLanguagePos(
+ const ::com::sun::star::uno::Sequence<
+ ::com::sun::star::util::Language > &rSeq,
+ ::com::sun::star::util::Language nLang);
+
+String SvxGetDictionaryURL(const String &rDicName,
+ sal_Bool bIsUserDic = sal_True);
+
+//TL:TODO: soll mal den rictigen Rckgabetyp bekommen!
+sal_Bool SvxAddEntryToDic(
+ ::com::sun::star::uno::Reference<
+ ::com::sun::star::linguistic::XDictionary > &rxDic,
+ const ::rtl::OUString &rWord, sal_Bool bIsNeg,
+ const ::rtl::OUString &rRplcTxt, sal_Int16 nRplcLang,
+ sal_Bool bStripDot = sal_True );
+short SvxDicError( Window *pParent, sal_Int16 nError );
+
+sal_Bool SvxSaveDictionaries(
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::linguistic::XDictionaryList > &xDicList );
+
+#endif
+
+
+
diff --git a/svx/inc/unomlstr.hxx b/svx/inc/unomlstr.hxx
new file mode 100644
index 000000000000..e340ec18f9e5
--- /dev/null
+++ b/svx/inc/unomlstr.hxx
@@ -0,0 +1,93 @@
+/*************************************************************************
+ *
+ * $RCSfile: unomlstr.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:01:03 $
+ *
+ * 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 _SVX_UNOMLSTR_HXX
+#define _SVX_UNOMLSTR_HXX
+
+#ifndef _COM_SUN_STAR_UTIL_XMODIFYLISTENER_HPP_
+#include <com/sun/star/util/XModifyListener.hpp>
+#endif
+
+#include <cppuhelper/implbase1.hxx>
+
+class SdrObject;
+
+class SvxUnoShapeModifyListener : public ::cppu::WeakAggImplHelper1< ::com::sun::star::util::XModifyListener >
+{
+ SdrObject* mpObj;
+
+public:
+ SvxUnoShapeModifyListener( SdrObject* pObj ) throw();
+ virtual ~SvxUnoShapeModifyListener() throw();
+
+ // ::com::sun::star::util::XModifyListener
+ virtual void SAL_CALL modified(const ::com::sun::star::lang::EventObject& aEvent) throw( ::com::sun::star::uno::RuntimeException);
+
+ // ::com::sun::star::lang::XEventListener
+ virtual void SAL_CALL disposing(const ::com::sun::star::lang::EventObject& Source) throw( ::com::sun::star::uno::RuntimeException);
+
+ // internal
+ void invalidate() throw();
+};
+
+
+#endif
+
+
diff --git a/svx/inc/unonrule.hxx b/svx/inc/unonrule.hxx
new file mode 100644
index 000000000000..99b6b971e3eb
--- /dev/null
+++ b/svx/inc/unonrule.hxx
@@ -0,0 +1,182 @@
+/*************************************************************************
+ *
+ * $RCSfile: unonrule.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:01:03 $
+ *
+ * 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 _SVX_UNONRULE_HXX
+#define _SVX_UNONRULE_HXX
+
+#ifndef _COM_SUN_STAR_BEANS_PROPERTYVALUES_HPP_
+#include <com/sun/star/beans/PropertyValues.hpp>
+#endif
+#ifndef _COM_SUN_STAR_BEANS_XPROPERTYSET_HPP_
+#include <com/sun/star/beans/XPropertySet.hpp>
+#endif
+#ifndef _COM_SUN_STAR_BEANS_PROPERTYVALUE_HPP_
+#include <com/sun/star/beans/PropertyValue.hpp>
+#endif
+#ifndef _COM_SUN_STAR_BEANS_PROPERTYSTATE_HPP_
+#include <com/sun/star/beans/PropertyState.hpp>
+#endif
+#ifndef _COM_SUN_STAR_BEANS_XPROPERTYSETINFO_HPP_
+#include <com/sun/star/beans/XPropertySetInfo.hpp>
+#endif
+#ifndef _COM_SUN_STAR_BEANS_XMULTIPROPERTYSET_HPP_
+#include <com/sun/star/beans/XMultiPropertySet.hpp>
+#endif
+#ifndef _COM_SUN_STAR_BEANS_XFASTPROPERTYSET_HPP_
+#include <com/sun/star/beans/XFastPropertySet.hpp>
+#endif
+#ifndef _COM_SUN_STAR_BEANS_XVETOABLECHANGELISTENER_HPP_
+#include <com/sun/star/beans/XVetoableChangeListener.hpp>
+#endif
+#ifndef _COM_SUN_STAR_BEANS_XPROPERTYSTATE_HPP_
+#include <com/sun/star/beans/XPropertyState.hpp>
+#endif
+#ifndef _COM_SUN_STAR_BEANS_XPROPERTYSTATECHANGELISTENER_HPP_
+#include <com/sun/star/beans/XPropertyStateChangeListener.hpp>
+#endif
+#ifndef _COM_SUN_STAR_BEANS_PROPERTYATTRIBUTE_HPP_
+#include <com/sun/star/beans/PropertyAttribute.hpp>
+#endif
+#ifndef _COM_SUN_STAR_BEANS_XPROPERTIESCHANGELISTENER_HPP_
+#include <com/sun/star/beans/XPropertiesChangeListener.hpp>
+#endif
+#ifndef _COM_SUN_STAR_BEANS_XPROPERTYCHANGELISTENER_HPP_
+#include <com/sun/star/beans/XPropertyChangeListener.hpp>
+#endif
+#ifndef _COM_SUN_STAR_BEANS_XPROPERTYACCESS_HPP_
+#include <com/sun/star/beans/XPropertyAccess.hpp>
+#endif
+#ifndef _COM_SUN_STAR_BEANS_XPROPERTYCONTAINER_HPP_
+#include <com/sun/star/beans/XPropertyContainer.hpp>
+#endif
+#ifndef _COM_SUN_STAR_BEANS_PROPERTYSTATECHANGEEVENT_HPP_
+#include <com/sun/star/beans/PropertyStateChangeEvent.hpp>
+#endif
+#ifndef _COM_SUN_STAR_BEANS_PROPERTYCHANGEEVENT_HPP_
+#include <com/sun/star/beans/PropertyChangeEvent.hpp>
+#endif
+#ifndef _COM_SUN_STAR_CONTAINER_XCONTAINER_HPP_
+#include <com/sun/star/container/XContainer.hpp>
+#endif
+#ifndef _COM_SUN_STAR_CONTAINER_XINDEXCONTAINER_HPP_
+#include <com/sun/star/container/XIndexContainer.hpp>
+#endif
+#ifndef _COM_SUN_STAR_CONTAINER_XNAMEREPLACE_HPP_
+#include <com/sun/star/container/XNameReplace.hpp>
+#endif
+#ifndef _COM_SUN_STAR_CONTAINER_XCONTAINERLISTENER_HPP_
+#include <com/sun/star/container/XContainerListener.hpp>
+#endif
+#ifndef _COM_SUN_STAR_CONTAINER_XSET_HPP_
+#include <com/sun/star/container/XSet.hpp>
+#endif
+#ifndef _COM_SUN_STAR_CONTAINER_CONTAINEREVENT_HPP_
+#include <com/sun/star/container/ContainerEvent.hpp>
+#endif
+#ifndef _COM_SUN_STAR_CONTAINER_XINDEXREPLACE_HPP_
+#include <com/sun/star/container/XIndexReplace.hpp>
+#endif
+#ifndef _COM_SUN_STAR_CONTAINER_XNAMECONTAINER_HPP_
+#include <com/sun/star/container/XNameContainer.hpp>
+#endif
+
+#include <unotools/servicehelper.hxx>
+
+#ifndef _SVX_NUMITEM_HXX //autogen
+#include <numitem.hxx>
+#endif
+
+#include <cppuhelper/implbase1.hxx>
+
+class SdrModel;
+
+class SvxUnoNumberingRules : public ::cppu::WeakAggImplHelper1< ::com::sun::star::container::XIndexReplace >
+{
+private:
+ SvxNumRule* pNumRule;
+
+public:
+ SvxUnoNumberingRules( SdrModel* pModel ) throw();
+ SvxUnoNumberingRules(const SvxNumRule& rRule) throw();
+ virtual ~SvxUnoNumberingRules() throw();
+
+ UNO3_GETIMPLEMENTATION_DECL( SvxUnoNumberingRules )
+
+ //XIndexReplace
+ virtual void SAL_CALL replaceByIndex( sal_Int32 Index, const ::com::sun::star::uno::Any& Element ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
+
+ //XIndexAccess
+ virtual sal_Int32 SAL_CALL getCount() throw(::com::sun::star::uno::RuntimeException) ;
+ virtual ::com::sun::star::uno::Any SAL_CALL getByIndex( sal_Int32 Index ) throw(::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
+
+ //XElementAccess
+ virtual ::com::sun::star::uno::Type SAL_CALL getElementType() throw(::com::sun::star::uno::RuntimeException);
+ virtual sal_Bool SAL_CALL hasElements() throw(::com::sun::star::uno::RuntimeException);
+
+ //Intern
+ ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue> getNumberingRuleByIndex( sal_Int32 nIndex ) const throw();
+ void setNumberingRuleByIndex( const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& rProperties, sal_Int32 nIndex ) throw(::com::sun::star::uno::RuntimeException, ::com::sun::star::lang::IllegalArgumentException );
+
+ const SvxNumRule* GetNumRule() const throw() { return pNumRule; }
+};
+
+#endif
+
+
diff --git a/svx/inc/unoshcol.hxx b/svx/inc/unoshcol.hxx
new file mode 100644
index 000000000000..4b7ec6b489d3
--- /dev/null
+++ b/svx/inc/unoshcol.hxx
@@ -0,0 +1,117 @@
+/*************************************************************************
+ *
+ * $RCSfile: unoshcol.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:01:03 $
+ *
+ * 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 _SVX_UNOSHGRP_HXX
+#define _SVX_UNOSHGRP_HXX
+
+#ifndef _COM_SUN_STAR_DRAWING_XSHAPES_HPP_
+#include <com/sun/star/drawing/XShapes.hpp>
+#endif
+#ifndef _COM_SUN_STAR_LANG_XSERVICEINFO_HPP_
+#include <com/sun/star/lang/XServiceInfo.hpp>
+#endif
+#ifndef _OSL_MUTEX_HXX_
+#include <osl/mutex.hxx>
+#endif
+#ifndef _CPPUHELPER_INTERFACECONTAINER_H_
+#include <cppuhelper/interfacecontainer.h>
+#endif
+
+#include <cppuhelper/implbase2.hxx>
+
+class XShapeList;
+
+/***********************************************************************
+* *
+***********************************************************************/
+class SvxShapeCollection : public ::cppu::WeakAggImplHelper2<
+ ::com::sun::star::drawing::XShapes,
+ ::com::sun::star::lang::XServiceInfo
+ >
+{
+private:
+ ::osl::Mutex maShapeContainerMutex;
+ ::cppu::OInterfaceContainerHelper maShapeContainer;
+
+public:
+ SvxShapeCollection() throw();
+ virtual ~SvxShapeCollection() throw();
+
+ // XIndexAccess
+ virtual sal_Int32 SAL_CALL getCount() throw(::com::sun::star::uno::RuntimeException) ;
+ virtual ::com::sun::star::uno::Any SAL_CALL getByIndex( sal_Int32 Index ) throw(::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
+
+ // XElementAccess
+ virtual ::com::sun::star::uno::Type SAL_CALL getElementType() throw(::com::sun::star::uno::RuntimeException);
+ virtual sal_Bool SAL_CALL hasElements() throw(::com::sun::star::uno::RuntimeException);
+
+ // XShapes
+ virtual void SAL_CALL add( const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape >& xShape ) throw(::com::sun::star::uno::RuntimeException);
+ virtual void SAL_CALL remove( const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape >& xShape ) throw(::com::sun::star::uno::RuntimeException);
+
+ // XServiceInfo
+ virtual ::rtl::OUString SAL_CALL getImplementationName() throw(::com::sun::star::uno::RuntimeException);
+ virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw(::com::sun::star::uno::RuntimeException);
+ virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException);
+};
+
+#endif
+
+
diff --git a/svx/inc/xattr.hxx b/svx/inc/xattr.hxx
new file mode 100644
index 000000000000..7a0e48f00c63
--- /dev/null
+++ b/svx/inc/xattr.hxx
@@ -0,0 +1,101 @@
+/*************************************************************************
+ *
+ * $RCSfile: xattr.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:01:04 $
+ *
+ * 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 _XATTR_HXX
+#define _XATTR_HXX
+
+// include ---------------------------------------------------------------
+
+#ifndef _XDEF_HXX
+//#include <xdef.hxx>
+#endif
+#ifndef _XENUM_HXX
+//#include <xenum.hxx>
+#endif
+#ifndef _XPOLY_HXX
+//#include <xpoly.hxx>
+#endif
+#ifndef _SVX_RECTENUM_HXX
+//#include <rectenum.hxx>
+#endif
+
+class XColorTable;
+class XDashTable;
+class XLineEndTable;
+class XHatchTable;
+class XBitmapTable;
+class XGradientTable;
+
+#include <xit.hxx>
+#include <xcolit.hxx>
+#include <xgrad.hxx>
+#include <xhatch.hxx>
+#include <xlineit.hxx>
+#include <xfillit.hxx>
+#include <xtextit.hxx>
+#include <xlineit0.hxx>
+#include <xfillit0.hxx>
+#include <xtextit0.hxx>
+#include <xsetit.hxx>
+#include <xlinjoit.hxx>
+
+
+#endif // _XATTR_HXX
+
diff --git a/svx/inc/xexch.hxx b/svx/inc/xexch.hxx
new file mode 100644
index 000000000000..a9860881ce65
--- /dev/null
+++ b/svx/inc/xexch.hxx
@@ -0,0 +1,110 @@
+/*************************************************************************
+ *
+ * $RCSfile: xexch.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:01:04 $
+ *
+ * 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 _SVX_XEXCH_HXX
+#define _SVX_XEXCH_HXX
+
+
+#ifndef _STREAM_HXX
+#include <tools/stream.hxx>
+#endif
+
+//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+// Clipboard-Format fuer XOutDev-Fuellattribute
+//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+
+class XFillAttrSetItem;
+class SfxItemPool;
+
+
+
+class XFillExchangeData : public SvDataCopyStream
+{
+private:
+ XFillAttrSetItem* pXFillAttrSetItem;
+ SfxItemPool* pPool;
+
+protected:
+ // SvData-Methoden
+ virtual void Load( SvStream& );
+ virtual void Save( SvStream& );
+ virtual void Assign( const SvDataCopyStream& );
+
+public:
+ TYPEINFO();
+
+ XFillExchangeData();
+ XFillExchangeData(const XFillAttrSetItem rXFillAttrSetItem);
+ ~XFillExchangeData();
+
+ // Zuweisungsoperator
+ XFillExchangeData& operator=( const XFillExchangeData& rXFillExchangeData );
+
+ // Im-/Export
+ friend SvStream& operator<<( SvStream& rOStm, const XFillExchangeData& rXFillExchangeData );
+ friend SvStream& operator>>( SvStream& rIStm, XFillExchangeData& rXFillExchangeData );
+
+ static ULONG RegisterClipboardFormatName();
+ XFillAttrSetItem* GetXFillAttrSetItem() { return pXFillAttrSetItem; }
+};
+
+#endif // _SVX_XEXCH_HXX
+
diff --git a/svx/inc/xlinjoit.hxx b/svx/inc/xlinjoit.hxx
new file mode 100644
index 000000000000..08900c92967e
--- /dev/null
+++ b/svx/inc/xlinjoit.hxx
@@ -0,0 +1,97 @@
+/*************************************************************************
+ *
+ * $RCSfile: xlinjoit.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:01:05 $
+ *
+ * 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 _SVX_XLINJOIT_HXX
+#define _SVX_XLINJOIT_HXX
+
+#ifndef _SFXENUMITEM_HXX //autogen
+#include <svtools/eitem.hxx>
+#endif
+#ifndef _XENUM_HXX
+#include "xenum.hxx"
+#endif
+
+//---------------------
+// class LineStyleItem
+//---------------------
+
+class XLineJointItem : public SfxEnumItem
+{
+public:
+ TYPEINFO();
+ XLineJointItem( XLineJoint eLineJoint = XLINEJOINT_ROUND );
+ XLineJointItem( SvStream& rIn );
+
+ virtual USHORT GetVersion( USHORT nFileFormatVersion ) const;
+ virtual SfxPoolItem* Clone( SfxItemPool* pPool = 0 ) const;
+ virtual SfxPoolItem* Create( SvStream& rIn, USHORT nVer ) const;
+
+ virtual sal_Bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
+ virtual sal_Bool PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
+ virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
+ SfxMapUnit eCoreMetric, SfxMapUnit ePresMetric,
+ String &rText, const International * = 0 ) const;
+
+ virtual USHORT GetValueCount() const;
+ XLineJoint GetValue() const { return (XLineJoint) SfxEnumItem::GetValue(); }
+};
+
+#endif // _SVX_XLINJOIT_HXX
diff --git a/svx/inc/xoutbmp.hxx b/svx/inc/xoutbmp.hxx
new file mode 100644
index 000000000000..fc399824dbd9
--- /dev/null
+++ b/svx/inc/xoutbmp.hxx
@@ -0,0 +1,136 @@
+/*************************************************************************
+ *
+ * $RCSfile: xoutbmp.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:01:05 $
+ *
+ * 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 _XOUTBMP_HXX
+#define _XOUTBMP_HXX
+
+#ifndef _SV_GRAPH_HXX
+#include <vcl/graph.hxx>
+#endif
+
+// -----------
+// - Defines -
+// -----------
+
+#define XOUTBMP_MIRROR_HORZ 0x00000001L
+#define XOUTBMP_MIRROR_VERT 0x00000010L
+
+#define XOUTBMP_CONTOUR_HORZ 0x00000001L
+#define XOUTBMP_CONTOUR_VERT 0x00000002L
+#define XOUTBMP_CONTOUR_EDGEDETECT 0x00000004L
+
+#define XOUTBMP_DONT_EXPAND_FILENAME 0x10000000L
+#define XOUTBMP_USE_GIF_IF_POSSIBLE 0x20000000L
+#define XOUTBMP_USE_GIF_IF_SENSIBLE 0x40000000L
+
+// --------------
+// - XOutBitmap -
+// --------------
+
+// !!!DirEntry
+class DirEntry;
+class GraphicFilter;
+class VirtualDevice;
+class INetURLObject;
+class Polygon;
+
+class XOutBitmap
+{
+public:
+
+ static GraphicFilter* pGrfFilter;
+
+ static BitmapEx CreateQuickDrawBitmapEx( const Graphic& rGraphic, const OutputDevice& rCompDev,
+ const MapMode& rMapMode, const Size& rLogSize,
+ const Point& rPoint, const Size& rSize );
+ static Graphic MirrorGraphic( const Graphic& rGraphic, const ULONG nMirrorFlags );
+ static Animation MirrorAnimation( const Animation& rAnimation, BOOL bHMirr, BOOL bVMirr );
+ static Bitmap GetBitmapFromGraphic( const Graphic& rGraphic );
+ static USHORT WriteGraphic( const Graphic& rGraphic, String& rFileName,
+ const String& rFilterName, const ULONG nFlags = 0L,
+ const Size* pMtfSize_100TH_MM = NULL );
+ static void DrawQuickDrawBitmapEx( OutputDevice* pOutDev, const Point& rPt,
+ const Size& rSize, const BitmapEx& rBmpEx );
+ static void DrawTiledBitmapEx( OutputDevice* pOutDev, const Point& rStartPt, const Size& rGrfSize,
+ const Rectangle& rTileRect, const BitmapEx& rBmpEx );
+
+ static USHORT ExportGraphic( const Graphic& rGraphic, const INetURLObject& rURL,
+ GraphicFilter& rFilter, const USHORT nFormat,
+ BOOL bIgnoreOptions );
+// !!!DirEntry
+ static USHORT ExportGraphic( const Graphic& rGraphic, const DirEntry& rPath,
+ GraphicFilter& rFilter, const USHORT nFormat,
+ BOOL bIgnoreOptions );
+
+ static Bitmap DetectEdges( const Bitmap& rBmp, const BYTE cThreshold );
+
+ static Polygon GetCountour( const Bitmap& rBmp, const ULONG nContourFlags,
+ const BYTE cEdgeDetectThreshold = 50,
+ const Rectangle* pWorkRect = NULL );
+};
+
+// ----------------
+// - DitherBitmap -
+// ----------------
+
+BOOL DitherBitmap( Bitmap& rBitmap );
+
+#endif // _XOUTBMP_HXX
diff --git a/svx/inc/xpolyimp.hxx b/svx/inc/xpolyimp.hxx
new file mode 100644
index 000000000000..8065b7f1a4bf
--- /dev/null
+++ b/svx/inc/xpolyimp.hxx
@@ -0,0 +1,141 @@
+/*************************************************************************
+ *
+ * $RCSfile: xpolyimp.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:01:05 $
+ *
+ * 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 _XPOLYIMP_HXX
+#define _XPOLYIMP_HXX
+
+#ifndef _GEN_HXX
+#include <tools/gen.hxx>
+#endif
+#ifndef _XPOLY_HXX
+#include <xpoly.hxx>
+#endif
+
+#pragma hdrstop
+
+
+/*************************************************************************
+|*
+|* class ImpXPolygon
+|*
+|* Beschreibung
+|* Ersterstellung 08.11.94
+|* Letzte Aenderung Joe 26.09.95
+|*
+*************************************************************************/
+class ImpXPolygon
+{
+public:
+ Point* pPointAry;
+ BYTE* pFlagAry;
+ Point* pOldPointAry;
+ BOOL bDeleteOldPoints;
+ USHORT nSize;
+ USHORT nResize;
+ USHORT nPoints;
+ USHORT nRefCount;
+
+ ImpXPolygon( USHORT nInitSize = 16, USHORT nResize=16 );
+ ImpXPolygon( const ImpXPolygon& rImpXPoly );
+ ~ImpXPolygon();
+
+ FASTBOOL operator==(const ImpXPolygon& rImpXPoly) const;
+ FASTBOOL operator!=(const ImpXPolygon& rImpXPoly) const { return !operator==(rImpXPoly); }
+
+ void CheckPointDelete() { if ( bDeleteOldPoints )
+ { delete pOldPointAry;
+ bDeleteOldPoints = FALSE; } }
+ void Resize( USHORT nNewSize, BOOL bDeletePoints = TRUE );
+ void InsertSpace( USHORT nPos, USHORT nCount );
+ void Remove( USHORT nPos, USHORT nCount );
+};
+
+
+/*************************************************************************
+|*
+|* class ImpXPolyPolygon
+|*
+|* Beschreibung
+|* Ersterstellung 08.11.94
+|* Letzte Aenderung Joe 26-09-1995
+|*
+*************************************************************************/
+DECLARE_LIST( XPolygonList, XPolygon* );
+
+class ImpXPolyPolygon
+{
+public:
+ XPolygonList aXPolyList;
+ USHORT nRefCount;
+
+ ImpXPolyPolygon( USHORT nInitSize = 16, USHORT nResize = 16 ) :
+ aXPolyList( 1024, nInitSize, nResize )
+ { nRefCount = 1; }
+ ImpXPolyPolygon( const ImpXPolyPolygon& rImpXPolyPoly );
+ ~ImpXPolyPolygon();
+
+ FASTBOOL operator==(const ImpXPolyPolygon& rImpXPolyPoly) const;
+ FASTBOOL operator!=(const ImpXPolyPolygon& rImpXPolyPoly) const { return !operator==(rImpXPolyPoly); }
+};
+
+
+
+#endif // _XPOLYIMP_HXX
diff --git a/svx/inc/zoomctrl.hxx b/svx/inc/zoomctrl.hxx
new file mode 100644
index 000000000000..6697c4543828
--- /dev/null
+++ b/svx/inc/zoomctrl.hxx
@@ -0,0 +1,94 @@
+/*************************************************************************
+ *
+ * $RCSfile: zoomctrl.hxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 17:01:05 $
+ *
+ * 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 _SVX_ZOOMCTRL_HXX
+#define _SVX_ZOOMCTRL_HXX
+
+// include ---------------------------------------------------------------
+
+#ifndef _SFXSTBITEM_HXX //autogen
+#include <sfx2/stbitem.hxx>
+#endif
+
+// class SvxZoomToolBoxControl -------------------------------------------
+
+class SvxZoomStatusBarControl : public SfxStatusBarControl
+{
+private:
+ USHORT nZoom;
+ USHORT nValueSet;
+
+public:
+ virtual void StateChanged( USHORT nSID, SfxItemState eState,
+ const SfxPoolItem* pState );
+ virtual void Paint( const UserDrawEvent& rEvt );
+ virtual void Command( const CommandEvent& rCEvt );
+
+ SFX_DECL_STATUSBAR_CONTROL();
+
+ SvxZoomStatusBarControl( USHORT nId, StatusBar& rStb, SfxBindings& rBind );
+
+ static ULONG GetDefItemWidth(const StatusBar& rStb);
+
+};
+
+
+#endif
+