loplugin:staticmethods
Change-Id: Id3d6b50e07ea0850af18ab9bdadfffe0e4602aab
This commit is contained in:
parent
e4688a3d41
commit
d1b27a1d9a
@ -251,7 +251,7 @@ public:
|
|||||||
friend class FilterAllListenerImpl;
|
friend class FilterAllListenerImpl;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Reference<XEventListener> attachListenerForTarget(
|
static Reference<XEventListener> attachListenerForTarget(
|
||||||
const Reference<XIntrospectionAccess>& xAccess,
|
const Reference<XIntrospectionAccess>& xAccess,
|
||||||
const Reference<XInvocationAdapterFactory2>& xInvocationAdapterFactory,
|
const Reference<XInvocationAdapterFactory2>& xInvocationAdapterFactory,
|
||||||
const Reference<XAllListener>& xAllListener,
|
const Reference<XAllListener>& xAllListener,
|
||||||
|
@ -64,11 +64,11 @@ protected:
|
|||||||
static const sal_Int32 LeapYear[];
|
static const sal_Int32 LeapYear[];
|
||||||
|
|
||||||
private:
|
private:
|
||||||
double NewMoon(sal_Int32 n);
|
static double NewMoon(sal_Int32 n);
|
||||||
void getHijri(sal_Int32 *day, sal_Int32 *month, sal_Int32 *year);
|
static void getHijri(sal_Int32 *day, sal_Int32 *month, sal_Int32 *year);
|
||||||
void ToGregorian(sal_Int32 *day, sal_Int32 *month, sal_Int32 *year);
|
static void ToGregorian(sal_Int32 *day, sal_Int32 *month, sal_Int32 *year);
|
||||||
void getGregorianDay(sal_Int32 jd, sal_Int32 *pnDay, sal_Int32 *pnMonth, sal_Int32 *pnYear);
|
static void getGregorianDay(sal_Int32 jd, sal_Int32 *pnDay, sal_Int32 *pnMonth, sal_Int32 *pnYear);
|
||||||
double getJulianDay(sal_Int32 day, sal_Int32 month, sal_Int32 year);
|
static double getJulianDay(sal_Int32 day, sal_Int32 month, sal_Int32 year);
|
||||||
};
|
};
|
||||||
|
|
||||||
} } } }
|
} } } }
|
||||||
|
@ -136,7 +136,7 @@ private:
|
|||||||
sal_Unicode cDecimalSep;
|
sal_Unicode cDecimalSep;
|
||||||
|
|
||||||
/// Get corresponding KParseTokens flag for a character
|
/// Get corresponding KParseTokens flag for a character
|
||||||
sal_Int32 getParseTokensType( const sal_Unicode* aStr, sal_Int32 nPos );
|
static sal_Int32 getParseTokensType( const sal_Unicode* aStr, sal_Int32 nPos );
|
||||||
|
|
||||||
/// Access parser table flags.
|
/// Access parser table flags.
|
||||||
UPT_FLAG_TYPE getFlags( const sal_Unicode* aStr, sal_Int32 nPos );
|
UPT_FLAG_TYPE getFlags( const sal_Unicode* aStr, sal_Int32 nPos );
|
||||||
@ -171,7 +171,7 @@ private:
|
|||||||
bool setupInternational( const com::sun::star::lang::Locale& rLocale );
|
bool setupInternational( const com::sun::star::lang::Locale& rLocale );
|
||||||
|
|
||||||
/// Implementation of getCharacterType() for one single character
|
/// Implementation of getCharacterType() for one single character
|
||||||
sal_Int32 SAL_CALL getCharType( const OUString& Text, sal_Int32 *nPos, sal_Int32 increment);
|
static sal_Int32 SAL_CALL getCharType( const OUString& Text, sal_Int32 *nPos, sal_Int32 increment);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -72,7 +72,7 @@ private :
|
|||||||
|
|
||||||
com::sun::star::uno::Reference< com::sun::star::i18n::XExtendedInputSequenceChecker >& SAL_CALL getInputSequenceChecker(sal_Char* rLanguage)
|
com::sun::star::uno::Reference< com::sun::star::i18n::XExtendedInputSequenceChecker >& SAL_CALL getInputSequenceChecker(sal_Char* rLanguage)
|
||||||
throw (com::sun::star::uno::RuntimeException);
|
throw (com::sun::star::uno::RuntimeException);
|
||||||
sal_Char* SAL_CALL getLanguageByScripType(sal_Unicode cChar, sal_Unicode nChar);
|
static sal_Char* SAL_CALL getLanguageByScripType(sal_Unicode cChar, sal_Unicode nChar);
|
||||||
};
|
};
|
||||||
|
|
||||||
} } } }
|
} } } }
|
||||||
|
@ -62,9 +62,9 @@ private:
|
|||||||
|
|
||||||
void setupLocale( const ::com::sun::star::lang::Locale& rLocale );
|
void setupLocale( const ::com::sun::star::lang::Locale& rLocale );
|
||||||
void getFormats( const ::com::sun::star::lang::Locale& rLocale );
|
void getFormats( const ::com::sun::star::lang::Locale& rLocale );
|
||||||
OUString mapElementTypeShortToString(sal_Int16 formatType);
|
static OUString mapElementTypeShortToString(sal_Int16 formatType);
|
||||||
sal_Int16 mapElementTypeStringToShort(const OUString& formatType);
|
static sal_Int16 mapElementTypeStringToShort(const OUString& formatType);
|
||||||
OUString mapElementUsageShortToString(sal_Int16 formatUsage);
|
static OUString mapElementUsageShortToString(sal_Int16 formatUsage);
|
||||||
sal_Int16 mapElementUsageStringToShort(const OUString& formatUsage);
|
sal_Int16 mapElementUsageStringToShort(const OUString& formatUsage);
|
||||||
void createLocaleDataObject();
|
void createLocaleDataObject();
|
||||||
};
|
};
|
||||||
|
@ -60,7 +60,7 @@ class XMLOFF_DLLPUBLIC XMLSettingsExportHelper
|
|||||||
const OUString& rName) const;
|
const OUString& rName) const;
|
||||||
|
|
||||||
void exportBool(const bool bValue, const OUString& rName) const;
|
void exportBool(const bool bValue, const OUString& rName) const;
|
||||||
void exportByte(const sal_Int8 nValue, const OUString& rName) const;
|
static void exportByte(const sal_Int8 nValue, const OUString& rName);
|
||||||
void exportShort(const sal_Int16 nValue, const OUString& rName) const;
|
void exportShort(const sal_Int16 nValue, const OUString& rName) const;
|
||||||
void exportInt(const sal_Int32 nValue, const OUString& rName) const;
|
void exportInt(const sal_Int32 nValue, const OUString& rName) const;
|
||||||
void exportLong(const sal_Int64 nValue, const OUString& rName) const;
|
void exportLong(const sal_Int64 nValue, const OUString& rName) const;
|
||||||
|
@ -142,7 +142,7 @@ namespace xmloff
|
|||||||
|
|
||||||
/** determines whether the given page contains logical forms
|
/** determines whether the given page contains logical forms
|
||||||
*/
|
*/
|
||||||
bool pageContainsForms( const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XDrawPage >& _rxDrawPage ) const;
|
static bool pageContainsForms( const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XDrawPage >& _rxDrawPage );
|
||||||
|
|
||||||
/** determines whether the given page contains XForm instances
|
/** determines whether the given page contains XForm instances
|
||||||
*/
|
*/
|
||||||
|
@ -65,7 +65,7 @@ namespace xmloff
|
|||||||
|
|
||||||
/** creates an import context for the office:forms element
|
/** creates an import context for the office:forms element
|
||||||
*/
|
*/
|
||||||
SvXMLImportContext* createOfficeFormsContext(
|
static SvXMLImportContext* createOfficeFormsContext(
|
||||||
SvXMLImport& _rImport,
|
SvXMLImport& _rImport,
|
||||||
sal_uInt16 _nPrefix,
|
sal_uInt16 _nPrefix,
|
||||||
const OUString& _rLocalName);
|
const OUString& _rLocalName);
|
||||||
|
@ -136,7 +136,7 @@ public:
|
|||||||
|
|
||||||
/* deprecated */ bool AddAtIndex( sal_uInt16 nIdx, const OUString& rPrefix,
|
/* deprecated */ bool AddAtIndex( sal_uInt16 nIdx, const OUString& rPrefix,
|
||||||
const OUString& rName, sal_uInt16 nKey = XML_NAMESPACE_UNKNOWN );
|
const OUString& rName, sal_uInt16 nKey = XML_NAMESPACE_UNKNOWN );
|
||||||
/* deprecated */ sal_uInt16 GetIndexByKey( sal_uInt16 nKey ) const;
|
/* deprecated */ static sal_uInt16 GetIndexByKey( sal_uInt16 nKey );
|
||||||
/* deprecated */ sal_uInt16 GetIndexByPrefix( const OUString& rPrefix ) const;
|
/* deprecated */ sal_uInt16 GetIndexByPrefix( const OUString& rPrefix ) const;
|
||||||
/* deprecated */ sal_uInt16 GetFirstIndex() const;
|
/* deprecated */ sal_uInt16 GetFirstIndex() const;
|
||||||
/* deprecated */ sal_uInt16 GetNextIndex( sal_uInt16 nOldIdx ) const;
|
/* deprecated */ sal_uInt16 GetNextIndex( sal_uInt16 nOldIdx ) const;
|
||||||
|
@ -78,10 +78,10 @@ protected:
|
|||||||
bool translateNameBasedDrawingLayerFillStyleDefinitionsToStyleDisplayNames();
|
bool translateNameBasedDrawingLayerFillStyleDefinitionsToStyleDisplayNames();
|
||||||
|
|
||||||
//UUUU provider for often used sets
|
//UUUU provider for often used sets
|
||||||
const OldFillStyleDefinitionSet& getStandardSet();
|
static const OldFillStyleDefinitionSet& getStandardSet();
|
||||||
const OldFillStyleDefinitionSet& getHeaderSet();
|
static const OldFillStyleDefinitionSet& getHeaderSet();
|
||||||
const OldFillStyleDefinitionSet& getFooterSet();
|
static const OldFillStyleDefinitionSet& getFooterSet();
|
||||||
const OldFillStyleDefinitionSet& getParaSet();
|
static const OldFillStyleDefinitionSet& getParaSet();
|
||||||
|
|
||||||
virtual void SetAttribute( sal_uInt16 nPrefixKey,
|
virtual void SetAttribute( sal_uInt16 nPrefixKey,
|
||||||
const OUString& rLocalName,
|
const OUString& rLocalName,
|
||||||
|
@ -327,7 +327,7 @@ public:
|
|||||||
const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList >& xAttrList,
|
const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList >& xAttrList,
|
||||||
com::sun::star::uno::Reference< com::sun::star::drawing::XShapes >& rShapes,
|
com::sun::star::uno::Reference< com::sun::star::drawing::XShapes >& rShapes,
|
||||||
const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList >& xFrameAttrList);
|
const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList >& xFrameAttrList);
|
||||||
SvXMLImportContext* CreateFrameChildContext(
|
static SvXMLImportContext* CreateFrameChildContext(
|
||||||
SvXMLImportContext *pThisContext, sal_uInt16 nPrefix, const OUString& rLocalName,
|
SvXMLImportContext *pThisContext, sal_uInt16 nPrefix, const OUString& rLocalName,
|
||||||
const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList >& xAttrList );
|
const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList >& xAttrList );
|
||||||
|
|
||||||
|
@ -375,7 +375,7 @@ private:
|
|||||||
/// ugly, but implementation of this is in XMLPropertyBackpatcher.cxx
|
/// ugly, but implementation of this is in XMLPropertyBackpatcher.cxx
|
||||||
struct BackpatcherImpl;
|
struct BackpatcherImpl;
|
||||||
std::shared_ptr<BackpatcherImpl> m_xBackpatcherImpl;
|
std::shared_ptr<BackpatcherImpl> m_xBackpatcherImpl;
|
||||||
std::shared_ptr<BackpatcherImpl> MakeBackpatcherImpl();
|
static std::shared_ptr<BackpatcherImpl> MakeBackpatcherImpl();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual SvXMLImportContext *CreateTableChildContext(
|
virtual SvXMLImportContext *CreateTableChildContext(
|
||||||
|
@ -29,12 +29,12 @@ class XMLOFF_DLLPUBLIC XMLTextImportPropertyMapper : public SvXMLImportPropertyM
|
|||||||
sal_Int32 nSizeTypeIndex;
|
sal_Int32 nSizeTypeIndex;
|
||||||
sal_Int32 nWidthTypeIndex;
|
sal_Int32 nWidthTypeIndex;
|
||||||
|
|
||||||
void FontFinished(
|
static void FontFinished(
|
||||||
XMLPropertyState *pFontFamilyNameState,
|
XMLPropertyState *pFontFamilyNameState,
|
||||||
XMLPropertyState *pFontStyleNameState,
|
XMLPropertyState *pFontStyleNameState,
|
||||||
XMLPropertyState *pFontFamilyState,
|
XMLPropertyState *pFontFamilyState,
|
||||||
XMLPropertyState *pFontPitchState,
|
XMLPropertyState *pFontPitchState,
|
||||||
XMLPropertyState *pFontCharsetState ) const;
|
XMLPropertyState *pFontCharsetState );
|
||||||
|
|
||||||
void FontDefaultsCheck(
|
void FontDefaultsCheck(
|
||||||
XMLPropertyState*pFontFamilyName,
|
XMLPropertyState*pFontFamilyName,
|
||||||
|
@ -180,7 +180,7 @@ protected:
|
|||||||
inline bool HasShapeImport() const { return mxShapeImport.is(); }
|
inline bool HasShapeImport() const { return mxShapeImport.is(); }
|
||||||
inline void ClearShapeImport() { mxShapeImport = 0; }
|
inline void ClearShapeImport() { mxShapeImport = 0; }
|
||||||
|
|
||||||
SchXMLImportHelper* CreateChartImport();
|
static SchXMLImportHelper* CreateChartImport();
|
||||||
::xmloff::OFormLayerXMLImport* CreateFormImport();
|
::xmloff::OFormLayerXMLImport* CreateFormImport();
|
||||||
|
|
||||||
void SetFontDecls( XMLFontStylesContext *pFontDecls );
|
void SetFontDecls( XMLFontStylesContext *pFontDecls );
|
||||||
|
@ -207,8 +207,8 @@ public:
|
|||||||
/** convert NumberingType to num-forat and num-letter-sync values */
|
/** convert NumberingType to num-forat and num-letter-sync values */
|
||||||
void convertNumFormat( OUStringBuffer& rBuffer,
|
void convertNumFormat( OUStringBuffer& rBuffer,
|
||||||
sal_Int16 nType ) const;
|
sal_Int16 nType ) const;
|
||||||
void convertNumLetterSync( OUStringBuffer& rBuffer,
|
static void convertNumLetterSync( OUStringBuffer& rBuffer,
|
||||||
sal_Int16 nType ) const;
|
sal_Int16 nType );
|
||||||
|
|
||||||
static void convertPropertySet(com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>& rProps,
|
static void convertPropertySet(com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>& rProps,
|
||||||
const com::sun::star::uno::Reference<com::sun::star::beans::XPropertySet>& aProperties);
|
const com::sun::star::uno::Reference<com::sun::star::beans::XPropertySet>& aProperties);
|
||||||
|
@ -320,7 +320,7 @@ SvXMLImportContext *ScXMLTableContext::CreateChildContext( sal_uInt16 nPrefix,
|
|||||||
{
|
{
|
||||||
GetScImport().GetFormImport()->startPage(GetScImport().GetTables().GetCurrentXDrawPage());
|
GetScImport().GetFormImport()->startPage(GetScImport().GetTables().GetCurrentXDrawPage());
|
||||||
bStartFormPage = true;
|
bStartFormPage = true;
|
||||||
pContext = GetScImport().GetFormImport()->createOfficeFormsContext( GetScImport(), nPrefix, rLName );
|
pContext = xmloff::OFormLayerXMLImport::createOfficeFormsContext( GetScImport(), nPrefix, rLName );
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case XML_TOK_TABLE_EVENT_LISTENERS:
|
case XML_TOK_TABLE_EVENT_LISTENERS:
|
||||||
|
@ -268,7 +268,7 @@ public:
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void parseError( const char* pMessage, iteratorT pLocation )
|
static void parseError( const char* pMessage, iteratorT pLocation )
|
||||||
{
|
{
|
||||||
throw_( pLocation, pMessage );
|
throw_( pLocation, pMessage );
|
||||||
}
|
}
|
||||||
|
@ -462,7 +462,7 @@ void SwXMLExport::_ExportContent()
|
|||||||
xPage, GetFormExport() );
|
xPage, GetFormExport() );
|
||||||
|
|
||||||
// #i36597#
|
// #i36597#
|
||||||
if ( GetFormExport()->pageContainsForms( xPage ) || GetFormExport()->documentContainsXForms() )
|
if ( xmloff::OFormLayerXMLExport::pageContainsForms( xPage ) || GetFormExport()->documentContainsXForms() )
|
||||||
{
|
{
|
||||||
::xmloff::OOfficeFormsExport aOfficeForms(*this);
|
::xmloff::OOfficeFormsExport aOfficeForms(*this);
|
||||||
|
|
||||||
|
@ -63,21 +63,21 @@ private:
|
|||||||
sal_Int32 SAL_CALL
|
sal_Int32 SAL_CALL
|
||||||
impl_getColumnCount();
|
impl_getColumnCount();
|
||||||
|
|
||||||
void SAL_CALL
|
static void SAL_CALL
|
||||||
impl_getCurrentContentIdentifierString(
|
impl_getCurrentContentIdentifierString(
|
||||||
com::sun::star::uno::Any& rAny
|
com::sun::star::uno::Any& rAny
|
||||||
, com::sun::star::uno::Reference<
|
, com::sun::star::uno::Reference<
|
||||||
com::sun::star::ucb::XContentAccess > xContentAccess )
|
com::sun::star::ucb::XContentAccess > xContentAccess )
|
||||||
throw ( com::sun::star::uno::RuntimeException );
|
throw ( com::sun::star::uno::RuntimeException );
|
||||||
|
|
||||||
void SAL_CALL
|
static void SAL_CALL
|
||||||
impl_getCurrentContentIdentifier(
|
impl_getCurrentContentIdentifier(
|
||||||
com::sun::star::uno::Any& rAny
|
com::sun::star::uno::Any& rAny
|
||||||
, com::sun::star::uno::Reference<
|
, com::sun::star::uno::Reference<
|
||||||
com::sun::star::ucb::XContentAccess > xContentAccess )
|
com::sun::star::ucb::XContentAccess > xContentAccess )
|
||||||
throw ( com::sun::star::uno::RuntimeException );
|
throw ( com::sun::star::uno::RuntimeException );
|
||||||
|
|
||||||
void SAL_CALL
|
static void SAL_CALL
|
||||||
impl_getCurrentContent(
|
impl_getCurrentContent(
|
||||||
com::sun::star::uno::Any& rAny
|
com::sun::star::uno::Any& rAny
|
||||||
, com::sun::star::uno::Reference<
|
, com::sun::star::uno::Reference<
|
||||||
|
@ -136,28 +136,28 @@ class SortedResultSet: public cppu::WeakImplHelper8 <
|
|||||||
SortedEntryList maS2O; // maps the sorted entries to the original ones
|
SortedEntryList maS2O; // maps the sorted entries to the original ones
|
||||||
SimpleList maO2S; // maps the original Entries to the sorted ones
|
SimpleList maO2S; // maps the original Entries to the sorted ones
|
||||||
SimpleList maModList; // keeps track of modified entries
|
SimpleList maModList; // keeps track of modified entries
|
||||||
sal_IntPtr mnLastSort; // index of the last sorted entry;
|
sal_IntPtr mnLastSort; // index of the last sorted entry;
|
||||||
sal_IntPtr mnCurEntry; // index of the current entry
|
sal_IntPtr mnCurEntry; // index of the current entry
|
||||||
sal_IntPtr mnCount; // total count of the elements
|
sal_IntPtr mnCount; // total count of the elements
|
||||||
bool mbIsCopy;
|
bool mbIsCopy;
|
||||||
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
sal_IntPtr FindPos( SortListData *pEntry, sal_IntPtr nStart, sal_IntPtr nEnd )
|
sal_IntPtr FindPos( SortListData *pEntry, sal_IntPtr nStart, sal_IntPtr nEnd )
|
||||||
throw( css::sdbc::SQLException, css::uno::RuntimeException );
|
throw( css::sdbc::SQLException, css::uno::RuntimeException );
|
||||||
sal_IntPtr Compare( SortListData *pOne,
|
sal_IntPtr Compare( SortListData *pOne,
|
||||||
SortListData *pTwo )
|
SortListData *pTwo )
|
||||||
throw( css::sdbc::SQLException, css::uno::RuntimeException );
|
throw( css::sdbc::SQLException, css::uno::RuntimeException );
|
||||||
void BuildSortInfo( css::uno::Reference< css::sdbc::XResultSet > aResult,
|
void BuildSortInfo( css::uno::Reference< css::sdbc::XResultSet > aResult,
|
||||||
const css::uno::Sequence < css::ucb::NumberedSortingInfo > &xSortInfo,
|
const css::uno::Sequence < css::ucb::NumberedSortingInfo > &xSortInfo,
|
||||||
const css::uno::Reference< css::ucb::XAnyCompareFactory > &xCompFac );
|
const css::uno::Reference< css::ucb::XAnyCompareFactory > &xCompFac );
|
||||||
sal_IntPtr CompareImpl( css::uno::Reference < css::sdbc::XResultSet > xResultOne,
|
static sal_IntPtr CompareImpl( css::uno::Reference < css::sdbc::XResultSet > xResultOne,
|
||||||
css::uno::Reference < css::sdbc::XResultSet > xResultTwo,
|
css::uno::Reference < css::sdbc::XResultSet > xResultTwo,
|
||||||
sal_IntPtr nIndexOne, sal_IntPtr nIndexTwo,
|
sal_IntPtr nIndexOne, sal_IntPtr nIndexTwo,
|
||||||
SortInfo* pSortInfo )
|
SortInfo* pSortInfo )
|
||||||
throw( css::sdbc::SQLException, css::uno::RuntimeException );
|
throw( css::sdbc::SQLException, css::uno::RuntimeException );
|
||||||
sal_IntPtr CompareImpl( css::uno::Reference < css::sdbc::XResultSet > xResultOne,
|
sal_IntPtr CompareImpl( css::uno::Reference < css::sdbc::XResultSet > xResultOne,
|
||||||
css::uno::Reference < css::sdbc::XResultSet > xResultTwo,
|
css::uno::Reference < css::sdbc::XResultSet > xResultTwo,
|
||||||
sal_IntPtr nIndexOne, sal_IntPtr nIndexTwo )
|
sal_IntPtr nIndexOne, sal_IntPtr nIndexTwo )
|
||||||
throw( css::sdbc::SQLException, css::uno::RuntimeException );
|
throw( css::sdbc::SQLException, css::uno::RuntimeException );
|
||||||
|
@ -399,7 +399,7 @@ protected:
|
|||||||
::com::sun::star::beans::XPropertySetInfo > & rPropertySetInfo );
|
::com::sun::star::beans::XPropertySetInfo > & rPropertySetInfo );
|
||||||
|
|
||||||
/// for XDependentTextFields, get PropertySet of FieldMaster
|
/// for XDependentTextFields, get PropertySet of FieldMaster
|
||||||
::com::sun::star::uno::Reference < ::com::sun::star::beans::XPropertySet >
|
static ::com::sun::star::uno::Reference < ::com::sun::star::beans::XPropertySet >
|
||||||
GetMasterPropertySet(const ::com::sun::star::uno::Reference <
|
GetMasterPropertySet(const ::com::sun::star::uno::Reference <
|
||||||
::com::sun::star::text::XTextField > & rTextField);
|
::com::sun::star::text::XTextField > & rTextField);
|
||||||
|
|
||||||
|
@ -179,7 +179,7 @@ protected:
|
|||||||
|
|
||||||
/// force an update of the field's value
|
/// force an update of the field's value
|
||||||
/// call update on optional XUptadeable interface; (disable Fixed property)
|
/// call update on optional XUptadeable interface; (disable Fixed property)
|
||||||
void ForceUpdate(
|
static void ForceUpdate(
|
||||||
const ::com::sun::star::uno::Reference<
|
const ::com::sun::star::uno::Reference<
|
||||||
::com::sun::star::beans::XPropertySet> & rPropertySet);
|
::com::sun::star::beans::XPropertySet> & rPropertySet);
|
||||||
};
|
};
|
||||||
|
@ -165,9 +165,9 @@ public:
|
|||||||
const ::com::sun::star::uno::Reference<
|
const ::com::sun::star::uno::Reference<
|
||||||
::com::sun::star::chart2::XChartDocument > & xChartDoc );
|
::com::sun::star::chart2::XChartDocument > & xChartDoc );
|
||||||
|
|
||||||
::com::sun::star::awt::Size getPageSize(
|
static ::com::sun::star::awt::Size getPageSize(
|
||||||
const ::com::sun::star::uno::Reference<
|
const ::com::sun::star::uno::Reference<
|
||||||
::com::sun::star::chart2::XChartDocument > & xChartDoc ) const;
|
::com::sun::star::chart2::XChartDocument > & xChartDoc );
|
||||||
|
|
||||||
/** first parseDocument: collect autostyles and store names in this queue
|
/** first parseDocument: collect autostyles and store names in this queue
|
||||||
second parseDocument: export content and use names from this queue
|
second parseDocument: export content and use names from this queue
|
||||||
@ -3520,7 +3520,7 @@ void SchXMLExportHelper_Impl::addSize( Reference< drawing::XShape > xShape, bool
|
|||||||
addSize( xShape->getSize(), bIsOOoNamespace );
|
addSize( xShape->getSize(), bIsOOoNamespace );
|
||||||
}
|
}
|
||||||
|
|
||||||
awt::Size SchXMLExportHelper_Impl::getPageSize( const Reference< chart2::XChartDocument > & xChartDoc ) const
|
awt::Size SchXMLExportHelper_Impl::getPageSize( const Reference< chart2::XChartDocument > & xChartDoc )
|
||||||
{
|
{
|
||||||
awt::Size aSize( 8000, 7000 );
|
awt::Size aSize( 8000, 7000 );
|
||||||
uno::Reference< embed::XVisualObject > xVisualObject( xChartDoc, uno::UNO_QUERY );
|
uno::Reference< embed::XVisualObject > xVisualObject( xChartDoc, uno::UNO_QUERY );
|
||||||
|
@ -195,7 +195,7 @@ void XMLSettingsExportHelper::exportBool(const bool bValue, const OUString& rNam
|
|||||||
m_rContext.EndElement( false );
|
m_rContext.EndElement( false );
|
||||||
}
|
}
|
||||||
|
|
||||||
void XMLSettingsExportHelper::exportByte(const sal_Int8 nValue, const OUString& rName) const
|
void XMLSettingsExportHelper::exportByte(const sal_Int8 nValue, const OUString& rName)
|
||||||
{
|
{
|
||||||
(void) nValue; (void) rName;
|
(void) nValue; (void) rName;
|
||||||
OSL_ENSURE(false, "XMLSettingsExportHelper::exportByte(): #i114162#:\n"
|
OSL_ENSURE(false, "XMLSettingsExportHelper::exportByte(): #i114162#:\n"
|
||||||
|
@ -364,7 +364,7 @@ sal_uInt16 SvXMLNamespaceMap::GetNextKey( sal_uInt16 nLastKey ) const
|
|||||||
|
|
||||||
// All methods after this are deprecated...
|
// All methods after this are deprecated...
|
||||||
|
|
||||||
sal_uInt16 SvXMLNamespaceMap::GetIndexByKey( sal_uInt16 nKey ) const
|
sal_uInt16 SvXMLNamespaceMap::GetIndexByKey( sal_uInt16 nKey )
|
||||||
{
|
{
|
||||||
return nKey;
|
return nKey;
|
||||||
}
|
}
|
||||||
|
@ -683,7 +683,7 @@ void SvXMLUnitConverter::convertNumFormat( OUStringBuffer& rBuffer,
|
|||||||
}
|
}
|
||||||
|
|
||||||
void SvXMLUnitConverter::convertNumLetterSync( OUStringBuffer& rBuffer,
|
void SvXMLUnitConverter::convertNumLetterSync( OUStringBuffer& rBuffer,
|
||||||
sal_Int16 nType ) const
|
sal_Int16 nType )
|
||||||
{
|
{
|
||||||
enum XMLTokenEnum eSync = XML_TOKEN_INVALID;
|
enum XMLTokenEnum eSync = XML_TOKEN_INVALID;
|
||||||
switch( nType )
|
switch( nType )
|
||||||
|
@ -513,9 +513,9 @@ public:
|
|||||||
void exportAudio( const Reference< XAudio >& xAudio );
|
void exportAudio( const Reference< XAudio >& xAudio );
|
||||||
void exportCommand( const Reference< XCommand >& xCommand );
|
void exportCommand( const Reference< XCommand >& xCommand );
|
||||||
|
|
||||||
Reference< XInterface > getParagraphTarget( const ParagraphTarget* pTarget ) const;
|
static Reference< XInterface > getParagraphTarget( const ParagraphTarget* pTarget );
|
||||||
|
|
||||||
void convertPath( OUStringBuffer& sTmp, const Any& rPath ) const;
|
static void convertPath( OUStringBuffer& sTmp, const Any& rPath );
|
||||||
void convertValue( XMLTokenEnum eAttributeName, OUStringBuffer& sTmp, const Any& rValue ) const;
|
void convertValue( XMLTokenEnum eAttributeName, OUStringBuffer& sTmp, const Any& rValue ) const;
|
||||||
void convertTiming( OUStringBuffer& sTmp, const Any& rTiming ) const;
|
void convertTiming( OUStringBuffer& sTmp, const Any& rTiming ) const;
|
||||||
void convertSource( OUStringBuffer& sTmp, const Any& rSource ) const;
|
void convertSource( OUStringBuffer& sTmp, const Any& rSource ) const;
|
||||||
@ -1412,7 +1412,7 @@ void AnimationsExporterImpl::exportCommand( const Reference< XCommand >& xComman
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Reference< XInterface > AnimationsExporterImpl::getParagraphTarget( const ParagraphTarget* pTarget ) const
|
Reference< XInterface > AnimationsExporterImpl::getParagraphTarget( const ParagraphTarget* pTarget )
|
||||||
{
|
{
|
||||||
if( pTarget ) try
|
if( pTarget ) try
|
||||||
{
|
{
|
||||||
@ -1437,7 +1437,7 @@ Reference< XInterface > AnimationsExporterImpl::getParagraphTarget( const Paragr
|
|||||||
return xRef;
|
return xRef;
|
||||||
}
|
}
|
||||||
|
|
||||||
void AnimationsExporterImpl::convertPath( OUStringBuffer& sTmp, const Any& rPath ) const
|
void AnimationsExporterImpl::convertPath( OUStringBuffer& sTmp, const Any& rPath )
|
||||||
{
|
{
|
||||||
OUString aStr;
|
OUString aStr;
|
||||||
rPath >>= aStr;
|
rPath >>= aStr;
|
||||||
|
@ -123,10 +123,10 @@ public:
|
|||||||
Sequence< Any > convertValueSequence( XMLTokenEnum eAttributeName, const OUString& rValue );
|
Sequence< Any > convertValueSequence( XMLTokenEnum eAttributeName, const OUString& rValue );
|
||||||
|
|
||||||
Any convertTarget( const OUString& rValue );
|
Any convertTarget( const OUString& rValue );
|
||||||
Any convertPath( const OUString& rValue );
|
static Any convertPath( const OUString& rValue );
|
||||||
Any convertTiming( const OUString& rValue );
|
Any convertTiming( const OUString& rValue );
|
||||||
Sequence< double > convertKeyTimes( const OUString& rValue );
|
static Sequence< double > convertKeyTimes( const OUString& rValue );
|
||||||
Sequence< TimeFilterPair > convertTimeFilter( const OUString& rValue );
|
static Sequence< TimeFilterPair > convertTimeFilter( const OUString& rValue );
|
||||||
|
|
||||||
const OUString mastrHSL;
|
const OUString mastrHSL;
|
||||||
};
|
};
|
||||||
@ -993,7 +993,7 @@ void AnimationNodeContext::init_node( const ::com::sun::star::uno::Reference< :
|
|||||||
case ANA_KeyTimes:
|
case ANA_KeyTimes:
|
||||||
{
|
{
|
||||||
if( xAnimate.is() )
|
if( xAnimate.is() )
|
||||||
xAnimate->setKeyTimes( mpHelper->convertKeyTimes( rValue ) );
|
xAnimate->setKeyTimes( AnimationsImportHelperImpl::convertKeyTimes( rValue ) );
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -1046,7 +1046,7 @@ void AnimationNodeContext::init_node( const ::com::sun::star::uno::Reference< :
|
|||||||
case ANA_KeySplines:
|
case ANA_KeySplines:
|
||||||
{
|
{
|
||||||
if( xAnimate.is() )
|
if( xAnimate.is() )
|
||||||
xAnimate->setTimeFilter( mpHelper->convertTimeFilter( rValue ) );
|
xAnimate->setTimeFilter( AnimationsImportHelperImpl::convertTimeFilter( rValue ) );
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -1054,7 +1054,7 @@ void AnimationNodeContext::init_node( const ::com::sun::star::uno::Reference< :
|
|||||||
{
|
{
|
||||||
Reference< XAnimateMotion > xAnimateMotion( mxNode, UNO_QUERY );
|
Reference< XAnimateMotion > xAnimateMotion( mxNode, UNO_QUERY );
|
||||||
if( xAnimateMotion.is() )
|
if( xAnimateMotion.is() )
|
||||||
xAnimateMotion->setPath( mpHelper->convertPath( rValue ) );
|
xAnimateMotion->setPath( AnimationsImportHelperImpl::convertPath( rValue ) );
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -249,7 +249,7 @@ SvXMLImportContext* SdXMLGenericPageContext::CreateChildContext( sal_uInt16 nPre
|
|||||||
else if( nPrefix == XML_NAMESPACE_OFFICE && IsXMLToken( rLocalName, XML_FORMS ) )
|
else if( nPrefix == XML_NAMESPACE_OFFICE && IsXMLToken( rLocalName, XML_FORMS ) )
|
||||||
{
|
{
|
||||||
if( GetImport().IsFormsSupported() )
|
if( GetImport().IsFormsSupported() )
|
||||||
pContext = GetImport().GetFormImport()->createOfficeFormsContext( GetImport(), nPrefix, rLocalName );
|
pContext = xmloff::OFormLayerXMLImport::createOfficeFormsContext( GetImport(), nPrefix, rLocalName );
|
||||||
}
|
}
|
||||||
else if( ((nPrefix == XML_NAMESPACE_OFFICE) || (nPrefix == XML_NAMESPACE_OFFICE_EXT)) && IsXMLToken( rLocalName, XML_ANNOTATION ) )
|
else if( ((nPrefix == XML_NAMESPACE_OFFICE) || (nPrefix == XML_NAMESPACE_OFFICE_EXT)) && IsXMLToken( rLocalName, XML_ANNOTATION ) )
|
||||||
{
|
{
|
||||||
|
@ -1735,7 +1735,7 @@ namespace xmloff
|
|||||||
{
|
{
|
||||||
FormCellBindingHelper aHelper( m_xProps, NULL );
|
FormCellBindingHelper aHelper( m_xProps, NULL );
|
||||||
{
|
{
|
||||||
if ( aHelper.isCellBinding( aHelper.getCurrentBinding( ) ) )
|
if ( FormCellBindingHelper::isCellBinding( aHelper.getCurrentBinding( ) ) )
|
||||||
{
|
{
|
||||||
m_nIncludeBindings |= BA_LINKED_CELL;
|
m_nIncludeBindings |= BA_LINKED_CELL;
|
||||||
if ( m_nClassId == FormComponentType::LISTBOX )
|
if ( m_nClassId == FormComponentType::LISTBOX )
|
||||||
@ -1745,7 +1745,7 @@ namespace xmloff
|
|||||||
|
|
||||||
// is it a list-like control which uses a calc cell range as list source?
|
// is it a list-like control which uses a calc cell range as list source?
|
||||||
{
|
{
|
||||||
if ( aHelper.isCellRangeListSource( aHelper.getCurrentListSource( ) ) )
|
if ( FormCellBindingHelper::isCellRangeListSource( aHelper.getCurrentListSource( ) ) )
|
||||||
m_nIncludeBindings |= BA_LIST_CELL_RANGE;
|
m_nIncludeBindings |= BA_LIST_CELL_RANGE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1786,7 +1786,7 @@ namespace xmloff
|
|||||||
|
|
||||||
if ( _bIncludeListLinkageType )
|
if ( _bIncludeListLinkageType )
|
||||||
{
|
{
|
||||||
sal_Int16 nLinkageType = aHelper.isCellIntegerBinding( xBinding ) ? 1 : 0;
|
sal_Int16 nLinkageType = FormCellBindingHelper::isCellIntegerBinding( xBinding ) ? 1 : 0;
|
||||||
|
|
||||||
OUStringBuffer sBuffer;
|
OUStringBuffer sBuffer;
|
||||||
SvXMLUnitConverter::convertEnum(
|
SvXMLUnitConverter::convertEnum(
|
||||||
|
@ -238,7 +238,7 @@ namespace xmloff
|
|||||||
void setElementType(OControlElement::ElementType _eType) { m_eElementType = _eType; }
|
void setElementType(OControlElement::ElementType _eType) { m_eElementType = _eType; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void implTranslateValueProperty(
|
static void implTranslateValueProperty(
|
||||||
const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo >& _rxPropInfo,
|
const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo >& _rxPropInfo,
|
||||||
::com::sun::star::beans::PropertyValue& /* [in/out] */ _rPropValue);
|
::com::sun::star::beans::PropertyValue& /* [in/out] */ _rPropValue);
|
||||||
|
|
||||||
|
@ -320,22 +320,22 @@ bool FormCellBindingHelper::isCellBindingAllowed( const Reference< XModel >& _rx
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool FormCellBindingHelper::isCellBinding( const Reference< XValueBinding >& _rxBinding ) const
|
bool FormCellBindingHelper::isCellBinding( const Reference< XValueBinding >& _rxBinding )
|
||||||
{
|
{
|
||||||
return doesComponentSupport( _rxBinding.get(), SERVICE_CELLVALUEBINDING );
|
return doesComponentSupport( _rxBinding.get(), SERVICE_CELLVALUEBINDING );
|
||||||
}
|
}
|
||||||
|
|
||||||
bool FormCellBindingHelper::isCellIntegerBinding( const Reference< XValueBinding >& _rxBinding ) const
|
bool FormCellBindingHelper::isCellIntegerBinding( const Reference< XValueBinding >& _rxBinding )
|
||||||
{
|
{
|
||||||
return doesComponentSupport( _rxBinding.get(), SERVICE_LISTINDEXCELLBINDING );
|
return doesComponentSupport( _rxBinding.get(), SERVICE_LISTINDEXCELLBINDING );
|
||||||
}
|
}
|
||||||
|
|
||||||
bool FormCellBindingHelper::isCellRangeListSource( const Reference< XListEntrySource >& _rxSource ) const
|
bool FormCellBindingHelper::isCellRangeListSource( const Reference< XListEntrySource >& _rxSource )
|
||||||
{
|
{
|
||||||
return doesComponentSupport( _rxSource.get(), SERVICE_CELLRANGELISTSOURCE );
|
return doesComponentSupport( _rxSource.get(), SERVICE_CELLRANGELISTSOURCE );
|
||||||
}
|
}
|
||||||
|
|
||||||
bool FormCellBindingHelper::doesComponentSupport( const Reference< XInterface >& _rxComponent, const OUString& _rService ) const
|
bool FormCellBindingHelper::doesComponentSupport( const Reference< XInterface >& _rxComponent, const OUString& _rService )
|
||||||
{
|
{
|
||||||
Reference< XServiceInfo > xSI( _rxComponent, UNO_QUERY );
|
Reference< XServiceInfo > xSI( _rxComponent, UNO_QUERY );
|
||||||
bool bDoes = xSI.is() && xSI->supportsService( _rService );
|
bool bDoes = xSI.is() && xSI->supportsService( _rService );
|
||||||
|
@ -161,22 +161,22 @@ namespace xmloff
|
|||||||
|
|
||||||
/** checks whether a given binding is a spreadsheet cell binding
|
/** checks whether a given binding is a spreadsheet cell binding
|
||||||
*/
|
*/
|
||||||
bool isCellBinding(
|
static bool isCellBinding(
|
||||||
const ::com::sun::star::uno::Reference< ::com::sun::star::form::binding::XValueBinding >& _rxBinding
|
const ::com::sun::star::uno::Reference< ::com::sun::star::form::binding::XValueBinding >& _rxBinding
|
||||||
) const;
|
);
|
||||||
|
|
||||||
/** checks whether a given binding is a spreadsheet cell binding, exchanging
|
/** checks whether a given binding is a spreadsheet cell binding, exchanging
|
||||||
integer values
|
integer values
|
||||||
*/
|
*/
|
||||||
bool isCellIntegerBinding(
|
static bool isCellIntegerBinding(
|
||||||
const ::com::sun::star::uno::Reference< ::com::sun::star::form::binding::XValueBinding >& _rxBinding
|
const ::com::sun::star::uno::Reference< ::com::sun::star::form::binding::XValueBinding >& _rxBinding
|
||||||
) const;
|
);
|
||||||
|
|
||||||
/** checks whether a given list source is a spreadsheet cell list source
|
/** checks whether a given list source is a spreadsheet cell list source
|
||||||
*/
|
*/
|
||||||
bool isCellRangeListSource(
|
static bool isCellRangeListSource(
|
||||||
const ::com::sun::star::uno::Reference< ::com::sun::star::form::binding::XListEntrySource >& _rxSource
|
const ::com::sun::star::uno::Reference< ::com::sun::star::form::binding::XListEntrySource >& _rxSource
|
||||||
) const;
|
);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
/** creates an address object from a string representation of a cell address
|
/** creates an address object from a string representation of a cell address
|
||||||
@ -209,10 +209,10 @@ namespace xmloff
|
|||||||
|
|
||||||
/** checkes whether a given component supports a given servive
|
/** checkes whether a given component supports a given servive
|
||||||
*/
|
*/
|
||||||
bool doesComponentSupport(
|
static bool doesComponentSupport(
|
||||||
const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& _rxComponent,
|
const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& _rxComponent,
|
||||||
const OUString& _rService
|
const OUString& _rService
|
||||||
) const;
|
);
|
||||||
|
|
||||||
/** uses the document (it's factory interface, respectively) to create a component instance
|
/** uses the document (it's factory interface, respectively) to create a component instance
|
||||||
@param _rService
|
@param _rService
|
||||||
|
@ -92,9 +92,9 @@ namespace xmloff
|
|||||||
m_pImpl->exportXForms();
|
m_pImpl->exportXForms();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool OFormLayerXMLExport::pageContainsForms( const Reference< XDrawPage >& _rxDrawPage ) const
|
bool OFormLayerXMLExport::pageContainsForms( const Reference< XDrawPage >& _rxDrawPage )
|
||||||
{
|
{
|
||||||
return m_pImpl->pageContainsForms( _rxDrawPage );
|
return OFormLayerXMLExport_Impl::pageContainsForms( _rxDrawPage );
|
||||||
}
|
}
|
||||||
|
|
||||||
bool OFormLayerXMLExport::documentContainsXForms() const
|
bool OFormLayerXMLExport::documentContainsXForms() const
|
||||||
|
@ -68,7 +68,7 @@ namespace xmloff
|
|||||||
sal_uInt16 _nPrefix,
|
sal_uInt16 _nPrefix,
|
||||||
const OUString& _rLocalName)
|
const OUString& _rLocalName)
|
||||||
{
|
{
|
||||||
return m_pImpl->createOfficeFormsContext(_rImport, _nPrefix, _rLocalName);
|
return OFormLayerXMLImport_Impl::createOfficeFormsContext(_rImport, _nPrefix, _rLocalName);
|
||||||
}
|
}
|
||||||
|
|
||||||
SvXMLImportContext* OFormLayerXMLImport::createContext(const sal_uInt16 _nPrefix, const OUString& _rLocalName,
|
SvXMLImportContext* OFormLayerXMLImport::createContext(const sal_uInt16 _nPrefix, const OUString& _rLocalName,
|
||||||
|
@ -292,7 +292,7 @@ namespace xmloff
|
|||||||
::exportXForms( m_rContext );
|
::exportXForms( m_rContext );
|
||||||
}
|
}
|
||||||
|
|
||||||
bool OFormLayerXMLExport_Impl::pageContainsForms( const Reference< XDrawPage >& _rxDrawPage ) const
|
bool OFormLayerXMLExport_Impl::pageContainsForms( const Reference< XDrawPage >& _rxDrawPage )
|
||||||
{
|
{
|
||||||
Reference< XFormsSupplier2 > xFormsSupp( _rxDrawPage, UNO_QUERY );
|
Reference< XFormsSupplier2 > xFormsSupp( _rxDrawPage, UNO_QUERY );
|
||||||
DBG_ASSERT( xFormsSupp.is(), "OFormLayerXMLExport_Impl::pageContainsForms: no XFormsSupplier2!" );
|
DBG_ASSERT( xFormsSupp.is(), "OFormLayerXMLExport_Impl::pageContainsForms: no XFormsSupplier2!" );
|
||||||
|
@ -217,7 +217,7 @@ namespace xmloff
|
|||||||
|
|
||||||
/** determines whether the given page contains logical forms
|
/** determines whether the given page contains logical forms
|
||||||
*/
|
*/
|
||||||
bool pageContainsForms( const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XDrawPage >& _rxDrawPage ) const;
|
static bool pageContainsForms( const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XDrawPage >& _rxDrawPage );
|
||||||
|
|
||||||
/** determines whether the given page contains XForm instances
|
/** determines whether the given page contains XForm instances
|
||||||
*/
|
*/
|
||||||
@ -232,7 +232,7 @@ namespace xmloff
|
|||||||
void exportAutoStyles();
|
void exportAutoStyles();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
bool impl_isFormPageContainingForms(
|
static bool impl_isFormPageContainingForms(
|
||||||
const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XDrawPage >& _rxDrawPage,
|
const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XDrawPage >& _rxDrawPage,
|
||||||
::com::sun::star::uno::Reference< ::com::sun::star::container::XIndexAccess >& _rxForms);
|
::com::sun::star::uno::Reference< ::com::sun::star::container::XIndexAccess >& _rxForms);
|
||||||
|
|
||||||
|
@ -144,7 +144,7 @@ namespace xmloff
|
|||||||
|
|
||||||
/** creates an import context for the office:forms element
|
/** creates an import context for the office:forms element
|
||||||
*/
|
*/
|
||||||
SvXMLImportContext* createOfficeFormsContext(
|
static SvXMLImportContext* createOfficeFormsContext(
|
||||||
SvXMLImport& _rImport,
|
SvXMLImport& _rImport,
|
||||||
sal_uInt16 _nPrefix,
|
sal_uInt16 _nPrefix,
|
||||||
const OUString& _rLocalName);
|
const OUString& _rLocalName);
|
||||||
|
@ -69,9 +69,9 @@ namespace xmloff
|
|||||||
~OFormsRootExport();
|
~OFormsRootExport();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void addModelAttributes(SvXMLExport& _rExp);
|
static void addModelAttributes(SvXMLExport& _rExp);
|
||||||
|
|
||||||
void implExportBool(
|
static void implExportBool(
|
||||||
SvXMLExport& _rExp,
|
SvXMLExport& _rExp,
|
||||||
OfficeFormsAttributes _eAttribute,
|
OfficeFormsAttributes _eAttribute,
|
||||||
const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& _rxProps,
|
const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& _rxProps,
|
||||||
|
@ -341,7 +341,7 @@ namespace xmloff
|
|||||||
</ul>
|
</ul>
|
||||||
If the type is not convertible, float is returned
|
If the type is not convertible, float is returned
|
||||||
*/
|
*/
|
||||||
::xmloff::token::XMLTokenEnum implGetPropertyXMLType(const ::com::sun::star::uno::Type& _rType);
|
static ::xmloff::token::XMLTokenEnum implGetPropertyXMLType(const ::com::sun::star::uno::Type& _rType);
|
||||||
|
|
||||||
#ifdef DBG_UTIL
|
#ifdef DBG_UTIL
|
||||||
void AddAttribute(sal_uInt16 _nPrefix, const sal_Char* _pName, const OUString& _rValue);
|
void AddAttribute(sal_uInt16 _nPrefix, const sal_Char* _pName, const OUString& _rValue);
|
||||||
|
@ -60,12 +60,12 @@ sal_uInt32 XMLVersionListExport::exportDoc( enum ::xmloff::token::XMLTokenEnum )
|
|||||||
|
|
||||||
addChaffWhenEncryptedStorage();
|
addChaffWhenEncryptedStorage();
|
||||||
|
|
||||||
sal_uInt16 nPos = _GetNamespaceMap().GetIndexByKey( XML_NAMESPACE_DC );
|
sal_uInt16 nPos = SvXMLNamespaceMap::GetIndexByKey( XML_NAMESPACE_DC );
|
||||||
|
|
||||||
AddAttribute( XML_NAMESPACE_NONE, _GetNamespaceMap().GetAttrNameByIndex( nPos ),
|
AddAttribute( XML_NAMESPACE_NONE, _GetNamespaceMap().GetAttrNameByIndex( nPos ),
|
||||||
_GetNamespaceMap().GetNameByIndex ( nPos ) );
|
_GetNamespaceMap().GetNameByIndex ( nPos ) );
|
||||||
|
|
||||||
nPos = _GetNamespaceMap().GetIndexByKey( XML_NAMESPACE_FRAMEWORK );
|
nPos = SvXMLNamespaceMap::GetIndexByKey( XML_NAMESPACE_FRAMEWORK );
|
||||||
AddAttribute( XML_NAMESPACE_NONE, _GetNamespaceMap().GetAttrNameByIndex( nPos ),
|
AddAttribute( XML_NAMESPACE_NONE, _GetNamespaceMap().GetAttrNameByIndex( nPos ),
|
||||||
_GetNamespaceMap().GetNameByIndex ( nPos ) );
|
_GetNamespaceMap().GetNameByIndex ( nPos ) );
|
||||||
|
|
||||||
|
@ -200,7 +200,7 @@ bool XMLPMPropHdl_NumLetterSync::importXML(
|
|||||||
bool XMLPMPropHdl_NumLetterSync::exportXML(
|
bool XMLPMPropHdl_NumLetterSync::exportXML(
|
||||||
OUString& rStrExpValue,
|
OUString& rStrExpValue,
|
||||||
const Any& rValue,
|
const Any& rValue,
|
||||||
const SvXMLUnitConverter& rUnitConverter ) const
|
const SvXMLUnitConverter& /*rUnitConverter*/ ) const
|
||||||
{
|
{
|
||||||
bool bRet = false;
|
bool bRet = false;
|
||||||
sal_Int16 nNumType = sal_Int16();
|
sal_Int16 nNumType = sal_Int16();
|
||||||
@ -208,7 +208,7 @@ bool XMLPMPropHdl_NumLetterSync::exportXML(
|
|||||||
if( rValue >>= nNumType )
|
if( rValue >>= nNumType )
|
||||||
{
|
{
|
||||||
OUStringBuffer aBuffer( 5 );
|
OUStringBuffer aBuffer( 5 );
|
||||||
rUnitConverter.convertNumLetterSync( aBuffer, nNumType );
|
SvXMLUnitConverter::convertNumLetterSync( aBuffer, nNumType );
|
||||||
rStrExpValue = aBuffer.makeStringAndClear();
|
rStrExpValue = aBuffer.makeStringAndClear();
|
||||||
bRet = !rStrExpValue.isEmpty();
|
bRet = !rStrExpValue.isEmpty();
|
||||||
}
|
}
|
||||||
|
@ -211,7 +211,7 @@ bool XMLBackGraphicPositionPropHdl::exportXML( OUString& rStrExpValue, const uno
|
|||||||
return bRet;
|
return bRet;
|
||||||
}
|
}
|
||||||
|
|
||||||
void XMLBackGraphicPositionPropHdl::MergeXMLVertPos( style::GraphicLocation& ePos, style::GraphicLocation eVert ) const
|
void XMLBackGraphicPositionPropHdl::MergeXMLVertPos( style::GraphicLocation& ePos, style::GraphicLocation eVert )
|
||||||
{
|
{
|
||||||
switch( ePos )
|
switch( ePos )
|
||||||
{
|
{
|
||||||
@ -245,7 +245,7 @@ void XMLBackGraphicPositionPropHdl::MergeXMLVertPos( style::GraphicLocation& ePo
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void XMLBackGraphicPositionPropHdl::MergeXMLHoriPos( style::GraphicLocation& ePos, style::GraphicLocation eHori ) const
|
void XMLBackGraphicPositionPropHdl::MergeXMLHoriPos( style::GraphicLocation& ePos, style::GraphicLocation eHori )
|
||||||
{
|
{
|
||||||
DBG_ASSERT( style::GraphicLocation_LEFT_MIDDLE==eHori || style::GraphicLocation_MIDDLE_MIDDLE==eHori || style::GraphicLocation_RIGHT_MIDDLE==eHori,
|
DBG_ASSERT( style::GraphicLocation_LEFT_MIDDLE==eHori || style::GraphicLocation_MIDDLE_MIDDLE==eHori || style::GraphicLocation_RIGHT_MIDDLE==eHori,
|
||||||
"lcl_frmitems_MergeXMLHoriPos: vertical pos must be middle" );
|
"lcl_frmitems_MergeXMLHoriPos: vertical pos must be middle" );
|
||||||
|
@ -37,8 +37,8 @@ public:
|
|||||||
virtual bool exportXML( OUString& rStrExpValue, const ::com::sun::star::uno::Any& rValue, const SvXMLUnitConverter& rUnitConverter ) const SAL_OVERRIDE;
|
virtual bool exportXML( OUString& rStrExpValue, const ::com::sun::star::uno::Any& rValue, const SvXMLUnitConverter& rUnitConverter ) const SAL_OVERRIDE;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void MergeXMLHoriPos( ::com::sun::star::style::GraphicLocation& ePos, ::com::sun::star::style::GraphicLocation eHori ) const;
|
static void MergeXMLHoriPos( ::com::sun::star::style::GraphicLocation& ePos, ::com::sun::star::style::GraphicLocation eHori );
|
||||||
void MergeXMLVertPos( ::com::sun::star::style::GraphicLocation& ePos, ::com::sun::star::style::GraphicLocation eVert ) const;
|
static void MergeXMLVertPos( ::com::sun::star::style::GraphicLocation& ePos, ::com::sun::star::style::GraphicLocation eVert );
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // INCLUDED_XMLOFF_SOURCE_STYLE_BACKHDL_HXX
|
#endif // INCLUDED_XMLOFF_SOURCE_STYLE_BACKHDL_HXX
|
||||||
|
@ -329,7 +329,7 @@ void SvxXMLNumRuleExport::exportLevelStyle( sal_Int32 nLevel,
|
|||||||
GetExport().GetMM100UnitConverter().convertNumFormat( sTmp, eType );
|
GetExport().GetMM100UnitConverter().convertNumFormat( sTmp, eType );
|
||||||
GetExport().AddAttribute( XML_NAMESPACE_STYLE, XML_NUM_FORMAT,
|
GetExport().AddAttribute( XML_NAMESPACE_STYLE, XML_NUM_FORMAT,
|
||||||
sTmp.makeStringAndClear() );
|
sTmp.makeStringAndClear() );
|
||||||
GetExport().GetMM100UnitConverter().convertNumLetterSync( sTmp, eType );
|
SvXMLUnitConverter::convertNumLetterSync( sTmp, eType );
|
||||||
if( !sTmp.isEmpty() )
|
if( !sTmp.isEmpty() )
|
||||||
GetExport().AddAttribute( XML_NAMESPACE_STYLE,
|
GetExport().AddAttribute( XML_NAMESPACE_STYLE,
|
||||||
XML_NUM_LETTER_SYNC,
|
XML_NUM_LETTER_SYNC,
|
||||||
|
@ -92,7 +92,7 @@ protected:
|
|||||||
|
|
||||||
/// create a numerical ID for this index mark
|
/// create a numerical ID for this index mark
|
||||||
/// (represented by its properties)
|
/// (represented by its properties)
|
||||||
void GetID(
|
static void GetID(
|
||||||
OUStringBuffer& sBuffer,
|
OUStringBuffer& sBuffer,
|
||||||
const ::com::sun::star::uno::Reference<
|
const ::com::sun::star::uno::Reference<
|
||||||
::com::sun::star::beans::XPropertySet> & rPropSet);
|
::com::sun::star::beans::XPropertySet> & rPropSet);
|
||||||
|
@ -141,7 +141,7 @@ void XMLLineNumberingExport::Export()
|
|||||||
rExport.GetMM100UnitConverter().convertNumFormat( sNumPosBuf, nFormat );
|
rExport.GetMM100UnitConverter().convertNumFormat( sNumPosBuf, nFormat );
|
||||||
rExport.AddAttribute(XML_NAMESPACE_STYLE, XML_NUM_FORMAT,
|
rExport.AddAttribute(XML_NAMESPACE_STYLE, XML_NUM_FORMAT,
|
||||||
sNumPosBuf.makeStringAndClear());
|
sNumPosBuf.makeStringAndClear());
|
||||||
rExport.GetMM100UnitConverter().convertNumLetterSync( sNumPosBuf, nFormat );
|
SvXMLUnitConverter::convertNumLetterSync( sNumPosBuf, nFormat );
|
||||||
if( !sNumPosBuf.isEmpty() )
|
if( !sNumPosBuf.isEmpty() )
|
||||||
{
|
{
|
||||||
rExport.AddAttribute(XML_NAMESPACE_STYLE,
|
rExport.AddAttribute(XML_NAMESPACE_STYLE,
|
||||||
|
@ -280,7 +280,7 @@ protected:
|
|||||||
::com::sun::star::text::XDocumentIndex > & rIndex) const;
|
::com::sun::star::text::XDocumentIndex > & rIndex) const;
|
||||||
|
|
||||||
/// map service name to section type
|
/// map service name to section type
|
||||||
enum SectionTypeEnum MapSectionType(const OUString& rSectionName);
|
static enum SectionTypeEnum MapSectionType(const OUString& rSectionName);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Export the index element start (for all index types).
|
* Export the index element start (for all index types).
|
||||||
|
@ -168,7 +168,7 @@ void XMLSectionFootnoteConfigExport::exportXML(
|
|||||||
sBuf.makeStringAndClear());
|
sBuf.makeStringAndClear());
|
||||||
|
|
||||||
// and letter sync, if applicable
|
// and letter sync, if applicable
|
||||||
rExport.GetMM100UnitConverter().convertNumLetterSync(
|
SvXMLUnitConverter::convertNumLetterSync(
|
||||||
sBuf, nNumberingType );
|
sBuf, nNumberingType );
|
||||||
if (!sBuf.isEmpty())
|
if (!sBuf.isEmpty())
|
||||||
{
|
{
|
||||||
|
@ -1674,7 +1674,7 @@ SvXMLImportContext *XMLTextFrameContext::CreateChildContext(
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// the child is a drawing shape
|
// the child is a drawing shape
|
||||||
pContext = GetImport().GetShapeImport()->CreateFrameChildContext(
|
pContext = XMLShapeImportHelper::CreateFrameChildContext(
|
||||||
&m_xImplContext, p_nPrefix, rLocalName, xAttrList );
|
&m_xImplContext, p_nPrefix, rLocalName, xAttrList );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -284,7 +284,7 @@ void XMLTextExportPropertySetMapper::ContextFontFilter(
|
|||||||
void XMLTextExportPropertySetMapper::ContextFontHeightFilter(
|
void XMLTextExportPropertySetMapper::ContextFontHeightFilter(
|
||||||
XMLPropertyState* pCharHeightState,
|
XMLPropertyState* pCharHeightState,
|
||||||
XMLPropertyState* pCharPropHeightState,
|
XMLPropertyState* pCharPropHeightState,
|
||||||
XMLPropertyState* pCharDiffHeightState ) const
|
XMLPropertyState* pCharDiffHeightState )
|
||||||
{
|
{
|
||||||
if( pCharPropHeightState )
|
if( pCharPropHeightState )
|
||||||
{
|
{
|
||||||
|
@ -42,10 +42,10 @@ class XMLTextExportPropertySetMapper: public SvXMLExportPropertyMapper
|
|||||||
XMLPropertyState *pFontFamilyState,
|
XMLPropertyState *pFontFamilyState,
|
||||||
XMLPropertyState *pFontPitchState,
|
XMLPropertyState *pFontPitchState,
|
||||||
XMLPropertyState *pFontCharsetState ) const;
|
XMLPropertyState *pFontCharsetState ) const;
|
||||||
void ContextFontHeightFilter(
|
static void ContextFontHeightFilter(
|
||||||
XMLPropertyState* pCharHeightState,
|
XMLPropertyState* pCharHeightState,
|
||||||
XMLPropertyState* pCharPropHeightState,
|
XMLPropertyState* pCharPropHeightState,
|
||||||
XMLPropertyState* pCharDiffHeightState ) const;
|
XMLPropertyState* pCharDiffHeightState );
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// SvXMLUnitConverter& mrUnitConverter;
|
// SvXMLUnitConverter& mrUnitConverter;
|
||||||
|
@ -2596,8 +2596,7 @@ void XMLTextFieldExport::ProcessNumberingType(sal_Int16 nNumberingType)
|
|||||||
GetExport().AddAttribute(XML_NAMESPACE_STYLE, XML_NUM_FORMAT,
|
GetExport().AddAttribute(XML_NAMESPACE_STYLE, XML_NUM_FORMAT,
|
||||||
sTmp.makeStringAndClear() );
|
sTmp.makeStringAndClear() );
|
||||||
// and letter sync, if applicable
|
// and letter sync, if applicable
|
||||||
GetExport().GetMM100UnitConverter().convertNumLetterSync( sTmp,
|
SvXMLUnitConverter::convertNumLetterSync( sTmp, nNumberingType );
|
||||||
nNumberingType );
|
|
||||||
|
|
||||||
if (!sTmp.isEmpty())
|
if (!sTmp.isEmpty())
|
||||||
{
|
{
|
||||||
|
@ -295,7 +295,7 @@ void XMLTextParagraphExport::exportTextFootnoteConfigurationHelper(
|
|||||||
GetExport().GetMM100UnitConverter().convertNumFormat( sBuffer, nNumbering);
|
GetExport().GetMM100UnitConverter().convertNumFormat( sBuffer, nNumbering);
|
||||||
GetExport().AddAttribute(XML_NAMESPACE_STYLE, XML_NUM_FORMAT,
|
GetExport().AddAttribute(XML_NAMESPACE_STYLE, XML_NUM_FORMAT,
|
||||||
sBuffer.makeStringAndClear() );
|
sBuffer.makeStringAndClear() );
|
||||||
GetExport().GetMM100UnitConverter().convertNumLetterSync( sBuffer, nNumbering);
|
SvXMLUnitConverter::convertNumLetterSync( sBuffer, nNumbering);
|
||||||
if (!sBuffer.isEmpty() )
|
if (!sBuffer.isEmpty() )
|
||||||
{
|
{
|
||||||
GetExport().AddAttribute(XML_NAMESPACE_STYLE, XML_NUM_LETTER_SYNC,
|
GetExport().AddAttribute(XML_NAMESPACE_STYLE, XML_NUM_LETTER_SYNC,
|
||||||
|
@ -2278,7 +2278,7 @@ SvXMLImportContext *XMLTextImportHelper::CreateTextChildContext(
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case XML_TOK_TEXT_FORMS:
|
case XML_TOK_TEXT_FORMS:
|
||||||
pContext = rImport.GetFormImport()->createOfficeFormsContext(rImport, nPrefix, rLocalName);
|
pContext = xmloff::OFormLayerXMLImport::createOfficeFormsContext(rImport, nPrefix, rLocalName);
|
||||||
bContent = false;
|
bContent = false;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -148,7 +148,7 @@ void XMLTextImportPropertyMapper::FontFinished(
|
|||||||
XMLPropertyState *pFontStyleNameState,
|
XMLPropertyState *pFontStyleNameState,
|
||||||
XMLPropertyState *pFontFamilyState,
|
XMLPropertyState *pFontFamilyState,
|
||||||
XMLPropertyState *pFontPitchState,
|
XMLPropertyState *pFontPitchState,
|
||||||
XMLPropertyState *pFontCharsetState ) const
|
XMLPropertyState *pFontCharsetState )
|
||||||
{
|
{
|
||||||
if( pFontFamilyNameState && pFontFamilyNameState->mnIndex != -1 )
|
if( pFontFamilyNameState && pFontFamilyNameState->mnIndex != -1 )
|
||||||
{
|
{
|
||||||
|
@ -1222,14 +1222,14 @@ bool XMLNumber8OneBasedHdl::exportXML(
|
|||||||
class XMLTextPropertyHandlerFactory_Impl
|
class XMLTextPropertyHandlerFactory_Impl
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
const XMLPropertyHandler *GetPropertyHandler( sal_Int32 nType ) const;
|
static const XMLPropertyHandler *GetPropertyHandler( sal_Int32 nType );
|
||||||
|
|
||||||
XMLTextPropertyHandlerFactory_Impl();
|
XMLTextPropertyHandlerFactory_Impl();
|
||||||
~XMLTextPropertyHandlerFactory_Impl();
|
~XMLTextPropertyHandlerFactory_Impl();
|
||||||
};
|
};
|
||||||
|
|
||||||
const XMLPropertyHandler *XMLTextPropertyHandlerFactory_Impl::GetPropertyHandler
|
const XMLPropertyHandler *XMLTextPropertyHandlerFactory_Impl::GetPropertyHandler
|
||||||
( sal_Int32 nType ) const
|
( sal_Int32 nType )
|
||||||
{
|
{
|
||||||
const XMLPropertyHandler* pHdl = 0;
|
const XMLPropertyHandler* pHdl = 0;
|
||||||
switch( nType )
|
switch( nType )
|
||||||
@ -1459,7 +1459,7 @@ const XMLPropertyHandler *XMLTextPropertyHandlerFactory::GetPropertyHandler(
|
|||||||
|
|
||||||
if( !pHdl )
|
if( !pHdl )
|
||||||
{
|
{
|
||||||
const XMLPropertyHandler *pNewHdl = pImpl->GetPropertyHandler( nType );
|
const XMLPropertyHandler *pNewHdl = XMLTextPropertyHandlerFactory_Impl::GetPropertyHandler( nType );
|
||||||
|
|
||||||
if( pNewHdl )
|
if( pNewHdl )
|
||||||
PutHdlCache( nType, pNewHdl );
|
PutHdlCache( nType, pNewHdl );
|
||||||
|
@ -28,7 +28,7 @@ class XMLFormPropOASISTransformerContext :
|
|||||||
bool m_bIsList;
|
bool m_bIsList;
|
||||||
bool m_bIsListValue;
|
bool m_bIsListValue;
|
||||||
|
|
||||||
::xmloff::token::XMLTokenEnum GetValueType( const OUString& rValue );
|
static ::xmloff::token::XMLTokenEnum GetValueType( const OUString& rValue );
|
||||||
|
|
||||||
public:
|
public:
|
||||||
TYPEINFO_OVERRIDE();
|
TYPEINFO_OVERRIDE();
|
||||||
|
@ -166,7 +166,7 @@ public:
|
|||||||
matching token in its lower 16 bits. The value is converted to the
|
matching token in its lower 16 bits. The value is converted to the
|
||||||
token that is given in the upper 16 bits of the matching parameter.
|
token that is given in the upper 16 bits of the matching parameter.
|
||||||
*/
|
*/
|
||||||
bool RenameAttributeValue( OUString& rOutAttributeValue,
|
static bool RenameAttributeValue( OUString& rOutAttributeValue,
|
||||||
sal_Int32 nParam1,
|
sal_Int32 nParam1,
|
||||||
sal_Int32 nParam2,
|
sal_Int32 nParam2,
|
||||||
sal_Int32 nParam3 );
|
sal_Int32 nParam3 );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user