Return-Path: Delivered-To: apmail-jakarta-poi-dev-archive@www.apache.org Received: (qmail 4026 invoked from network); 14 Aug 2005 19:27:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 14 Aug 2005 19:27:25 -0000 Received: (qmail 92415 invoked by uid 500); 14 Aug 2005 19:27:24 -0000 Delivered-To: apmail-jakarta-poi-dev-archive@jakarta.apache.org Received: (qmail 92209 invoked by uid 500); 14 Aug 2005 19:27:24 -0000 Mailing-List: contact poi-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "POI Developers List" Reply-To: "POI Developers List" Delivered-To: mailing list poi-dev@jakarta.apache.org Received: (qmail 92196 invoked by uid 500); 14 Aug 2005 19:27:24 -0000 Received: (qmail 92192 invoked by uid 99); 14 Aug 2005 19:27:23 -0000 X-ASF-Spam-Status: No, hits=-9.8 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Sun, 14 Aug 2005 12:27:22 -0700 Received: (qmail 4013 invoked by uid 2084); 14 Aug 2005 19:27:22 -0000 Date: 14 Aug 2005 19:27:22 -0000 Message-ID: <20050814192722.4012.qmail@minotaur.apache.org> From: nick@apache.org To: jakarta-poi-cvs@apache.org Subject: cvs commit: jakarta-poi/src/scratchpad/src/org/apache/poi/hslf/dev TextStyleListing.java X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N nick 2005/08/14 12:27:22 Added: src/scratchpad/src/org/apache/poi/hslf/dev TextStyleListing.java Log: For listing the contents of StyleTextPropAtom entries Revision Changes Path 1.1 jakarta-poi/src/scratchpad/src/org/apache/poi/hslf/dev/TextStyleListing.java Index: TextStyleListing.java =================================================================== /* ==================================================================== Copyright 2002-2004 Apache Software Foundation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==================================================================== */ package org.apache.poi.hslf.dev; import org.apache.poi.hslf.*; import org.apache.poi.hslf.model.*; import org.apache.poi.hslf.record.*; import org.apache.poi.hslf.record.StyleTextPropAtom.*; import org.apache.poi.hslf.usermodel.*; import java.io.*; import java.util.LinkedList; /** * Uses record level code to locate StyleTextPropAtom entries. * Having found them, it shows the contents */ public class TextStyleListing { public static void main(String[] args) throws Exception { if(args.length < 1) { System.err.println("Need to give a filename"); System.exit(1); } HSLFSlideShow ss = new HSLFSlideShow(args[0]); // Find the documents, and then their SLWT Record[] records = ss.getRecords(); for(int i=0; i " + j + " - " + subPropNames[j]); System.out.println(" " + j + " = " + subPropMatches[j]); } } } } } --------------------------------------------------------------------- To unsubscribe, e-mail: poi-dev-unsubscribe@jakarta.apache.org Mailing List: http://jakarta.apache.org/site/mail2.html#poi The Apache Jakarta POI Project: http://jakarta.apache.org/poi/