Saltar al contenido principal
Versión: 21 R3 BETA

WP IMPORT STYLE SHEETS

WP IMPORT STYLE SHEETS ( targetDoc : Object ; sourceDoc : Object )

ParámetrosTipoDescripción
targetDocObjectDocumento 4D Write Pro para recibir hojas de estilo
sourceDocObject4D Write Pro document to get style sheets from

Descripción

El comando WP IMPORT STYLE SHEETS importa todas las hojas de estilo del sourceDoc al targetDoc.

En el parámetro targetDoc, pase el documento 4D Write Pro que recibirá las hojas de estilo importadas.

En el parámetro sourceDoc, pase el documento 4D Write Pro que contiene las hojas de estilo a importar.

Note: If a style sheet from sourceDoc has the same name as a style sheet in targetDoc, the imported style sheet will overwrite (replace) the style sheet in the targetDoc.

Ejemplo

Desea importar una hoja de estilo de plantilla y recibir una notificación con el número de cada tipo de hoja de estilo importada:

 wpArea:=WP New
 $template:=WP Import document("Template.4wp")
 
 WP IMPORT STYLE SHEETS(wpArea;$template)
 
 $nb1:=WP Get style sheets(wpArea;wk type paragraph).length
 $nb2:=WP Get style sheets(wpArea;wk type character).length
 ALERT(String($nb1)+" paragraph style sheet(s) and "+string($nb2)+" character style sheet(s) imported))

Ver también

WP DELETE STYLE SHEET
WP Get style sheet
WP Get style sheets
WP New style sheet