merge DEV300_m77

This commit is contained in:
Michael Stahl 2010-04-27 14:58:14 +02:00
commit 9fe6487ae8
1980 changed files with 83182 additions and 46696 deletions

View file

@ -2,13 +2,10 @@
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: filter.hrc,v $
* $Revision: 1.9 $
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify
@ -33,10 +30,7 @@
// include ---------------------------------------------------------------
#ifndef _SOLAR_HRC
#include <svl/solar.hrc>
#endif
// Help-Ids --------------------------------------------------------------
@ -46,8 +40,20 @@
#define RID_XSLT_DIALOG_END (RID_FILTER_START + 69)
#define RID_PDF_OLD_EXPORT_DLG (RID_FILTER_START + 70)
// warning, next range is RID_FILTER_START + 100 !
#define DLG_EXPORT_EPCT (RID_GOODIES_START+ 0)
#define DLG_EXPORT_GIF (RID_GOODIES_START+ 1)
#define DLG_EXPORT_EMET (RID_GOODIES_START+ 2)
#define DLG_EXPORT_JPG (RID_GOODIES_START+ 3)
#define DLG_IMPORT_PCD (RID_GOODIES_START+ 4)
#define DLG_EXPORT_EPNG (RID_GOODIES_START+ 5)
#define DLG_EXPORT_EPS (RID_GOODIES_START+ 8)
#define DLG_EXPORT_EPBM (RID_GOODIES_START+ 9)
#define DLG_EXPORT_EPGM (RID_GOODIES_START+ 10)
#define DLG_EXPORT_EPPM (RID_GOODIES_START+ 11)
#define DLG_SSL_NEWCERT (RID_GOODIES_START+ 12)
#define DLG_SSL_INFCERT (RID_GOODIES_START+ 13)
// warning, next range is RID_FILTER_START + 100 !
#define HID_FILTER_XSLT_START (HID_FILTER_START + 0) // see source/xsltdialog/xmlfilterhelpids.hrc for range
#define HID_FILTER_XSLT_END (HID_FILTER_START + 99)

View file

@ -2,13 +2,10 @@
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: countryid.hxx,v $
* $Revision: 1.7 $
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify

View file

