1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: inetfld.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
38 class SvxMacroTableDtor
;
44 /*--------------------------------------------------------------------
45 Beschreibung: InterNet-FieldType -> Lade Document mit der URL
46 --------------------------------------------------------------------*/
48 class SwINetFieldType
: public SwFieldType
55 SwINetFieldType( SwDoc
* pDoc
);
57 virtual SwFieldType
* Copy() const;
59 SwCharFmt
* GetCharFmt( const SwINetField
& rFld
);
61 SwDoc
* GetDoc() const { return pDoc
; }
64 /*--------------------------------------------------------------------
65 Beschreibung: InterNet-Field -> Lade Document mit der URL
66 --------------------------------------------------------------------*/
68 class SwINetField
: public SwField
70 friend class SwINetFieldType
;
72 String sTargetFrameName
; // in diesen Frame soll die URL
75 SvxMacroTableDtor
* pMacroTbl
;
78 // Direkte Eingabe alten Wert loeschen
79 SwINetField( SwINetFieldType
* pTyp
, USHORT nFmt
,
80 const String
& rURL
, const String
& rText
);
81 virtual ~SwINetField();
83 virtual String
GetCntnt(BOOL bName
= FALSE
) const;
84 virtual String
Expand() const;
85 virtual SwField
* Copy() const;
88 virtual const String
& GetPar1() const;
89 virtual void SetPar1(const String
& rStr
);
92 virtual String
GetPar2() const;
93 virtual void SetPar2(const String
& rStr
);
95 // das ist das akt. Zeichenformat
96 SwCharFmt
* GetCharFmt();
97 const SwCharFmt
* GetCharFmt() const
98 { return ((SwINetField
*)this)->GetCharFmt(); }
100 const String
& GetTargetFrameName() const { return sTargetFrameName
; }
101 void SetTargetFrameName( const String
& rNm
) { sTargetFrameName
= rNm
; }
103 // setze eine neue oder loesche die akt. MakroTabelle
104 void SetMacroTbl( const SvxMacroTableDtor
* pTbl
= 0 );
105 const SvxMacroTableDtor
* GetMacroTbl() const { return pMacroTbl
; }
107 // setze / erfrage ein Makro
108 void SetMacro( USHORT nEvent
, const SvxMacro
& rMacro
);
109 const SvxMacro
* GetMacro( USHORT nEvent
) const;
113 } //namespace binfilter
114 #endif // _INETFLD_HXX