Class LayoutImageProcessor
- java.lang.Object
-
- com._1c.g5.v8.dt.form.layout.pictures.LayoutImageProcessor
-
- All Implemented Interfaces:
ILayoutImageProcessor
public class LayoutImageProcessor extends Object implements ILayoutImageProcessor
Implementation ofILayoutImageProcessor
.The implementations is not thread-safe. Don't use it in concurrent enviroment.
-
-
Constructor Summary
Constructors Constructor Description LayoutImageProcessor(IPictureManager pictureManager, AvailablePicturesProvider pictureProvider, IV8ProjectManager v8projectManager, IEditingLanguageManager languageManager)
Creates instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UUID
assignImageUUID(Picture picture, FormPictureCollection pictureCollection)
Assigns an UUID to the given image.void
replaceImageReferences(HippoLayStaticText text, FormPictureCollection pictureCollection)
Replaces image references in the given formatted text to acceptable ones.
-
-
-
Constructor Detail
-
LayoutImageProcessor
public LayoutImageProcessor(IPictureManager pictureManager, AvailablePicturesProvider pictureProvider, IV8ProjectManager v8projectManager, IEditingLanguageManager languageManager)
Creates instance.- Parameters:
pictureManager
- the picture manager, cannot benull
pictureProvider
- the layout picture provider, cannot benull
v8projectManager
- the project manager, cannot benull
languageManager
- the language manager, cannot benull
-
-
Method Detail
-
replaceImageReferences
public void replaceImageReferences(HippoLayStaticText text, FormPictureCollection pictureCollection)
Description copied from interface:ILayoutImageProcessor
Replaces image references in the given formatted text to acceptable ones.Modifies the formatted text by replacing image URLs or composit IDs to UUIDs, and puts related image sizes with UUIDs to the picture collection.
- Specified by:
replaceImageReferences
in interfaceILayoutImageProcessor
- Parameters:
text
- the hippo layout formatted text, cannot benull
pictureCollection
- the picture collection, cannot benull
-
assignImageUUID
public UUID assignImageUUID(Picture picture, FormPictureCollection pictureCollection)
Description copied from interface:ILayoutImageProcessor
Assigns an UUID to the given image.Generates an UUID for the image and puts it with image size to the picture collection.
- Specified by:
assignImageUUID
in interfaceILayoutImageProcessor
- Parameters:
picture
- the picture, cannot benull
pictureCollection
- the picture collection, cannot benull
- Returns:
- UUID, can be
null
if image is empty.
-
-