Kaydet (Commit) dc9e72df authored tarafından Noel Grandin's avatar Noel Grandin Kaydeden (comit) Noel Grandin

com::sun::star->css in include/filter

Change-Id: I05c314b6eb460cfcbaa7d13cae21360ce6824624
Reviewed-on: https://gerrit.libreoffice.org/19492Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
üst 44bee388
...@@ -53,7 +53,7 @@ public: ...@@ -53,7 +53,7 @@ public:
The sequence contains the necessary data to initialize The sequence contains the necessary data to initialize
the codec. the codec.
*/ */
bool InitCodec( const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::NamedValue >& aData ); bool InitCodec( const css::uno::Sequence< css::beans::NamedValue >& aData );
/** Retrieves the encryption data /** Retrieves the encryption data
...@@ -61,7 +61,7 @@ public: ...@@ -61,7 +61,7 @@ public:
The sequence contains the necessary data to initialize The sequence contains the necessary data to initialize
the codec. the codec.
*/ */
::com::sun::star::uno::Sequence< ::com::sun::star::beans::NamedValue > GetEncryptionData(); css::uno::Sequence< css::beans::NamedValue > GetEncryptionData();
/** Verifies the validity of the password using the passed key and hash. /** Verifies the validity of the password using the passed key and hash.
...@@ -193,7 +193,7 @@ public: ...@@ -193,7 +193,7 @@ public:
The sequence contains the necessary data to initialize The sequence contains the necessary data to initialize
the codec. the codec.
*/ */
bool InitCodec( const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::NamedValue >& aData ); bool InitCodec( const css::uno::Sequence< css::beans::NamedValue >& aData );
/** Retrieves the encryption data /** Retrieves the encryption data
...@@ -201,7 +201,7 @@ public: ...@@ -201,7 +201,7 @@ public:
The sequence contains the necessary data to initialize The sequence contains the necessary data to initialize
the codec. the codec.
*/ */
::com::sun::star::uno::Sequence< ::com::sun::star::beans::NamedValue > GetEncryptionData(); css::uno::Sequence< css::beans::NamedValue > GetEncryptionData();
/** Initializes the algorithm with the specified password and document ID. /** Initializes the algorithm with the specified password and document ID.
......
...@@ -465,9 +465,9 @@ protected: ...@@ -465,9 +465,9 @@ protected:
const Rectangle& rVisArea, const Rectangle& rVisArea,
const int _nCalledByGroup, const int _nCalledByGroup,
sal_Int64 nAspect ) const; sal_Int64 nAspect ) const;
static com::sun::star::uno::Reference < com::sun::star::embed::XEmbeddedObject > CheckForConvertToSOObj( static css::uno::Reference < css::embed::XEmbeddedObject > CheckForConvertToSOObj(
sal_uInt32 nConvertFlags, SotStorage& rSrcStg, sal_uInt32 nConvertFlags, SotStorage& rSrcStg,
const com::sun::star::uno::Reference < com::sun::star::embed::XStorage >& xDestStg, const css::uno::Reference < css::embed::XStorage >& xDestStg,
const Graphic& rGrf, const Graphic& rGrf,
const Rectangle& rVisArea ); const Rectangle& rVisArea );
...@@ -498,7 +498,7 @@ protected: ...@@ -498,7 +498,7 @@ protected:
virtual bool GetOLEStorageName( long nOLEId, virtual bool GetOLEStorageName( long nOLEId,
OUString& rStorageName, OUString& rStorageName,
tools::SvRef<SotStorage>& rSrcStorage, tools::SvRef<SotStorage>& rSrcStorage,
com::sun::star::uno::Reference < com::sun::star::embed::XStorage >& xDestStg css::uno::Reference < css::embed::XStorage >& xDestStg
) const; ) const;
/** Prevent that (rounded) rectangles with wrapped text will always be /** Prevent that (rounded) rectangles with wrapped text will always be
...@@ -684,7 +684,7 @@ public: ...@@ -684,7 +684,7 @@ public:
static SdrOle2Obj* CreateSdrOLEFromStorage( const OUString& rStorageName, static SdrOle2Obj* CreateSdrOLEFromStorage( const OUString& rStorageName,
tools::SvRef<SotStorage>& rSrcStorage, tools::SvRef<SotStorage>& rSrcStorage,
const com::sun::star::uno::Reference < com::sun::star::embed::XStorage >& xDestStg, const css::uno::Reference < css::embed::XStorage >& xDestStg,
const Graphic& rGraf, const Graphic& rGraf,
const Rectangle& rBoundRect, const Rectangle& rBoundRect,
const Rectangle& rVisArea, const Rectangle& rVisArea,
...@@ -702,8 +702,8 @@ public: ...@@ -702,8 +702,8 @@ public:
static void SolveSolver( const SvxMSDffSolverContainer& rSolver ); static void SolveSolver( const SvxMSDffSolverContainer& rSolver );
static bool SetPropValue( static bool SetPropValue(
const ::com::sun::star::uno::Any& rAny, const css::uno::Any& rAny,
const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > & rXPropSet, const css::uno::Reference< css::beans::XPropertySet > & rXPropSet,
const OUString& rPropertyName, const OUString& rPropertyName,
bool bTestPropertyAvailability = false bool bTestPropertyAvailability = false
); );
......
...@@ -61,42 +61,35 @@ class SfxObjectShell; ...@@ -61,42 +61,35 @@ class SfxObjectShell;
class MSFILTER_DLLPUBLIC SvxMSConvertOCXControls class MSFILTER_DLLPUBLIC SvxMSConvertOCXControls
{ {
public: public:
SvxMSConvertOCXControls( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel >& xModel ); SvxMSConvertOCXControls( const css::uno::Reference< css::frame::XModel >& xModel );
virtual ~SvxMSConvertOCXControls(); virtual ~SvxMSConvertOCXControls();
virtual bool InsertControl( virtual bool InsertControl(
const com::sun::star::uno::Reference< const css::uno::Reference<
com::sun::star::form::XFormComponent >& /*rFComp*/, css::form::XFormComponent >& /*rFComp*/,
const com::sun::star::awt::Size& /*rSize*/, const css::awt::Size& /*rSize*/,
com::sun::star::uno::Reference< css::uno::Reference<
com::sun::star::drawing::XShape >* /*pShape*/, css::drawing::XShape >* /*pShape*/,
bool /*bFloatingCtrl*/ ) {return false;} bool /*bFloatingCtrl*/ ) {return false;}
/*begin: Backwards compatibility with office 95 import, modify later*/ /*begin: Backwards compatibility with office 95 import, modify later*/
const com::sun::star::uno::Reference< const css::uno::Reference< css::lang::XMultiServiceFactory > & GetServiceFactory();
com::sun::star::lang::XMultiServiceFactory > & GetServiceFactory();
protected: protected:
const com::sun::star::uno::Reference< com::sun::star::drawing::XShapes > & const css::uno::Reference< css::drawing::XShapes > & GetShapes();
GetShapes();
const com::sun::star::uno::Reference< const css::uno::Reference< css::container::XIndexContainer > & GetFormComps();
com::sun::star::container::XIndexContainer > & GetFormComps();
::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel > mxModel; css::uno::Reference< css::frame::XModel > mxModel;
// gecachte Interfaces // gecachte Interfaces
com::sun::star::uno::Reference< com::sun::star::drawing::XDrawPage > css::uno::Reference< css::drawing::XDrawPage > xDrawPage;
xDrawPage; css::uno::Reference< css::drawing::XShapes > xShapes;
com::sun::star::uno::Reference< com::sun::star::drawing::XShapes > css::uno::Reference< css::lang::XMultiServiceFactory > xServiceFactory;
xShapes;
com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory > xServiceFactory;
// das einzige Formular // das einzige Formular
com::sun::star::uno::Reference< com::sun::star::container::XIndexContainer > css::uno::Reference< css::container::XIndexContainer > xFormComps;
xFormComps;
virtual const com::sun::star::uno::Reference< virtual const css::uno::Reference< css::drawing::XDrawPage > & GetDrawPage();
com::sun::star::drawing::XDrawPage > & GetDrawPage();
}; };
#endif #endif
......
...@@ -41,7 +41,7 @@ public: ...@@ -41,7 +41,7 @@ public:
sal_uInt32 GetFlags() const { return nConvertFlags; } sal_uInt32 GetFlags() const { return nConvertFlags; }
void ExportOLEObject( svt::EmbeddedObjectRef& rObj, SotStorage& rDestStg ); void ExportOLEObject( svt::EmbeddedObjectRef& rObj, SotStorage& rDestStg );
void ExportOLEObject( const com::sun::star::uno::Reference < com::sun::star::embed::XEmbeddedObject>& rObj, SotStorage& rDestStg ); void ExportOLEObject( const css::uno::Reference < css::embed::XEmbeddedObject>& rObj, SotStorage& rDestStg );
}; };
......
...@@ -46,15 +46,15 @@ MSFILTER_DLLPUBLIC OUString extractMacroName( const OUString& rMacroUrl ); ...@@ -46,15 +46,15 @@ MSFILTER_DLLPUBLIC OUString extractMacroName( const OUString& rMacroUrl );
MSFILTER_DLLPUBLIC OUString getDefaultProjectName( SfxObjectShell* pShell ); MSFILTER_DLLPUBLIC OUString getDefaultProjectName( SfxObjectShell* pShell );
MSFILTER_DLLPUBLIC OUString resolveVBAMacro( SfxObjectShell* pShell, const OUString& rLibName, const OUString& rModuleName, const OUString& rMacroName ); MSFILTER_DLLPUBLIC OUString resolveVBAMacro( SfxObjectShell* pShell, const OUString& rLibName, const OUString& rModuleName, const OUString& rMacroName );
MSFILTER_DLLPUBLIC MacroResolvedInfo resolveVBAMacro( SfxObjectShell* pShell, const OUString& rMacroName, bool bSearchGlobalTemplates = false ); MSFILTER_DLLPUBLIC MacroResolvedInfo resolveVBAMacro( SfxObjectShell* pShell, const OUString& rMacroName, bool bSearchGlobalTemplates = false );
MSFILTER_DLLPUBLIC bool executeMacro( SfxObjectShell* pShell, const OUString& sMacroName, com::sun::star::uno::Sequence< com::sun::star::uno::Any >& aArgs, com::sun::star::uno::Any& aRet, const com::sun::star::uno::Any& aCaller ); MSFILTER_DLLPUBLIC bool executeMacro( SfxObjectShell* pShell, const OUString& sMacroName, css::uno::Sequence< css::uno::Any >& aArgs, css::uno::Any& aRet, const css::uno::Any& aCaller );
MSFILTER_DLLPUBLIC ::com::sun::star::awt::KeyEvent parseKeyEvent( const OUString& sKey ) throw (::com::sun::star::uno::RuntimeException); MSFILTER_DLLPUBLIC css::awt::KeyEvent parseKeyEvent( const OUString& sKey ) throw (css::uno::RuntimeException);
MSFILTER_DLLPUBLIC void applyShortCutKeyBinding ( const ::com::sun::star::uno::Reference< com::sun::star::frame::XModel >& rxDoc, const ::com::sun::star::awt::KeyEvent& rKeyEvent, const OUString& sMacro ) throw (::com::sun::star::uno::RuntimeException, std::exception); MSFILTER_DLLPUBLIC void applyShortCutKeyBinding ( const css::uno::Reference< css::frame::XModel >& rxDoc, const css::awt::KeyEvent& rKeyEvent, const OUString& sMacro ) throw (css::uno::RuntimeException, std::exception);
typedef ::cppu::WeakImplHelper< typedef ::cppu::WeakImplHelper<
::com::sun::star::lang::XServiceInfo, css::lang::XServiceInfo,
::com::sun::star::lang::XInitialization, css::lang::XInitialization,
::com::sun::star::script::vba::XVBAMacroResolver > VBAMacroResolverBase; css::script::vba::XVBAMacroResolver > VBAMacroResolverBase;
class VBAMacroResolver : public VBAMacroResolverBase class VBAMacroResolver : public VBAMacroResolverBase
{ {
...@@ -65,33 +65,33 @@ public: ...@@ -65,33 +65,33 @@ public:
// com.sun.star.lang.XServiceInfo interface ------------------------------- // com.sun.star.lang.XServiceInfo interface -------------------------------
virtual OUString SAL_CALL virtual OUString SAL_CALL
getImplementationName() throw (::com::sun::star::uno::RuntimeException, std::exception) override; getImplementationName() throw (css::uno::RuntimeException, std::exception) override;
virtual sal_Bool SAL_CALL virtual sal_Bool SAL_CALL
supportsService( const OUString& rService ) supportsService( const OUString& rService )
throw (::com::sun::star::uno::RuntimeException, std::exception) override; throw (css::uno::RuntimeException, std::exception) override;
virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL virtual css::uno::Sequence< OUString > SAL_CALL
getSupportedServiceNames() throw (::com::sun::star::uno::RuntimeException, std::exception) override; getSupportedServiceNames() throw (css::uno::RuntimeException, std::exception) override;
// com.sun.star.lang.XInitialization interface ---------------------------- // com.sun.star.lang.XInitialization interface ----------------------------
virtual void SAL_CALL initialize( virtual void SAL_CALL initialize(
const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& rArgs ) const css::uno::Sequence< css::uno::Any >& rArgs )
throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException, std::exception) override; throw (css::uno::Exception, css::uno::RuntimeException, std::exception) override;
// com.sun.star.script.vba.XVBAMacroResolver interface -------------------- // com.sun.star.script.vba.XVBAMacroResolver interface --------------------
virtual OUString SAL_CALL virtual OUString SAL_CALL
resolveVBAMacroToScriptURL( const OUString& rVBAMacroName ) resolveVBAMacroToScriptURL( const OUString& rVBAMacroName )
throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception) override; throw (css::lang::IllegalArgumentException, css::uno::RuntimeException, std::exception) override;
virtual OUString SAL_CALL virtual OUString SAL_CALL
resolveScriptURLtoVBAMacro( const OUString& rScriptURL ) resolveScriptURLtoVBAMacro( const OUString& rScriptURL )
throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception) override; throw (css::lang::IllegalArgumentException, css::uno::RuntimeException, std::exception) override;
private: private:
::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel > mxModel; css::uno::Reference< css::frame::XModel > mxModel;
SfxObjectShell* mpObjShell; SfxObjectShell* mpObjShell;
OUString maProjectName; OUString maProjectName;
}; };
......
...@@ -632,7 +632,7 @@ public: ...@@ -632,7 +632,7 @@ public:
sal_uInt32* pTableArry, sal_uInt32* pTableArry,
SvxMSDffSolverContainer* SvxMSDffSolverContainer*
); );
virtual bool ReadFormControl( tools::SvRef<SotStorage>& rSrc1, com::sun::star::uno::Reference< com::sun::star::form::XFormComponent > & rFormComp ) const = 0; virtual bool ReadFormControl( tools::SvRef<SotStorage>& rSrc1, css::uno::Reference< css::form::XFormComponent > & rFormComp ) const = 0;
}; };
struct PPTTextCharacterStyleAtomInterpreter struct PPTTextCharacterStyleAtomInterpreter
...@@ -1289,26 +1289,26 @@ public: ...@@ -1289,26 +1289,26 @@ public:
class PPTConvertOCXControls : public SvxMSConvertOCXControls class PPTConvertOCXControls : public SvxMSConvertOCXControls
{ {
virtual const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XDrawPage > & GetDrawPage() override; virtual const css::uno::Reference< css::drawing::XDrawPage > & GetDrawPage() override;
PptPageKind ePageKind; PptPageKind ePageKind;
const SdrPowerPointImport* mpPPTImporter; const SdrPowerPointImport* mpPPTImporter;
com::sun::star::uno::Reference< com::sun::star::io::XInputStream > mxInStrm; css::uno::Reference< css::io::XInputStream > mxInStrm;
public: public:
PPTConvertOCXControls( const SdrPowerPointImport* pPPTImporter, com::sun::star::uno::Reference< com::sun::star::io::XInputStream >& rxInStrm, const com::sun::star::uno::Reference< com::sun::star::frame::XModel >& rxModel, PptPageKind ePKind ) : PPTConvertOCXControls( const SdrPowerPointImport* pPPTImporter, css::uno::Reference< css::io::XInputStream >& rxInStrm, const css::uno::Reference< css::frame::XModel >& rxModel, PptPageKind ePKind ) :
SvxMSConvertOCXControls ( rxModel ), SvxMSConvertOCXControls ( rxModel ),
ePageKind ( ePKind ), ePageKind ( ePKind ),
mpPPTImporter ( pPPTImporter ), mpPPTImporter ( pPPTImporter ),
mxInStrm ( rxInStrm ) mxInStrm ( rxInStrm )
{}; {};
bool ReadOCXStream( tools::SvRef<SotStorage>& rSrc1, bool ReadOCXStream( tools::SvRef<SotStorage>& rSrc1,
com::sun::star::uno::Reference< css::uno::Reference<
com::sun::star::drawing::XShape > *pShapeRef=0, css::drawing::XShape > *pShapeRef=0,
bool bFloatingCtrl=false ); bool bFloatingCtrl=false );
virtual bool InsertControl( virtual bool InsertControl(
const com::sun::star::uno::Reference< com::sun::star::form::XFormComponent > &rFComp, const css::uno::Reference< css::form::XFormComponent > &rFComp,
const com::sun::star::awt::Size& rSize, const css::awt::Size& rSize,
com::sun::star::uno::Reference< com::sun::star::drawing::XShape > *pShape, css::uno::Reference< css::drawing::XShape > *pShape,
bool bFloatingCtrl bool bFloatingCtrl
) override; ) override;
}; };
......
...@@ -25,7 +25,7 @@ namespace util { ...@@ -25,7 +25,7 @@ namespace util {
/// Returns the best-fit default 8bit encoding for a given locale /// Returns the best-fit default 8bit encoding for a given locale
/// i.e. useful when dealing with legacy formats which use legacy text encodings without recording /// i.e. useful when dealing with legacy formats which use legacy text encodings without recording
/// what the encoding is, but you know or can guess the language /// what the encoding is, but you know or can guess the language
MSFILTER_DLLPUBLIC rtl_TextEncoding getBestTextEncodingFromLocale(const ::com::sun::star::lang::Locale &rLocale); MSFILTER_DLLPUBLIC rtl_TextEncoding getBestTextEncodingFromLocale(const css::lang::Locale &rLocale);
/// Convert a color in BGR format to RGB. /// Convert a color in BGR format to RGB.
MSFILTER_DLLPUBLIC sal_uInt32 BGRToRGB(sal_uInt32 nColour); MSFILTER_DLLPUBLIC sal_uInt32 BGRToRGB(sal_uInt32 nColour);
...@@ -82,7 +82,7 @@ struct MSFILTER_DLLPUBLIC ApiPaperSize ...@@ -82,7 +82,7 @@ struct MSFILTER_DLLPUBLIC ApiPaperSize
class MSFILTER_DLLPUBLIC PaperSizeConv class MSFILTER_DLLPUBLIC PaperSizeConv
{ {
public: public:
static sal_Int32 getMSPaperSizeIndex( const com::sun::star::awt::Size& rSize ); static sal_Int32 getMSPaperSizeIndex( const css::awt::Size& rSize );
static const ApiPaperSize& getApiSizeForMSPaperSizeIndex( sal_Int32 nMSOPaperIndex ); static const ApiPaperSize& getApiSizeForMSPaperSizeIndex( sal_Int32 nMSOPaperIndex );
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment