summaryrefslogtreecommitdiff
path: root/sfx2/inc
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2007-04-11 20:21:25 +0000
committerVladimir Glazounov <vg@openoffice.org>2007-04-11 20:21:25 +0000
commit30860096b148e5d95813b3e94feedf6b47db8b5d (patch)
tree41c900dd7b3961125effdb40344190bc1691c12c /sfx2/inc
parentb25774db4315fbbbb86cc7f66f369c922b053055 (diff)
INTEGRATION: CWS hedaburemove01 (1.1.2); FILE ADDED
2007/02/09 16:14:45 vg 1.1.2.1: #72503# get rid of hedabu procedure: Moving headers to sfx2/inc/sfx2 and correspondent necessary changes
Diffstat (limited to 'sfx2/inc')
-rw-r--r--sfx2/inc/sfx2/frmhtml.hxx73
-rw-r--r--sfx2/inc/sfx2/frmhtmlw.hxx117
-rw-r--r--sfx2/inc/sfx2/genlink.hxx66
3 files changed, 256 insertions, 0 deletions
diff --git a/sfx2/inc/sfx2/frmhtml.hxx b/sfx2/inc/sfx2/frmhtml.hxx
new file mode 100644
index 000000000000..cae7f3070850
--- /dev/null
+++ b/sfx2/inc/sfx2/frmhtml.hxx
@@ -0,0 +1,73 @@
+/*************************************************************************
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * $RCSfile: frmhtml.hxx,v $
+ *
+ * $Revision: 1.2 $
+ *
+ * last change: $Author: vg $ $Date: 2007-04-11 21:21:06 $
+ *
+ * The Contents of this file are made available subject to
+ * the terms of GNU Lesser General Public License Version 2.1.
+ *
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2005 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
+ *
+ ************************************************************************/
+
+#ifndef _FRMHTML_HXX
+#define _FRMHTML_HXX
+
+#ifndef _SAL_CONFIG_H_
+#include "sal/config.h"
+#endif
+
+#ifndef INCLUDED_SFX2_DLLAPI_H
+#include "sfx2/dllapi.h"
+#endif
+
+#include <sfx2/frmdescr.hxx>
+#include <sfx2/sfxhtml.hxx>
+
+class SfxFrameHTMLParser;
+class SfxDocumentInfo;
+class _SfxFrameHTMLContexts;
+class SfxFrameSetObjectShell;
+class SvULongs;
+class SfxMedium;
+namespace svtools { class AsynchronLink; }
+
+class SFX2_DLLPUBLIC SfxFrameHTMLParser : public SfxHTMLParser
+{
+ friend class _SfxFrameHTMLContext;
+
+protected:
+ SfxFrameHTMLParser( SvStream& rStream, BOOL bIsNewDoc=TRUE, SfxMedium *pMediumPtr=0 ):
+ SfxHTMLParser( rStream, bIsNewDoc, pMediumPtr ) {};
+
+public:
+ // Diese Methoden koennen auch von anderen Parsern benutzt werden
+ static void ParseFrameOptions(SfxFrameDescriptor*, const HTMLOptions*, const String& );
+
+};
+
+#endif
+
diff --git a/sfx2/inc/sfx2/frmhtmlw.hxx b/sfx2/inc/sfx2/frmhtmlw.hxx
new file mode 100644
index 000000000000..308330267f24
--- /dev/null
+++ b/sfx2/inc/sfx2/frmhtmlw.hxx
@@ -0,0 +1,117 @@
+/*************************************************************************
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * $RCSfile: frmhtmlw.hxx,v $
+ *
+ * $Revision: 1.2 $
+ *
+ * last change: $Author: vg $ $Date: 2007-04-11 21:21:15 $
+ *
+ * The Contents of this file are made available subject to
+ * the terms of GNU Lesser General Public License Version 2.1.
+ *
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2005 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
+ *
+ ************************************************************************/
+#ifndef _FRMHTMLW_HXX
+#define _FRMHTMLW_HXX
+
+#ifndef _SAL_CONFIG_H_
+#include "sal/config.h"
+#endif
+
+#ifndef INCLUDED_SFX2_DLLAPI_H
+#include "sfx2/dllapi.h"
+#endif
+
+#ifndef _SAL_TYPES_H_
+#include "sal/types.h"
+#endif
+
+#include <sfx2/frmdescr.hxx>
+
+#ifndef _COM_SUN_STAR_UNO_REFERENCE_H_
+#include <com/sun/star/uno/Reference.h>
+#endif
+#ifndef _COM_SUN_STAR_BEANS_XPROPERTYSET_HPP_
+#include <com/sun/star/beans/XPropertySet.hpp>
+#endif
+
+#ifndef _STREAM_HXX
+#include <tools/stream.hxx>
+#endif
+
+#ifndef _PARHTML_HXX
+#include <svtools/parhtml.hxx>
+#endif
+#ifndef _HTMLOUT_HXX
+#include <svtools/htmlout.hxx>
+#endif
+#ifndef _HTMLKYWD_HXX
+#include <svtools/htmlkywd.hxx>
+#endif
+
+class SfxDocumentInfo;
+class SfxFrameSetObjectShell;
+class SfxFrame;
+
+class SFX2_DLLPUBLIC SfxFrameHTMLWriter
+{
+ SAL_DLLPRIVATE static const sal_Char sNewLine[];
+ SAL_DLLPRIVATE static void OutMeta( SvStream& rStrm,
+ const sal_Char *pIndent, const String& rName,
+ const String& rContent, BOOL bHTTPEquiv,
+ rtl_TextEncoding eDestEnc,
+ String *pNonConvertableChars = 0 );
+ SAL_DLLPRIVATE inline static void OutMeta( SvStream& rStrm,
+ const sal_Char *pIndent, const sal_Char *pName,
+ const String& rContent, BOOL bHTTPEquiv,
+ rtl_TextEncoding eDestEnc,
+ String *pNonConvertableChars = 0 );
+
+public:
+ static void Out_DocInfo( SvStream& rStrm, const String& rBaseURL, const SfxDocumentInfo* pInfo,
+ const sal_Char *pIndent,
+ rtl_TextEncoding eDestEnc = RTL_TEXTENCODING_MS_1252,
+ String *pNonConvertableChars = 0 );
+
+ static void Out_FrameDescriptor(
+ SvStream&, const String& rBaseURL, const com::sun::star::uno::Reference < com::sun::star::beans::XPropertySet >& xSet,
+ rtl_TextEncoding eDestEnc = RTL_TEXTENCODING_MS_1252,
+ String *pNonConvertableChars = 0 );
+
+ String CreateURL( SfxFrame* pFrame );
+
+};
+
+inline void SfxFrameHTMLWriter::OutMeta( SvStream& rStrm,
+ const sal_Char *pIndent, const sal_Char *pName,
+ const String& rContent, BOOL bHTTPEquiv,
+ rtl_TextEncoding eDestEnc,
+ String *pNonConvertableChars )
+{
+ String sTmp = String::CreateFromAscii( pName );
+ OutMeta( rStrm, pIndent, sTmp, rContent, bHTTPEquiv, eDestEnc, pNonConvertableChars );
+}
+
+#endif
+
diff --git a/sfx2/inc/sfx2/genlink.hxx b/sfx2/inc/sfx2/genlink.hxx
new file mode 100644
index 000000000000..584766698fb6
--- /dev/null
+++ b/sfx2/inc/sfx2/genlink.hxx
@@ -0,0 +1,66 @@
+/*************************************************************************
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * $RCSfile: genlink.hxx,v $
+ *
+ * $Revision: 1.2 $
+ *
+ * last change: $Author: vg $ $Date: 2007-04-11 21:21:25 $
+ *
+ * The Contents of this file are made available subject to
+ * the terms of GNU Lesser General Public License Version 2.1.
+ *
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2005 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
+ *
+ ************************************************************************/
+#ifndef _SFXGENLINK_HXX
+#define _SFXGENLINK_HXX
+
+
+#ifndef _LINK_HXX //autogen
+#include <tools/link.hxx>
+#endif
+typedef long (*CFuncPtr)(void*);
+
+class GenLink
+{
+ Link aLink;
+ CFuncPtr pFunc;
+
+public:
+ GenLink(): pFunc(0) {}
+ GenLink( CFuncPtr pCFunc ): pFunc(pCFunc) {}
+ GenLink( const Link& rLink ): aLink(rLink), pFunc(0) {}
+ GenLink( const GenLink& rOrig ):
+ aLink(rOrig.aLink), pFunc(rOrig.pFunc) {}
+
+ GenLink& operator = ( const GenLink& rOrig )
+ { pFunc = rOrig.pFunc; aLink = rOrig.aLink; return *this; }
+
+ BOOL operator!() const { return !aLink && !pFunc; }
+ BOOL IsSet() const { return aLink.IsSet() || pFunc; }
+
+ long Call( void* pCaller )
+ { return pFunc ? (*pFunc)(pCaller) : aLink.Call(pCaller); }
+};
+
+#endif