txtflde.cxx (63bba73c) | txtflde.cxx (3b32dd21) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 297 unchanged lines hidden (view full) --- 306 sPropertyDDECommandType(RTL_CONSTASCII_USTRINGPARAM("DDECommandType")), 307 sPropertyDependentTextFields(RTL_CONSTASCII_USTRINGPARAM("DependentTextFields")), 308 sPropertyFalseContent(RTL_CONSTASCII_USTRINGPARAM("FalseContent")), 309 sPropertyFields(RTL_CONSTASCII_USTRINGPARAM("Fields")), 310 sPropertyFieldSubType(RTL_CONSTASCII_USTRINGPARAM("UserDataType")), 311 sPropertyFileFormat(RTL_CONSTASCII_USTRINGPARAM("FileFormat")), 312 sPropertyFullName(RTL_CONSTASCII_USTRINGPARAM("FullName")), 313 sPropertyHint(RTL_CONSTASCII_USTRINGPARAM("Hint")), | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 297 unchanged lines hidden (view full) --- 306 sPropertyDDECommandType(RTL_CONSTASCII_USTRINGPARAM("DDECommandType")), 307 sPropertyDependentTextFields(RTL_CONSTASCII_USTRINGPARAM("DependentTextFields")), 308 sPropertyFalseContent(RTL_CONSTASCII_USTRINGPARAM("FalseContent")), 309 sPropertyFields(RTL_CONSTASCII_USTRINGPARAM("Fields")), 310 sPropertyFieldSubType(RTL_CONSTASCII_USTRINGPARAM("UserDataType")), 311 sPropertyFileFormat(RTL_CONSTASCII_USTRINGPARAM("FileFormat")), 312 sPropertyFullName(RTL_CONSTASCII_USTRINGPARAM("FullName")), 313 sPropertyHint(RTL_CONSTASCII_USTRINGPARAM("Hint")), |
314 sPropertyInitials(RTL_CONSTASCII_USTRINGPARAM("Initials")), |
|
314 sPropertyInstanceName(RTL_CONSTASCII_USTRINGPARAM("InstanceName")), 315 sPropertyIsAutomaticUpdate(RTL_CONSTASCII_USTRINGPARAM("IsAutomaticUpdate")), 316 sPropertyIsConditionTrue(RTL_CONSTASCII_USTRINGPARAM("IsConditionTrue")), 317 sPropertyIsDataBaseFormat(RTL_CONSTASCII_USTRINGPARAM("DataBaseFormat")), 318 sPropertyIsDate(RTL_CONSTASCII_USTRINGPARAM("IsDate")), 319 sPropertyIsExpression(RTL_CONSTASCII_USTRINGPARAM("IsExpression")), 320 sPropertyIsFixed(RTL_CONSTASCII_USTRINGPARAM("IsFixed")), 321 sPropertyIsFixedLanguage(RTL_CONSTASCII_USTRINGPARAM("IsFixedLanguage")), --- 1403 unchanged lines hidden (view full) --- 1725 break; 1726 1727 case FIELD_ID_ANNOTATION: 1728 { 1729 // check for empty presentation (just in case) 1730 DBG_ASSERT(sPresentation.equals(sEmpty), 1731 "Unexpected presentation for annotation field"); 1732 | 315 sPropertyInstanceName(RTL_CONSTASCII_USTRINGPARAM("InstanceName")), 316 sPropertyIsAutomaticUpdate(RTL_CONSTASCII_USTRINGPARAM("IsAutomaticUpdate")), 317 sPropertyIsConditionTrue(RTL_CONSTASCII_USTRINGPARAM("IsConditionTrue")), 318 sPropertyIsDataBaseFormat(RTL_CONSTASCII_USTRINGPARAM("DataBaseFormat")), 319 sPropertyIsDate(RTL_CONSTASCII_USTRINGPARAM("IsDate")), 320 sPropertyIsExpression(RTL_CONSTASCII_USTRINGPARAM("IsExpression")), 321 sPropertyIsFixed(RTL_CONSTASCII_USTRINGPARAM("IsFixed")), 322 sPropertyIsFixedLanguage(RTL_CONSTASCII_USTRINGPARAM("IsFixedLanguage")), --- 1403 unchanged lines hidden (view full) --- 1726 break; 1727 1728 case FIELD_ID_ANNOTATION: 1729 { 1730 // check for empty presentation (just in case) 1731 DBG_ASSERT(sPresentation.equals(sEmpty), 1732 "Unexpected presentation for annotation field"); 1733 |
1733 // annotation element + content 1734 SvXMLElementExport aElem(GetExport(), XML_NAMESPACE_OFFICE, 1735 XML_ANNOTATION, sal_False, sal_True); | 1734 // annotation element + content 1735 OUString aAnnotationName; 1736 rPropSet->getPropertyValue(sPropertyName) >>= aAnnotationName; 1737 if ( aAnnotationName.getLength() > 0 ) 1738 { 1739 GetExport().AddAttribute( XML_NAMESPACE_OFFICE, XML_NAME, aAnnotationName ); 1740 } 1741 SvXMLElementExport aElem( GetExport(), XML_NAMESPACE_OFFICE, XML_ANNOTATION, sal_False, sal_True ); |
1736 1737 // author 1738 OUString aAuthor( GetStringProperty(sPropertyAuthor, rPropSet) ); | 1742 1743 // author 1744 OUString aAuthor( GetStringProperty(sPropertyAuthor, rPropSet) ); |
1739 if( aAuthor.getLength() ) | 1745 if ( aAuthor.getLength() > 0 ) |
1740 { 1741 SvXMLElementExport aCreatorElem( GetExport(), XML_NAMESPACE_DC, 1742 XML_CREATOR, sal_True, 1743 sal_False ); 1744 GetExport().Characters(aAuthor); 1745 } 1746 1747 // date time --- 4 unchanged lines hidden (view full) --- 1752 aDate, 1753 sal_True); 1754 SvXMLElementExport aDateElem( GetExport(), XML_NAMESPACE_DC, 1755 XML_DATE, sal_True, 1756 sal_False ); 1757 GetExport().Characters(aBuffer.makeStringAndClear()); 1758 } 1759 | 1746 { 1747 SvXMLElementExport aCreatorElem( GetExport(), XML_NAMESPACE_DC, 1748 XML_CREATOR, sal_True, 1749 sal_False ); 1750 GetExport().Characters(aAuthor); 1751 } 1752 1753 // date time --- 4 unchanged lines hidden (view full) --- 1758 aDate, 1759 sal_True); 1760 SvXMLElementExport aDateElem( GetExport(), XML_NAMESPACE_DC, 1761 XML_DATE, sal_True, 1762 sal_False ); 1763 GetExport().Characters(aBuffer.makeStringAndClear()); 1764 } 1765 |
1766 // initials 1767 { 1768 OUString aInitials( GetStringProperty(sPropertyInitials, rPropSet) ); 1769 if ( aInitials.getLength() > 0 ) 1770 { 1771 SvXMLElementExport aCreatorElem( 1772 GetExport(), 1773 XML_NAMESPACE_TEXT, 1774 XML_SENDER_INITIALS, 1775 sal_True, 1776 sal_False ); 1777 GetExport().Characters(aInitials); 1778 } 1779 } 1780 |
|
1760 com::sun::star::uno::Reference < com::sun::star::text::XText > xText; 1761 try 1762 { 1763 com::sun::star::uno::Any aRet = rPropSet->getPropertyValue(sPropertyTextRange); 1764 aRet >>= xText; 1765 } 1766 catch ( com::sun::star::uno::Exception& ) 1767 {} --- 1848 unchanged lines hidden --- | 1781 com::sun::star::uno::Reference < com::sun::star::text::XText > xText; 1782 try 1783 { 1784 com::sun::star::uno::Any aRet = rPropSet->getPropertyValue(sPropertyTextRange); 1785 aRet >>= xText; 1786 } 1787 catch ( com::sun::star::uno::Exception& ) 1788 {} --- 1848 unchanged lines hidden --- |