@ -2,13 +2,10 @@
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: escherex.hxx,v $
* $Revision: 1.6.146.1 $
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify
@ -31,13 +28,15 @@
#ifndef _SVX_ESCHEREX_HXX
#define _SVX_ESCHEREX_HXX
#include <memory>
#include <vector>
#include <boost/shared_ptr.hpp>
#include <tools/solar.h>
#include <tools/gen.hxx>
#include <tools/list.hxx>
#include <tools/stream.hxx>
#include <com/sun/star/uno/Reference.h>
#include <goodies/grfmgr.hxx>
#include <svtools/grfmgr.hxx>
#include <com/sun/star/awt/Size.hpp>
#include <com/sun/star/awt/Point.hpp>
#include <com/sun/star/awt/Rectangle.hpp>
@ -948,13 +947,13 @@ enum ESCHER_LineCap
#define ESCHER_Persist_PrivateEntry 0x80000000
#define ESCHER_Persist_Dgg 0x00010000
#define ESCHER_Persist_Dgg_FIDCL 0x00010001
#define ESCHER_Persist_Dg 0x00020000
#define ESCHER_Persist_BlibStoreContainer 0x00030000
#define ESCHER_Persist_CurrentPosition 0x00040000
#define ESCHER_Persist_Grouping_Snap 0x00050000
#define ESCHER_Persist_Grouping_Logic 0x00060000
const sal_uInt32 DFF_DGG_CLUSTER_SIZE = 0x00000400; /// Shape IDs per cluster in DGG atom.
// ---------------------------------------------------------------------------------------------
namespace com { namespace sun { namespace star {
@ -964,6 +963,7 @@ namespace com { namespace sun { namespace star {
namespace drawing {
struct EnhancedCustomShapeAdjustmentValue;
class XShape;
class XShapes;
}
}}}
@ -1033,13 +1033,11 @@ struct EscherPersistEntry
// ---------------------------------------------------------------------------------------------
class SvMemoryStream;
class EscherBlibEntry
{
friend class EscherGraphicProvider;
friend class EscherEx;
friend class _EscherEx;
protected:
@ -1347,52 +1345,137 @@ public:
};
// ============================================================================
/** Instance for global DFF data, shared through various instances of EscherEx. */
class MSFILTER_DLLPUBLIC EscherExGlobal : public EscherGraphicProvider
{
public:
explicit EscherExGlobal( sal_uInt32 nGraphicProvFlags = _E_GRAPH_PROV_DO_NOT_ROTATE_METAFILES );
virtual ~EscherExGlobal();
/** Returns a new drawing ID for a new drawing container (DGCONTAINER). */
sal_uInt32 GenerateDrawingId();
/** Creates and returns a new shape identifier, updates the internal shape
counters and registers the identifier in the DGG cluster table.
@param nDrawingId Drawing identifier has to be passed to be able to
generate shape identifiers for multiple drawings simultaniously. */
sal_uInt32 GenerateShapeId( sal_uInt32 nDrawingId, bool bIsInSpgr );
/** Returns the number of shapes in the current drawing, based on number of
calls to the GenerateShapeId() function. */
sal_uInt32 GetDrawingShapeCount( sal_uInt32 nDrawingId ) const;
/** Returns the last shape identifier generated by the GenerateShapeId()
function. */
sal_uInt32 GetLastShapeId( sal_uInt32 nDrawingId ) const;
/** Sets the flag indicating that the DGGCONTAINER exists. */
inline void SetDggContainer() { mbHasDggCont = true; }
/** Sets the flag indicating that the DGGCONTAINER exists. */
inline bool HasDggContainer() const { return mbHasDggCont; }
/** Returns the total size of the DGG atom (including header). */
sal_uInt32 GetDggAtomSize() const;
/** Writes the complete DGG atom to the passed stream (overwrites existing data!). */
void WriteDggAtom( SvStream& rStrm ) const;
/** Called if a picture shall be written and no picture stream is set at
class ImplEscherExSdr.
On first invokation, this function calls the virtual member function
ImplQueryPictureStream(). The return value will be cached internally
for subsequent calls and for the GetPictureStream() function.
*/
SvStream* QueryPictureStream();
/** Returns the picture stream if existing (queried), otherwise null. */
inline SvStream* GetPictureStream() { return mpPicStrm; }
private:
/** Derived classes may implement to create a new stream used to store the
picture data.
The implementation has to take care about lifetime of the returned
stream (it will not be destructed automatically). This function is
called exactly once. The return value will be cached internally for
repeated calls of the public QueryPictureStream() function.
*/
virtual SvStream* ImplQueryPictureStream();
private:
struct ClusterEntry
{
sal_uInt32 mnDrawingId; /// Identifier of drawing this cluster belongs to (one-based index into maDrawingInfos).
sal_uInt32 mnNextShapeId; /// Next free shape identifier in this cluster.
inline explicit ClusterEntry( sal_uInt32 nDrawingId ) : mnDrawingId( nDrawingId ), mnNextShapeId( 0 ) {}
};
typedef ::std::vector< ClusterEntry > ClusterTable;
struct DrawingInfo
{
sal_uInt32 mnClusterId; /// Currently used cluster (one-based index into maClusterTable).
sal_uInt32 mnShapeCount; /// Current number of shapes in this drawing.
sal_uInt32 mnLastShapeId; /// Last shape identifier generated for this drawing.
inline explicit DrawingInfo( sal_uInt32 nClusterId ) : mnClusterId( nClusterId ), mnShapeCount( 0 ), mnLastShapeId( 0 ) {}
};
typedef ::std::vector< DrawingInfo > DrawingInfoVector;
ClusterTable maClusterTable; /// List with cluster IDs (used object IDs in drawings).
DrawingInfoVector maDrawingInfos; /// Data about all used drawings.
SvStream* mpPicStrm; /// Cached result of ImplQueryPictureStream().
bool mbHasDggCont; /// True = the DGGCONTAINER has been initialized.
bool mbPicStrmQueried; /// True = ImplQueryPictureStream() has been called.
};
typedef ::boost::shared_ptr< EscherExGlobal > EscherExGlobalRef;
// ---------------------------------------------------------------------------------------------
class SdrObject;
class SdrPage;
class ImplEscherExSdr;
class Color;
class Graphic;
class SvMemoryStream;
class SvStream;
class MSFILTER_DLLPUBLIC EscherEx : public EscherPersistTable, public EscherGraphicProvider
class MSFILTER_DLLPUBLIC EscherEx : public EscherPersistTable
{
protected :
protected:
typedef ::std::auto_ptr< ImplEscherExSdr > ImplEscherExSdrPtr;
EscherExGlobalRef mxGlobal;
ImplEscherExSdrPtr mpImplEscherExSdr;
SvStream* mpOutStrm;
ImplEscherExSdr* mpImplEscherExSdr;
UINT32 mnStrmStartOfs;
std::vector< sal_uInt32 > mOffsets;
std::vector< sal_uInt16 > mRecTypes;
UINT32 mnDrawings;
UINT32 mnFIDCLs; // anzahl der cluster ID's
UINT32 mnCurrentDg;
UINT32 mnCurrentShapeID; // die naechste freie ID
UINT32 mnCurrentShapeMaximumID; // die hoechste und auch benutzte ID
UINT32 mnTotalShapesDg; // anzahl der shapes im Dg
UINT32 mnTotalShapeIdUsedDg; // anzahl der benutzten shape Id's im Dg
UINT32 mnTotalShapesDgg; // anzahl der shapes im Dgg
UINT32 mnCountOfs;
UINT32 mnGroupLevel;
UINT16 mnHellLayerId;
BOOL mbEscherSpgr;
BOOL mbEscherDgg;
BOOL mbEscherDg;
BOOL mbOleEmf; // OLE is EMF instead of WMF
virtual BOOL DoSeek( UINT32 nKey );
public:
public:
explicit EscherEx( const EscherExGlobalRef& rxGlobal, SvStream& rOutStrm );
virtual ~EscherEx();
EscherEx( SvStream& rOut, UINT32 nDrawings );
/** Creates and returns a new shape identifier, updates the internal shape
counters and registers the identifier in the DGG cluster table. */
inline sal_uInt32 GenerateShapeId() { return mxGlobal->GenerateShapeId( mnCurrentDg, mbEscherSpgr ); }
/** Returns the graphic provider from the global object that has been
passed to the constructor.
*/
inline EscherGraphicProvider&
GetGraphicProvider() { return *mxGlobal; }
/** Called if a picture shall be written and no picture stream is set at
class ImplEscherExSdr.
*/
inline SvStream* QueryPictureStream() { return mxGlobal->QueryPictureStream(); }
/// Fuegt in den EscherStream interne Daten ein, dieser Vorgang
/// darf und muss nur einmal ausgefuehrt werden.
@ -1401,14 +1484,29 @@ class MSFILTER_DLLPUBLIC EscherEx : public EscherPersistTable, public EscherGrap
/// gemerged, wie es fuer Excel (und Word?) benoetigt wird.
virtual void Flush( SvStream* pPicStreamMergeBSE = NULL );
virtual ~EscherEx();
/** Inserts the passed number of bytes at the current position of the
output stream.
// Application may overload this function to maintain an offset
// table for specific regions but MUST call this function too.
virtual void InsertAtCurrentPos( UINT32 nBytes, BOOL bCont = FALSE );// es werden nBytes an der aktuellen Stream Position eingefuegt,
// die PersistantTable und interne Zeiger angepasst
Inserts dummy bytes and moves all following stream data, and updates
all internal stream offsets stored in the PersistTable and the affected
container sizes, which makes this operation very expensive. (!)
@param nBytes The number of bytes to be inserted into the stream.
@param bExpandEndOfAtom If set to true, an atom that currently ends
exactly at the current stream position will be expanded to include
the inserted data. If set to false, an atom that currently ends
exactly at the current stream position will not be expanded to
include the inserted data (used to insert e.g. a new atom after an
existing atom). Note that containers that end exactly at the
current stream position are always expanded to include the inserted
data.
*/
void InsertAtCurrentPos( sal_uInt32 nBytes, bool bExpandEndOfAtom );
void InsertPersistOffset( UINT32 nKey, UINT32 nOffset ); // Es wird nicht geprueft, ob sich jener schluessel schon in der PersistantTable befindet
void ReplacePersistOffset( UINT32 nKey, UINT32 nOffset );
UINT32 GetPersistOffset( UINT32 nKey );
BOOL SeekToPersistOffset( UINT32 nKey );
virtual BOOL InsertAtPersistOffset( UINT32 nKey, UINT32 nValue );// nValue wird im Stream an entrsprechender Stelle eingefuegt(overwrite modus), ohne dass sich die
// aktuelle StreamPosition aendert
@ -1443,21 +1541,16 @@ class MSFILTER_DLLPUBLIC EscherEx : public EscherPersistTable, public EscherGrap
// ein ESCHER_Sp wird geschrieben ( Ein ESCHER_DgContainer muss dazu geoeffnet sein !!)
virtual void AddShape( UINT32 nShpInstance, UINT32 nFlagIds, UINT32 nShapeID = 0 );
// reserviert eine ShapeId
UINT32 GetShapeID();
virtual void Commit( EscherPropertyContainer& rProps, const Rectangle& rRect );
UINT32 GetColor( const UINT32 nColor, BOOL bSwap = TRUE );
UINT32 GetColor( const Color& rColor, BOOL bSwap = TRUE );
// OLE is written as EMF instead of WMF (default WMF)
void SetOleEmf( BOOL bVal ) { mbOleEmf = bVal; }
BOOL IsOleEmf() const { return mbOleEmf; }
// ...Sdr... implemented in eschesdo.cxx
void AddSdrPage( const SdrPage& rPage );
void AddUnoShapes( const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShapes >& rxShapes );
/// returns the ShapeID
UINT32 AddSdrObject( const SdrObject& rObj );
@ -1470,7 +1563,9 @@ class MSFILTER_DLLPUBLIC EscherEx : public EscherPersistTable, public EscherGrap
/// Called before a shape is written, application supplies
/// ClientRecords. May set AppData::bDontWriteShape so the
/// shape is ignored.
virtual EscherExHostAppData* StartShape( const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape >& rShape );
virtual EscherExHostAppData* StartShape(
const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape >& rShape,
const Rectangle* pChildAnchor );
/// Called after a shape is written to inform the application
/// of the resulted shape type and ID.
@ -1494,10 +1589,6 @@ class MSFILTER_DLLPUBLIC EscherEx : public EscherPersistTable, public EscherGrap
/// the same functionality as an ordinary recursive group.
virtual EscherExHostAppData* EnterAdditionalTextGroup();
/// Called if a picture shall be written and no PicStream is
/// set at ImplEscherExSdr
virtual SvStream* QueryPicStream();
/// Called if an ESCHER_Prop_lTxid shall be written
virtual UINT32 QueryTextID( const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape >&, UINT32 nShapeId );
// add an dummy rectangle shape into the escher stream
@ -1507,6 +1598,14 @@ class MSFILTER_DLLPUBLIC EscherEx : public EscherPersistTable, public EscherGrap
void SetHellLayerId( UINT16 nId ) { mnHellLayerId = nId; }
UINT16 GetHellLayerId() const { return mnHellLayerId; }
private:
EscherEx( const EscherEx& );
EscherEx& operator=( const EscherEx& );
// prevent C-style cast to former base class EscherGraphicProvider
operator EscherGraphicProvider&();
operator EscherGraphicProvider const&();
};

View file

@ -2,13 +2,10 @@
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: mscodec.hxx,v $
* $Revision: 1.5 $
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify

View file

@ -2,13 +2,10 @@
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: msdffimp.hxx,v $
* $Revision: 1.4.214.1 $
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify

View file

@ -2,13 +2,10 @@
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: dllapi.h,v $
* $Revision: 1.3 $
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify

View file

@ -2,13 +2,10 @@
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: msfiltertracer.hxx,v $
* $Revision: 1.3 $
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify

View file

@ -2,13 +2,10 @@
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: msocximex.hxx,v $
* $Revision: 1.6 $
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify

View file

@ -2,13 +2,10 @@
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: msoleexp.hxx,v $
* $Revision: 1.5 $
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify

View file

@ -1,58 +0,0 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile:
* $Revision:
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 3
* only, as published by the Free Software Foundation.
*
* OpenOffice.org 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 version 3 for more details
* (a copy is included in the LICENSE file that accompanied this code).
*
* You should have received a copy of the GNU Lesser General Public License
* version 3 along with OpenOffice.org. If not, see
* <http://www.openoffice.org/license.html>
* for a copy of the LGPLv3 License.
*
************************************************************************/
#ifndef _MSVBAHELPER_HXX
#define _MSVBAHELPER_HXX
#include <sfx2/objsh.hxx>
#include "filter/msfilter/msfilterdllapi.h"
namespace ooo { namespace vba
{
class MSFILTER_DLLPUBLIC VBAMacroResolvedInfo
{
SfxObjectShell* mpDocContext;
bool mbFound;
String msResolvedMacro;
public:
VBAMacroResolvedInfo() : mpDocContext(NULL), mbFound( false ){}
void SetResolved( bool bRes ) { mbFound = bRes; }
bool IsResolved() { return mbFound; }
void SetMacroDocContext(SfxObjectShell* pShell ) { mpDocContext = pShell; }
SfxObjectShell* MacroDocContext() { return mpDocContext; }
String ResolvedMacro() { return msResolvedMacro; }
void SetResolvedMacro(const String& sMacro ) { msResolvedMacro = sMacro; }
};
MSFILTER_DLLPUBLIC String makeMacroURL( const String& sMacroName );
MSFILTER_DLLPUBLIC VBAMacroResolvedInfo resolveVBAMacro( SfxObjectShell* pShell, const rtl::OUString& sMod, bool bSearchGlobalTemplates = false );
MSFILTER_DLLPUBLIC sal_Bool executeMacro( SfxObjectShell* pShell, const String& sMacroName, com::sun::star::uno::Sequence< com::sun::star::uno::Any >& aArgs, com::sun::star::uno::Any& aRet, const com::sun::star::uno::Any& aCaller );
} }
#endif

View file

@ -2,13 +2,10 @@
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: svdfppt.hxx,v $
* $Revision: 1.7.6.1 $
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify
@ -39,14 +36,14 @@
#include <tools/gen.hxx>
#include <tools/color.hxx>
#include <svx/svdobj.hxx>
#include <svx/numitem.hxx>
#include <svx/editdata.hxx>
#include <editeng/numitem.hxx>
#include <editeng/editdata.hxx>
#include <filter/msfilter/msdffimp.hxx> // Escher-Grafikimport
#include <filter/msfilter/msocximex.hxx>
#include <filter/msfilter/msfiltertracer.hxx>
#include <svx/eeitem.hxx>
#include <editeng/eeitem.hxx>
#define ITEMID_FIELD EE_FEATURE_FIELD
#include <svx/flditem.hxx>
#include <editeng/flditem.hxx>
#undef ITEMID_FIELD
#include "filter/msfilter/msfilterdllapi.h"
#include <vcl/font.hxx>

View file

@ -2,13 +2,10 @@
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: svxmsbas.hxx,v $
* $Revision: 1.6 $
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify

View file

@ -2,14 +2,10 @@
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# Copyright 2008 by Sun Microsystems, Inc.
# Copyright 2000, 2010 Oracle and/or its affiliates.
#
# OpenOffice.org - a multi-platform office productivity suite
#
# $RCSfile: makefile.mk,v $
#
# $Revision: 1.3 $
#
# This file is part of OpenOffice.org.
#
# OpenOffice.org is free software: you can redistribute it and/or modify

View file

@ -2,13 +2,10 @@
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: precompiled_filter.cxx,v $
* $Revision: 1.3 $
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify

View file

@ -2,13 +2,10 @@
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: precompiled_filter.hxx,v $
* $Revision: 1.3 $
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify

View file

@ -1,4 +1,4 @@
fl filter : l10n svtools unotools goodies xmloff cppu tools cppuhelper sal svx javaunohelper XPDF:xpdf jvmaccess canvas SAXON:saxon LIBXSLT:libxslt NULL
fl filter : vbahelper l10n svtools unotools xmloff cppu tools cppuhelper sal svx javaunohelper XPDF:xpdf jvmaccess canvas SAXON:saxon LIBXSLT:libxslt NULL
fl filter usr1 - all fl_mkout NULL
fl filter\prj get - all fl_prj NULL
fl filter\inc nmake - all fl_inc NULL
@ -16,6 +16,28 @@ fl filter\source\xsltvalidate nmake - all fl_xsltvalidate fl_xsltfilter fl_in
fl filter\source\xsltdialog nmake - all fl_xsltdialog fl_flash fl_inc NULL
fl filter\source\docbook nmake - all fl_docbook fl_inc NULL
fl filter\source\t602 nmake - all fl_t602 fl_inc NULL
fl filter\source\graphicfilter\eos2met nmake - all g_vfeom fl_inc NULL
fl filter\source\graphicfilter\ios2met nmake - all g_vfiom fl_inc NULL
fl filter\source\graphicfilter\epict nmake - all g_vfept fl_inc NULL
fl filter\source\graphicfilter\egif nmake - all g_vfegf fl_inc NULL
fl filter\source\graphicfilter\ipcd nmake - all g_vfipc fl_inc NULL
fl filter\source\graphicfilter\ipcx nmake - all g_vfipx fl_inc NULL
fl filter\source\graphicfilter\ipict nmake - all g_vfipt fl_inc NULL
fl filter\source\graphicfilter\idxf nmake - all g_vfidx fl_inc NULL
fl filter\source\graphicfilter\itiff nmake - all g_vfitf fl_inc NULL
fl filter\source\graphicfilter\ipbm nmake - all g_vfpbm fl_inc NULL
fl filter\source\graphicfilter\epbm nmake - all g_epbm fl_inc NULL
fl filter\source\graphicfilter\epgm nmake - all g_epgm fl_inc NULL
fl filter\source\graphicfilter\eppm nmake - all g_eppm fl_inc NULL
fl filter\source\graphicfilter\iras nmake - all g_iras fl_inc NULL
fl filter\source\graphicfilter\expm nmake - all g_expm fl_inc NULL
fl filter\source\graphicfilter\eras nmake - all g_eras fl_inc NULL
fl filter\source\graphicfilter\etiff nmake - all g_etiff fl_inc NULL
fl filter\source\graphicfilter\eps nmake - all g_eps fl_inc NULL
fl filter\source\graphicfilter\itga nmake - all g_itga fl_inc NULL
fl filter\source\graphicfilter\ipsd nmake - all g_ipsd fl_inc NULL
fl filter\source\graphicfilter\ieps nmake - all g_ieps fl_inc NULL
fl filter\source\graphicfilter\icgm nmake - all g_icgm fl_inc NULL
fl filter\source\config\cache nmake - all fl_config fl_inc NULL
fl filter\source\config\fragments\types nmake - all fl_fcfg_fragments_types fl_inc NULL
fl filter\source\config\fragments\filters nmake - all fl_fcfg_fragments_filters fl_inc NULL

View file

@ -2,13 +2,10 @@
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: Helper.java,v $
* $Revision: 1.5 $
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify

View file

@ -2,13 +2,10 @@
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: TypeDetection.java,v $
* $Revision: 1.5 $
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify

View file

@ -2,14 +2,10 @@
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# Copyright 2008 by Sun Microsystems, Inc.
# Copyright 2000, 2010 Oracle and/or its affiliates.
#
# OpenOffice.org - a multi-platform office productivity suite
#
# $RCSfile: makefile.mk,v $
#
# $Revision: 1.9.102.1 $
#
# This file is part of OpenOffice.org.
#
# OpenOffice.org is free software: you can redistribute it and/or modify
@ -85,10 +81,6 @@ CT_APP = org.openoffice.Runner
$(CLASSDIR)$/$(PACKAGE)$/files.csv : ALLDEP
.ENDIF
TST:
@echo "$(USE_SHELL)"
.INCLUDE : target.mk
$(CLASSDIR)$/$(PACKAGE)$/preselectedFilter.csv : preselectedFilter.csv
@ -113,16 +105,9 @@ $(CLASSDIR)$/$(PACKAGE)$/TypeDetection.props : TypeDetection.props
# --- chmod --------------------------------------------------------
.IF "$(USE_SHELL)" != "4nt"
CHMOD :
chmod 444 $(CLASSDIR)$/$(PACKAGE)$/*.csv
chmod 666 $(CLASSDIR)$/$(PACKAGE)$/*.props
.ELSE
CHMOD :
echo erstmanix
.ENDIF
RUN: run

View file

@ -2,13 +2,10 @@
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: FinalizedMandatoryTest.java,v $
* $Revision: 1.4 $
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify

View file

@ -2,14 +2,10 @@
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# Copyright 2008 by Sun Microsystems, Inc.
# Copyright 2000, 2010 Oracle and/or its affiliates.
#
# OpenOffice.org - a multi-platform office productivity suite
#
# $RCSfile: makefile.mk,v $
#
# $Revision: 1.7.102.1 $
#
# This file is part of OpenOffice.org.
#
# OpenOffice.org is free software: you can redistribute it and/or modify

View file

@ -2,13 +2,10 @@
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: basecontainer.cxx,v $
* $Revision: 1.11 $
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify

View file

@ -2,13 +2,10 @@
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: basecontainer.hxx,v $
* $Revision: 1.9 $
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify

View file

@ -2,13 +2,10 @@
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: cacheitem.cxx,v $
* $Revision: 1.6 $
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify

View file

@ -2,13 +2,10 @@
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: cacheitem.hxx,v $
* $Revision: 1.6 $
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify

View file

@ -2,13 +2,10 @@
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: cacheupdatelistener.cxx,v $
* $Revision: 1.7 $
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify

View file

@ -2,13 +2,10 @@
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: cacheupdatelistener.hxx,v $
* $Revision: 1.7 $
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify

View file

@ -2,13 +2,10 @@
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: configflush.cxx,v $
* $Revision: 1.5 $
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify

View file

@ -2,13 +2,10 @@
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: configflush.hxx,v $
* $Revision: 1.4 $
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify

View file

@ -2,13 +2,10 @@
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: constant.hxx,v $
* $Revision: 1.11 $
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify

View file

@ -2,13 +2,10 @@
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: contenthandlerfactory.cxx,v $
* $Revision: 1.5 $
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify

View file

@ -2,13 +2,10 @@
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: contenthandlerfactory.hxx,v $
* $Revision: 1.4 $
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify

View file

@ -1,10 +0,0 @@
UDK_3_0_0 {
global:
GetVersionInfo;
component_getImplementationEnvironment;
component_getFactory;
component_writeInfo;
local:
*;
};

View file

@ -2,13 +2,10 @@
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: filtercache.cxx,v $
* $Revision: 1.26 $
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify
@ -2456,6 +2453,7 @@ OUStringList FilterCache::impl_tokenizeString(const ::rtl::OUString& sData ,
return lData;
}
#if OSL_DEBUG_LEVEL > 0
/*-----------------------------------------------*/
::rtl::OUString FilterCache::impl_searchFrameLoaderForType(const ::rtl::OUString& sType) const
{
@ -2493,6 +2491,7 @@ OUStringList FilterCache::impl_tokenizeString(const ::rtl::OUString& sData ,
return ::rtl::OUString();
}
#endif
/*-----------------------------------------------*/
sal_Bool FilterCache::impl_isModuleInstalled(const ::rtl::OUString& sModule)

View file

@ -2,13 +2,10 @@
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: filtercache.hxx,v $
* $Revision: 1.9 $
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify
@ -1022,9 +1019,11 @@ class FilterCache : public BaseLock
//---------------------------------------
#if OSL_DEBUG_LEVEL > 0
/** TODO */
::rtl::OUString impl_searchFrameLoaderForType(const ::rtl::OUString& sType) const;
::rtl::OUString impl_searchContentHandlerForType(const ::rtl::OUString& sType) const;
#endif
//---------------------------------------
/** @short check if the specified OOo module is installed.

View file

@ -2,13 +2,10 @@
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: filterfactory.cxx,v $
* $Revision: 1.11 $
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify

View file

@ -2,13 +2,10 @@
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: filterfactory.hxx,v $
* $Revision: 1.6 $
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify

View file

@ -2,13 +2,10 @@
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: frameloaderfactory.cxx,v $
* $Revision: 1.5 $
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify

View file

@ -2,13 +2,10 @@
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: frameloaderfactory.hxx,v $
* $Revision: 1.4 $
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify

View file

@ -2,13 +2,10 @@
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: lateinitlistener.cxx,v $
* $Revision: 1.6 $
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify
@ -59,7 +56,7 @@ LateInitListener::LateInitListener(const css::uno::Reference< css::lang::XMultiS
// important to do so ...
// Otherwhise the temp. reference to ourselves
// will kill us at realeasing time!
++m_refCount;
osl_incrementInterlockedCount( &m_refCount );
m_xBroadcaster = css::uno::Reference< css::document::XEventBroadcaster >(
m_xSMGR->createInstance(::rtl::OUString::createFromAscii("com.sun.star.frame.GlobalEventBroadcaster")),
@ -67,7 +64,7 @@ LateInitListener::LateInitListener(const css::uno::Reference< css::lang::XMultiS
m_xBroadcaster->addEventListener(static_cast< css::document::XEventListener* >(this));
--m_refCount;
osl_decrementInterlockedCount( &m_refCount );
}
/*-----------------------------------------------
@ -95,6 +92,16 @@ void SAL_CALL LateInitListener::notifyEvent(const css::document::EventObject& aE
// SAFE ->
::osl::ResettableMutexGuard aLock(m_aLock);
if ( !m_xBroadcaster.is() )
// the beauty of multi-threading ... OnLoad can be notified synchronously or asynchronously. In particular,
// SFX-based documents notify it synchronously, database documents do it asynchronously.
// Now if multiple documents are opened "at the same time", it is well possible that we get two events from
// different threads, where upon the first event, we already remove ourself from m_xBroadcaster, and start
// the thread, nonetheless there's also a second notification "in the queue", which will arrive short
// thereafter.
// In such a case, simply ignore this second event.
return;
m_xBroadcaster->removeEventListener(static_cast< css::document::XEventListener* >(this));
m_xBroadcaster.clear();

View file

@ -2,13 +2,10 @@
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: lateinitlistener.hxx,v $
* $Revision: 1.4 $
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify

View file

@ -2,13 +2,10 @@
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: lateinitthread.cxx,v $
* $Revision: 1.7 $
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify

View file

@ -2,13 +2,10 @@
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: lateinitthread.hxx,v $
* $Revision: 1.5 $
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify

View file

@ -2,13 +2,10 @@
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: macros.hxx,v $
* $Revision: 1.5 $
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify

View file

@ -2,14 +2,10 @@
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# Copyright 2008 by Sun Microsystems, Inc.
# Copyright 2000, 2010 Oracle and/or its affiliates.
#
# OpenOffice.org - a multi-platform office productivity suite
#
# $RCSfile: makefile.mk,v $
#
# $Revision: 1.7 $
#
# This file is part of OpenOffice.org.
#
# OpenOffice.org is free software: you can redistribute it and/or modify
@ -76,7 +72,7 @@ DEF1NAME= $(SHL1TARGET)
SHL1DEF= $(MISC)$/$(SHL1TARGET).def
SHL1DEPN=
SHL1IMPLIB= i$(SHL1TARGET)
SHL1VERSIONMAP= exports.map
SHL1VERSIONMAP= $(SOLARENV)/src/component.map
# --- Targets ----------------------------------

View file

@ -2,13 +2,10 @@
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: querytokenizer.cxx,v $
* $Revision: 1.5 $
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify

View file

@ -2,13 +2,10 @@
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: querytokenizer.hxx,v $
* $Revision: 1.4 $
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify

View file

@ -2,13 +2,10 @@
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: registration.cxx,v $
* $Revision: 1.8 $
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify

View file

@ -2,13 +2,10 @@
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: registration.hxx,v $
* $Revision: 1.6 $
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify

View file

@ -2,13 +2,10 @@
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: typedetection.cxx,v $
* $Revision: 1.24 $
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify

View file

@ -2,13 +2,10 @@
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: typedetection.hxx,v $
* $Revision: 1.9 $
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify

View file

@ -2,13 +2,10 @@
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: versions.hxx,v $
* $Revision: 1.4 $
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify

View file

@ -1,6 +1,6 @@
<node oor:name="HTML (StarCalc)" oor:op="replace">
<prop oor:name="Flags"><value>IMPORT EXPORT ALIEN</value></prop>
<prop oor:name="UIComponent"/>
<prop oor:name="Flags"><value>IMPORT EXPORT ALIEN USEOPTIONS</value></prop>
<prop oor:name="UIComponent"><value>com.sun.star.comp.Calc.FilterOptionsDialog</value></prop>
<prop oor:name="FilterService"/>
<prop oor:name="UserData"><value></value></prop>
<prop oor:name="FileFormatVersion"><value>0</value></prop>

View file

@ -1,6 +1,6 @@
<node oor:name="calc_HTML_WebQuery" oor:op="replace">
<prop oor:name="Flags"><value>IMPORT ALIEN</value></prop>
<prop oor:name="UIComponent"/>
<prop oor:name="Flags"><value>IMPORT ALIEN USEOPTIONS</value></prop>
<prop oor:name="UIComponent"><value>com.sun.star.comp.Calc.FilterOptionsDialog</value></prop>
<prop oor:name="FilterService"/>
<prop oor:name="UserData"><value></value></prop>
<prop oor:name="FileFormatVersion"><value>0</value></prop>

View file

@ -2,14 +2,10 @@
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# Copyright 2008 by Sun Microsystems, Inc.
# Copyright 2000, 2010 Oracle and/or its affiliates.
#
# OpenOffice.org - a multi-platform office productivity suite
#
# $RCSfile: makefile.mk,v $
#
# $Revision: 1.9 $
#
# This file is part of OpenOffice.org.
#
# OpenOffice.org is free software: you can redistribute it and/or modify

View file

@ -1,5 +1,5 @@
<node oor:name="writerglobal8_writer" oor:op="replace">
<prop oor:name="Flags"><value>EXPORT TEMPLATE</value></prop>
<prop oor:name="Flags"><value>EXPORT TEMPLATE DEFAULT</value></prop>
<prop oor:name="UIComponent"/>
<prop oor:name="FilterService"/>
<prop oor:name="UserData"><value>CXML</value></prop>

View file

@ -2,14 +2,10 @@
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# Copyright 2008 by Sun Microsystems, Inc.
# Copyright 2000, 2010 Oracle and/or its affiliates.
#
# OpenOffice.org - a multi-platform office productivity suite
#
# $RCSfile: makefile.mk,v $
#
# $Revision: 1.22 $
#
# This file is part of OpenOffice.org.
#
# OpenOffice.org is free software: you can redistribute it and/or modify
@ -191,7 +187,7 @@ MERGE:=python ../tools/merge/pyAltFCFGMerge
MERGE:=$(AUGMENT_LIBRARY_PATH) $(SOLARBINDIR)/python ../tools/merge/pyAltFCFGMerge
.ENDIF
.ELSE
MERGE := $(JAVAI) -jar $(SOLARBINDIR)$/FCFGMerge.jar
MERGE := $(JAVAI) $(JAVAIFLAGS) -jar $(SOLARBINDIR)$/FCFGMerge.jar
.ENDIF
PACKLANG := $(XSLTPROC) --nonet

View file

@ -2,14 +2,10 @@
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# Copyright 2008 by Sun Microsystems, Inc.
# Copyright 2000, 2010 Oracle and/or its affiliates.
#
# OpenOffice.org - a multi-platform office productivity suite
#
# $RCSfile: packagedef.mk,v $
#
# $Revision: 1.9 $
#
# This file is part of OpenOffice.org.
#
# OpenOffice.org is free software: you can redistribute it and/or modify

View file

@ -2,14 +2,10 @@
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# Copyright 2008 by Sun Microsystems, Inc.
# Copyright 2000, 2010 Oracle and/or its affiliates.
#
# OpenOffice.org - a multi-platform office productivity suite
#
# $RCSfile: makefile.mk,v $
#
# $Revision: 1.6 $
#
# This file is part of OpenOffice.org.
#
# OpenOffice.org is free software: you can redistribute it and/or modify

View file

@ -2,7 +2,7 @@
<prop oor:name="DetectService"><value>com.sun.star.comp.draw.FormatDetector</value></prop>
<prop oor:name="URLPattern"/>
<prop oor:name="Extensions"><value>pcd</value></prop>
<prop oor:name="MediaType"><value>image/x-photo-cd</value></prop>>
<prop oor:name="MediaType"><value>image/x-photo-cd</value></prop>
<prop oor:name="Preferred"><value>false</value></prop>
<prop oor:name="PreferredFilter"><value>draw_PCD_Photo_CD_Base</value></prop>
<prop oor:name="UIName">

View file

@ -2,7 +2,7 @@
<prop oor:name="DetectService"><value>com.sun.star.comp.draw.FormatDetector</value></prop>
<prop oor:name="URLPattern"/>
<prop oor:name="Extensions"><value>pcd</value></prop>
<prop oor:name="MediaType"><value>image/x-photo-cd</value></prop>>
<prop oor:name="MediaType"><value>image/x-photo-cd</value></prop>
<prop oor:name="Preferred"><value>false</value></prop>
<prop oor:name="PreferredFilter"><value>draw_PCD_Photo_CD_Base16</value></prop>
<prop oor:name="UIName">

View file

@ -2,7 +2,7 @@
<prop oor:name="DetectService"><value>com.sun.star.comp.draw.FormatDetector</value></prop>
<prop oor:name="URLPattern"/>
<prop oor:name="Extensions"><value>pcd</value></prop>
<prop oor:name="MediaType"><value>image/x-photo-cd</value></prop>>
<prop oor:name="MediaType"><value>image/x-photo-cd</value></prop>
<prop oor:name="Preferred"><value>false</value></prop>
<prop oor:name="PreferredFilter"><value>draw_PCD_Photo_CD_Base4</value></prop>
<prop oor:name="UIName">

View file

@ -2,7 +2,7 @@
<prop oor:name="DetectService"><value>com.sun.star.comp.draw.FormatDetector</value></prop>
<prop oor:name="URLPattern"/>
<prop oor:name="Extensions"><value>svm</value></prop>
<prop oor:name="MediaType"><value>image/x-svm</value></prop>>
<prop oor:name="MediaType"><value>image/x-svm</value></prop>
<prop oor:name="Preferred"><value>false</value></prop>
<prop oor:name="PreferredFilter"><value>SVM - StarView Metafile</value></prop>
<prop oor:name="UIName">

View file

@ -438,7 +438,6 @@ def generateHeader(sVersion, sEncoding, sPath, sPackage, bLanguagePack):
sHeader += " xmlns:xs=\"http://www.w3.org/2001/XMLSchema\""
sHeader += " xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\n"
else:
sHeader += "<!DOCTYPE oor:component-data SYSTEM \"../../../../component-update.dtd\">\n"
sHeader += "<oor:component-data xmlns:oor=\"http://openoffice.org/2001/registry\" xmlns:xs=\"http://www.w3.org/2001/XMLSchema\" oor:package=\""
sHeader += sPath
sHeader += "\" oor:name=\""

View file

@ -2,13 +2,10 @@
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: FCFGSplit.java,v $
* $Revision: 1.5 $
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify

View file

@ -2,13 +2,10 @@
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: Splitter.java,v $
* $Revision: 1.6 $
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify

View file

@ -2,13 +2,10 @@
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: SplitterData.java,v $
* $Revision: 1.5 $
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify

View file

@ -2,14 +2,10 @@
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# Copyright 2008 by Sun Microsystems, Inc.
# Copyright 2000, 2010 Oracle and/or its affiliates.
#
# OpenOffice.org - a multi-platform office productivity suite
#
# $RCSfile: makefile.mk,v $
#
# $Revision: 1.7.102.1 $
#
# This file is part of OpenOffice.org.
#
# OpenOffice.org is free software: you can redistribute it and/or modify

View file

@ -2,14 +2,10 @@
<!--
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
Copyright 2008 by Sun Microsystems, Inc.
Copyright 2000, 2010 Oracle and/or its affiliates.
OpenOffice.org - a multi-platform office productivity suite
$RCSfile: docbooktosoffheadings.xsl,v $
$Revision: 1.10 $
This file is part of OpenOffice.org.
OpenOffice.org is free software: you can redistribute it and/or modify
@ -26,7 +22,7 @@
version 3 along with OpenOffice.org. If not, see
<http://www.openoffice.org/license.html>
for a copy of the LGPLv3 License.
-->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:office="http://openoffice.org/2000/office" xmlns:style="http://openoffice.org/2000/style" xmlns:text="http://openoffice.org/2000/text" xmlns:table="http://openoffice.org/2000/table" xmlns:draw="http://openoffice.org/2000/drawing" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:meta="http://openoffice.org/2000/meta" xmlns:number="http://openoffice.org/2000/datastyle" xmlns:svg="http://www.w3.org/2000/svg" xmlns:chart="http://openoffice.org/2000/chart" xmlns:dr3d="http://openoffice.org/2000/dr3d" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:form="http://openoffice.org/2000/form" xmlns:script="http://openoffice.org/2000/script" xmlns:config="http://openoffice.org/2001/config" office:class="text" office:version="1.0">
<xsl:decimal-format name="staff" digit="D"/>

View file

@ -2,14 +2,10 @@
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# Copyright 2008 by Sun Microsystems, Inc.
# Copyright 2000, 2010 Oracle and/or its affiliates.
#
# OpenOffice.org - a multi-platform office productivity suite
#
# $RCSfile: makefile.mk,v $
#
# $Revision: 1.5 $
#
# This file is part of OpenOffice.org.
#
# OpenOffice.org is free software: you can redistribute it and/or modify

View file

@ -3,14 +3,10 @@
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
Copyright 2008 by Sun Microsystems, Inc.
Copyright 2000, 2010 Oracle and/or its affiliates.
OpenOffice.org - a multi-platform office productivity suite
$RCSfile: sofftodocbookheadings.xsl,v $
$Revision: 1.11 $
This file is part of OpenOffice.org.
OpenOffice.org is free software: you can redistribute it and/or modify
@ -27,7 +23,7 @@
version 3 along with OpenOffice.org. If not, see
<http://www.openoffice.org/license.html>
for a copy of the LGPLv3 License.
-->
<xsl:stylesheet version="1.0" xmlns:style="http://openoffice.org/2000/style" xmlns:text="http://openoffice.org/2000/text" xmlns:office="http://openoffice.org/2000/office" xmlns:table="http://openoffice.org/2000/table" xmlns:draw="http://openoffice.org/2000/drawing" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:meta="http://openoffice.org/2000/meta" xmlns:number="http://openoffice.org/2000/datastyle" xmlns:svg="http://www.w3.org/2000/svg" xmlns:chart="http://openoffice.org/2000/chart" xmlns:dr3d="http://openoffice.org/2000/dr3d" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:form="http://openoffice.org/2000/form" xmlns:script="http://openoffice.org/2000/script" xmlns:config="http://openoffice.org/2001/config" office:class="text" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" exclude-result-prefixes="office meta table number dc fo xlink chart math script xsl draw svg dr3d form config text style">
<xsl:output method="xml" indent="yes" omit-xml-declaration="no" version="1.0" encoding="UTF-8" doctype-public="-//OASIS//DTD DocBook XML V4.1.2//EN" doctype-system="http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd"/>

View file

@ -2,13 +2,10 @@
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: filtertracer.cxx,v $
* $Revision: 1.7 $
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify

View file

@ -2,13 +2,10 @@
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: filtertracer.hxx,v $
* $Revision: 1.8 $
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify

View file

@ -2,13 +2,10 @@
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: filtertraceruno.cxx,v $
* $Revision: 1.6 $
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify

View file

@ -2,14 +2,10 @@
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# Copyright 2008 by Sun Microsystems, Inc.
# Copyright 2000, 2010 Oracle and/or its affiliates.
#
# OpenOffice.org - a multi-platform office productivity suite
#
# $RCSfile: makefile.mk,v $
#
# $Revision: 1.7 $
#
# This file is part of OpenOffice.org.
#
# OpenOffice.org is free software: you can redistribute it and/or modify

View file

@ -1,9 +0,0 @@
FLASH_1_0 {
global:
component_getImplementationEnvironment;
component_getFactory;
component_writeInfo;
local:
*;
};

View file

@ -2,13 +2,10 @@
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: impswfdialog.cxx,v $
* $Revision: 1.8 $
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify

View file

@ -2,13 +2,10 @@
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: impswfdialog.hrc,v $
* $Revision: 1.5 $
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify

View file

@ -2,13 +2,10 @@
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: impswfdialog.hxx,v $
* $Revision: 1.4 $
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify

View file

@ -2,13 +2,10 @@
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: impswfdialog.src,v $
* $Revision: 1.16 $
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify

View file

@ -2,14 +2,10 @@
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# Copyright 2008 by Sun Microsystems, Inc.
# Copyright 2000, 2010 Oracle and/or its affiliates.
#
# OpenOffice.org - a multi-platform office productivity suite
#
# $RCSfile: makefile.mk,v $
#
# $Revision: 1.16 $
#
# This file is part of OpenOffice.org.
#
# OpenOffice.org is free software: you can redistribute it and/or modify
@ -90,7 +86,7 @@ SHL1STDLIBS+=\
SHL1DEPN=
SHL1IMPLIB= i$(SHL1TARGET)
SHL1VERSIONMAP=exports.map
SHL1VERSIONMAP=$(SOLARENV)/src/component.map
SHL1LIBS= $(SLB)$/$(TARGET).lib
SHL1DEF= $(MISC)$/$(SHL1TARGET).def

View file

@ -2,13 +2,10 @@
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: swfdialog.cxx,v $
* $Revision: 1.6 $
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify

View file

@ -2,13 +2,10 @@
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: swfdialog.hxx,v $
* $Revision: 1.4 $
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify

View file

@ -2,13 +2,10 @@
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: swfexporter.cxx,v $
* $Revision: 1.15 $
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify
@ -94,13 +91,14 @@ PageInfo::~PageInfo()
}
}
#ifdef THEFUTURE
// -----------------------------------------------------------------------------
void PageInfo::addShape( ShapeInfo* pShapeInfo )
{
maShapesVector.push_back( pShapeInfo );
}
#endif
// -----------------------------------------------------------------------------

View file

@ -2,13 +2,10 @@
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: swfexporter.hxx,v $
* $Revision: 1.7 $
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify
@ -147,7 +144,9 @@ struct PageInfo
PageInfo();
~PageInfo();
#ifdef THEFUTURE
void addShape( ShapeInfo* pShapeInfo );
#endif
};

View file

@ -2,13 +2,10 @@
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: swffilter.cxx,v $
* $Revision: 1.8 $
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify

View file

@ -2,13 +2,10 @@
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: swfuno.cxx,v $
* $Revision: 1.5 $
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify

View file

@ -2,13 +2,10 @@
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: swfwriter.cxx,v $
* $Revision: 1.12 $
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify
@ -264,6 +261,7 @@ void Writer::placeShape( sal_uInt16 nID, sal_uInt16 nDepth, sal_Int32 x, sal_Int
endTag();
}
#ifdef THEFUTURE
// -----------------------------------------------------------------------------
void Writer::moveShape( sal_uInt16 nDepth, sal_Int32 x, sal_Int32 y )
@ -291,6 +289,7 @@ void Writer::moveShape( sal_uInt16 nDepth, sal_Int32 x, sal_Int32 y )
endTag();
}
#endif
// -----------------------------------------------------------------------------

View file

@ -2,13 +2,10 @@
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: swfwriter.hxx,v $
* $Revision: 1.14 $
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify
@ -321,8 +318,10 @@ public:
/** inserts a place shape tag into the movie stream or the current sprite */
void placeShape( sal_uInt16 nID, sal_uInt16 nDepth, sal_Int32 x, sal_Int32 y, sal_uInt16 nClipDepth = 0, const char* pName = NULL );
#ifdef THEFUTURE
/** inserts a move shape tag into the movie stream or the current sprite */
void moveShape( sal_uInt16 nDepth, sal_Int32 x, sal_Int32 y );
#endif
/** inserts a remove shape tag into the movie stream or the current sprite */
void removeShape( sal_uInt16 nDepth );

View file

@ -2,13 +2,10 @@
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: swfwriter1.cxx,v $
* $Revision: 1.28 $
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify

View file

@ -2,13 +2,10 @@
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: swfwriter2.cxx,v $
* $Revision: 1.10 $
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify

View file

@ -0,0 +1,108 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 3
* only, as published by the Free Software Foundation.
*
* OpenOffice.org 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 version 3 for more details
* (a copy is included in the LICENSE file that accompanied this code).
*
* You should have received a copy of the GNU Lesser General Public License
* version 3 along with OpenOffice.org. If not, see
* <http://www.openoffice.org/license.html>
* for a copy of the LGPLv3 License.
*
************************************************************************/
// MARKER(update_precomp.py): autogen include statement, do not remove
#include "precompiled_filter.hxx"
#ifndef GCC
#endif
#include <tools/ref.hxx>
#include <svtools/FilterConfigItem.hxx>
#include <vcl/msgbox.hxx>
#include "dlgegif.hxx"
#include "dlgegif.hrc"
#include "strings.hrc"
/*************************************************************************
|*
|* Ctor
|*
\************************************************************************/
DlgExportEGIF::DlgExportEGIF( FltCallDialogParameter& rPara ) :
ModalDialog ( rPara.pWindow, ResId( DLG_EXPORT_GIF, *rPara.pResMgr ) ),
rFltCallPara ( rPara ),
aCbxInterlaced ( this, ResId( CBX_INTERLACED, *rPara.pResMgr ) ),
aCbxTranslucent ( this, ResId( CBX_TRANSLUCENT, *rPara.pResMgr ) ),
aGrpMode ( this, ResId( GRP_MODE, *rPara.pResMgr ) ),
aGrpDraw ( this, ResId( GRP_DRAW, *rPara.pResMgr ) ),
aBtnOK ( this, ResId( BTN_OK, *rPara.pResMgr ) ),
aBtnCancel ( this, ResId( BTN_CANCEL, *rPara.pResMgr ) ),
aBtnHelp ( this, ResId( BTN_HELP, *rPara.pResMgr ) ),
pMgr ( rPara.pResMgr )
{
FreeResource();
String aFilterConfigPath( RTL_CONSTASCII_USTRINGPARAM( "Office.Common/Filter/Graphic/Export/GIF" ) );
pConfigItem = new FilterConfigItem( aFilterConfigPath, &rPara.aFilterData );
String aInterlaceStr( ResId( KEY_INTER, *pMgr ) );
String aTranslucentStr( ResId( KEY_TRANS, *pMgr ) );
// Config-Parameter lesen
sal_Bool bInterlaced = pConfigItem->ReadInt32( aInterlaceStr, 1 ) != 0;
sal_Bool bTranslucent = pConfigItem->ReadInt32( aTranslucentStr, 1 ) != 0;
aCbxInterlaced.Check( bInterlaced );
aCbxTranslucent.Check( bTranslucent );
aBtnOK.SetClickHdl( LINK( this, DlgExportEGIF, OK ) );
}
DlgExportEGIF::~DlgExportEGIF()
{
delete pConfigItem;
}
/*************************************************************************
|*
|* Speichert eingestellte Werte in ini-Datei
|*
\************************************************************************/
IMPL_LINK( DlgExportEGIF, OK, void *, EMPTYARG )
{
// Config-Parameter schreiben
String aInterlaceStr( ResId( KEY_INTER, *pMgr ) );
String aTranslucentStr( ResId( KEY_TRANS, *pMgr ) );
sal_Int32 nValue = 0;
if ( aCbxInterlaced.IsChecked() )
nValue++;
pConfigItem->WriteInt32( aInterlaceStr, nValue );
nValue = 0;
if ( aCbxTranslucent.IsChecked() )
nValue++;
pConfigItem->WriteInt32( aTranslucentStr, nValue );
rFltCallPara.aFilterData = pConfigItem->GetFilterData();
EndDialog( RET_OK );
return 0;
}

View file

@ -0,0 +1,36 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 3
* only, as published by the Free Software Foundation.
*
* OpenOffice.org 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 version 3 for more details
* (a copy is included in the LICENSE file that accompanied this code).
*
* You should have received a copy of the GNU Lesser General Public License
* version 3 along with OpenOffice.org. If not, see
* <http://www.openoffice.org/license.html>
* for a copy of the LGPLv3 License.
*
************************************************************************/
#include "filter.hrc"
#define BTN_OK 1
#define BTN_CANCEL 1
#define BTN_HELP 1
#define FI_DESCR 1
#define GRP_MODE 1
#define GRP_DRAW 2
#define CBX_INTERLACED 1
#define CBX_TRANSLUCENT 2

View file

@ -0,0 +1,71 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 3
* only, as published by the Free Software Foundation.
*
* OpenOffice.org 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 version 3 for more details
* (a copy is included in the LICENSE file that accompanied this code).
*
* You should have received a copy of the GNU Lesser General Public License
* version 3 along with OpenOffice.org. If not, see
* <http://www.openoffice.org/license.html>
* for a copy of the LGPLv3 License.
*
************************************************************************/
#ifndef _DLGEGIF_HXX_
#define _DLGEGIF_HXX_
#include <svtools/fltcall.hxx>
#include <vcl/dialog.hxx>
#include <vcl/button.hxx>
#include <vcl/fixed.hxx>
/*************************************************************************
|*
|* Dialog zum Einstellen von Filteroptionen
|*
\************************************************************************/
class FilterConfigItem;
class ResMgr;
class DlgExportEGIF : public ModalDialog
{
private:
FltCallDialogParameter& rFltCallPara;
CheckBox aCbxInterlaced;
CheckBox aCbxTranslucent;
FixedLine aGrpMode;
FixedLine aGrpDraw;
OKButton aBtnOK;
CancelButton aBtnCancel;
HelpButton aBtnHelp;
FilterConfigItem* pConfigItem;
ResMgr* pMgr;
DECL_LINK( OK, void * );
public:
DlgExportEGIF( FltCallDialogParameter& rPara );
~DlgExportEGIF();
};
#endif // _DLGEGIF_HXX_

View file

@ -0,0 +1,118 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 3
* only, as published by the Free Software Foundation.
*
* OpenOffice.org 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 version 3 for more details
* (a copy is included in the LICENSE file that accompanied this code).
*
* You should have received a copy of the GNU Lesser General Public License
* version 3 along with OpenOffice.org. If not, see
* <http://www.openoffice.org/license.html>
* for a copy of the LGPLv3 License.
*
************************************************************************/
#include "dlgegif.hrc"
ModalDialog DLG_EXPORT_GIF
{
OutputSize = TRUE ;
SVLook = TRUE ;
Size = MAP_APPFONT ( 169 , 70 ) ;
Moveable = TRUE ;
Closeable = TRUE ;
Text [ en-US ] = "GIF Options" ;
OKButton BTN_OK
{
Pos = MAP_APPFONT ( 113 , 6 ) ;
Size = MAP_APPFONT ( 50 , 14 ) ;
TabStop = TRUE ;
DefButton = TRUE ;
};
CancelButton BTN_CANCEL
{
Pos = MAP_APPFONT ( 113 , 23 ) ;
Size = MAP_APPFONT ( 50 , 14 ) ;
TabStop = TRUE ;
};
HelpButton BTN_HELP
{
Pos = MAP_APPFONT ( 113 , 43 ) ;
Size = MAP_APPFONT ( 50 , 14 ) ;
TabStop = TRUE ;
};
FixedLine GRP_MODE
{
Pos = MAP_APPFONT ( 6 , 3 ) ;
Size = MAP_APPFONT ( 100 , 8 ) ;
Text [ en-US ] = "Mode" ;
};
CheckBox CBX_INTERLACED
{
Pos = MAP_APPFONT ( 12 , 14 ) ;
Size = MAP_APPFONT ( 86 , 12 ) ;
TabStop = TRUE ;
Text [ en-US ] = "~Interlaced" ;
};
FixedLine GRP_DRAW
{
Pos = MAP_APPFONT ( 6 , 32 ) ;
Size = MAP_APPFONT ( 100 , 8 ) ;
Text [ en-US ] = "Drawing objects" ;
};
CheckBox CBX_TRANSLUCENT
{
Pos = MAP_APPFONT ( 12 , 43 ) ;
Size = MAP_APPFONT ( 86 , 12 ) ;
TabStop = TRUE ;
Text [ en-US ] = "Save ~transparency" ;
};
};

View file

@ -0,0 +1,629 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 3
* only, as published by the Free Software Foundation.
*
* OpenOffice.org 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 version 3 for more details
* (a copy is included in the LICENSE file that accompanied this code).
*
* You should have received a copy of the GNU Lesser General Public License
* version 3 along with OpenOffice.org. If not, see
* <http://www.openoffice.org/license.html>
* for a copy of the LGPLv3 License.
*
************************************************************************/
// MARKER(update_precomp.py): autogen include statement, do not remove
#include "precompiled_filter.hxx"
#include <vcl/graph.hxx>
#include <vcl/svapp.hxx>
#include <vcl/msgbox.hxx>
#include <vcl/window.hxx>
#include <svl/solar.hrc>
#include <svtools/fltcall.hxx>
#include <svtools/FilterConfigItem.hxx>
#include "giflzwc.hxx"
#include "strings.hrc"
#include "dlgegif.hrc"
#include "dlgegif.hxx"
// -------------
// - GIFWriter -
// -------------
class GIFWriter
{
Bitmap aAccBmp;
BitmapReadAccess* pAcc;
SvStream* pGIF;
ULONG nMinPercent;
ULONG nMaxPercent;
ULONG nLastPercent;
long nActX;
long nActY;
sal_Int32 nInterlaced;
BOOL bStatus;
BOOL bTransparent;
void MayCallback( ULONG nPercent );
void WriteSignature( BOOL bGIF89a );
void WriteGlobalHeader( const Size& rSize );
void WriteLoopExtension( const Animation& rAnimation );
void WriteLogSizeExtension( const Size& rSize100 );
void WriteImageExtension( long nTimer, Disposal eDisposal );
void WriteLocalHeader();
void WritePalette();
void WriteAccess();
void WriteTerminator();
BOOL CreateAccess( const BitmapEx& rBmpEx );
void DestroyAccess();
void WriteAnimation( const Animation& rAnimation );
void WriteBitmapEx( const BitmapEx& rBmpEx, const Point& rPoint, BOOL bExtended,
long nTimer = 0, Disposal eDisposal = DISPOSE_NOT );
com::sun::star::uno::Reference< com::sun::star::task::XStatusIndicator > xStatusIndicator;
public:
GIFWriter() {}
~GIFWriter() {}
BOOL WriteGIF( const Graphic& rGraphic, SvStream& rGIF,
FilterConfigItem* pConfigItem );
};
// ------------------------------------------------------------------------
BOOL GIFWriter::WriteGIF( const Graphic& rGraphic, SvStream& rGIF,
FilterConfigItem* pFilterConfigItem )
{
if ( pFilterConfigItem )
{
xStatusIndicator = pFilterConfigItem->GetStatusIndicator();
if ( xStatusIndicator.is() )
{
rtl::OUString aMsg;
xStatusIndicator->start( aMsg, 100 );
}
}
Size aSize100;
const MapMode aMap( rGraphic.GetPrefMapMode() );
BOOL bLogSize = ( aMap.GetMapUnit() != MAP_PIXEL );
if( bLogSize )
aSize100 = Application::GetDefaultDevice()->LogicToLogic( rGraphic.GetPrefSize(), aMap, MAP_100TH_MM );
pGIF = &rGIF;
bStatus = TRUE;
nLastPercent = 0;
nInterlaced = 0;
pAcc = NULL;
if ( pFilterConfigItem )
nInterlaced = pFilterConfigItem->ReadInt32( String( RTL_CONSTASCII_USTRINGPARAM( "Interlaced" ) ), 0 );
pGIF->SetNumberFormatInt( NUMBERFORMAT_INT_LITTLEENDIAN );
if( rGraphic.IsAnimated() )
{
const Animation& rAnimation = rGraphic.GetAnimation();
WriteSignature( TRUE );
if ( bStatus )
{
WriteGlobalHeader( rAnimation.GetDisplaySizePixel() );
if( bStatus )
{
WriteLoopExtension( rAnimation );
if( bStatus )
WriteAnimation( rAnimation );
}
}
}
else
{
const BOOL bGrafTrans = rGraphic.IsTransparent();
BitmapEx aBmpEx;
if( bGrafTrans )
aBmpEx = rGraphic.GetBitmapEx();
else
aBmpEx = BitmapEx( rGraphic.GetBitmap() );
nMinPercent = 0;
nMaxPercent = 100;
WriteSignature( bGrafTrans || bLogSize );
if( bStatus )
{
WriteGlobalHeader( aBmpEx.GetSizePixel() );
if( bStatus )
WriteBitmapEx( aBmpEx, Point(), bGrafTrans );
}
}
if( bStatus )
{
if( bLogSize )
WriteLogSizeExtension( aSize100 );
WriteTerminator();
}
if ( xStatusIndicator.is() )
xStatusIndicator->end();
return bStatus;
}
// ------------------------------------------------------------------------
void GIFWriter::WriteBitmapEx( const BitmapEx& rBmpEx, const Point& rPoint,
BOOL bExtended, long nTimer, Disposal eDisposal )
{
if( CreateAccess( rBmpEx ) )
{
nActX = rPoint.X();
nActY = rPoint.Y();
if( bExtended )
WriteImageExtension( nTimer, eDisposal );
if( bStatus )
{
WriteLocalHeader();
if( bStatus )
{
WritePalette();
if( bStatus )
WriteAccess();
}
}
DestroyAccess();
}
}
// ------------------------------------------------------------------------
void GIFWriter::WriteAnimation( const Animation& rAnimation )
{
const USHORT nCount = rAnimation.Count();
if( nCount )
{
const double fStep = 100. / nCount;
nMinPercent = 0L;
nMaxPercent = (ULONG) fStep;
for( USHORT i = 0; i < nCount; i++ )
{
const AnimationBitmap& rAnimBmp = rAnimation.Get( i );
WriteBitmapEx( rAnimBmp.aBmpEx, rAnimBmp.aPosPix, TRUE,
rAnimBmp.nWait, rAnimBmp.eDisposal );
nMinPercent = nMaxPercent;
nMaxPercent = (ULONG) ( nMaxPercent + fStep );
}
}
}
// ------------------------------------------------------------------------
void GIFWriter::MayCallback( ULONG nPercent )
{
if ( xStatusIndicator.is() )
{
if( nPercent >= nLastPercent + 3 )
{
nLastPercent = nPercent;
if ( nPercent <= 100 )
xStatusIndicator->setValue( nPercent );
}
}
}
// ------------------------------------------------------------------------
BOOL GIFWriter::CreateAccess( const BitmapEx& rBmpEx )
{
if( bStatus )
{
Bitmap aMask( rBmpEx.GetMask() );
aAccBmp = rBmpEx.GetBitmap();
bTransparent = FALSE;
if( !!aMask )
{
if( aAccBmp.Convert( BMP_CONVERSION_8BIT_TRANS ) )
{
aMask.Convert( BMP_CONVERSION_1BIT_THRESHOLD );
aAccBmp.Replace( aMask, BMP_COL_TRANS );
bTransparent = TRUE;
}
else
aAccBmp.Convert( BMP_CONVERSION_8BIT_COLORS );
}
else
aAccBmp.Convert( BMP_CONVERSION_8BIT_COLORS );
pAcc = aAccBmp.AcquireReadAccess();
if( !pAcc )
bStatus = FALSE;
}
return bStatus;
}
// ------------------------------------------------------------------------
void GIFWriter::DestroyAccess()
{
aAccBmp.ReleaseAccess( pAcc );
pAcc = NULL;
}
// ------------------------------------------------------------------------
void GIFWriter::WriteSignature( BOOL bGIF89a )
{
if( bStatus )
{
pGIF->Write( bGIF89a ? "GIF89a" : "GIF87a" , 6 );
if( pGIF->GetError() )
bStatus = FALSE;
}
}
// ------------------------------------------------------------------------
void GIFWriter::WriteGlobalHeader( const Size& rSize )
{
if( bStatus )
{
// 256 Farben
const UINT16 nWidth = (UINT16) rSize.Width();
const UINT16 nHeight = (UINT16) rSize.Height();
const BYTE cFlags = 128 | ( 7 << 4 );
// Werte rausschreiben
*pGIF << nWidth;
*pGIF << nHeight;
*pGIF << cFlags;
*pGIF << (BYTE) 0x00;
*pGIF << (BYTE) 0x00;
// Dummy-Palette mit zwei Eintraegen (Schwarz/Weiss) schreiben;
// dieses nur wegen Photoshop-Bug, da die keine Bilder ohne
// globale Farbpalette lesen koennen
*pGIF << (UINT16) 0;
*pGIF << (UINT16) 255;
*pGIF << (UINT16) 65535;
if( pGIF->GetError() )
bStatus = FALSE;
}
}
// ------------------------------------------------------------------------
void GIFWriter::WriteLoopExtension( const Animation& rAnimation )
{
DBG_ASSERT( rAnimation.Count() > 0, "Animation has no bitmaps!" );
USHORT nLoopCount = (USHORT) rAnimation.GetLoopCount();
// falls nur ein Durchlauf stattfinden soll,
// wird keine LoopExtension geschrieben;
// Default ist dann immer ein Durchlauf
if( nLoopCount != 1 )
{
// Netscape interpretiert den LoopCount
// als reine Anzahl der _Wiederholungen_
if( nLoopCount )
nLoopCount--;
const BYTE cLoByte = (const BYTE) nLoopCount;
const BYTE cHiByte = (const BYTE) ( nLoopCount >> 8 );
*pGIF << (BYTE) 0x21;
*pGIF << (BYTE) 0xff;
*pGIF << (BYTE) 0x0b;
pGIF->Write( "NETSCAPE2.0", 11 );
*pGIF << (BYTE) 0x03;
*pGIF << (BYTE) 0x01;
*pGIF << cLoByte;
*pGIF << cHiByte;
*pGIF << (BYTE) 0x00;
}
}
// ------------------------------------------------------------------------
void GIFWriter::WriteLogSizeExtension( const Size& rSize100 )
{
// PrefSize in 100th-mm als ApplicationExtension schreiben
if( rSize100.Width() && rSize100.Height() )
{
*pGIF << (BYTE) 0x21;
*pGIF << (BYTE) 0xff;
*pGIF << (BYTE) 0x0b;
pGIF->Write( "STARDIV 5.0", 11 );
*pGIF << (BYTE) 0x09;
*pGIF << (BYTE) 0x01;
*pGIF << (UINT32) rSize100.Width();
*pGIF << (UINT32) rSize100.Height();
*pGIF << (BYTE) 0x00;
}
}
// ------------------------------------------------------------------------
void GIFWriter::WriteImageExtension( long nTimer, Disposal eDisposal )
{
if( bStatus )
{
const UINT16 nDelay = (UINT16) nTimer;
BYTE cFlags = 0;
// Transparent-Flag setzen
if( bTransparent )
cFlags |= 1;
// Disposal-Wert setzen
if( eDisposal == DISPOSE_BACK )
cFlags |= ( 2 << 2 );
else if( eDisposal == DISPOSE_PREVIOUS )
cFlags |= ( 3 << 2 );
*pGIF << (BYTE) 0x21;
*pGIF << (BYTE) 0xf9;
*pGIF << (BYTE) 0x04;
*pGIF << cFlags;
*pGIF << nDelay;
*pGIF << (BYTE) pAcc->GetBestPaletteIndex( BMP_COL_TRANS );
*pGIF << (BYTE) 0x00;
if( pGIF->GetError() )
bStatus = FALSE;
}
}
// ------------------------------------------------------------------------
void GIFWriter::WriteLocalHeader()
{
if( bStatus )
{
const UINT16 nPosX = (UINT16) nActX;
const UINT16 nPosY = (UINT16) nActY;
const UINT16 nWidth = (UINT16) pAcc->Width();
const UINT16 nHeight = (UINT16) pAcc->Height();
BYTE cFlags = (BYTE) ( pAcc->GetBitCount() - 1 );
// Interlaced-Flag setzen
if( nInterlaced )
cFlags |= 0x40;
// Flag fuer lokale Farbpalette setzen
cFlags |= 0x80;
// alles rausschreiben
*pGIF << (BYTE) 0x2c;
*pGIF << nPosX;
*pGIF << nPosY;
*pGIF << nWidth;
*pGIF << nHeight;
*pGIF << cFlags;
if( pGIF->GetError() )
bStatus = FALSE;
}
}
// ------------------------------------------------------------------------
void GIFWriter::WritePalette()
{
if( bStatus && pAcc->HasPalette() )
{
const USHORT nCount = pAcc->GetPaletteEntryCount();
const USHORT nMaxCount = ( 1 << pAcc->GetBitCount() );
for ( USHORT i = 0; i < nCount; i++ )
{
const BitmapColor& rColor = pAcc->GetPaletteColor( i );
*pGIF << rColor.GetRed();
*pGIF << rColor.GetGreen();
*pGIF << rColor.GetBlue();
}
// Rest mit 0 auffuellen
if( nCount < nMaxCount )
pGIF->SeekRel( ( nMaxCount - nCount ) * 3 );
if( pGIF->GetError() )
bStatus = FALSE;
}
}
// ------------------------------------------------------------------------
void GIFWriter::WriteAccess()
{
GIFLZWCompressor aCompressor;
const long nWidth = pAcc->Width();
const long nHeight = pAcc->Height();
BYTE* pBuffer = NULL;
const ULONG nFormat = pAcc->GetScanlineFormat();
long nY;
long nT;
long i;
BOOL bNative = ( BMP_FORMAT_8BIT_PAL == nFormat );
if( !bNative )
pBuffer = new BYTE[ nWidth ];
if( bStatus && ( 8 == pAcc->GetBitCount() ) && pAcc->HasPalette() )
{
aCompressor.StartCompression( *pGIF, pAcc->GetBitCount() );
for( i = 0; i < nHeight; i++ )
{
if( nInterlaced )
{
nY = i << 3;
if( nY >= nHeight )
{
nT = i - ( ( nHeight + 7 ) >> 3 );
nY= ( nT << 3 ) + 4;
if( nY >= nHeight )
{
nT -= ( nHeight + 3 ) >> 3;
nY = ( nT << 2 ) + 2;
if ( nY >= nHeight )
{
nT -= ( ( nHeight + 1 ) >> 2 );
nY = ( nT << 1 ) + 1;
}
}
}
}
else
nY = i;
if( bNative )
aCompressor.Compress( pAcc->GetScanline( nY ), nWidth );
else
{
for( long nX = 0L; nX < nWidth; nX++ )
pBuffer[ nX ] = (BYTE) pAcc->GetPixel( nY, nX );
aCompressor.Compress( pBuffer, nWidth );
}
if ( pGIF->GetError() )
bStatus = FALSE;
MayCallback( nMinPercent + ( nMaxPercent - nMinPercent ) * i / nHeight );
if( !bStatus )
break;
}
aCompressor.EndCompression();
if ( pGIF->GetError() )
bStatus = FALSE;
}
delete[] pBuffer;
}
// ------------------------------------------------------------------------
void GIFWriter::WriteTerminator()
{
if( bStatus )
{
*pGIF << (BYTE) 0x3b;
if( pGIF->GetError() )
bStatus = FALSE;
}
}
// ------------------------------------------------------------------------
extern "C" BOOL __LOADONCALLAPI GraphicExport( SvStream& rStream, Graphic& rGraphic,
FilterConfigItem* pConfigItem, BOOL )
{
return GIFWriter().WriteGIF( rGraphic, rStream, pConfigItem );
}
// ------------------------------------------------------------------------
extern "C" BOOL __LOADONCALLAPI DoExportDialog( FltCallDialogParameter& rPara )
{
BOOL bRet = FALSE;
if ( rPara.pWindow )
{
ByteString aResMgrName( "egi" );
ResMgr* pResMgr;
pResMgr = ResMgr::CreateResMgr( aResMgrName.GetBuffer(), Application::GetSettings().GetUILocale() );
if( pResMgr )
{
rPara.pResMgr = pResMgr;
bRet = ( DlgExportEGIF( rPara ).Execute() == RET_OK );
delete pResMgr;
}
else
bRet = TRUE;
}
return bRet;
}
// ------------------------------------------------------------------------
#ifndef GCC
#endif
#ifdef WIN
static HINSTANCE hDLLInst = 0;
extern "C" int CALLBACK LibMain( HINSTANCE hDLL, WORD, WORD nHeap, LPSTR )
{
#ifndef WNT
if ( nHeap )
UnlockData( 0 );
#endif
hDLLInst = hDLL;
return TRUE;
}
// ------------------------------------------------------------------------
extern "C" int CALLBACK WEP( int )
{
return 1;
}
#endif

View file

@ -0,0 +1,39 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 3
* only, as published by the Free Software Foundation.
*
* OpenOffice.org 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 version 3 for more details
* (a copy is included in the LICENSE file that accompanied this code).
*
* You should have received a copy of the GNU Lesser General Public License
* version 3 along with OpenOffice.org. If not, see
* <http://www.openoffice.org/license.html>
* for a copy of the LGPLv3 License.
*
************************************************************************/
#include "strings.hrc"
// Key fuer den Dialog
String KEY_INTER
{
Text = "Interlaced";
};
String KEY_TRANS
{
Text = "Translucent";
};

View file

@ -0,0 +1,8 @@
UDK_3_0_0 {
global:
GraphicExport;
DoExportDialog;
local:
*;
};

View file

@ -0,0 +1,256 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 3
* only, as published by the Free Software Foundation.
*
* OpenOffice.org 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 version 3 for more details
* (a copy is included in the LICENSE file that accompanied this code).
*
* You should have received a copy of the GNU Lesser General Public License
* version 3 along with OpenOffice.org. If not, see
* <http://www.openoffice.org/license.html>
* for a copy of the LGPLv3 License.
*
************************************************************************/
// MARKER(update_precomp.py): autogen include statement, do not remove
#include "precompiled_filter.hxx"
#include <tools/stream.hxx>
#include "giflzwc.hxx"
// ----------------------------
// - GIFImageDataOutputStream -
// ----------------------------
class GIFImageDataOutputStream
{
private:
void FlushBlockBuf();
inline void FlushBitsBufsFullBytes();
SvStream& rStream;
BYTE* pBlockBuf;
BYTE nBlockBufSize;
ULONG nBitsBuf;
USHORT nBitsBufSize;
public:
GIFImageDataOutputStream( SvStream & rGIF, BYTE nLZWDataSize );
~GIFImageDataOutputStream();
inline void WriteBits( USHORT nCode, USHORT nCodeLen );
};
// ------------------------------------------------------------------------
inline void GIFImageDataOutputStream::FlushBitsBufsFullBytes()
{
while (nBitsBufSize>=8)
{
if( nBlockBufSize==255 )
FlushBlockBuf();
pBlockBuf[nBlockBufSize++] = (BYTE) nBitsBuf;
nBitsBuf >>= 8;
nBitsBufSize -= 8;
}
}
// ------------------------------------------------------------------------
inline void GIFImageDataOutputStream::WriteBits( USHORT nCode, USHORT nCodeLen )
{
if( nBitsBufSize+nCodeLen>32 )
FlushBitsBufsFullBytes();
nBitsBuf |= (ULONG) nCode << nBitsBufSize;
nBitsBufSize = nBitsBufSize + nCodeLen;
}
// ------------------------------------------------------------------------
GIFImageDataOutputStream::GIFImageDataOutputStream( SvStream & rGIF, BYTE nLZWDataSize ) :
rStream(rGIF)
{
pBlockBuf = new BYTE[ 255 ];
nBlockBufSize = 0;
nBitsBufSize = 0;
nBitsBuf = 0;
rStream << nLZWDataSize;
}
// ------------------------------------------------------------------------
GIFImageDataOutputStream::~GIFImageDataOutputStream()
{
WriteBits(0,7);
FlushBitsBufsFullBytes();
FlushBlockBuf();
rStream << (BYTE)0;
delete[] pBlockBuf;
}
// ------------------------------------------------------------------------
void GIFImageDataOutputStream::FlushBlockBuf()
{
if( nBlockBufSize )
{
rStream << (BYTE) nBlockBufSize;
rStream.Write( pBlockBuf,nBlockBufSize );
nBlockBufSize = 0;
}
}
// -------------------
// - GIFLZWCTreeNode -
// -------------------
struct GIFLZWCTreeNode
{
GIFLZWCTreeNode* pBrother; // naechster Knoten, der den selben Vater hat
GIFLZWCTreeNode* pFirstChild; // erster Sohn
USHORT nCode; // Der Code fuer den String von Pixelwerten, der sich ergibt, wenn
USHORT nValue; // Der Pixelwert
};
// --------------------
// - GIFLZWCompressor -
// --------------------
GIFLZWCompressor::GIFLZWCompressor()
{
pIDOS=NULL;
}
// ------------------------------------------------------------------------
GIFLZWCompressor::~GIFLZWCompressor()
{
if (pIDOS!=NULL) EndCompression();
}
// ------------------------------------------------------------------------
void GIFLZWCompressor::StartCompression( SvStream& rGIF, USHORT nPixelSize )
{
if( !pIDOS )
{
USHORT i;
nDataSize = nPixelSize;
if( nDataSize < 2 )
nDataSize=2;
nClearCode=1<<nDataSize;
nEOICode=nClearCode+1;
nTableSize=nEOICode+1;
nCodeSize=nDataSize+1;
pIDOS=new GIFImageDataOutputStream(rGIF,(BYTE)nDataSize);
pTable=new GIFLZWCTreeNode[4096];
for (i=0; i<4096; i++)
{
pTable[i].pBrother = pTable[i].pFirstChild = NULL;
pTable[i].nValue = (BYTE) ( pTable[i].nCode = i );
}
pPrefix = NULL;
pIDOS->WriteBits( nClearCode,nCodeSize );
}
}
// ------------------------------------------------------------------------
void GIFLZWCompressor::Compress( HPBYTE pSrc, ULONG nSize )
{
if( pIDOS )
{
GIFLZWCTreeNode* p;
USHORT i;
BYTE nV;
if( !pPrefix && nSize )
{
pPrefix=pTable+(*pSrc++);
nSize--;
}
while( nSize )
{
nSize--;
nV=*pSrc++;
for( p=pPrefix->pFirstChild; p!=NULL; p=p->pBrother )
{
if (p->nValue==nV)
break;
}
if( p)
pPrefix=p;
else
{
pIDOS->WriteBits(pPrefix->nCode,nCodeSize);
if (nTableSize==4096)
{
pIDOS->WriteBits(nClearCode,nCodeSize);
for (i=0; i<nClearCode; i++)
pTable[i].pFirstChild=NULL;
nCodeSize=nDataSize+1;
nTableSize=nEOICode+1;
}
else
{
if(nTableSize==(USHORT)(1<<nCodeSize))
nCodeSize++;
p=pTable+(nTableSize++);
p->pBrother=pPrefix->pFirstChild;
pPrefix->pFirstChild=p;
p->nValue=nV;
p->pFirstChild=NULL;
}
pPrefix=pTable+nV;
}
}
}
}
// ------------------------------------------------------------------------
void GIFLZWCompressor::EndCompression()
{
if( pIDOS )
{
if( pPrefix )
pIDOS->WriteBits(pPrefix->nCode,nCodeSize);
pIDOS->WriteBits( nEOICode,nCodeSize );
delete[] pTable;
delete pIDOS;
pIDOS=NULL;
}
}

View file

@ -0,0 +1,65 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 3
* only, as published by the Free Software Foundation.
*
* OpenOffice.org 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 version 3 for more details
* (a copy is included in the LICENSE file that accompanied this code).
*
* You should have received a copy of the GNU Lesser General Public License
* version 3 along with OpenOffice.org. If not, see
* <http://www.openoffice.org/license.html>
* for a copy of the LGPLv3 License.
*
************************************************************************/
#ifndef _GIFLZWC_HXX
#define _GIFLZWC_HXX
#ifndef _BMPACC_HXX
#include <vcl/bmpacc.hxx>
#endif
// --------------------
// - GIFLZWCompressor -
// --------------------
class GIFImageDataOutputStream;
struct GIFLZWCTreeNode;
class GIFLZWCompressor
{
private:
GIFImageDataOutputStream* pIDOS;
GIFLZWCTreeNode* pTable;
GIFLZWCTreeNode* pPrefix;
USHORT nDataSize;
USHORT nClearCode;
USHORT nEOICode;
USHORT nTableSize;
USHORT nCodeSize;
public:
GIFLZWCompressor();
~GIFLZWCompressor();
void StartCompression( SvStream& rGIF, USHORT nPixelSize );
void Compress( HPBYTE pSrc, ULONG nSize );
void EndCompression();
};
#endif // _GIFLZWC_HXX

Some files were not shown because too many files have changed in this diff Show more