/* * [QuoteFlockHead.java] * * Summary: Produce the header Quotation pool file. * * Copyright: (c) 2009-2017 Roedy Green, Canadian Mind Products, http://mindprod.com * * Licence: This software may be copied and used freely for any purpose but military. * http://mindprod.com/contact/nonmil.html * * Requires: JDK 1.8+ * * Created with: JetBrains IntelliJ IDEA IDE http://www.jetbrains.com/idea/ * * Version History: * 1.8 2009-02-06 include go package in ZIP bundle. */ package com.mindprod.htmlmacros.macro; import com.mindprod.htmlmacros.support.GoogleAdSense; import com.mindprod.htmlmacros.support.Indexing; import static java.lang.System.*; /** * Produce the header Quotation pool file. * * @author Roedy Green, Canadian Mind Products * @version 1.8 2009-02-06 include go package in ZIP bundle. * @since 2009 */ public final class QuoteFlockHead extends Macro { /** * how to use the macro */ private static final String USAGE = "\nQuoteFlockHead macro needs title"; /** * Generate the header for a Living Love Song Lyric * * @param parms parameters from macro command line. parms[0] = title description of fragment. parms[1] * @param quiet true if want output suppressed. * @param verbose @return expanded macro HTML */ public String expandMacro( String[] parms, final boolean quiet, final boolean verbose ) { if ( !quiet ) { out.print( "Q" ); } if ( parms.length != 1 ) { throw new IllegalArgumentException( USAGE ); } final String title = parms[ 0 ]; final String keywords = "quotes, quotations, random quotations, quotation collection, quotation library, " + "quotation flock, quotation pool"; final String image = "icon128/quoteclose.png"; final String icon = "icon16/quoteclose.png"; final String sectionFile = "quote/quoteindex.html"; final String sectionTitle = "Quote Index"; Head head = new Head(); head.setFileBeingProcessedAndFileBeingDistributed( fileBeingProcessed, fileBeingDistributed ); return head.generalHead( title, null, title, title, "titlesubsection", keywords, icon, null, image, null, null, sectionFile, sectionTitle, null, null, null, null, null, null, Indexing.NONE, GoogleAdSense.MEDIUM_RECTANGLE, null, null ); } }