diff options
author | Kohei Yoshida <kohei.yoshida@suse.com> | 2011-08-30 00:05:53 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@suse.com> | 2011-08-30 00:19:35 -0400 |
commit | 3c2a26c84e70fd996855181d319970e2230b2459 (patch) | |
tree | c7797f0cfd3183454e0ade5717b3989f7ac6e1c7 /sc/inc | |
parent | 382ac86a3ab9ba105aa3e469566b7cd86c6ca39f (diff) |
More string conversion around ScDocumentLoader.
Diffstat (limited to 'sc/inc')
-rw-r--r-- | sc/inc/tablink.hxx | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/sc/inc/tablink.hxx b/sc/inc/tablink.hxx index 5fd98df2d7e5..4dba3164f515 100644 --- a/sc/inc/tablink.hxx +++ b/sc/inc/tablink.hxx @@ -89,6 +89,10 @@ private: SfxObjectShellRef aRef; SfxMedium* pMedium; + static bool GetFilterName( const String& rFileName, + String& rFilter, String& rOptions, + bool bWithContent, bool bWithInteraction ); + public: ScDocumentLoader( const String& rFileName, String& rFilterName, String& rOptions, @@ -96,27 +100,24 @@ public: ~ScDocumentLoader(); ScDocument* GetDocument(); ScDocShell* GetDocShell() { return pDocShell; } - sal_Bool IsError() const; - String GetTitle() const; + bool IsError() const; + rtl::OUString GetTitle() const; void ReleaseDocRef(); // without calling DoClose - static String GetOptions( SfxMedium& rMedium ); + static rtl::OUString GetOptions( SfxMedium& rMedium ); /** Returns the filter name and options from a file name. @param bWithContent true = Tries to detect the filter by looking at the file contents. false = Detects filter by file name extension only (should be used in filter code only). @return sal_True if a filter could be found, sal_False otherwise. */ - static sal_Bool GetFilterName( const String& rFileName, - String& rFilter, String& rOptions, - sal_Bool bWithContent, sal_Bool bWithInteraction ); static bool GetFilterName( const ::rtl::OUString& rFileName, ::rtl::OUString& rFilter, ::rtl::OUString& rOptions, bool bWithContent, bool bWithInteraction ); - static void RemoveAppPrefix( String& rFilterName ); + static void RemoveAppPrefix( rtl::OUString& rFilterName ); }; #endif |