- Timestamp:
- Nov 25, 2021, 3:04:55 PM (3 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormContact.lfm
r33 r35 17 17 Top = 10 18 18 Width = 893 19 ActivePage = TabSheet General19 ActivePage = TabSheetAll 20 20 Anchors = [akTop, akLeft, akRight, akBottom] 21 21 ParentFont = False 22 TabIndex = 022 TabIndex = 2 23 23 TabOrder = 0 24 24 object TabSheetGeneral: TTabSheet -
trunk/Forms/UFormContact.pas
r33 r35 197 197 Photo := Contact.Fields[cfPhoto]; 198 198 if (Photo <> '') and (PhotoProperty.Encoding <> '') then begin 199 Photo := PhotoProperty.GetDecodedValue;200 199 Stream := TMemoryStream.Create; 201 200 try -
trunk/Languages/vCardStudio.cs.po
r34 r35 644 644 msgid "Modified" 645 645 msgstr "Upraveno" 646 647 #: uquotedprintable.slinelengtherr 648 msgid "Invalid line length for encoded text" 649 msgstr "Neplatná délka řádky kódovaného textu" -
trunk/Languages/vCardStudio.po
r34 r35 629 629 msgstr "" 630 630 631 #: uquotedprintable.slinelengtherr 632 msgid "Invalid line length for encoded text" 633 msgstr "" 634 -
trunk/UContact.pas
r34 r35 117 117 118 118 implementation 119 120 uses 121 UQuotedPrintable; 119 122 120 123 resourcestring … … 226 229 procedure TContactProperty.EvaluateAttributes; 227 230 var 228 I ndex: Integer;231 I: Integer; 229 232 begin 230 233 if Attributes.IndexOf('BASE64') <> -1 then 231 234 Encoding := 'BASE64' 232 235 else 233 if Attributes.IndexOfName('ENCODING') <> -1 then 234 Encoding := Attributes.Values['ENCODING'] 235 else Encoding := ''; 236 if Attributes.IndexOfName('ENCODING') <> -1 then begin 237 Encoding := Attributes.Values['ENCODING']; 238 if (Encoding = 'QUOTED-PRINTABLE') or (Encoding = 'BASE64') then begin 239 Values.DelimitedText := GetDecodedValue; 240 Attributes.Delete(Attributes.IndexOfName('ENCODING')); 241 end; 242 end else Encoding := ''; 236 243 237 244 if Attributes.IndexOfName('CHARSET') <> -1 then … … 240 247 241 248 // Simplify TYPE attribute from TYPE=VALUE into VALUE 242 Index := Attributes.IndexOfName('TYPE'); 243 if Index <> -1 then 244 Attributes.Strings[Index] := Attributes.Values['TYPE']; 249 for I := 0 to Attributes.Count - 1 do begin 250 if Attributes.Names[I] = 'TYPE' then 251 Attributes.Strings[I] := Attributes.Values['TYPE']; 252 end; 245 253 end; 246 254 … … 251 259 else 252 260 if Encoding = 'QUOTED-PRINTABLE' then 253 Result := Values.DelimitedText261 Result := DecodeQuotedPrintable(Values.DelimitedText) 254 262 else Result := ''; 255 263 end; -
trunk/vCardStudio.lpi
r31 r35 101 101 </Item2> 102 102 </RequiredPackages> 103 <Units Count="1 1">103 <Units Count="12"> 104 104 <Unit0> 105 105 <Filename Value="vCardStudio.lpr"/> … … 170 170 <ResourceBaseClass Value="Form"/> 171 171 </Unit10> 172 <Unit11> 173 <Filename Value="UQuotedPrintable.pas"/> 174 <IsPartOfProject Value="True"/> 175 </Unit11> 172 176 </Units> 173 177 </ProjectOptions> -
trunk/vCardStudio.lpr
r30 r35 9 9 Interfaces, // this includes the LCL widgetset 10 10 Forms, UFormMain, UCore, Common, UDataFile, SysUtils, UFormContacts, 11 UFormContact, UFormFindDuplicity, UFormGenerate, UFormError 11 UFormContact, UFormFindDuplicity, UFormGenerate, UFormError, UQuotedPrintable 12 12 { you can add units after this }; 13 13
Note:
See TracChangeset
for help on using the changeset viewer.