summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjp <jp@openoffice.org>2000-09-27 11:27:59 +0000
committerjp <jp@openoffice.org>2000-09-27 11:27:59 +0000
commitc7bcc5d2b0e409b428b946fb7ea7e46033638a0a (patch)
tree33d54d0a0a1968197c7572b312443dbef5697679
parentfea268c1cd223714d4b3037d03f4fdf1370fdf86 (diff)
use the new FileStatHelper class
-rw-r--r--sw/source/ui/utlui/gloslst.cxx57
1 files changed, 14 insertions, 43 deletions
diff --git a/sw/source/ui/utlui/gloslst.cxx b/sw/source/ui/utlui/gloslst.cxx
index 6cc3200e9cd2..3f9337b1306f 100644
--- a/sw/source/ui/utlui/gloslst.cxx
+++ b/sw/source/ui/utlui/gloslst.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: gloslst.cxx,v $
*
- * $Revision: 1.1.1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: hr $ $Date: 2000-09-18 17:14:50 $
+ * last change: $Author: jp $ $Date: 2000-09-27 12:27:59 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -85,6 +85,9 @@
#ifndef _SV_LSTBOX_HXX //autogen
#include <vcl/lstbox.hxx>
#endif
+#ifndef SVTOOLS_FSTATHELPER_HXX
+#include <svtools/fstathelper.hxx>
+#endif
#ifndef _SFX_INIMGR_HXX
#include <sfx2/inimgr.hxx>
#endif
@@ -414,43 +417,11 @@ void SwGlossaryList::Update()
sName += pGroup->sName.GetToken(0, GLOS_DELIM);
sName += String::CreateFromAscii(pGlosExt);
- uno::Reference< XCommandEnvironment > xCmdEnv;
- ::ucb::Content aTestContent(
-#if SUPD<591
- SW_MOD()->GetContentBroker(),
-#endif
- sName,
- xCmdEnv);
+ FStatHelper::GetModifiedDateTimeOfFile( sName,
+ &pGroup->aDateModified,
+ &pGroup->aDateModified );
-#ifdef DEBUG
- Reference< beans::XPropertySetInfo > xInfo = aTestContent. getProperties();
- Sequence< beans::Property > aSeq = xInfo->getProperties( );
- const beans::Property* pProps = aSeq.getConstArray();
- OUString sMsg;
- for(int nProp = 0; nProp < aSeq.getLength(); nProp++)
- {
- sMsg += pProps[nProp].Name;
- sMsg += OUString::createFromAscii(" ");
- }
-
-#endif
-
- try
- {
- uno::Any aAny = aTestContent.getPropertyValue( OUString::createFromAscii("DateModified") );
- if(aAny.hasValue())
- {
- const util::DateTime* pDT = (util::DateTime*)aAny.getValue();
- pGroup->aDateModified = ::DateTime(
- ::Date(pDT->Day, pDT->Month, pDT->Year),
- ::Time(pDT->Hours, pDT->Minutes, pDT->Seconds, pDT->HundredthSeconds));
- }
- }
- catch(...)
- {
- }
-
- aGroupArr.Insert(pGroup, i);
+ aGroupArr.Insert( pGroup, i );
}
}
bFilled = TRUE;
@@ -462,9 +433,6 @@ void SwGlossaryList::Update()
try
{
::ucb::Content aCnt(
- #if SUPD<591
- SW_MOD()->GetContentBroker(),
- #endif
*(*pPathArr)[nPath], uno::Reference< XCommandEnvironment >());
Reference< sdbc::XResultSet > xResultSet;
Sequence< OUString > aProps(2);
@@ -561,7 +529,7 @@ void SwGlossaryList::Update()
********************************************************************/
-void __EXPORT SwGlossaryList::Timeout()
+void SwGlossaryList::Timeout()
{
// nur, wenn eine SwView den Fokus hat, wird automatisch upgedated
if(::GetActiveView())
@@ -657,11 +625,14 @@ void SwGlossaryList::ClearGroups()
Source Code Control System - Header
- $Header: /zpool/svn/migration/cvs_rep_09_09_08/code/sw/source/ui/utlui/gloslst.cxx,v 1.1.1.1 2000-09-18 17:14:50 hr Exp $
+ $Header: /zpool/svn/migration/cvs_rep_09_09_08/code/sw/source/ui/utlui/gloslst.cxx,v 1.2 2000-09-27 12:27:59 jp Exp $
Source Code Control System - Update
$Log: not supported by cvs2svn $
+ Revision 1.1.1.1 2000/09/18 17:14:50 hr
+ initial import
+
Revision 1.29 2000/09/18 16:06:17 willem.vandorp
OpenOffice header added.