Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
ea5cba1f
Kaydet (Commit)
ea5cba1f
authored
Agu 20, 2013
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert svtools/source/contnr/templwin.hxx from String to OUString
Change-Id: I74bccb1833f4353f5c1e629357d59f70fab7bf5e
üst
d3ab469b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
115 additions
and
121 deletions
+115
-121
templwin.cxx
svtools/source/contnr/templwin.cxx
+78
-84
templwin.hxx
svtools/source/contnr/templwin.hxx
+37
-37
No files found.
svtools/source/contnr/templwin.cxx
Dosyayı görüntüle @
ea5cba1f
...
@@ -119,7 +119,7 @@ struct FolderHistory
...
@@ -119,7 +119,7 @@ struct FolderHistory
m_sURL
(
_rURL
),
m_nGroup
(
_nGroup
)
{}
m_sURL
(
_rURL
),
m_nGroup
(
_nGroup
)
{}
};
};
typedef
::
std
::
vector
<
OUString
*
>
NewDocList_Impl
;
typedef
::
std
::
vector
<
OUString
>
NewDocList_Impl
;
// class SvtDummyHeaderBar_Impl ------------------------------------------
// class SvtDummyHeaderBar_Impl ------------------------------------------
...
@@ -158,14 +158,14 @@ SvtIconWindow_Impl::SvtIconWindow_Impl( Window* pParent ) :
...
@@ -158,14 +158,14 @@ SvtIconWindow_Impl::SvtIconWindow_Impl( Window* pParent ) :
aNewDocumentRootURL
(
"private:newdoc"
),
aNewDocumentRootURL
(
"private:newdoc"
),
aMyDocumentsRootURL
(
SvtPathOptions
().
GetWorkPath
()
),
aMyDocumentsRootURL
(
SvtPathOptions
().
GetWorkPath
()
),
aSamplesFolderRootURL
(
SvtPathOptions
().
aSamplesFolderRootURL
(
SvtPathOptions
().
SubstituteVariable
(
String
(
"$(insturl)/"
LIBO_SHARE_FOLDER
"/samples/$(vlang)"
)
)
),
SubstituteVariable
(
"$(insturl)/"
LIBO_SHARE_FOLDER
"/samples/$(vlang)"
)
),
nMaxTextLength
(
0
)
nMaxTextLength
(
0
)
{
{
aDummyHeaderBar
.
Show
();
aDummyHeaderBar
.
Show
();
aIconCtrl
.
SetAccessibleName
(
String
(
RTL_CONSTASCII_USTRINGPARAM
(
"Groups"
)
)
);
aIconCtrl
.
SetAccessibleName
(
OUString
(
"Groups"
)
);
aIconCtrl
.
SetHelpId
(
HID_TEMPLATEDLG_ICONCTRL
);
aIconCtrl
.
SetHelpId
(
HID_TEMPLATEDLG_ICONCTRL
);
aIconCtrl
.
SetChoiceWithCursor
(
sal_True
);
aIconCtrl
.
SetChoiceWithCursor
(
sal_True
);
aIconCtrl
.
SetSelectionMode
(
SINGLE_SELECTION
);
aIconCtrl
.
SetSelectionMode
(
SINGLE_SELECTION
);
aIconCtrl
.
Show
();
aIconCtrl
.
Show
();
...
@@ -183,10 +183,10 @@ SvtIconWindow_Impl::SvtIconWindow_Impl( Window* pParent ) :
...
@@ -183,10 +183,10 @@ SvtIconWindow_Impl::SvtIconWindow_Impl( Window* pParent ) :
// "New Document"
// "New Document"
Image
aImage
(
SvtResId
(
IMG_SVT_NEWDOC
)
);
Image
aImage
(
SvtResId
(
IMG_SVT_NEWDOC
)
);
nMaxTextLength
=
aImage
.
GetSizePixel
().
Width
();
nMaxTextLength
=
aImage
.
GetSizePixel
().
Width
();
String
aEntryStr
=
SVT_RESSTR
(
STR_SVT_NEWDOC
);
OU
String
aEntryStr
=
SVT_RESSTR
(
STR_SVT_NEWDOC
);
SvxIconChoiceCtrlEntry
*
pEntry
=
SvxIconChoiceCtrlEntry
*
pEntry
=
aIconCtrl
.
InsertEntry
(
aEntryStr
,
aImage
,
ICON_POS_NEWDOC
);
aIconCtrl
.
InsertEntry
(
aEntryStr
,
aImage
,
ICON_POS_NEWDOC
);
pEntry
->
SetUserData
(
new
String
(
aNewDocumentRootURL
)
);
pEntry
->
SetUserData
(
&
aNewDocumentRootURL
);
pEntry
->
SetQuickHelpText
(
SVT_RESSTR
(
STR_SVT_NEWDOC_HELP
)
);
pEntry
->
SetQuickHelpText
(
SVT_RESSTR
(
STR_SVT_NEWDOC_HELP
)
);
DBG_ASSERT
(
!
pEntry
->
GetBoundRect
().
IsEmpty
(),
"empty rectangle"
);
DBG_ASSERT
(
!
pEntry
->
GetBoundRect
().
IsEmpty
(),
"empty rectangle"
);
long
nTemp
=
pEntry
->
GetBoundRect
().
GetSize
().
Width
();
long
nTemp
=
pEntry
->
GetBoundRect
().
GetSize
().
Width
();
...
@@ -194,12 +194,12 @@ SvtIconWindow_Impl::SvtIconWindow_Impl( Window* pParent ) :
...
@@ -194,12 +194,12 @@ SvtIconWindow_Impl::SvtIconWindow_Impl( Window* pParent ) :
nMaxTextLength
=
nTemp
;
nMaxTextLength
=
nTemp
;
// "Templates"
// "Templates"
if
(
aTemplateRootURL
.
Len
()
>
0
)
if
(
!
aTemplateRootURL
.
isEmpty
()
)
{
{
aEntryStr
=
SVT_RESSTR
(
STR_SVT_TEMPLATES
);
aEntryStr
=
SVT_RESSTR
(
STR_SVT_TEMPLATES
);
pEntry
=
aIconCtrl
.
InsertEntry
(
pEntry
=
aIconCtrl
.
InsertEntry
(
aEntryStr
,
Image
(
SvtResId
(
IMG_SVT_TEMPLATES
)
),
ICON_POS_TEMPLATES
);
aEntryStr
,
Image
(
SvtResId
(
IMG_SVT_TEMPLATES
)
),
ICON_POS_TEMPLATES
);
pEntry
->
SetUserData
(
new
String
(
aTemplateRootURL
)
);
pEntry
->
SetUserData
(
&
aTemplateRootURL
);
pEntry
->
SetQuickHelpText
(
SVT_RESSTR
(
STR_SVT_TEMPLATES_HELP
));
pEntry
->
SetQuickHelpText
(
SVT_RESSTR
(
STR_SVT_TEMPLATES_HELP
));
DBG_ASSERT
(
!
pEntry
->
GetBoundRect
().
IsEmpty
(),
"empty rectangle"
);
DBG_ASSERT
(
!
pEntry
->
GetBoundRect
().
IsEmpty
(),
"empty rectangle"
);
nTemp
=
pEntry
->
GetBoundRect
().
GetSize
().
Width
();
nTemp
=
pEntry
->
GetBoundRect
().
GetSize
().
Width
();
...
@@ -211,7 +211,7 @@ SvtIconWindow_Impl::SvtIconWindow_Impl( Window* pParent ) :
...
@@ -211,7 +211,7 @@ SvtIconWindow_Impl::SvtIconWindow_Impl( Window* pParent ) :
aEntryStr
=
SVT_RESSTR
(
STR_SVT_MYDOCS
);
aEntryStr
=
SVT_RESSTR
(
STR_SVT_MYDOCS
);
pEntry
=
aIconCtrl
.
InsertEntry
(
pEntry
=
aIconCtrl
.
InsertEntry
(
aEntryStr
,
Image
(
SvtResId
(
IMG_SVT_MYDOCS
)
),
ICON_POS_MYDOCS
);
aEntryStr
,
Image
(
SvtResId
(
IMG_SVT_MYDOCS
)
),
ICON_POS_MYDOCS
);
pEntry
->
SetUserData
(
new
String
(
aMyDocumentsRootURL
)
);
pEntry
->
SetUserData
(
&
aMyDocumentsRootURL
);
pEntry
->
SetQuickHelpText
(
SVT_RESSTR
(
STR_SVT_MYDOCS_HELP
)
);
pEntry
->
SetQuickHelpText
(
SVT_RESSTR
(
STR_SVT_MYDOCS_HELP
)
);
DBG_ASSERT
(
!
pEntry
->
GetBoundRect
().
IsEmpty
(),
"empty rectangle"
);
DBG_ASSERT
(
!
pEntry
->
GetBoundRect
().
IsEmpty
(),
"empty rectangle"
);
nTemp
=
pEntry
->
GetBoundRect
().
GetSize
().
Width
();
nTemp
=
pEntry
->
GetBoundRect
().
GetSize
().
Width
();
...
@@ -222,7 +222,7 @@ SvtIconWindow_Impl::SvtIconWindow_Impl( Window* pParent ) :
...
@@ -222,7 +222,7 @@ SvtIconWindow_Impl::SvtIconWindow_Impl( Window* pParent ) :
aEntryStr
=
SVT_RESSTR
(
STR_SVT_SAMPLES
);
aEntryStr
=
SVT_RESSTR
(
STR_SVT_SAMPLES
);
pEntry
=
aIconCtrl
.
InsertEntry
(
pEntry
=
aIconCtrl
.
InsertEntry
(
aEntryStr
,
Image
(
SvtResId
(
IMG_SVT_SAMPLES
)
),
ICON_POS_SAMPLES
);
aEntryStr
,
Image
(
SvtResId
(
IMG_SVT_SAMPLES
)
),
ICON_POS_SAMPLES
);
pEntry
->
SetUserData
(
new
String
(
aSamplesFolderRootURL
)
);
pEntry
->
SetUserData
(
&
aSamplesFolderRootURL
);
pEntry
->
SetQuickHelpText
(
SVT_RESSTR
(
STR_SVT_SAMPLES_HELP
));
pEntry
->
SetQuickHelpText
(
SVT_RESSTR
(
STR_SVT_SAMPLES_HELP
));
DBG_ASSERT
(
!
pEntry
->
GetBoundRect
().
IsEmpty
(),
"empty rectangle"
);
DBG_ASSERT
(
!
pEntry
->
GetBoundRect
().
IsEmpty
(),
"empty rectangle"
);
nTemp
=
pEntry
->
GetBoundRect
().
GetSize
().
Width
();
nTemp
=
pEntry
->
GetBoundRect
().
GetSize
().
Width
();
...
@@ -237,17 +237,17 @@ SvtIconWindow_Impl::~SvtIconWindow_Impl()
...
@@ -237,17 +237,17 @@ SvtIconWindow_Impl::~SvtIconWindow_Impl()
for
(
sal_uLong
i
=
0
;
i
<
aIconCtrl
.
GetEntryCount
();
++
i
)
for
(
sal_uLong
i
=
0
;
i
<
aIconCtrl
.
GetEntryCount
();
++
i
)
{
{
SvxIconChoiceCtrlEntry
*
pEntry
=
aIconCtrl
.
GetEntry
(
i
);
SvxIconChoiceCtrlEntry
*
pEntry
=
aIconCtrl
.
GetEntry
(
i
);
delete
(
String
*
)
pEntry
->
GetUserData
();
delete
(
OU
String
*
)
pEntry
->
GetUserData
();
}
}
}
}
SvxIconChoiceCtrlEntry
*
SvtIconWindow_Impl
::
GetEntry
(
const
String
&
rURL
)
const
SvxIconChoiceCtrlEntry
*
SvtIconWindow_Impl
::
GetEntry
(
const
OU
String
&
rURL
)
const
{
{
SvxIconChoiceCtrlEntry
*
pEntry
=
NULL
;
SvxIconChoiceCtrlEntry
*
pEntry
=
NULL
;
for
(
sal_uLong
i
=
0
;
i
<
aIconCtrl
.
GetEntryCount
();
++
i
)
for
(
sal_uLong
i
=
0
;
i
<
aIconCtrl
.
GetEntryCount
();
++
i
)
{
{
SvxIconChoiceCtrlEntry
*
pTemp
=
aIconCtrl
.
GetEntry
(
i
);
SvxIconChoiceCtrlEntry
*
pTemp
=
aIconCtrl
.
GetEntry
(
i
);
String
aURL
(
*
(
(
String
*
)
pTemp
->
GetUserData
()
)
);
OUString
aURL
(
*
(
(
OU
String
*
)
pTemp
->
GetUserData
()
)
);
if
(
aURL
==
rURL
)
if
(
aURL
==
rURL
)
{
{
pEntry
=
pTemp
;
pEntry
=
pTemp
;
...
@@ -270,29 +270,29 @@ void SvtIconWindow_Impl::Resize()
...
@@ -270,29 +270,29 @@ void SvtIconWindow_Impl::Resize()
aIconCtrl
.
ArrangeIcons
();
aIconCtrl
.
ArrangeIcons
();
}
}
String
SvtIconWindow_Impl
::
GetCursorPosIconURL
()
const
OU
String
SvtIconWindow_Impl
::
GetCursorPosIconURL
()
const
{
{
String
aURL
;
OU
String
aURL
;
SvxIconChoiceCtrlEntry
*
pEntry
=
aIconCtrl
.
GetCursor
(
);
SvxIconChoiceCtrlEntry
*
pEntry
=
aIconCtrl
.
GetCursor
(
);
if
(
pEntry
)
if
(
pEntry
)
aURL
=
*
static_cast
<
String
*>
(
pEntry
->
GetUserData
());
aURL
=
*
static_cast
<
OU
String
*>
(
pEntry
->
GetUserData
());
return
aURL
;
return
aURL
;
}
}
String
SvtIconWindow_Impl
::
GetSelectedIconURL
()
const
OU
String
SvtIconWindow_Impl
::
GetSelectedIconURL
()
const
{
{
sal_uLong
nPos
;
sal_uLong
nPos
;
SvxIconChoiceCtrlEntry
*
pEntry
=
aIconCtrl
.
GetSelectedEntry
(
nPos
);
SvxIconChoiceCtrlEntry
*
pEntry
=
aIconCtrl
.
GetSelectedEntry
(
nPos
);
String
aURL
;
OU
String
aURL
;
if
(
pEntry
)
if
(
pEntry
)
aURL
=
*
static_cast
<
String
*>
(
pEntry
->
GetUserData
());
aURL
=
*
static_cast
<
OU
String
*>
(
pEntry
->
GetUserData
());
return
aURL
;
return
aURL
;
}
}
String
SvtIconWindow_Impl
::
GetIconText
(
const
String
&
rURL
)
const
OUString
SvtIconWindow_Impl
::
GetIconText
(
const
OU
String
&
rURL
)
const
{
{
String
aText
;
OU
String
aText
;
SvxIconChoiceCtrlEntry
*
pEntry
=
GetEntry
(
rURL
);
SvxIconChoiceCtrlEntry
*
pEntry
=
GetEntry
(
rURL
);
if
(
pEntry
)
if
(
pEntry
)
aText
=
MnemonicGenerator
::
EraseAllMnemonicChars
(
pEntry
->
GetText
()
);
aText
=
MnemonicGenerator
::
EraseAllMnemonicChars
(
pEntry
->
GetText
()
);
...
@@ -351,7 +351,7 @@ long SvtIconWindow_Impl::CalcHeight() const
...
@@ -351,7 +351,7 @@ long SvtIconWindow_Impl::CalcHeight() const
return
nHeight
;
return
nHeight
;
}
}
sal_Bool
SvtIconWindow_Impl
::
IsRootURL
(
const
String
&
rURL
)
const
sal_Bool
SvtIconWindow_Impl
::
IsRootURL
(
const
OU
String
&
rURL
)
const
{
{
return
rURL
==
aNewDocumentRootURL
||
return
rURL
==
aNewDocumentRootURL
||
rURL
==
aTemplateRootURL
||
rURL
==
aTemplateRootURL
||
...
@@ -359,18 +359,18 @@ sal_Bool SvtIconWindow_Impl::IsRootURL( const String& rURL ) const
...
@@ -359,18 +359,18 @@ sal_Bool SvtIconWindow_Impl::IsRootURL( const String& rURL ) const
rURL
==
aSamplesFolderRootURL
;
rURL
==
aSamplesFolderRootURL
;
}
}
sal_uLong
SvtIconWindow_Impl
::
GetRootPos
(
const
String
&
rURL
)
const
sal_uLong
SvtIconWindow_Impl
::
GetRootPos
(
const
OU
String
&
rURL
)
const
{
{
sal_uLong
nPos
=
~
sal_uLong
(
0
);
sal_uLong
nPos
=
~
sal_uLong
(
0
);
if
(
aNewDocumentRootURL
.
Match
(
rURL
)
==
STRING_MATCH
)
if
(
rURL
.
startsWith
(
aNewDocumentRootURL
)
)
nPos
=
0
;
nPos
=
0
;
else
if
(
aTemplateRootURL
.
Match
(
rURL
)
==
STRING_MATCH
)
else
if
(
rURL
.
startsWith
(
aTemplateRootURL
)
)
nPos
=
1
;
nPos
=
1
;
else
if
(
aMyDocumentsRootURL
.
Match
(
rURL
)
==
STRING_MATCH
)
else
if
(
rURL
.
startsWith
(
aMyDocumentsRootURL
)
)
nPos
=
2
;
nPos
=
2
;
else
if
(
aSamplesFolderRootURL
.
Match
(
rURL
)
==
STRING_MATCH
)
else
if
(
rURL
.
startsWith
(
aSamplesFolderRootURL
)
)
nPos
=
3
;
nPos
=
3
;
else
if
(
rURL
.
Match
(
aMyDocumentsRootURL
)
==
STRING_MATCH
)
else
if
(
aMyDocumentsRootURL
.
startsWith
(
rURL
)
)
nPos
=
2
;
nPos
=
2
;
else
else
{
{
...
@@ -470,35 +470,33 @@ Sequence< OUString > SvtFileViewWindow_Impl::GetNewDocContents() const
...
@@ -470,35 +470,33 @@ Sequence< OUString > SvtFileViewWindow_Impl::GetNewDocContents() const
continue
;
continue
;
if
(
aURL
==
sSeparator
)
if
(
aURL
==
sSeparator
)
{
{
String
aSeparator
(
aSeparatorStr
);
OUString
aSeparator
(
aSeparatorStr
);
OUString
*
pSeparator
=
new
OUString
(
aSeparator
);
aNewDocs
.
push_back
(
aSeparator
);
aNewDocs
.
push_back
(
pSeparator
);
}
}
else
else
{
{
// title
// title
String
aRow
=
MnemonicGenerator
::
EraseAllMnemonicChars
(
String
(
aTitle
)
);
OUString
aRow
=
MnemonicGenerator
::
EraseAllMnemonicChars
(
aTitle
);
aRow
+=
'\t'
;
aRow
+=
"
\t
"
;
// no type
// no type
aRow
+=
'\t'
;
aRow
+=
"
\t
"
;
// no size
// no size
aRow
+=
'\t'
;
aRow
+=
"
\t
"
;
// no date
// no date
aRow
+=
'\t'
;
aRow
+=
"
\t
"
;
// url
// url
aRow
+=
String
(
aURL
)
;
aRow
+=
aURL
;
aRow
+=
'\t'
;
aRow
+=
"
\t
"
;
// folder == false
// folder == false
aRow
+=
'0'
;
aRow
+=
"0"
;
// image url?
// image url?
if
(
!
aImageURL
.
isEmpty
()
)
if
(
!
aImageURL
.
isEmpty
()
)
{
{
aRow
+=
'\t'
;
aRow
+=
"
\t
"
;
aRow
+=
String
(
aImageURL
)
;
aRow
+=
aImageURL
;
}
}
OUString
*
pRow
=
new
OUString
(
aRow
);
aNewDocs
.
push_back
(
aRow
);
aNewDocs
.
push_back
(
pRow
);
}
}
}
}
...
@@ -507,9 +505,7 @@ Sequence< OUString > SvtFileViewWindow_Impl::GetNewDocContents() const
...
@@ -507,9 +505,7 @@ Sequence< OUString > SvtFileViewWindow_Impl::GetNewDocContents() const
OUString
*
pRet
=
aRet
.
getArray
();
OUString
*
pRet
=
aRet
.
getArray
();
for
(
i
=
0
;
i
<
nCount
;
++
i
)
for
(
i
=
0
;
i
<
nCount
;
++
i
)
{
{
OUString
*
pNewDoc
=
aNewDocs
[
i
];
pRet
[
i
]
=
aNewDocs
[
i
];
pRet
[
i
]
=
*
(
pNewDoc
);
delete
pNewDoc
;
}
}
return
aRet
;
return
aRet
;
...
@@ -520,12 +516,12 @@ void SvtFileViewWindow_Impl::Resize()
...
@@ -520,12 +516,12 @@ void SvtFileViewWindow_Impl::Resize()
aFileView
.
SetSizePixel
(
GetOutputSizePixel
());
aFileView
.
SetSizePixel
(
GetOutputSizePixel
());
}
}
String
SvtFileViewWindow_Impl
::
GetSelectedFile
()
const
OU
String
SvtFileViewWindow_Impl
::
GetSelectedFile
()
const
{
{
return
aFileView
.
GetCurrentURL
();
return
aFileView
.
GetCurrentURL
();
}
}
void
SvtFileViewWindow_Impl
::
OpenFolder
(
const
String
&
rURL
)
void
SvtFileViewWindow_Impl
::
OpenFolder
(
const
OU
String
&
rURL
)
{
{
aFolderURL
=
rURL
;
aFolderURL
=
rURL
;
...
@@ -538,10 +534,10 @@ void SvtFileViewWindow_Impl::OpenFolder( const String& rURL )
...
@@ -538,10 +534,10 @@ void SvtFileViewWindow_Impl::OpenFolder( const String& rURL )
}
}
else
else
{
{
xub_StrLen
nSampFoldLen
=
aSamplesFolderURL
.
Len
();
sal_Int32
nSampFoldLen
=
aSamplesFolderURL
.
getLength
();
aFileView
.
EnableNameReplacing
(
aFileView
.
EnableNameReplacing
(
nSampFoldLen
&&
rURL
.
CompareTo
(
aSamplesFolderURL
,
nSampFoldLen
)
==
COMPARE_EQUAL
);
nSampFoldLen
&&
rURL
.
compareTo
(
aSamplesFolderURL
,
nSampFoldLen
)
==
0
);
aFileView
.
Initialize
(
rURL
,
String
()
,
NULL
);
aFileView
.
Initialize
(
rURL
,
""
,
NULL
);
}
}
aNewFolderLink
.
Call
(
this
);
aNewFolderLink
.
Call
(
this
);
}
}
...
@@ -555,7 +551,7 @@ sal_Bool SvtFileViewWindow_Impl::HasPreviousLevel( OUString& rURL ) const
...
@@ -555,7 +551,7 @@ sal_Bool SvtFileViewWindow_Impl::HasPreviousLevel( OUString& rURL ) const
return
(
(
aViewObj
!=
aRootObj
||
aRootObj
==
aMyDocObj
)
&&
aFileView
.
GetParentURL
(
rURL
)
);
return
(
(
aViewObj
!=
aRootObj
||
aRootObj
==
aMyDocObj
)
&&
aFileView
.
GetParentURL
(
rURL
)
);
}
}
String
SvtFileViewWindow_Impl
::
GetFolderTitle
()
const
OU
String
SvtFileViewWindow_Impl
::
GetFolderTitle
()
const
{
{
OUString
aTitle
;
OUString
aTitle
;
::
utl
::
UCBContentHelper
::
GetTitle
(
aFolderURL
,
&
aTitle
);
::
utl
::
UCBContentHelper
::
GetTitle
(
aFolderURL
,
&
aTitle
);
...
@@ -644,7 +640,7 @@ void SvtFrameWindow_Impl::ViewNonEmptyWin()
...
@@ -644,7 +640,7 @@ void SvtFrameWindow_Impl::ViewNonEmptyWin()
ViewTextWin
();
ViewTextWin
();
}
}
void
SvtFrameWindow_Impl
::
ShowDocInfo
(
const
String
&
rURL
)
void
SvtFrameWindow_Impl
::
ShowDocInfo
(
const
OU
String
&
rURL
)
{
{
try
try
{
{
...
@@ -668,7 +664,7 @@ void SvtFrameWindow_Impl::Resize()
...
@@ -668,7 +664,7 @@ void SvtFrameWindow_Impl::Resize()
pEmptyWin
->
SetSizePixel
(
aWinSize
);
pEmptyWin
->
SetSizePixel
(
aWinSize
);
}
}
void
SvtFrameWindow_Impl
::
OpenFile
(
const
String
&
rURL
,
sal_Bool
bPreview
,
sal_Bool
bIsTemplate
,
sal_Bool
bAsTemplate
)
void
SvtFrameWindow_Impl
::
OpenFile
(
const
OU
String
&
rURL
,
sal_Bool
bPreview
,
sal_Bool
bIsTemplate
,
sal_Bool
bAsTemplate
)
{
{
if
(
bPreview
)
if
(
bPreview
)
aCurrentURL
=
rURL
;
aCurrentURL
=
rURL
;
...
@@ -676,10 +672,10 @@ void SvtFrameWindow_Impl::OpenFile( const String& rURL, sal_Bool bPreview, sal_B
...
@@ -676,10 +672,10 @@ void SvtFrameWindow_Impl::OpenFile( const String& rURL, sal_Bool bPreview, sal_B
ViewNonEmptyWin
();
ViewNonEmptyWin
();
pEditWin
->
clear
();
pEditWin
->
clear
();
if
(
rURL
.
Len
()
>
0
&&
bPreview
&&
m_xDocProps
.
is
()
)
if
(
!
rURL
.
isEmpty
()
&&
bPreview
&&
m_xDocProps
.
is
()
)
ShowDocInfo
(
rURL
);
ShowDocInfo
(
rURL
);
if
(
rURL
.
Len
()
==
0
)
if
(
rURL
.
isEmpty
()
)
{
{
m_xFrame
->
setComponent
(
Reference
<
com
::
sun
::
star
::
awt
::
XWindow
>
(),
Reference
<
XController
>
()
);
m_xFrame
->
setComponent
(
Reference
<
com
::
sun
::
star
::
awt
::
XWindow
>
(),
Reference
<
XController
>
()
);
ViewEmptyWin
();
ViewEmptyWin
();
...
@@ -692,15 +688,14 @@ void SvtFrameWindow_Impl::OpenFile( const String& rURL, sal_Bool bPreview, sal_B
...
@@ -692,15 +688,14 @@ void SvtFrameWindow_Impl::OpenFile( const String& rURL, sal_Bool bPreview, sal_B
com
::
sun
::
star
::
util
::
URLTransformer
::
create
(
::
comphelper
::
getProcessComponentContext
()
)
);
com
::
sun
::
star
::
util
::
URLTransformer
::
create
(
::
comphelper
::
getProcessComponentContext
()
)
);
xTrans
->
parseStrict
(
aURL
);
xTrans
->
parseStrict
(
aURL
);
String
aTarget
;
OU
String
aTarget
;
Reference
<
XDispatchProvider
>
xProv
(
m_xFrame
,
UNO_QUERY_THROW
);
Reference
<
XDispatchProvider
>
xProv
(
m_xFrame
,
UNO_QUERY_THROW
);
if
(
bPreview
)
if
(
bPreview
)
aTarget
=
"_self"
;
aTarget
=
"_self"
;
else
else
{
{
// can be removed if the database application change its URL
// can be removed if the database application change its URL
String
sServiceScheme
(
RTL_CONSTASCII_USTRINGPARAM
(
"service:"
)
);
if
(
!
rURL
.
startsWith
(
"service:"
)
)
if
(
rURL
.
Match
(
sServiceScheme
)
!=
sServiceScheme
.
Len
()
)
// service URL has no default target
// service URL has no default target
aTarget
=
"_default"
;
aTarget
=
"_default"
;
xProv
=
Reference
<
XDispatchProvider
>
(
Desktop
::
create
(
::
comphelper
::
getProcessComponentContext
()
),
xProv
=
Reference
<
XDispatchProvider
>
(
Desktop
::
create
(
::
comphelper
::
getProcessComponentContext
()
),
...
@@ -862,8 +857,8 @@ SvtTemplateWindow::~SvtTemplateWindow()
...
@@ -862,8 +857,8 @@ SvtTemplateWindow::~SvtTemplateWindow()
IMPL_LINK_NOARG
(
SvtTemplateWindow
,
IconClickHdl_Impl
)
IMPL_LINK_NOARG
(
SvtTemplateWindow
,
IconClickHdl_Impl
)
{
{
String
aURL
=
pIconWin
->
GetSelectedIconURL
();
OU
String
aURL
=
pIconWin
->
GetSelectedIconURL
();
if
(
!
aURL
.
Len
()
)
if
(
aURL
.
isEmpty
()
)
aURL
=
pIconWin
->
GetCursorPosIconURL
();
aURL
=
pIconWin
->
GetCursorPosIconURL
();
if
(
pFileWin
->
GetRootURL
()
!=
aURL
)
if
(
pFileWin
->
GetRootURL
()
!=
aURL
)
{
{
...
@@ -889,8 +884,8 @@ IMPL_LINK_NOARG(SvtTemplateWindow , FileDblClickHdl_Impl)
...
@@ -889,8 +884,8 @@ IMPL_LINK_NOARG(SvtTemplateWindow , FileDblClickHdl_Impl)
if
(
aSelectTimer
.
IsActive
()
)
if
(
aSelectTimer
.
IsActive
()
)
aSelectTimer
.
Stop
();
aSelectTimer
.
Stop
();
String
aURL
=
pFileWin
->
GetSelectedFile
();
OU
String
aURL
=
pFileWin
->
GetSelectedFile
();
if
(
aURL
.
Len
()
>
0
)
if
(
!
aURL
.
isEmpty
()
)
{
{
if
(
::
utl
::
UCBContentHelper
::
IsFolder
(
aURL
)
)
if
(
::
utl
::
UCBContentHelper
::
IsFolder
(
aURL
)
)
pFileWin
->
OpenFolder
(
aURL
);
pFileWin
->
OpenFolder
(
aURL
);
...
@@ -905,10 +900,10 @@ IMPL_LINK_NOARG(SvtTemplateWindow , FileDblClickHdl_Impl)
...
@@ -905,10 +900,10 @@ IMPL_LINK_NOARG(SvtTemplateWindow , FileDblClickHdl_Impl)
IMPL_LINK_NOARG
(
SvtTemplateWindow
,
NewFolderHdl_Impl
)
IMPL_LINK_NOARG
(
SvtTemplateWindow
,
NewFolderHdl_Impl
)
{
{
pFrameWin
->
OpenFile
(
String
()
,
sal_True
,
sal_False
,
sal_False
);
pFrameWin
->
OpenFile
(
""
,
sal_True
,
sal_False
,
sal_False
);
aFileViewTB
.
EnableItem
(
TI_DOCTEMPLATE_PRINT
,
sal_False
);
aFileViewTB
.
EnableItem
(
TI_DOCTEMPLATE_PRINT
,
sal_False
);
String
sURL
=
pFileWin
->
GetFolderURL
();
OU
String
sURL
=
pFileWin
->
GetFolderURL
();
sal_uLong
nPos
=
pIconWin
->
GetRootPos
(
sURL
);
sal_uLong
nPos
=
pIconWin
->
GetRootPos
(
sURL
);
AppendHistoryURL
(
sURL
,
nPos
);
AppendHistoryURL
(
sURL
,
nPos
);
...
@@ -921,9 +916,9 @@ IMPL_LINK_NOARG(SvtTemplateWindow , NewFolderHdl_Impl)
...
@@ -921,9 +916,9 @@ IMPL_LINK_NOARG(SvtTemplateWindow , NewFolderHdl_Impl)
IMPL_LINK_NOARG
(
SvtTemplateWindow
,
TimeoutHdl_Impl
)
IMPL_LINK_NOARG
(
SvtTemplateWindow
,
TimeoutHdl_Impl
)
{
{
aSelectHdl
.
Call
(
this
);
aSelectHdl
.
Call
(
this
);
String
sURL
=
pFileWin
->
GetSelectedFile
();
OU
String
sURL
=
pFileWin
->
GetSelectedFile
();
sal_Bool
bIsNewDoc
=
(
pIconWin
->
GetSelectEntryPos
()
==
ICON_POS_NEWDOC
);
sal_Bool
bIsNewDoc
=
(
pIconWin
->
GetSelectEntryPos
()
==
ICON_POS_NEWDOC
);
sal_Bool
bIsFile
=
(
sURL
.
Len
()
!=
0
&&
!::
utl
::
UCBContentHelper
::
IsFolder
(
sURL
)
&&
sal_Bool
bIsFile
=
(
!
sURL
.
isEmpty
()
&&
!::
utl
::
UCBContentHelper
::
IsFolder
(
sURL
)
&&
INetURLObject
(
sURL
).
GetProtocol
()
!=
INET_PROT_PRIVATE
&&
!
bIsNewDoc
);
INetURLObject
(
sURL
).
GetProtocol
()
!=
INET_PROT_PRIVATE
&&
!
bIsNewDoc
);
aFileViewTB
.
EnableItem
(
TI_DOCTEMPLATE_PRINT
,
bIsFile
);
aFileViewTB
.
EnableItem
(
TI_DOCTEMPLATE_PRINT
,
bIsFile
);
aFrameWinTB
.
EnableItem
(
TI_DOCTEMPLATE_PREVIEW
,
!
bIsNewDoc
);
aFrameWinTB
.
EnableItem
(
TI_DOCTEMPLATE_PREVIEW
,
!
bIsNewDoc
);
...
@@ -956,7 +951,7 @@ IMPL_LINK_NOARG(SvtTemplateWindow , ResizeHdl_Impl)
...
@@ -956,7 +951,7 @@ IMPL_LINK_NOARG(SvtTemplateWindow , ResizeHdl_Impl)
// ------------------------------------------------------------------------
// ------------------------------------------------------------------------
void
SvtTemplateWindow
::
PrintFile
(
const
String
&
rURL
)
void
SvtTemplateWindow
::
PrintFile
(
const
OU
String
&
rURL
)
{
{
// open the file readonly and hidden
// open the file readonly and hidden
Sequence
<
PropertyValue
>
aArgs
(
2
);
Sequence
<
PropertyValue
>
aArgs
(
2
);
...
@@ -979,7 +974,7 @@ void SvtTemplateWindow::PrintFile( const String& rURL )
...
@@ -979,7 +974,7 @@ void SvtTemplateWindow::PrintFile( const String& rURL )
// ------------------------------------------------------------------------
// ------------------------------------------------------------------------
void
SvtTemplateWindow
::
AppendHistoryURL
(
const
String
&
rURL
,
sal_uLong
nGroup
)
void
SvtTemplateWindow
::
AppendHistoryURL
(
const
OU
String
&
rURL
,
sal_uLong
nGroup
)
{
{
sal_Bool
bInsert
=
sal_True
;
sal_Bool
bInsert
=
sal_True
;
if
(
!
pHistoryList
)
if
(
!
pHistoryList
)
...
@@ -1189,7 +1184,7 @@ void SvtTemplateWindow::Resize()
...
@@ -1189,7 +1184,7 @@ void SvtTemplateWindow::Resize()
// ------------------------------------------------------------------------
// ------------------------------------------------------------------------
String
SvtTemplateWindow
::
GetSelectedFile
()
const
OU
String
SvtTemplateWindow
::
GetSelectedFile
()
const
{
{
return
pFileWin
->
GetSelectedFile
();
return
pFileWin
->
GetSelectedFile
();
}
}
...
@@ -1198,8 +1193,8 @@ String SvtTemplateWindow::GetSelectedFile() const
...
@@ -1198,8 +1193,8 @@ String SvtTemplateWindow::GetSelectedFile() const
sal_Bool
SvtTemplateWindow
::
IsFileSelected
()
const
sal_Bool
SvtTemplateWindow
::
IsFileSelected
()
const
{
{
String
aURL
=
pFileWin
->
GetSelectedFile
();
OU
String
aURL
=
pFileWin
->
GetSelectedFile
();
sal_Bool
bRet
=
(
aURL
.
Len
()
>
0
&&
!::
utl
::
UCBContentHelper
::
IsFolder
(
aURL
)
);
sal_Bool
bRet
=
(
!
aURL
.
isEmpty
()
&&
!::
utl
::
UCBContentHelper
::
IsFolder
(
aURL
)
);
return
bRet
;
return
bRet
;
}
}
...
@@ -1207,17 +1202,17 @@ sal_Bool SvtTemplateWindow::IsFileSelected() const
...
@@ -1207,17 +1202,17 @@ sal_Bool SvtTemplateWindow::IsFileSelected() const
void
SvtTemplateWindow
::
OpenFile
(
sal_Bool
bNotAsTemplate
)
void
SvtTemplateWindow
::
OpenFile
(
sal_Bool
bNotAsTemplate
)
{
{
String
aURL
=
pFileWin
->
GetSelectedFile
();
OU
String
aURL
=
pFileWin
->
GetSelectedFile
();
if
(
aURL
.
Len
()
>
0
&&
!::
utl
::
UCBContentHelper
::
IsFolder
(
aURL
)
)
if
(
!
aURL
.
isEmpty
()
&&
!::
utl
::
UCBContentHelper
::
IsFolder
(
aURL
)
)
pFrameWin
->
OpenFile
(
aURL
,
sal_False
,
pFileWin
->
IsTemplateFolder
(),
!
bNotAsTemplate
);
pFrameWin
->
OpenFile
(
aURL
,
sal_False
,
pFileWin
->
IsTemplateFolder
(),
!
bNotAsTemplate
);
}
}
// ------------------------------------------------------------------------
// ------------------------------------------------------------------------
String
SvtTemplateWindow
::
GetFolderTitle
()
const
OU
String
SvtTemplateWindow
::
GetFolderTitle
()
const
{
{
String
sTitle
;
OU
String
sTitle
;
String
sFolderURL
=
pFileWin
->
GetFolderURL
();
OU
String
sFolderURL
=
pFileWin
->
GetFolderURL
();
if
(
pIconWin
->
IsRootURL
(
sFolderURL
)
)
if
(
pIconWin
->
IsRootURL
(
sFolderURL
)
)
sTitle
=
pIconWin
->
GetIconText
(
sFolderURL
);
sTitle
=
pIconWin
->
GetIconText
(
sFolderURL
);
else
else
...
@@ -1227,7 +1222,7 @@ String SvtTemplateWindow::GetFolderTitle() const
...
@@ -1227,7 +1222,7 @@ String SvtTemplateWindow::GetFolderTitle() const
// ------------------------------------------------------------------------
// ------------------------------------------------------------------------
String
SvtTemplateWindow
::
GetFolderURL
()
const
OU
String
SvtTemplateWindow
::
GetFolderURL
()
const
{
{
return
pFileWin
->
GetFolderURL
();
return
pFileWin
->
GetFolderURL
();
}
}
...
@@ -1252,7 +1247,7 @@ void SvtTemplateWindow::OpenTemplateRoot()
...
@@ -1252,7 +1247,7 @@ void SvtTemplateWindow::OpenTemplateRoot()
// ------------------------------------------------------------------------
// ------------------------------------------------------------------------
void
SvtTemplateWindow
::
SetPrevLevelButtonState
(
const
String
&
rURL
)
void
SvtTemplateWindow
::
SetPrevLevelButtonState
(
const
OU
String
&
rURL
)
{
{
// disable the prev level button on root folder of the icon pane (except My Documents)
// disable the prev level button on root folder of the icon pane (except My Documents)
// and on the root of all (file:/// -> count == 0)
// and on the root of all (file:/// -> count == 0)
...
@@ -1383,7 +1378,7 @@ void SvtTemplateWindow::SelectFolder(sal_Int32 nFolderPosition)
...
@@ -1383,7 +1378,7 @@ void SvtTemplateWindow::SelectFolder(sal_Int32 nFolderPosition)
struct
SvtTmplDlg_Impl
struct
SvtTmplDlg_Impl
{
{
SvtTemplateWindow
*
pWin
;
SvtTemplateWindow
*
pWin
;
String
aTitle
;
OUString
aTitle
;
Timer
aUpdateTimer
;
Timer
aUpdateTimer
;
sal_Bool
bSelectNoOpen
;
sal_Bool
bSelectNoOpen
;
...
@@ -1424,8 +1419,7 @@ void SvtDocumentTemplateDialog::InitImpl( )
...
@@ -1424,8 +1419,7 @@ void SvtDocumentTemplateDialog::InitImpl( )
==
SvtExtendedSecurityOptions
::
OPEN_NEVER
);
==
SvtExtendedSecurityOptions
::
OPEN_NEVER
);
if
(
!
bHideLink
)
if
(
!
bHideLink
)
{
{
aMoreTemplatesLink
.
SetURL
(
String
(
aMoreTemplatesLink
.
SetURL
(
"http://templates.libreoffice.org/"
);
RTL_CONSTASCII_USTRINGPARAM
(
"http://templates.libreoffice.org/"
)
)
);
aMoreTemplatesLink
.
SetClickHdl
(
LINK
(
this
,
SvtDocumentTemplateDialog
,
OpenLinkHdl_Impl
)
);
aMoreTemplatesLink
.
SetClickHdl
(
LINK
(
this
,
SvtDocumentTemplateDialog
,
OpenLinkHdl_Impl
)
);
}
}
else
else
...
@@ -1554,8 +1548,8 @@ IMPL_LINK_NOARG(SvtDocumentTemplateDialog , DoubleClickHdl_Impl)
...
@@ -1554,8 +1548,8 @@ IMPL_LINK_NOARG(SvtDocumentTemplateDialog , DoubleClickHdl_Impl)
IMPL_LINK_NOARG
(
SvtDocumentTemplateDialog
,
NewFolderHdl_Impl
)
IMPL_LINK_NOARG
(
SvtDocumentTemplateDialog
,
NewFolderHdl_Impl
)
{
{
String
aNewTitle
(
pImpl
->
aTitle
);
OU
String
aNewTitle
(
pImpl
->
aTitle
);
aNewTitle
+=
String
(
" - "
)
;
aNewTitle
+=
" - "
;
aNewTitle
+=
pImpl
->
pWin
->
GetFolderTitle
();
aNewTitle
+=
pImpl
->
pWin
->
GetFolderTitle
();
SetText
(
aNewTitle
);
SetText
(
aNewTitle
);
...
...
svtools/source/contnr/templwin.hxx
Dosyayı görüntüle @
ea5cba1f
...
@@ -62,14 +62,14 @@ private:
...
@@ -62,14 +62,14 @@ private:
SvtDummyHeaderBar_Impl
aDummyHeaderBar
;
// spaceholder instead of HeaderBar
SvtDummyHeaderBar_Impl
aDummyHeaderBar
;
// spaceholder instead of HeaderBar
SvtIconChoiceCtrl
aIconCtrl
;
SvtIconChoiceCtrl
aIconCtrl
;
String
aNewDocumentRootURL
;
OUString
aNewDocumentRootURL
;
String
aTemplateRootURL
;
OUString
aTemplateRootURL
;
String
aMyDocumentsRootURL
;
OUString
aMyDocumentsRootURL
;
String
aSamplesFolderRootURL
;
OUString
aSamplesFolderRootURL
;
long
nMaxTextLength
;
long
nMaxTextLength
;
SvxIconChoiceCtrlEntry
*
GetEntry
(
const
String
&
rURL
)
const
;
SvxIconChoiceCtrlEntry
*
GetEntry
(
const
OU
String
&
rURL
)
const
;
public
:
public
:
SvtIconWindow_Impl
(
Window
*
pParent
);
SvtIconWindow_Impl
(
Window
*
pParent
);
...
@@ -80,24 +80,24 @@ public:
...
@@ -80,24 +80,24 @@ public:
inline
long
GetMaxTextLength
()
const
{
return
nMaxTextLength
;
}
inline
long
GetMaxTextLength
()
const
{
return
nMaxTextLength
;
}
inline
void
SetClickHdl
(
const
Link
&
rLink
)
{
aIconCtrl
.
SetClickHdl
(
rLink
);
}
inline
void
SetClickHdl
(
const
Link
&
rLink
)
{
aIconCtrl
.
SetClickHdl
(
rLink
);
}
String
GetSelectedIconURL
()
const
;
OUString
GetSelectedIconURL
()
const
;
String
GetCursorPosIconURL
()
const
;
OUString
GetCursorPosIconURL
()
const
;
String
GetIconText
(
const
String
&
rURL
)
const
;
OUString
GetIconText
(
const
OU
String
&
rURL
)
const
;
void
InvalidateIconControl
();
void
InvalidateIconControl
();
void
SetCursorPos
(
sal_uLong
nPos
);
void
SetCursorPos
(
sal_uLong
nPos
);
sal_uLong
GetCursorPos
()
const
;
sal_uLong
GetCursorPos
()
const
;
sal_uLong
GetSelectEntryPos
()
const
;
sal_uLong
GetSelectEntryPos
()
const
;
void
SetFocus
();
void
SetFocus
();
long
CalcHeight
()
const
;
long
CalcHeight
()
const
;
sal_Bool
IsRootURL
(
const
String
&
rURL
)
const
;
sal_Bool
IsRootURL
(
const
OU
String
&
rURL
)
const
;
sal_uLong
GetRootPos
(
const
String
&
rURL
)
const
;
sal_uLong
GetRootPos
(
const
OU
String
&
rURL
)
const
;
void
UpdateIcons
();
void
UpdateIcons
();
inline
sal_Bool
ProcessKeyEvent
(
const
KeyEvent
&
rKEvt
);
inline
sal_Bool
ProcessKeyEvent
(
const
KeyEvent
&
rKEvt
);
inline
const
String
&
GetTemplateRootURL
()
const
{
return
aTemplateRootURL
;
}
inline
const
OU
String
&
GetTemplateRootURL
()
const
{
return
aTemplateRootURL
;
}
inline
const
String
&
GetMyDocumentsRootURL
()
const
{
return
aMyDocumentsRootURL
;
}
inline
const
OU
String
&
GetMyDocumentsRootURL
()
const
{
return
aMyDocumentsRootURL
;
}
inline
const
String
&
GetSamplesFolderURL
()
const
{
return
aSamplesFolderRootURL
;
}
inline
const
OU
String
&
GetSamplesFolderURL
()
const
{
return
aSamplesFolderRootURL
;
}
void
SelectFolder
(
sal_Int32
nFolderPos
);
void
SelectFolder
(
sal_Int32
nFolderPos
);
};
};
...
@@ -117,10 +117,10 @@ private:
...
@@ -117,10 +117,10 @@ private:
SvtTemplateWindow
&
rParent
;
SvtTemplateWindow
&
rParent
;
SvtFileView
aFileView
;
SvtFileView
aFileView
;
Link
aNewFolderLink
;
Link
aNewFolderLink
;
String
aCurrentRootURL
;
OUString
aCurrentRootURL
;
String
aFolderURL
;
OUString
aFolderURL
;
String
aMyDocumentsURL
;
OUString
aMyDocumentsURL
;
String
aSamplesFolderURL
;
OUString
aSamplesFolderURL
;
sal_Bool
bIsTemplateFolder
;
sal_Bool
bIsTemplateFolder
;
...
@@ -137,17 +137,17 @@ public:
...
@@ -137,17 +137,17 @@ public:
inline
void
SetDoubleClickHdl
(
const
Link
&
rLink
)
{
aFileView
.
SetDoubleClickHdl
(
rLink
);
}
inline
void
SetDoubleClickHdl
(
const
Link
&
rLink
)
{
aFileView
.
SetDoubleClickHdl
(
rLink
);
}
inline
void
SetNewFolderHdl
(
const
Link
&
rLink
)
{
aNewFolderLink
=
rLink
;
}
inline
void
SetNewFolderHdl
(
const
Link
&
rLink
)
{
aNewFolderLink
=
rLink
;
}
inline
sal_Bool
IsTemplateFolder
()
const
{
return
bIsTemplateFolder
;
}
inline
sal_Bool
IsTemplateFolder
()
const
{
return
bIsTemplateFolder
;
}
inline
String
GetFolderURL
()
const
{
return
aFolderURL
;
}
inline
OUString
GetFolderURL
()
const
{
return
aFolderURL
;
}
inline
String
GetRootURL
()
const
{
return
aCurrentRootURL
;
}
inline
OUString
GetRootURL
()
const
{
return
aCurrentRootURL
;
}
inline
void
OpenRoot
(
const
String
&
rRootURL
)
inline
void
OpenRoot
(
const
OU
String
&
rRootURL
)
{
aCurrentRootURL
=
rRootURL
;
OpenFolder
(
rRootURL
);
}
{
aCurrentRootURL
=
rRootURL
;
OpenFolder
(
rRootURL
);
}
inline
void
SetMyDocumentsURL
(
const
String
&
_rNewURL
)
{
aMyDocumentsURL
=
_rNewURL
;
}
inline
void
SetMyDocumentsURL
(
const
OU
String
&
_rNewURL
)
{
aMyDocumentsURL
=
_rNewURL
;
}
inline
void
SetSamplesFolderURL
(
const
String
&
_rNewURL
)
{
aSamplesFolderURL
=
_rNewURL
;
}
inline
void
SetSamplesFolderURL
(
const
OU
String
&
_rNewURL
)
{
aSamplesFolderURL
=
_rNewURL
;
}
String
GetSelectedFile
()
const
;
OUString
GetSelectedFile
()
const
;
void
OpenFolder
(
const
String
&
rURL
);
void
OpenFolder
(
const
OU
String
&
rURL
);
sal_Bool
HasPreviousLevel
(
OUString
&
rURL
)
const
;
sal_Bool
HasPreviousLevel
(
OUString
&
rURL
)
const
;
String
GetFolderTitle
()
const
;
OUString
GetFolderTitle
()
const
;
void
SetFocus
();
void
SetFocus
();
};
};
...
@@ -177,11 +177,11 @@ private:
...
@@ -177,11 +177,11 @@ private:
Window
*
pEmptyWin
;
Window
*
pEmptyWin
;
::
com
::
sun
::
star
::
lang
::
Locale
aLocale
;
::
com
::
sun
::
star
::
lang
::
Locale
aLocale
;
SvtDocInfoTable_Impl
aInfoTable
;
SvtDocInfoTable_Impl
aInfoTable
;
String
aCurrentURL
;
OUString
aCurrentURL
;
OUString
m_aOpenURL
;
OUString
m_aOpenURL
;
sal_Bool
bDocInfo
;
sal_Bool
bDocInfo
;
void
ShowDocInfo
(
const
String
&
rURL
);
void
ShowDocInfo
(
const
OU
String
&
rURL
);
void
ViewEditWin
();
void
ViewEditWin
();
void
ViewTextWin
();
void
ViewTextWin
();
void
ViewEmptyWin
();
void
ViewEmptyWin
();
...
@@ -199,7 +199,7 @@ public:
...
@@ -199,7 +199,7 @@ public:
virtual
void
Resize
();
virtual
void
Resize
();
void
OpenFile
(
const
String
&
rURL
,
sal_Bool
bPreview
,
sal_Bool
bIsTemplate
,
sal_Bool
bAsTemplate
);
void
OpenFile
(
const
OU
String
&
rURL
,
sal_Bool
bPreview
,
sal_Bool
bIsTemplate
,
sal_Bool
bAsTemplate
);
void
ToggleView
(
sal_Bool
bDocInfo
);
void
ToggleView
(
sal_Bool
bDocInfo
);
};
};
...
@@ -227,7 +227,7 @@ private:
...
@@ -227,7 +227,7 @@ private:
Timer
aSelectTimer
;
Timer
aSelectTimer
;
String
aFolderTitle
;
OUString
aFolderTitle
;
virtual
void
Resize
();
virtual
void
Resize
();
...
@@ -239,8 +239,8 @@ private:
...
@@ -239,8 +239,8 @@ private:
DECL_LINK
(
ClickHdl_Impl
,
ToolBox
*
);
DECL_LINK
(
ClickHdl_Impl
,
ToolBox
*
);
DECL_LINK
(
ResizeHdl_Impl
,
void
*
);
// used for split and initial setting of toolbar pos
DECL_LINK
(
ResizeHdl_Impl
,
void
*
);
// used for split and initial setting of toolbar pos
void
PrintFile
(
const
String
&
rURL
);
void
PrintFile
(
const
OU
String
&
rURL
);
void
AppendHistoryURL
(
const
String
&
rURL
,
sal_uLong
nGroup
);
void
AppendHistoryURL
(
const
OU
String
&
rURL
,
sal_uLong
nGroup
);
void
OpenHistory
();
void
OpenHistory
();
void
DoAction
(
sal_uInt16
nAction
);
void
DoAction
(
sal_uInt16
nAction
);
void
InitToolBoxes
();
void
InitToolBoxes
();
...
@@ -265,13 +265,13 @@ public:
...
@@ -265,13 +265,13 @@ public:
void
ReadViewSettings
(
);
void
ReadViewSettings
(
);
void
WriteViewSettings
(
);
void
WriteViewSettings
(
);
sal_Bool
IsFileSelected
()
const
;
sal_Bool
IsFileSelected
()
const
;
String
GetSelectedFile
()
const
;
OUString
GetSelectedFile
()
const
;
void
OpenFile
(
sal_Bool
bNotAsTemplate
);
void
OpenFile
(
sal_Bool
bNotAsTemplate
);
String
GetFolderTitle
()
const
;
OUString
GetFolderTitle
()
const
;
String
GetFolderURL
()
const
;
OUString
GetFolderURL
()
const
;
void
SetFocus
(
sal_Bool
bIconWin
);
void
SetFocus
(
sal_Bool
bIconWin
);
void
OpenTemplateRoot
();
void
OpenTemplateRoot
();
void
SetPrevLevelButtonState
(
const
String
&
rURL
);
// sets state (enable/disable) for previous level button
void
SetPrevLevelButtonState
(
const
OU
String
&
rURL
);
// sets state (enable/disable) for previous level button
void
ClearHistory
();
void
ClearHistory
();
long
CalcHeight
()
const
;
long
CalcHeight
()
const
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment