summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2013-01-17 11:20:05 -0500
committerKohei Yoshida <kohei.yoshida@gmail.com>2013-01-17 14:30:58 -0500
commitab1f30eed23944468427bf0e28659139b9eadea1 (patch)
tree158265a2c0d157a96b372f763dde71007974ae1a /svtools
parent93b8ccb4ade28815e50cd0ce9fd8d48114a619ed (diff)
Unindent the class declaration.
Indenting on namespace scopes is too much. Change-Id: I1d22103c02c16a128e627f53859cc09006fb02f1
Diffstat (limited to 'svtools')
-rw-r--r--svtools/inc/svtools/embedhlp.hxx155
1 files changed, 78 insertions, 77 deletions
diff --git a/svtools/inc/svtools/embedhlp.hxx b/svtools/inc/svtools/embedhlp.hxx
index cd4f759940ef..6e05212bd744 100644
--- a/svtools/inc/svtools/embedhlp.hxx
+++ b/svtools/inc/svtools/embedhlp.hxx
@@ -37,84 +37,85 @@ namespace comphelper
class Rectangle;
class OutputDevice;
-namespace svt
+namespace svt {
+
+struct EmbeddedObjectRef_Impl;
+class SVT_DLLPUBLIC EmbeddedObjectRef
{
- struct EmbeddedObjectRef_Impl;
- class SVT_DLLPUBLIC EmbeddedObjectRef
- {
- EmbeddedObjectRef_Impl* mpImp;
- ::com::sun::star::uno::Reference < ::com::sun::star::embed::XEmbeddedObject > mxObj;
-
- SVT_DLLPRIVATE SvStream* GetGraphicStream( sal_Bool bUpdate ) const;
- /* SVT_DLLPRIVATE */ void GetReplacement( sal_Bool bUpdate );
- SVT_DLLPRIVATE void Construct_Impl();
-
- EmbeddedObjectRef& operator = ( const EmbeddedObjectRef& );
-
- public:
- const ::com::sun::star::uno::Reference < ::com::sun::star::embed::XEmbeddedObject >& operator ->() const { return mxObj; }
- const ::com::sun::star::uno::Reference < ::com::sun::star::embed::XEmbeddedObject >& GetObject() const { return mxObj; }
-
- static void DrawPaintReplacement( const Rectangle &rRect, const OUString &rText, OutputDevice *pOut );
- static void DrawShading( const Rectangle &rRect, OutputDevice *pOut );
- static sal_Bool TryRunningState( const ::com::sun::star::uno::Reference < ::com::sun::star::embed::XEmbeddedObject >& );
- static void SetGraphicToContainer( const Graphic& rGraphic,
- comphelper::EmbeddedObjectContainer& aContainer,
- const ::rtl::OUString& aName,
- const ::rtl::OUString& aMediaType );
-
- static ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream > GetGraphicReplacementStream(
- sal_Int64 nViewAspect,
- const ::com::sun::star::uno::Reference < ::com::sun::star::embed::XEmbeddedObject >&,
- ::rtl::OUString* pMediaType )
- throw();
-
- // default constructed object; needs further assignment before it can be used
- EmbeddedObjectRef();
-
- // assign a previously default constructed object
- void Assign( const ::com::sun::star::uno::Reference < ::com::sun::star::embed::XEmbeddedObject >& xObj, sal_Int64 nAspect );
-
- // create object for a certain view aspect
- EmbeddedObjectRef( const ::com::sun::star::uno::Reference < ::com::sun::star::embed::XEmbeddedObject >& xObj, sal_Int64 nAspect );
-
- ~EmbeddedObjectRef();
- EmbeddedObjectRef( const EmbeddedObjectRef& );
-
- // assigning to a container enables the object to exchange graphical representations with a storage
- void AssignToContainer( comphelper::EmbeddedObjectContainer* pContainer, const ::rtl::OUString& rPersistName );
- comphelper::EmbeddedObjectContainer* GetContainer() const;
-
- sal_Int64 GetViewAspect() const;
- void SetViewAspect( sal_Int64 nAspect );
- Graphic* GetGraphic( ::rtl::OUString* pMediaType=0 ) const;
-
- // the original size of the object ( size of the icon for iconified object )
- // no conversion is done if no target mode is provided
- Size GetSize( MapMode* pTargetMapMode = NULL ) const;
-
- void SetGraphic( const Graphic& rGraphic, const ::rtl::OUString& rMediaType );
- void SetGraphicStream(
- const ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream >& xInGrStream,
- const ::rtl::OUString& rMediaType );
-
- void UpdateReplacement() { GetReplacement( sal_True ); }
- void UpdateReplacementOnDemand();
- void Lock( sal_Bool bLock = sal_True );
- sal_Bool IsLocked() const;
- void Clear();
- sal_Bool is() const { return mxObj.is(); }
-
- sal_Bool IsChart() const;
-
- // #i104867#
- // Provides a graphic version number for the fetchable Graphic during this object's lifetime. Internally,
- // that number is incremented at each change of the Graphic. This mechanism is needed to identify if a
- // remembered Graphic (e.g. primitives) has changed compared to the current one, but without actively
- // fetching the Graphic what would be too expensive e.g. for charts
- sal_uInt32 getGraphicVersion() const;
- void SetDefaultSizeForChart( const Size& rSizeIn_100TH_MM );//#i103460# charts do not necessaryly have an own size within ODF files, in this case they need to use the size settings from the surrounding frame, which is made available with this method
- };
+ EmbeddedObjectRef_Impl* mpImp;
+ ::com::sun::star::uno::Reference < ::com::sun::star::embed::XEmbeddedObject > mxObj;
+
+ SVT_DLLPRIVATE SvStream* GetGraphicStream( sal_Bool bUpdate ) const;
+ SVT_DLLPRIVATE void GetReplacement( sal_Bool bUpdate );
+ SVT_DLLPRIVATE void Construct_Impl();
+
+ EmbeddedObjectRef& operator = ( const EmbeddedObjectRef& );
+
+public:
+ const ::com::sun::star::uno::Reference < ::com::sun::star::embed::XEmbeddedObject >& operator ->() const { return mxObj; }
+ const ::com::sun::star::uno::Reference < ::com::sun::star::embed::XEmbeddedObject >& GetObject() const { return mxObj; }
+
+ static void DrawPaintReplacement( const Rectangle &rRect, const OUString &rText, OutputDevice *pOut );
+ static void DrawShading( const Rectangle &rRect, OutputDevice *pOut );
+ static sal_Bool TryRunningState( const ::com::sun::star::uno::Reference < ::com::sun::star::embed::XEmbeddedObject >& );
+ static void SetGraphicToContainer( const Graphic& rGraphic,
+ comphelper::EmbeddedObjectContainer& aContainer,
+ const ::rtl::OUString& aName,
+ const ::rtl::OUString& aMediaType );
+
+ static ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream > GetGraphicReplacementStream(
+ sal_Int64 nViewAspect,
+ const ::com::sun::star::uno::Reference < ::com::sun::star::embed::XEmbeddedObject >&,
+ ::rtl::OUString* pMediaType )
+ throw();
+
+ // default constructed object; needs further assignment before it can be used
+ EmbeddedObjectRef();
+
+ // assign a previously default constructed object
+ void Assign( const ::com::sun::star::uno::Reference < ::com::sun::star::embed::XEmbeddedObject >& xObj, sal_Int64 nAspect );
+
+ // create object for a certain view aspect
+ EmbeddedObjectRef( const ::com::sun::star::uno::Reference < ::com::sun::star::embed::XEmbeddedObject >& xObj, sal_Int64 nAspect );
+
+ ~EmbeddedObjectRef();
+ EmbeddedObjectRef( const EmbeddedObjectRef& );
+
+ // assigning to a container enables the object to exchange graphical representations with a storage
+ void AssignToContainer( comphelper::EmbeddedObjectContainer* pContainer, const ::rtl::OUString& rPersistName );
+ comphelper::EmbeddedObjectContainer* GetContainer() const;
+
+ sal_Int64 GetViewAspect() const;
+ void SetViewAspect( sal_Int64 nAspect );
+ Graphic* GetGraphic( ::rtl::OUString* pMediaType=0 ) const;
+
+ // the original size of the object ( size of the icon for iconified object )
+ // no conversion is done if no target mode is provided
+ Size GetSize( MapMode* pTargetMapMode = NULL ) const;
+
+ void SetGraphic( const Graphic& rGraphic, const ::rtl::OUString& rMediaType );
+ void SetGraphicStream(
+ const ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream >& xInGrStream,
+ const ::rtl::OUString& rMediaType );
+
+ void UpdateReplacement() { GetReplacement( sal_True ); }
+ void UpdateReplacementOnDemand();
+ void Lock( sal_Bool bLock = sal_True );
+ sal_Bool IsLocked() const;
+ void Clear();
+ sal_Bool is() const { return mxObj.is(); }
+
+ sal_Bool IsChart() const;
+
+ // #i104867#
+ // Provides a graphic version number for the fetchable Graphic during this object's lifetime. Internally,
+ // that number is incremented at each change of the Graphic. This mechanism is needed to identify if a
+ // remembered Graphic (e.g. primitives) has changed compared to the current one, but without actively
+ // fetching the Graphic what would be too expensive e.g. for charts
+ sal_uInt32 getGraphicVersion() const;
+ void SetDefaultSizeForChart( const Size& rSizeIn_100TH_MM );//#i103460# charts do not necessaryly have an own size within ODF files, in this case they need to use the size settings from the surrounding frame, which is made available with this method
+};
+
}
#endif