1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: FontTable.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef INCLUDED_FONTTABLE_HXX
32 #define INCLUDED_FONTTABLE_HXX
34 #include <WriterFilterDllApi.hxx>
35 #include <resourcemodel/WW8ResourceModel.hxx>
36 #include <com/sun/star/lang/XComponent.hpp>
38 namespace writerfilter
{
43 struct FontTable_Impl
;
46 ::rtl::OUString sFontName
;
47 ::rtl::OUString sFontName1
;
49 sal_Int16 nPitchRequest
;
50 sal_Int32 nTextEncoding
;
51 sal_Int32 nFontFamilyId
;
52 sal_Int32 nBaseWeight
;
53 sal_Int32 nAltFontIndex
;
54 ::rtl::OUString sPanose
;
55 ::rtl::OUString sFontSignature
;
56 ::rtl::OUString sAlternativeFont
;
66 class WRITERFILTER_DLLPRIVATE FontTable
: public Properties
, public Table
67 /*,public BinaryObj*/, public Stream
69 FontTable_Impl
*m_pImpl
;
76 virtual void attribute(Id Name
, Value
& val
);
77 virtual void sprm(Sprm
& sprm
);
80 virtual void entry(int pos
, writerfilter::Reference
<Properties
>::Pointer_t ref
);
83 // virtual void data(const sal_Int8* buf, size_t len,
84 // writerfilter::Reference<Properties>::Pointer_t ref);
87 virtual void startSectionGroup();
88 virtual void endSectionGroup();
89 virtual void startParagraphGroup();
90 virtual void endParagraphGroup();
91 virtual void startCharacterGroup();
92 virtual void endCharacterGroup();
93 virtual void text(const sal_uInt8
* data
, size_t len
);
94 virtual void utext(const sal_uInt8
* data
, size_t len
);
95 virtual void props(writerfilter::Reference
<Properties
>::Pointer_t ref
);
96 virtual void table(Id name
,
97 writerfilter::Reference
<Table
>::Pointer_t ref
);
98 virtual void substream(Id name
,
99 ::writerfilter::Reference
<Stream
>::Pointer_t ref
);
100 virtual void info(const string
& info
);
102 const FontEntry
* getFontEntry(sal_uInt32 nIndex
);
105 typedef boost::shared_ptr
< FontTable
> FontTablePtr
;