diff options
author | Mike Whiteley <mike@whiteley.org> | 2011-12-01 19:13:20 -0800 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2011-12-04 07:56:51 +0100 |
commit | 9f8d1f6b46d7a6be51e46bdde935a1c804baf228 (patch) | |
tree | 3a95da246f3d8616d63ee49a37fb01f725692832 /comphelper | |
parent | 2561e3f7860e79817658e536b91192cedaa4aab7 (diff) |
translated some comments from German to English
Diffstat (limited to 'comphelper')
-rw-r--r-- | comphelper/inc/comphelper/container.hxx | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/comphelper/inc/comphelper/container.hxx b/comphelper/inc/comphelper/container.hxx index f0466fe3ae5e..c64b531cfda0 100644 --- a/comphelper/inc/comphelper/container.hxx +++ b/comphelper/inc/comphelper/container.hxx @@ -49,15 +49,16 @@ protected: ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface> m_xStartingPoint; ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface> m_xCurrentObject; - // das aktuelle Objekt + // The actual object ::std::vector<sal_Int32> m_arrChildIndizies; - // ich bewege mich eigentlich durch einen Baum, dummerweise haben dessen - // Elemente aber kein GetNextSibling, also muss ich mir merken, wo die Childs - // innerhalb ihres Parents sitzen (das ist sozusagen der Pfad von der Wurzel - // zu m_xCurrentObject + + // Actually, as I move through this tree, there are elements but NO + // GetNextSibling, so I have to remember where each child + // is in relation to it's parent. This is the path from the + // root node to m_xCurrentObject ::rtl::OUString m_ustrProperty; - // der Name der gesuchten property + // The Name of the requested property public: IndexAccessIterator(::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface> xStartingPoint); @@ -70,10 +71,12 @@ public: protected: virtual sal_Bool ShouldHandleElement(const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface>& /*rElement*/) { return sal_True; } - // damit kann man bestimmte Elemente ausschliessen, die werden dann einfach - // uebergangen - // wenn hier sal_True zurueckkommt, wird dieses Element von Next zurueckgeliefert, man kann sich hier also auch - // gleich ein paar zusaetzliche Angaben zu dem Element holen (deswegen ist die Methode auch nicht const) + + // So we can exclude certain elements, which are expected + // if this returns sal_True. If so, this element will be returned, + // which also allows us to return additional information. + // That's why this method is not const. + virtual sal_Bool ShouldStepInto(const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface>& /*xContainer*/) const { return sal_True; } }; |