stylecollection save css

  • I found a bug(?) in style collection TWPStyleCollection. When saving a styles to a file by colling wpstylecollection.savToFile(..) in *.css format, the saved css file is not right. Also, when using the style collections interface (TWPStyleDlg) to save styles, the save format selection box does not work, it does not have separate selections for each format. User has to enter the extension themselves.

    • Offizieller Beitrag

    Depending on the extension a different format is written. In case of css this is written:

    name{font-weight:bold;font-style:italic;text-decoration:underline;}

    The filter name is loaded from the global string meFilterCSS which can be localized.

    Alternatively it can be set in WPStyleDlg.FilterString so you can customize the filter in the form editor (DFM).

    Julian