From 554fd8c5195424bdbcabf5de30fdc183aba391bd Mon Sep 17 00:00:00 2001 From: upstream source tree Date: Sun, 15 Mar 2015 20:14:05 -0400 Subject: obtained gcc-4.6.4.tar.bz2 from upstream website; verified gcc-4.6.4.tar.bz2.sig; imported gcc-4.6.4 source tree from verified upstream tarball. downloading a git-generated archive based on the 'upstream' tag should provide you with a source tree that is binary identical to the one extracted from the above tarball. if you have obtained the source via the command 'git clone', however, do note that line-endings of files in your working directory might differ from line-endings of the respective files in the upstream repository. --- libjava/javax/swing/text/StyleContext.h | 110 ++++++++++++++++++++++++++++++++ 1 file changed, 110 insertions(+) create mode 100644 libjava/javax/swing/text/StyleContext.h (limited to 'libjava/javax/swing/text/StyleContext.h') diff --git a/libjava/javax/swing/text/StyleContext.h b/libjava/javax/swing/text/StyleContext.h new file mode 100644 index 000000000..c8f91994e --- /dev/null +++ b/libjava/javax/swing/text/StyleContext.h @@ -0,0 +1,110 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __javax_swing_text_StyleContext__ +#define __javax_swing_text_StyleContext__ + +#pragma interface + +#include +#include + +extern "Java" +{ + namespace java + { + namespace awt + { + class Color; + class Font; + class FontMetrics; + } + } + namespace javax + { + namespace swing + { + namespace event + { + class ChangeListener; + } + namespace text + { + class AttributeSet; + class MutableAttributeSet; + class Style; + class StyleContext; + class StyleContext$NamedStyle; + class StyleContext$SmallAttributeSet; + } + } + } +} + +class javax::swing::text::StyleContext : public ::java::lang::Object +{ + +public: + StyleContext(); +public: // actually protected + virtual ::javax::swing::text::StyleContext$SmallAttributeSet * createSmallAttributeSet(::javax::swing::text::AttributeSet *); + virtual ::javax::swing::text::MutableAttributeSet * createLargeAttributeSet(::javax::swing::text::AttributeSet *); +public: + virtual void addChangeListener(::javax::swing::event::ChangeListener *); + virtual void removeChangeListener(::javax::swing::event::ChangeListener *); + virtual JArray< ::javax::swing::event::ChangeListener * > * getChangeListeners(); + virtual ::javax::swing::text::Style * addStyle(::java::lang::String *, ::javax::swing::text::Style *); + virtual void removeStyle(::java::lang::String *); + virtual ::javax::swing::text::Style * getStyle(::java::lang::String *); + virtual ::java::util::Enumeration * getStyleNames(); +private: + void readObject(::java::io::ObjectInputStream *); + void writeObject(::java::io::ObjectOutputStream *); +public: + virtual ::java::awt::Font * getFont(::javax::swing::text::AttributeSet *); + virtual ::java::awt::Font * getFont(::java::lang::String *, jint, jint); + virtual ::java::awt::FontMetrics * getFontMetrics(::java::awt::Font *); + virtual ::java::awt::Color * getForeground(::javax::swing::text::AttributeSet *); + virtual ::java::awt::Color * getBackground(::javax::swing::text::AttributeSet *); +public: // actually protected + virtual jint getCompressionThreshold(); +public: + static ::javax::swing::text::StyleContext * getDefaultStyleContext(); + virtual ::javax::swing::text::AttributeSet * addAttribute(::javax::swing::text::AttributeSet *, ::java::lang::Object *, ::java::lang::Object *); + virtual ::javax::swing::text::AttributeSet * addAttributes(::javax::swing::text::AttributeSet *, ::javax::swing::text::AttributeSet *); + virtual ::javax::swing::text::AttributeSet * getEmptySet(); + virtual void reclaim(::javax::swing::text::AttributeSet *); + virtual ::javax::swing::text::AttributeSet * removeAttribute(::javax::swing::text::AttributeSet *, ::java::lang::Object *); + virtual ::javax::swing::text::AttributeSet * removeAttributes(::javax::swing::text::AttributeSet *, ::javax::swing::text::AttributeSet *); + virtual ::javax::swing::text::AttributeSet * removeAttributes(::javax::swing::text::AttributeSet *, ::java::util::Enumeration *); + static ::java::lang::Object * getStaticAttribute(::java::lang::Object *); + static ::java::lang::Object * getStaticAttributeKey(::java::lang::Object *); + static void readAttributeSet(::java::io::ObjectInputStream *, ::javax::swing::text::MutableAttributeSet *); + static void writeAttributeSet(::java::io::ObjectOutputStream *, ::javax::swing::text::AttributeSet *); + virtual void readAttributes(::java::io::ObjectInputStream *, ::javax::swing::text::MutableAttributeSet *); + virtual void writeAttributes(::java::io::ObjectOutputStream *, ::javax::swing::text::AttributeSet *); + static void registerStaticAttributeKey(::java::lang::Object *); + virtual ::java::lang::String * toString(); +private: + ::javax::swing::text::AttributeSet * searchImmutableSet(); + void cleanupPool(); + ::javax::swing::text::MutableAttributeSet * getMutableAttributeSet(::javax::swing::text::AttributeSet *); + static const jlong serialVersionUID = 8042858831190784241LL; +public: + static ::java::lang::String * DEFAULT_STYLE; +public: // actually package-private + static ::java::util::Hashtable * sharedAttributeSets; + static ::java::util::Hashtable * sharedFonts; + static ::javax::swing::text::StyleContext * defaultStyleContext; + static const jint compressionThreshold = 9; +private: + static ::java::util::Hashtable * writeAttributeKeys; + static ::java::util::Hashtable * readAttributeKeys; + ::javax::swing::text::StyleContext$NamedStyle * __attribute__((aligned(__alignof__( ::java::lang::Object)))) styles; + ::javax::swing::text::MutableAttributeSet * search; + ::java::util::Map * attributeSetPool; +public: + static ::java::lang::Class class$; +}; + +#endif // __javax_swing_text_StyleContext__ -- cgit v1.2.3