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
c849d750
Kaydet (Commit)
c849d750
authored
Mar 24, 2014
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
svtools: sal_Bool->bool
Change-Id: I05dd992f332ab2f3dbcc65aed6dac909872168d4
üst
2d3a1d2a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
122 additions
and
122 deletions
+122
-122
tabbar.hxx
include/svtools/tabbar.hxx
+50
-50
templatefoldercache.hxx
include/svtools/templatefoldercache.hxx
+3
-3
templdlg.hxx
include/svtools/templdlg.hxx
+1
-1
toolboxcontroller.hxx
include/svtools/toolboxcontroller.hxx
+4
-4
doctempl.cxx
sfx2/source/doc/doctempl.cxx
+1
-1
templwin.cxx
svtools/source/contnr/templwin.cxx
+2
-2
tabbar.cxx
svtools/source/control/tabbar.cxx
+0
-0
templatefoldercache.cxx
svtools/source/misc/templatefoldercache.cxx
+43
-43
generictoolboxcontroller.cxx
svtools/source/uno/generictoolboxcontroller.cxx
+1
-1
toolboxcontroller.cxx
svtools/source/uno/toolboxcontroller.cxx
+17
-17
No files found.
include/svtools/tabbar.hxx
Dosyayı görüntüle @
c849d750
...
@@ -349,24 +349,24 @@ private:
...
@@ -349,24 +349,24 @@ private:
long
mnOffY
;
long
mnOffY
;
long
mnLastOffX
;
long
mnLastOffX
;
long
mnSplitSize
;
long
mnSplitSize
;
sal_uLong
mnSwitchTime
;
sal_uLong
mnSwitchTime
;
WinBits
mnWinStyle
;
WinBits
mnWinStyle
;
sal_uInt16
mnCurPageId
;
sal_uInt16
mnCurPageId
;
sal_uInt16
mnFirstPos
;
sal_uInt16
mnFirstPos
;
sal_uInt16
mnDropPos
;
sal_uInt16
mnDropPos
;
sal_uInt16
mnSwitchId
;
sal_uInt16
mnSwitchId
;
sal_uInt16
mnEditId
;
sal_uInt16
mnEditId
;
sal_B
ool
mbFormat
;
b
ool
mbFormat
;
sal_B
ool
mbFirstFormat
;
b
ool
mbFirstFormat
;
sal_B
ool
mbSizeFormat
;
b
ool
mbSizeFormat
;
sal_B
ool
mbAutoMaxWidth
;
b
ool
mbAutoMaxWidth
;
sal_B
ool
mbInSwitching
;
b
ool
mbInSwitching
;
sal_B
ool
mbAutoEditMode
;
b
ool
mbAutoEditMode
;
sal_B
ool
mbEditCanceled
;
b
ool
mbEditCanceled
;
sal_B
ool
mbDropPos
;
b
ool
mbDropPos
;
sal_B
ool
mbInSelect
;
b
ool
mbInSelect
;
sal_B
ool
mbSelColor
;
b
ool
mbSelColor
;
sal_B
ool
mbSelTextColor
;
b
ool
mbSelTextColor
;
bool
mbMirrored
;
bool
mbMirrored
;
bool
mbHasInsertTab
;
// if true, the tab bar has an extra tab at the end.
bool
mbHasInsertTab
;
// if true, the tab bar has an extra tab at the end.
bool
mbScrollAlwaysEnabled
;
bool
mbScrollAlwaysEnabled
;
...
@@ -383,18 +383,18 @@ private:
...
@@ -383,18 +383,18 @@ private:
using
Window
::
ImplInit
;
using
Window
::
ImplInit
;
SVT_DLLPRIVATE
void
ImplInit
(
WinBits
nWinStyle
);
SVT_DLLPRIVATE
void
ImplInit
(
WinBits
nWinStyle
);
SVT_DLLPRIVATE
void
ImplInitSettings
(
sal_Bool
bFont
,
sal_B
ool
bBackground
);
SVT_DLLPRIVATE
void
ImplInitSettings
(
bool
bFont
,
b
ool
bBackground
);
SVT_DLLPRIVATE
void
ImplGetColors
(
Color
&
rFaceColor
,
Color
&
rFaceTextColor
,
SVT_DLLPRIVATE
void
ImplGetColors
(
Color
&
rFaceColor
,
Color
&
rFaceTextColor
,
Color
&
rSelectColor
,
Color
&
rSelectTextColor
);
Color
&
rSelectColor
,
Color
&
rSelectTextColor
);
SVT_DLLPRIVATE
void
ImplShowPage
(
sal_uInt16
nPos
);
SVT_DLLPRIVATE
void
ImplShowPage
(
sal_uInt16
nPos
);
SVT_DLLPRIVATE
sal_B
ool
ImplCalcWidth
();
SVT_DLLPRIVATE
b
ool
ImplCalcWidth
();
SVT_DLLPRIVATE
void
ImplFormat
();
SVT_DLLPRIVATE
void
ImplFormat
();
SVT_DLLPRIVATE
sal_uInt16
ImplGetLastFirstPos
();
SVT_DLLPRIVATE
sal_uInt16
ImplGetLastFirstPos
();
SVT_DLLPRIVATE
void
ImplInitControls
();
SVT_DLLPRIVATE
void
ImplInitControls
();
SVT_DLLPRIVATE
void
ImplEnableControls
();
SVT_DLLPRIVATE
void
ImplEnableControls
();
SVT_DLLPRIVATE
void
ImplSelect
();
SVT_DLLPRIVATE
void
ImplSelect
();
SVT_DLLPRIVATE
void
ImplActivatePage
();
SVT_DLLPRIVATE
void
ImplActivatePage
();
SVT_DLLPRIVATE
long
ImplDeactivatePage
();
SVT_DLLPRIVATE
long
ImplDeactivatePage
();
SVT_DLLPRIVATE
void
ImplPrePaint
();
SVT_DLLPRIVATE
void
ImplPrePaint
();
SVT_DLLPRIVATE
ImplTabBarItem
*
ImplGetLastTabBarItem
(
sal_uInt16
nItemCount
);
SVT_DLLPRIVATE
ImplTabBarItem
*
ImplGetLastTabBarItem
(
sal_uInt16
nItemCount
);
SVT_DLLPRIVATE
Rectangle
ImplGetInsertTabRect
(
ImplTabBarItem
*
pItem
)
const
;
SVT_DLLPRIVATE
Rectangle
ImplGetInsertTabRect
(
ImplTabBarItem
*
pItem
)
const
;
...
@@ -439,50 +439,50 @@ public:
...
@@ -439,50 +439,50 @@ public:
Color
GetTabBgColor
(
sal_uInt16
nPageId
)
const
;
Color
GetTabBgColor
(
sal_uInt16
nPageId
)
const
;
void
SetTabBgColor
(
sal_uInt16
nPageId
,
const
Color
&
aTabBgColor
);
void
SetTabBgColor
(
sal_uInt16
nPageId
,
const
Color
&
aTabBgColor
);
sal_Bool
IsDefaultTabBgColor
(
sal_uInt16
nPageId
);
bool
IsDefaultTabBgColor
(
sal_uInt16
nPageId
);
void
Clear
();
void
Clear
();
sal_B
ool
IsPageEnabled
(
sal_uInt16
nPageId
)
const
;
b
ool
IsPageEnabled
(
sal_uInt16
nPageId
)
const
;
void
SetPageBits
(
sal_uInt16
nPageId
,
TabBarPageBits
nBits
=
0
);
void
SetPageBits
(
sal_uInt16
nPageId
,
TabBarPageBits
nBits
=
0
);
TabBarPageBits
GetPageBits
(
sal_uInt16
nPageId
)
const
;
TabBarPageBits
GetPageBits
(
sal_uInt16
nPageId
)
const
;
sal_uInt16
GetPageCount
()
const
;
sal_uInt16
GetPageCount
()
const
;
sal_uInt16
GetPageId
(
sal_uInt16
nPos
)
const
;
sal_uInt16
GetPageId
(
sal_uInt16
nPos
)
const
;
sal_uInt16
GetPagePos
(
sal_uInt16
nPageId
)
const
;
sal_uInt16
GetPagePos
(
sal_uInt16
nPageId
)
const
;
sal_uInt16
GetPageId
(
const
Point
&
rPos
,
bool
bCheckInsTab
=
false
)
const
;
sal_uInt16
GetPageId
(
const
Point
&
rPos
,
bool
bCheckInsTab
=
false
)
const
;
Rectangle
GetPageRect
(
sal_uInt16
nPageId
)
const
;
Rectangle
GetPageRect
(
sal_uInt16
nPageId
)
const
;
// returns the rectangle in which page tabs are drawn
// returns the rectangle in which page tabs are drawn
Rectangle
GetPageArea
()
const
;
Rectangle
GetPageArea
()
const
;
void
SetCurPageId
(
sal_uInt16
nPageId
);
void
SetCurPageId
(
sal_uInt16
nPageId
);
sal_uInt16
GetCurPageId
()
const
{
return
mnCurPageId
;
}
sal_uInt16
GetCurPageId
()
const
{
return
mnCurPageId
;
}
void
SetFirstPageId
(
sal_uInt16
nPageId
);
void
SetFirstPageId
(
sal_uInt16
nPageId
);
sal_uInt16
GetFirstPageId
()
const
{
return
GetPageId
(
mnFirstPos
);
}
sal_uInt16
GetFirstPageId
()
const
{
return
GetPageId
(
mnFirstPos
);
}
void
MakeVisible
(
sal_uInt16
nPageId
);
void
MakeVisible
(
sal_uInt16
nPageId
);
void
SelectPage
(
sal_uInt16
nPageId
,
sal_Bool
bSelect
=
sal_T
rue
);
void
SelectPage
(
sal_uInt16
nPageId
,
bool
bSelect
=
t
rue
);
sal_uInt16
GetSelectPageCount
()
const
;
sal_uInt16
GetSelectPageCount
()
const
;
sal_B
ool
IsPageSelected
(
sal_uInt16
nPageId
)
const
;
b
ool
IsPageSelected
(
sal_uInt16
nPageId
)
const
;
void
EnableAutoMaxPageWidth
(
sal_Bool
bEnable
=
sal_T
rue
)
{
mbAutoMaxWidth
=
bEnable
;
}
void
EnableAutoMaxPageWidth
(
bool
bEnable
=
t
rue
)
{
mbAutoMaxWidth
=
bEnable
;
}
sal_B
ool
IsAutoMaxPageWidthEnabled
()
const
{
return
mbAutoMaxWidth
;
}
b
ool
IsAutoMaxPageWidthEnabled
()
const
{
return
mbAutoMaxWidth
;
}
void
SetMaxPageWidth
(
long
nMaxWidth
);
void
SetMaxPageWidth
(
long
nMaxWidth
);
long
GetMaxPageWidth
()
const
{
return
mnMaxPageWidth
;
}
long
GetMaxPageWidth
()
const
{
return
mnMaxPageWidth
;
}
void
ResetMaxPageWidth
()
{
SetMaxPageWidth
(
0
);
}
void
ResetMaxPageWidth
()
{
SetMaxPageWidth
(
0
);
}
sal_B
ool
IsMaxPageWidth
()
const
{
return
mnMaxPageWidth
!=
0
;
}
b
ool
IsMaxPageWidth
()
const
{
return
mnMaxPageWidth
!=
0
;
}
void
EnableEditMode
(
sal_Bool
bEnable
=
sal_T
rue
)
{
mbAutoEditMode
=
bEnable
;
}
void
EnableEditMode
(
bool
bEnable
=
t
rue
)
{
mbAutoEditMode
=
bEnable
;
}
sal_B
ool
IsEditModeEnabled
()
const
{
return
mbAutoEditMode
;
}
b
ool
IsEditModeEnabled
()
const
{
return
mbAutoEditMode
;
}
sal_B
ool
StartEditMode
(
sal_uInt16
nPageId
);
b
ool
StartEditMode
(
sal_uInt16
nPageId
);
void
EndEditMode
(
sal_Bool
bCancel
=
sal_F
alse
);
void
EndEditMode
(
bool
bCancel
=
f
alse
);
void
SetEditText
(
const
OUString
&
rText
)
{
maEditText
=
rText
;
}
void
SetEditText
(
const
OUString
&
rText
)
{
maEditText
=
rText
;
}
const
OUString
&
GetEditText
()
const
{
return
maEditText
;
}
const
OUString
&
GetEditText
()
const
{
return
maEditText
;
}
sal_B
ool
IsInEditMode
()
const
{
return
(
mpEdit
!=
NULL
);
}
b
ool
IsInEditMode
()
const
{
return
(
mpEdit
!=
NULL
);
}
sal_B
ool
IsEditModeCanceled
()
const
{
return
mbEditCanceled
;
}
b
ool
IsEditModeCanceled
()
const
{
return
mbEditCanceled
;
}
sal_uInt16
GetEditPageId
()
const
{
return
mnEditId
;
}
sal_uInt16
GetEditPageId
()
const
{
return
mnEditId
;
}
/** Mirrors the entire control including position of buttons and splitter.
/** Mirrors the entire control including position of buttons and splitter.
Mirroring is done relative to the current direction of the GUI.
Mirroring is done relative to the current direction of the GUI.
...
@@ -500,17 +500,17 @@ public:
...
@@ -500,17 +500,17 @@ public:
/** Returns true, if the control draws from right to left (see SetEffectiveRTL()). */
/** Returns true, if the control draws from right to left (see SetEffectiveRTL()). */
bool
IsEffectiveRTL
()
const
;
bool
IsEffectiveRTL
()
const
;
sal_B
ool
StartDrag
(
const
CommandEvent
&
rCEvt
,
Region
&
rRegion
);
b
ool
StartDrag
(
const
CommandEvent
&
rCEvt
,
Region
&
rRegion
);
sal_uInt16
ShowDropPos
(
const
Point
&
rPos
);
sal_uInt16
ShowDropPos
(
const
Point
&
rPos
);
void
HideDropPos
();
void
HideDropPos
();
sal_B
ool
SwitchPage
(
const
Point
&
rPos
);
b
ool
SwitchPage
(
const
Point
&
rPos
);
void
EndSwitchPage
();
void
EndSwitchPage
();
sal_B
ool
IsInSwitching
()
{
return
mbInSwitching
;
}
b
ool
IsInSwitching
()
{
return
mbInSwitching
;
}
const
Color
&
GetSelectColor
()
const
{
return
maSelColor
;
}
const
Color
&
GetSelectColor
()
const
{
return
maSelColor
;
}
sal_B
ool
IsSelectColor
()
const
{
return
mbSelColor
;
}
b
ool
IsSelectColor
()
const
{
return
mbSelColor
;
}
const
Color
&
GetSelectTextColor
()
const
{
return
maSelTextColor
;
}
const
Color
&
GetSelectTextColor
()
const
{
return
maSelTextColor
;
}
sal_B
ool
IsSelectTextColor
()
const
{
return
mbSelTextColor
;
}
b
ool
IsSelectTextColor
()
const
{
return
mbSelTextColor
;
}
void
SetPageText
(
sal_uInt16
nPageId
,
const
OUString
&
rText
);
void
SetPageText
(
sal_uInt16
nPageId
,
const
OUString
&
rText
);
OUString
GetPageText
(
sal_uInt16
nPageId
)
const
;
OUString
GetPageText
(
sal_uInt16
nPageId
)
const
;
...
...
include/svtools/templatefoldercache.hxx
Dosyayı görüntüle @
c849d750
...
@@ -71,7 +71,7 @@ namespace svt
...
@@ -71,7 +71,7 @@ namespace svt
If the current state is not known (e.g. because you did not call needsUpdate, which retrieves it),
If the current state is not known (e.g. because you did not call needsUpdate, which retrieves it),
it is not retrieved in the dtor, regardless of the <arg>_bAutoStoreState</arg> flag.
it is not retrieved in the dtor, regardless of the <arg>_bAutoStoreState</arg> flag.
*/
*/
TemplateFolderCache
(
sal_Bool
_bAutoStoreState
=
sal_F
alse
);
TemplateFolderCache
(
bool
_bAutoStoreState
=
f
alse
);
~
TemplateFolderCache
(
);
~
TemplateFolderCache
(
);
/** determines whether or not the template configuration needs to be updated
/** determines whether or not the template configuration needs to be updated
...
@@ -82,7 +82,7 @@ namespace svt
...
@@ -82,7 +82,7 @@ namespace svt
@return
@return
<TRUE/> if the template configuration needs to be updated
<TRUE/> if the template configuration needs to be updated
*/
*/
sal_Bool
needsUpdate
(
sal_Bool
_bForceCheck
=
sal_F
alse
);
bool
needsUpdate
(
bool
_bForceCheck
=
f
alse
);
/** stores the current state of the template folders in the cache
/** stores the current state of the template folders in the cache
@param _bForceRetrieval
@param _bForceRetrieval
...
@@ -90,7 +90,7 @@ namespace svt
...
@@ -90,7 +90,7 @@ namespace svt
Usually, you set this to <FALSE/>: After calling <method>needsUpdate</method>, the state is know and does not
Usually, you set this to <FALSE/>: After calling <method>needsUpdate</method>, the state is know and does not
need to be read again.
need to be read again.
*/
*/
void
storeState
(
sal_Bool
_bForceRetrieval
=
sal_F
alse
);
void
storeState
(
bool
_bForceRetrieval
=
f
alse
);
};
};
...
...
include/svtools/templdlg.hxx
Dosyayı görüntüle @
c849d750
...
@@ -73,7 +73,7 @@ public:
...
@@ -73,7 +73,7 @@ public:
private
:
private
:
SVT_DLLPRIVATE
void
InitImpl
(
);
SVT_DLLPRIVATE
void
InitImpl
(
);
SVT_DLLPRIVATE
sal_B
ool
CanEnableEditBtn
()
const
;
SVT_DLLPRIVATE
b
ool
CanEnableEditBtn
()
const
;
};
};
#endif // INCLUDED_SVTOOLS_TEMPLDLG_HXX
#endif // INCLUDED_SVTOOLS_TEMPLDLG_HXX
...
...
include/svtools/toolboxcontroller.hxx
Dosyayı görüntüle @
c849d750
...
@@ -59,7 +59,7 @@ class SVT_DLLPUBLIC ToolboxController :
...
@@ -59,7 +59,7 @@ class SVT_DLLPUBLIC ToolboxController :
public
::
comphelper
::
OPropertyArrayUsageHelper
<
ToolboxController
>
public
::
comphelper
::
OPropertyArrayUsageHelper
<
ToolboxController
>
{
{
private
:
private
:
sal_B
ool
m_bSupportVisible
;
b
ool
m_bSupportVisible
;
public
:
public
:
ToolboxController
(
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
uno
::
XComponentContext
>&
rxContext
,
ToolboxController
(
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
uno
::
XComponentContext
>&
rxContext
,
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
frame
::
XFrame
>&
xFrame
,
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
frame
::
XFrame
>&
xFrame
,
...
@@ -124,7 +124,7 @@ class SVT_DLLPUBLIC ToolboxController :
...
@@ -124,7 +124,7 @@ class SVT_DLLPUBLIC ToolboxController :
protected
:
protected
:
bool
getToolboxId
(
sal_uInt16
&
rItemId
,
ToolBox
**
ppToolBox
);
bool
getToolboxId
(
sal_uInt16
&
rItemId
,
ToolBox
**
ppToolBox
);
void
setSupportVisibleProperty
(
sal_B
ool
bValue
);
void
setSupportVisibleProperty
(
b
ool
bValue
);
struct
Listener
struct
Listener
{
{
Listener
(
const
::
com
::
sun
::
star
::
util
::
URL
&
rURL
,
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
frame
::
XDispatch
>&
rDispatch
)
:
Listener
(
const
::
com
::
sun
::
star
::
util
::
URL
&
rURL
,
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
frame
::
XDispatch
>&
rDispatch
)
:
...
@@ -161,13 +161,13 @@ class SVT_DLLPUBLIC ToolboxController :
...
@@ -161,13 +161,13 @@ class SVT_DLLPUBLIC ToolboxController :
void
removeStatusListener
(
const
OUString
&
aCommandURL
);
void
removeStatusListener
(
const
OUString
&
aCommandURL
);
void
bindListener
();
void
bindListener
();
void
unbindListener
();
void
unbindListener
();
sal_B
ool
isBound
()
const
;
b
ool
isBound
()
const
;
// TODO remove
// TODO remove
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
util
::
XURLTransformer
>
getURLTransformer
()
const
;
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
util
::
XURLTransformer
>
getURLTransformer
()
const
;
// TODO remove
// TODO remove
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
awt
::
XWindow
>
getParent
()
const
;
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
awt
::
XWindow
>
getParent
()
const
;
sal_Bool
m_bInitialized
:
1
,
bool
m_bInitialized
:
1
,
m_bDisposed
:
1
;
m_bDisposed
:
1
;
sal_uInt16
m_nToolBoxId
;
sal_uInt16
m_nToolBoxId
;
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
frame
::
XFrame
>
m_xFrame
;
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
frame
::
XFrame
>
m_xFrame
;
...
...
sfx2/source/doc/doctempl.cxx
Dosyayı görüntüle @
c849d750
...
@@ -1270,7 +1270,7 @@ SfxDocumentTemplates::~SfxDocumentTemplates()
...
@@ -1270,7 +1270,7 @@ SfxDocumentTemplates::~SfxDocumentTemplates()
void
SfxDocumentTemplates
::
Update
(
bool
_bSmart
)
void
SfxDocumentTemplates
::
Update
(
bool
_bSmart
)
{
{
if
(
!
_bSmart
// don't be smart
if
(
!
_bSmart
// don't be smart
||
::
svt
::
TemplateFolderCache
(
sal_T
rue
).
needsUpdate
()
// update is really necessary
||
::
svt
::
TemplateFolderCache
(
t
rue
).
needsUpdate
()
// update is really necessary
)
)
{
{
if
(
pImp
->
Construct
()
)
if
(
pImp
->
Construct
()
)
...
...
svtools/source/contnr/templwin.cxx
Dosyayı görüntüle @
c849d750
...
@@ -1510,9 +1510,9 @@ SvtDocumentTemplateDialog::~SvtDocumentTemplateDialog()
...
@@ -1510,9 +1510,9 @@ SvtDocumentTemplateDialog::~SvtDocumentTemplateDialog()
sal_B
ool
SvtDocumentTemplateDialog
::
CanEnableEditBtn
()
const
b
ool
SvtDocumentTemplateDialog
::
CanEnableEditBtn
()
const
{
{
sal_Bool
bEnable
=
sal_F
alse
;
bool
bEnable
=
f
alse
;
OUString
aFolderURL
=
pImpl
->
pWin
->
GetFolderURL
();
OUString
aFolderURL
=
pImpl
->
pWin
->
GetFolderURL
();
if
(
pImpl
->
pWin
->
IsFileSelected
()
&&
!
aFolderURL
.
isEmpty
()
)
if
(
pImpl
->
pWin
->
IsFileSelected
()
&&
!
aFolderURL
.
isEmpty
()
)
...
...
svtools/source/control/tabbar.cxx
Dosyayı görüntüle @
c849d750
This diff is collapsed.
Click to expand it.
svtools/source/misc/templatefoldercache.cxx
Dosyayı görüntüle @
c849d750
...
@@ -89,7 +89,7 @@ namespace svt
...
@@ -89,7 +89,7 @@ namespace svt
}
}
sal_B
ool
operator
==
(
const
util
::
DateTime
&
_rLHS
,
const
util
::
DateTime
&
_rRHS
)
b
ool
operator
==
(
const
util
::
DateTime
&
_rLHS
,
const
util
::
DateTime
&
_rRHS
)
{
{
return
_rLHS
.
NanoSeconds
==
_rRHS
.
NanoSeconds
return
_rLHS
.
NanoSeconds
==
_rRHS
.
NanoSeconds
&&
_rLHS
.
Seconds
==
_rRHS
.
Seconds
&&
_rLHS
.
Seconds
==
_rRHS
.
Seconds
...
@@ -102,7 +102,7 @@ namespace svt
...
@@ -102,7 +102,7 @@ namespace svt
}
}
sal_B
ool
operator
!=
(
const
util
::
DateTime
&
_rLHS
,
const
util
::
DateTime
&
_rRHS
)
b
ool
operator
!=
(
const
util
::
DateTime
&
_rLHS
,
const
util
::
DateTime
&
_rRHS
)
{
{
return
!
(
_rLHS
==
_rRHS
);
return
!
(
_rLHS
==
_rRHS
);
}
}
...
@@ -449,48 +449,48 @@ namespace svt
...
@@ -449,48 +449,48 @@ namespace svt
uno
::
Reference
<
util
::
XOfficeInstallationDirectories
>
m_xOfficeInstDirs
;
uno
::
Reference
<
util
::
XOfficeInstallationDirectories
>
m_xOfficeInstDirs
;
SvStream
*
m_pCacheStream
;
SvStream
*
m_pCacheStream
;
sal_Bool
m_bNeedsUpdate
:
1
;
bool
m_bNeedsUpdate
:
1
;
sal_Bool
m_bKnowState
:
1
;
bool
m_bKnowState
:
1
;
sal_Bool
m_bValidCurrentState
:
1
;
bool
m_bValidCurrentState
:
1
;
sal_Bool
m_bAutoStoreState
:
1
;
bool
m_bAutoStoreState
:
1
;
public
:
public
:
TemplateFolderCacheImpl
(
sal_B
ool
_bAutoStoreState
);
TemplateFolderCacheImpl
(
b
ool
_bAutoStoreState
);
~
TemplateFolderCacheImpl
(
);
~
TemplateFolderCacheImpl
(
);
sal_Bool
needsUpdate
(
sal_B
ool
_bForceCheck
);
bool
needsUpdate
(
b
ool
_bForceCheck
);
void
storeState
(
sal_B
ool
_bForceRetrieval
);
void
storeState
(
b
ool
_bForceRetrieval
);
private
:
private
:
sal_Bool
openCacheStream
(
sal_B
ool
_bForRead
);
bool
openCacheStream
(
b
ool
_bForRead
);
void
closeCacheStream
(
);
void
closeCacheStream
(
);
/// read the state of the dirs from the cache file
/// read the state of the dirs from the cache file
sal_Bool
readPreviousState
();
bool
readPreviousState
();
/// read the current state of the dirs
/// read the current state of the dirs
sal_Bool
readCurrentState
();
bool
readCurrentState
();
OUString
implParseSmart
(
const
OUString
&
_rPath
);
OUString
implParseSmart
(
const
OUString
&
_rPath
);
sal_Bool
implReadFolder
(
const
::
rtl
::
Reference
<
TemplateContent
>&
_rxRoot
);
bool
implReadFolder
(
const
::
rtl
::
Reference
<
TemplateContent
>&
_rxRoot
);
static
OUString
getCacheFileName
();
static
OUString
getCacheFileName
();
static
sal_Int32
getMagicNumber
();
static
sal_Int32
getMagicNumber
();
static
void
normalize
(
TemplateFolderContent
&
_rState
);
static
void
normalize
(
TemplateFolderContent
&
_rState
);
// @return <TRUE/> if the states equal
// @return <TRUE/> if the states equal
static
sal_Bool
equalStates
(
const
TemplateFolderContent
&
_rLHS
,
const
TemplateFolderContent
&
_rRHS
);
static
bool
equalStates
(
const
TemplateFolderContent
&
_rLHS
,
const
TemplateFolderContent
&
_rRHS
);
// late initialize m_xOfficeInstDirs
// late initialize m_xOfficeInstDirs
uno
::
Reference
<
util
::
XOfficeInstallationDirectories
>
getOfficeInstDirs
();
uno
::
Reference
<
util
::
XOfficeInstallationDirectories
>
getOfficeInstDirs
();
};
};
TemplateFolderCacheImpl
::
TemplateFolderCacheImpl
(
sal_B
ool
_bAutoStoreState
)
TemplateFolderCacheImpl
::
TemplateFolderCacheImpl
(
b
ool
_bAutoStoreState
)
:
m_pCacheStream
(
NULL
)
:
m_pCacheStream
(
NULL
)
,
m_bNeedsUpdate
(
sal_T
rue
)
,
m_bNeedsUpdate
(
t
rue
)
,
m_bKnowState
(
sal_F
alse
)
,
m_bKnowState
(
f
alse
)
,
m_bValidCurrentState
(
sal_F
alse
)
,
m_bValidCurrentState
(
f
alse
)
,
m_bAutoStoreState
(
_bAutoStoreState
)
,
m_bAutoStoreState
(
_bAutoStoreState
)
{
{
}
}
...
@@ -500,7 +500,7 @@ namespace svt
...
@@ -500,7 +500,7 @@ namespace svt
{
{
// store the current state if possible and required
// store the current state if possible and required
if
(
m_bValidCurrentState
&&
m_bAutoStoreState
)
if
(
m_bValidCurrentState
&&
m_bAutoStoreState
)
storeState
(
sal_F
alse
);
storeState
(
f
alse
);
closeCacheStream
(
);
closeCacheStream
(
);
}
}
...
@@ -530,10 +530,10 @@ namespace svt
...
@@ -530,10 +530,10 @@ namespace svt
}
}
sal_B
ool
TemplateFolderCacheImpl
::
equalStates
(
const
TemplateFolderContent
&
_rLHS
,
const
TemplateFolderContent
&
_rRHS
)
b
ool
TemplateFolderCacheImpl
::
equalStates
(
const
TemplateFolderContent
&
_rLHS
,
const
TemplateFolderContent
&
_rRHS
)
{
{
if
(
_rLHS
.
size
()
!=
_rRHS
.
size
()
)
if
(
_rLHS
.
size
()
!=
_rRHS
.
size
()
)
return
sal_F
alse
;
return
f
alse
;
// as both arrays are sorted (by definition - this is a precondition of this method)
// as both arrays are sorted (by definition - this is a precondition of this method)
// we can simply go from the front to the back and compare the single elements
// we can simply go from the front to the back and compare the single elements
...
@@ -549,12 +549,12 @@ namespace svt
...
@@ -549,12 +549,12 @@ namespace svt
}
}
void
TemplateFolderCacheImpl
::
storeState
(
sal_B
ool
_bForceRetrieval
)
void
TemplateFolderCacheImpl
::
storeState
(
b
ool
_bForceRetrieval
)
{
{
if
(
!
m_bValidCurrentState
||
_bForceRetrieval
)
if
(
!
m_bValidCurrentState
||
_bForceRetrieval
)
readCurrentState
(
);
readCurrentState
(
);
if
(
m_bValidCurrentState
&&
openCacheStream
(
sal_F
alse
)
)
if
(
m_bValidCurrentState
&&
openCacheStream
(
f
alse
)
)
{
{
m_pCacheStream
->
WriteInt32
(
getMagicNumber
()
);
m_pCacheStream
->
WriteInt32
(
getMagicNumber
()
);
...
@@ -599,7 +599,7 @@ namespace svt
...
@@ -599,7 +599,7 @@ namespace svt
}
}
sal_B
ool
TemplateFolderCacheImpl
::
implReadFolder
(
const
::
rtl
::
Reference
<
TemplateContent
>&
_rxRoot
)
b
ool
TemplateFolderCacheImpl
::
implReadFolder
(
const
::
rtl
::
Reference
<
TemplateContent
>&
_rxRoot
)
{
{
try
try
{
{
...
@@ -624,7 +624,7 @@ namespace svt
...
@@ -624,7 +624,7 @@ namespace svt
catch
(
CommandAbortedException
&
)
catch
(
CommandAbortedException
&
)
{
{
SAL_WARN
(
"svtools.misc"
,
"TemplateFolderCacheImpl::implReadFolder: caught a CommandAbortedException!"
);
SAL_WARN
(
"svtools.misc"
,
"TemplateFolderCacheImpl::implReadFolder: caught a CommandAbortedException!"
);
return
sal_F
alse
;
return
f
alse
;
}
}
catch
(
::
com
::
sun
::
star
::
uno
::
Exception
&
)
catch
(
::
com
::
sun
::
star
::
uno
::
Exception
&
)
{
{
...
@@ -664,16 +664,16 @@ namespace svt
...
@@ -664,16 +664,16 @@ namespace svt
catch
(
const
Exception
&
)
catch
(
const
Exception
&
)
{
{
OSL_FAIL
(
"TemplateFolderCacheImpl::implReadFolder: caught an exception!"
);
OSL_FAIL
(
"TemplateFolderCacheImpl::implReadFolder: caught an exception!"
);
return
sal_F
alse
;
return
f
alse
;
}
}
return
sal_T
rue
;
return
t
rue
;
}
}
sal_B
ool
TemplateFolderCacheImpl
::
readCurrentState
()
b
ool
TemplateFolderCacheImpl
::
readCurrentState
()
{
{
// reset
// reset
m_bValidCurrentState
=
sal_F
alse
;
m_bValidCurrentState
=
f
alse
;
TemplateFolderContent
aTemplateFolderContent
;
TemplateFolderContent
aTemplateFolderContent
;
m_aCurrentState
.
swap
(
aTemplateFolderContent
);
m_aCurrentState
.
swap
(
aTemplateFolderContent
);
...
@@ -704,19 +704,19 @@ namespace svt
...
@@ -704,19 +704,19 @@ namespace svt
--
aCurrentRoot
;
--
aCurrentRoot
;
if
(
!
implReadFolder
(
*
aCurrentRoot
)
)
if
(
!
implReadFolder
(
*
aCurrentRoot
)
)
return
sal_F
alse
;
return
f
alse
;
}
}
while
(
nIndex
>=
0
);
while
(
nIndex
>=
0
);
// normalize the array (which basically means "sort it")
// normalize the array (which basically means "sort it")
normalize
(
m_aCurrentState
);
normalize
(
m_aCurrentState
);
m_bValidCurrentState
=
sal_T
rue
;
m_bValidCurrentState
=
t
rue
;
return
m_bValidCurrentState
;
return
m_bValidCurrentState
;
}
}
sal_B
ool
TemplateFolderCacheImpl
::
readPreviousState
()
b
ool
TemplateFolderCacheImpl
::
readPreviousState
()
{
{
DBG_ASSERT
(
m_pCacheStream
,
"TemplateFolderCacheImpl::readPreviousState: not to be called without stream!"
);
DBG_ASSERT
(
m_pCacheStream
,
"TemplateFolderCacheImpl::readPreviousState: not to be called without stream!"
);
...
@@ -729,7 +729,7 @@ namespace svt
...
@@ -729,7 +729,7 @@ namespace svt
m_pCacheStream
->
ReadInt32
(
nMagic
);
m_pCacheStream
->
ReadInt32
(
nMagic
);
DBG_ASSERT
(
getMagicNumber
()
==
nMagic
,
"TemplateFolderCacheImpl::readPreviousState: invalid cache file!"
);
DBG_ASSERT
(
getMagicNumber
()
==
nMagic
,
"TemplateFolderCacheImpl::readPreviousState: invalid cache file!"
);
if
(
getMagicNumber
()
!=
nMagic
)
if
(
getMagicNumber
()
!=
nMagic
)
return
sal_F
alse
;
return
f
alse
;
// the root directories
// the root directories
// their number
// their number
...
@@ -759,11 +759,11 @@ namespace svt
...
@@ -759,11 +759,11 @@ namespace svt
// normalize the array (which basically means "sort it")
// normalize the array (which basically means "sort it")
normalize
(
m_aPreviousState
);
normalize
(
m_aPreviousState
);
return
sal_T
rue
;
return
t
rue
;
}
}
sal_Bool
TemplateFolderCacheImpl
::
openCacheStream
(
sal_B
ool
_bForRead
)
bool
TemplateFolderCacheImpl
::
openCacheStream
(
b
ool
_bForRead
)
{
{
// close any old stream instance
// close any old stream instance
closeCacheStream
(
);
closeCacheStream
(
);
...
@@ -774,7 +774,7 @@ namespace svt
...
@@ -774,7 +774,7 @@ namespace svt
if
(
INET_PROT_NOT_VALID
==
aStorageURL
.
GetProtocol
()
)
if
(
INET_PROT_NOT_VALID
==
aStorageURL
.
GetProtocol
()
)
{
{
OSL_FAIL
(
"TemplateFolderCacheImpl::openCacheStream: invalid storage path!"
);
OSL_FAIL
(
"TemplateFolderCacheImpl::openCacheStream: invalid storage path!"
);
return
sal_F
alse
;
return
f
alse
;
}
}
// append our name
// append our name
...
@@ -796,18 +796,18 @@ namespace svt
...
@@ -796,18 +796,18 @@ namespace svt
}
}
sal_Bool
TemplateFolderCacheImpl
::
needsUpdate
(
sal_B
ool
_bForceCheck
)
bool
TemplateFolderCacheImpl
::
needsUpdate
(
b
ool
_bForceCheck
)
{
{
if
(
m_bKnowState
&&
!
_bForceCheck
)
if
(
m_bKnowState
&&
!
_bForceCheck
)
return
m_bNeedsUpdate
;
return
m_bNeedsUpdate
;
m_bNeedsUpdate
=
sal_T
rue
;
m_bNeedsUpdate
=
t
rue
;
m_bKnowState
=
sal_T
rue
;
m_bKnowState
=
t
rue
;
if
(
readCurrentState
()
)
if
(
readCurrentState
()
)
{
{
// open the stream which contains the cached state of the directories
// open the stream which contains the cached state of the directories
if
(
openCacheStream
(
sal_T
rue
)
)
if
(
openCacheStream
(
t
rue
)
)
{
// opening the stream succeeded
{
// opening the stream succeeded
if
(
readPreviousState
()
)
if
(
readPreviousState
()
)
{
{
...
@@ -843,7 +843,7 @@ namespace svt
...
@@ -843,7 +843,7 @@ namespace svt
//= TemplateFolderCache
//= TemplateFolderCache
TemplateFolderCache
::
TemplateFolderCache
(
sal_B
ool
_bAutoStoreState
)
TemplateFolderCache
::
TemplateFolderCache
(
b
ool
_bAutoStoreState
)
:
m_pImpl
(
new
TemplateFolderCacheImpl
(
_bAutoStoreState
)
)
:
m_pImpl
(
new
TemplateFolderCacheImpl
(
_bAutoStoreState
)
)
{
{
}
}
...
@@ -855,13 +855,13 @@ namespace svt
...
@@ -855,13 +855,13 @@ namespace svt
}
}
sal_Bool
TemplateFolderCache
::
needsUpdate
(
sal_B
ool
_bForceCheck
)
bool
TemplateFolderCache
::
needsUpdate
(
b
ool
_bForceCheck
)
{
{
return
m_pImpl
->
needsUpdate
(
_bForceCheck
);
return
m_pImpl
->
needsUpdate
(
_bForceCheck
);
}
}
void
TemplateFolderCache
::
storeState
(
sal_B
ool
_bForceRetrieval
)
void
TemplateFolderCache
::
storeState
(
b
ool
_bForceRetrieval
)
{
{
m_pImpl
->
storeState
(
_bForceRetrieval
);
m_pImpl
->
storeState
(
_bForceRetrieval
);
}
}
...
...
svtools/source/uno/generictoolboxcontroller.cxx
Dosyayı görüntüle @
c849d750
...
@@ -59,7 +59,7 @@ GenericToolboxController::GenericToolboxController( const Reference< XComponentC
...
@@ -59,7 +59,7 @@ GenericToolboxController::GenericToolboxController( const Reference< XComponentC
,
m_nID
(
nID
)
,
m_nID
(
nID
)
{
{
// Initialization is done through ctor
// Initialization is done through ctor
m_bInitialized
=
sal_T
rue
;
m_bInitialized
=
t
rue
;
// insert main command to our listener map
// insert main command to our listener map
if
(
!
m_aCommandURL
.
isEmpty
()
)
if
(
!
m_aCommandURL
.
isEmpty
()
)
...
...
svtools/source/uno/toolboxcontroller.cxx
Dosyayı görüntüle @
c849d750
...
@@ -53,12 +53,12 @@ ToolboxController::ToolboxController(
...
@@ -53,12 +53,12 @@ ToolboxController::ToolboxController(
const
Reference
<
XComponentContext
>&
rxContext
,
const
Reference
<
XComponentContext
>&
rxContext
,
const
Reference
<
XFrame
>&
xFrame
,
const
Reference
<
XFrame
>&
xFrame
,
const
OUString
&
aCommandURL
)
:
const
OUString
&
aCommandURL
)
:
OPropertyContainer
(
GetBroadcastHelper
()
)
OPropertyContainer
(
GetBroadcastHelper
()
)
,
m_bSupportVisible
(
sal_False
)
,
m_bSupportVisible
(
false
)
,
m_bInitialized
(
sal_F
alse
)
,
m_bInitialized
(
f
alse
)
,
m_bDisposed
(
sal_F
alse
)
,
m_bDisposed
(
f
alse
)
,
m_nToolBoxId
(
SAL_MAX_UINT16
)
,
m_nToolBoxId
(
SAL_MAX_UINT16
)
,
m_xFrame
(
xFrame
)
,
m_xFrame
(
xFrame
)
,
m_xContext
(
rxContext
)
,
m_xContext
(
rxContext
)
,
m_aCommandURL
(
aCommandURL
)
,
m_aCommandURL
(
aCommandURL
)
,
m_aListenerContainer
(
m_aMutex
)
,
m_aListenerContainer
(
m_aMutex
)
...
@@ -80,9 +80,9 @@ ToolboxController::ToolboxController(
...
@@ -80,9 +80,9 @@ ToolboxController::ToolboxController(
ToolboxController
::
ToolboxController
()
:
ToolboxController
::
ToolboxController
()
:
OPropertyContainer
(
GetBroadcastHelper
())
OPropertyContainer
(
GetBroadcastHelper
())
,
m_bSupportVisible
(
sal_F
alse
)
,
m_bSupportVisible
(
f
alse
)
,
m_bInitialized
(
sal_F
alse
)
,
m_bInitialized
(
f
alse
)
,
m_bDisposed
(
sal_F
alse
)
,
m_bDisposed
(
f
alse
)
,
m_nToolBoxId
(
SAL_MAX_UINT16
)
,
m_nToolBoxId
(
SAL_MAX_UINT16
)
,
m_aListenerContainer
(
m_aMutex
)
,
m_aListenerContainer
(
m_aMutex
)
{
{
...
@@ -179,8 +179,8 @@ throw ( Exception, RuntimeException, std::exception )
...
@@ -179,8 +179,8 @@ throw ( Exception, RuntimeException, std::exception )
if
(
!
bInitialized
)
if
(
!
bInitialized
)
{
{
SolarMutexGuard
aSolarMutexGuard
;
SolarMutexGuard
aSolarMutexGuard
;
m_bInitialized
=
sal_T
rue
;
m_bInitialized
=
t
rue
;
m_bSupportVisible
=
sal_F
alse
;
m_bSupportVisible
=
f
alse
;
PropertyValue
aPropValue
;
PropertyValue
aPropValue
;
for
(
int
i
=
0
;
i
<
aArguments
.
getLength
();
i
++
)
for
(
int
i
=
0
;
i
<
aArguments
.
getLength
();
i
++
)
{
{
...
@@ -271,7 +271,7 @@ throw (::com::sun::star::uno::RuntimeException, std::exception)
...
@@ -271,7 +271,7 @@ throw (::com::sun::star::uno::RuntimeException, std::exception)
++
pIter
;
++
pIter
;
}
}
m_bDisposed
=
sal_T
rue
;
m_bDisposed
=
t
rue
;
}
}
void
SAL_CALL
ToolboxController
::
addEventListener
(
const
Reference
<
XEventListener
>&
xListener
)
void
SAL_CALL
ToolboxController
::
addEventListener
(
const
Reference
<
XEventListener
>&
xListener
)
...
@@ -614,18 +614,18 @@ void ToolboxController::unbindListener()
...
@@ -614,18 +614,18 @@ void ToolboxController::unbindListener()
}
}
}
}
sal_B
ool
ToolboxController
::
isBound
()
const
b
ool
ToolboxController
::
isBound
()
const
{
{
SolarMutexGuard
aSolarMutexGuard
;
SolarMutexGuard
aSolarMutexGuard
;
if
(
!
m_bInitialized
)
if
(
!
m_bInitialized
)
return
sal_F
alse
;
return
f
alse
;
URLToDispatchMap
::
const_iterator
pIter
=
m_aListenerMap
.
find
(
m_aCommandURL
);
URLToDispatchMap
::
const_iterator
pIter
=
m_aListenerMap
.
find
(
m_aCommandURL
);
if
(
pIter
!=
m_aListenerMap
.
end
()
)
if
(
pIter
!=
m_aListenerMap
.
end
()
)
return
(
pIter
->
second
.
is
()
);
return
pIter
->
second
.
is
(
);
return
sal_F
alse
;
return
f
alse
;
}
}
void
ToolboxController
::
updateStatus
()
void
ToolboxController
::
updateStatus
()
...
@@ -727,7 +727,7 @@ com::sun::star::uno::Reference< com::sun::star::beans::XPropertySetInfo > SAL_C
...
@@ -727,7 +727,7 @@ com::sun::star::uno::Reference< com::sun::star::beans::XPropertySetInfo > SAL_C
return
new
::
cppu
::
OPropertyArrayHelper
(
aProps
);
return
new
::
cppu
::
OPropertyArrayHelper
(
aProps
);
}
}
void
ToolboxController
::
setSupportVisibleProperty
(
sal_B
ool
bValue
)
void
ToolboxController
::
setSupportVisibleProperty
(
b
ool
bValue
)
{
{
m_bSupportVisible
=
bValue
;
m_bSupportVisible
=
bValue
;
}
}
...
@@ -743,7 +743,7 @@ sal_Bool SAL_CALL ToolboxController::convertFastPropertyValue( com::sun::star::u
...
@@ -743,7 +743,7 @@ sal_Bool SAL_CALL ToolboxController::convertFastPropertyValue( com::sun::star::u
{
{
sal_Bool
aNewValue
(
sal_False
);
sal_Bool
aNewValue
(
sal_False
);
aValue
>>=
aNewValue
;
aValue
>>=
aNewValue
;
if
(
aNewValue
!=
m_bSupportVisible
)
if
(
aNewValue
!=
(
m_bSupportVisible
?
1
:
0
)
)
{
{
aConvertedValue
<<=
aNewValue
;
aConvertedValue
<<=
aNewValue
;
aOldValue
<<=
m_bSupportVisible
;
aOldValue
<<=
m_bSupportVisible
;
...
...
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