This is not documented, but some syntax allows to include diagram into another diagram, using double-bracket {{ and }}.
You can have:
foo->Bar
legend left
{{
salt
{
Login | "MyName "
Password | "**** "
[Cancel] | [ OK ]
}
}}
end legend
Is this what you are looking for ?