diff options
Diffstat (limited to 'svtools/source/dialogs/filedlg2.hxx')
-rw-r--r-- | svtools/source/dialogs/filedlg2.hxx | 104 |
1 files changed, 52 insertions, 52 deletions
diff --git a/svtools/source/dialogs/filedlg2.hxx b/svtools/source/dialogs/filedlg2.hxx index c562840d53ef..9a5874a7fd15 100644 --- a/svtools/source/dialogs/filedlg2.hxx +++ b/svtools/source/dialogs/filedlg2.hxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -77,20 +77,20 @@ class ImpPathDialog friend class ImpFileDialog; private: - PathDialog* pSvPathDialog; - Edit* pEdit; + PathDialog* pSvPathDialog; + Edit* pEdit; FixedText* pDirTitel; KbdListBox* pDirList; FixedText* pDirPath; - ListBox* pDriveList; - FixedText* pDriveTitle; + ListBox* pDriveList; + FixedText* pDriveTitle; PushButton* pLoadBtn; PushButton* pOkBtn; PushButton* pCancelBtn; PushButton* pHomeBtn; PushButton* pNewDirBtn; - USHORT nOwnChilds; + USHORT nOwnChilds; DirEntry aPath; // aktuell angewaehlter Pfad USHORT nDirCount; // Anzahl der Verzeichnis- @@ -101,31 +101,31 @@ private: protected: - virtual void UpdateEntries( const BOOL bWithDirs ); - void UpdateDirs( const DirEntry& rTmpPath ); + virtual void UpdateEntries( const BOOL bWithDirs ); + void UpdateDirs( const DirEntry& rTmpPath ); - BOOL IsFileOk( const DirEntry& rDirEntry ); - void InitControls(); + BOOL IsFileOk( const DirEntry& rDirEntry ); + void InitControls(); - DECL_LINK( SelectHdl, ListBox * ); - DECL_LINK( DblClickHdl, ListBox * ); - DECL_LINK( ClickHdl, Button * ); + DECL_LINK( SelectHdl, ListBox * ); + DECL_LINK( DblClickHdl, ListBox * ); + DECL_LINK( ClickHdl, Button * ); public: ImpPathDialog( PathDialog* pDlg, RESOURCE_TYPE nType, BOOL bCreateDir ); - virtual ~ImpPathDialog(); + virtual ~ImpPathDialog(); - virtual void SetPath( const String& rPath ); - virtual void SetPath( const Edit& rEdit ); - virtual String GetPath() const; + virtual void SetPath( const String& rPath ); + virtual void SetPath( const Edit& rEdit ); + virtual String GetPath() const; - virtual void PreExecute(); - virtual void PostExecute(); + virtual void PreExecute(); + virtual void PostExecute(); - PathDialog* GetPathDialog() const { return pSvPathDialog; } + PathDialog* GetPathDialog() const { return pSvPathDialog; } - void SetOkButtonText( const String& rText ) { pOkBtn->SetText( rText ); } - void SetCancelButtonText( const String& rText ) { pCancelBtn->SetText( rText ); } + void SetOkButtonText( const String& rText ) { pOkBtn->SetText( rText ); } + void SetCancelButtonText( const String& rText ) { pCancelBtn->SetText( rText ); } }; @@ -136,48 +136,48 @@ private: FixedText* pFileTitel; ListBox* pFileList; FixedText* pTypeTitel; - ListBox* pTypeList; + ListBox* pTypeList; WildCard aMask; // aktuelle Maske - ImpFilterList aFilterList; // Filterliste + ImpFilterList aFilterList; // Filterliste USHORT nCurFilter; // aktueller Filter BOOL bOpen; // TRUE = Open; FALSE = SAVEAS protected: - void InitControls(); + void InitControls(); - String ExtendFileName( DirEntry aEntry ) const; + String ExtendFileName( DirEntry aEntry ) const; - DECL_LINK( SelectHdl, ListBox * ); - DECL_LINK( DblClickHdl, ListBox * ); - DECL_LINK( ClickHdl, Button * ); + DECL_LINK( SelectHdl, ListBox * ); + DECL_LINK( DblClickHdl, ListBox * ); + DECL_LINK( ClickHdl, Button * ); - virtual void UpdateEntries( const BOOL bWithDirs ); - BOOL IsFileOk( const DirEntry& rDirEntry ); + virtual void UpdateEntries( const BOOL bWithDirs ); + BOOL IsFileOk( const DirEntry& rDirEntry ); public: ImpFileDialog( PathDialog* pDlg, WinBits nStyle, RESOURCE_TYPE nType ); - virtual ~ImpFileDialog(); + virtual ~ImpFileDialog(); - void AddFilter( const String& rFilter, const String& rMask ); - void RemoveFilter( const String& rFilter ); - void RemoveAllFilter(); - void SetCurFilter( const String& rFilter ); - String GetCurFilter() const; + void AddFilter( const String& rFilter, const String& rMask ); + void RemoveFilter( const String& rFilter ); + void RemoveAllFilter(); + void SetCurFilter( const String& rFilter ); + String GetCurFilter() const; - USHORT GetFilterCount() const { return (USHORT)aFilterList.Count(); } - inline String GetFilterName( USHORT nPos ) const; - inline String GetFilterType( USHORT nPos ) const; + USHORT GetFilterCount() const { return (USHORT)aFilterList.Count(); } + inline String GetFilterName( USHORT nPos ) const; + inline String GetFilterType( USHORT nPos ) const; - virtual void SetPath( const String& rPath ); - virtual void SetPath( const Edit& rEdit ); - virtual String GetPath() const; + virtual void SetPath( const String& rPath ); + virtual void SetPath( const Edit& rEdit ); + virtual String GetPath() const; - virtual void PreExecute(); + virtual void PreExecute(); - FileDialog* GetFileDialog() const { return (FileDialog*)GetPathDialog(); } + FileDialog* GetFileDialog() const { return (FileDialog*)GetPathDialog(); } }; inline String ImpFileDialog::GetFilterName( USHORT nPos ) const @@ -201,17 +201,17 @@ inline String ImpFileDialog::GetFilterType( USHORT nPos ) const class ImpSvFileDlg { private: - ImpPathDialog* pDlg; + ImpPathDialog* pDlg; public: - ImpSvFileDlg() { pDlg = 0; } - ~ImpSvFileDlg() { delete pDlg; } + ImpSvFileDlg() { pDlg = 0; } + ~ImpSvFileDlg() { delete pDlg; } - ImpPathDialog* GetDialog() const { return pDlg; } - void CreateDialog( PathDialog* pCreateFrom, WinBits nStyle, RESOURCE_TYPE nType, BOOL bCreate ); + ImpPathDialog* GetDialog() const { return pDlg; } + void CreateDialog( PathDialog* pCreateFrom, WinBits nStyle, RESOURCE_TYPE nType, BOOL bCreate ); - void SetOkButtonText( const String& rText ) { pDlg->SetOkButtonText( rText ); } // ihr habts ja nicht anders gewollt - void SetCancelButtonText( const String& rText ) { pDlg->SetCancelButtonText( rText ); } + void SetOkButtonText( const String& rText ) { pDlg->SetOkButtonText( rText ); } // ihr habts ja nicht anders gewollt + void SetCancelButtonText( const String& rText ) { pDlg->SetCancelButtonText( rText ); } }; |