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
e5da350e
Kaydet (Commit)
e5da350e
authored
Agu 11, 2015
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
loplugin: defaultparams
Change-Id: Ibff26c023655d36f0fa71ead399a6116c2988607
üst
c85cda1e
Hide whitespace changes
Inline
Side-by-side
Showing
51 changed files
with
156 additions
and
159 deletions
+156
-159
app.cxx
sfx2/source/appl/app.cxx
+2
-2
appinit.cxx
sfx2/source/appl/appinit.cxx
+1
-1
appopen.cxx
sfx2/source/appl/appopen.cxx
+1
-1
appserv.cxx
sfx2/source/appl/appserv.cxx
+2
-2
macroloader.cxx
sfx2/source/appl/macroloader.cxx
+1
-1
newhelp.cxx
sfx2/source/appl/newhelp.cxx
+2
-2
sfxpicklist.cxx
sfx2/source/appl/sfxpicklist.cxx
+1
-1
workwin.cxx
sfx2/source/appl/workwin.cxx
+2
-2
fltfnc.cxx
sfx2/source/bastyp/fltfnc.cxx
+1
-1
helper.cxx
sfx2/source/bastyp/helper.cxx
+2
-2
dispatch.cxx
sfx2/source/control/dispatch.cxx
+2
-2
shell.cxx
sfx2/source/control/shell.cxx
+1
-1
basedlgs.cxx
sfx2/source/dialog/basedlgs.cxx
+1
-1
dinfdlg.cxx
sfx2/source/dialog/dinfdlg.cxx
+6
-6
newstyle.cxx
sfx2/source/dialog/newstyle.cxx
+1
-1
printopt.cxx
sfx2/source/dialog/printopt.cxx
+9
-9
securitypage.cxx
sfx2/source/dialog/securitypage.cxx
+1
-1
splitwin.cxx
sfx2/source/dialog/splitwin.cxx
+13
-13
srchdlg.cxx
sfx2/source/dialog/srchdlg.cxx
+1
-1
styledlg.cxx
sfx2/source/dialog/styledlg.cxx
+1
-1
taskpane.cxx
sfx2/source/dialog/taskpane.cxx
+2
-2
templateinfodlg.cxx
sfx2/source/dialog/templateinfodlg.cxx
+1
-1
templdlg.cxx
sfx2/source/dialog/templdlg.cxx
+16
-18
versdlg.cxx
sfx2/source/dialog/versdlg.cxx
+3
-3
SfxDocumentMetaData.cxx
sfx2/source/doc/SfxDocumentMetaData.cxx
+1
-2
docfile.cxx
sfx2/source/doc/docfile.cxx
+9
-9
guisaveas.cxx
sfx2/source/doc/guisaveas.cxx
+1
-1
new.cxx
sfx2/source/doc/new.cxx
+1
-1
objcont.cxx
sfx2/source/doc/objcont.cxx
+6
-6
objembed.cxx
sfx2/source/doc/objembed.cxx
+2
-2
objmisc.cxx
sfx2/source/doc/objmisc.cxx
+6
-6
objserv.cxx
sfx2/source/doc/objserv.cxx
+7
-7
objstor.cxx
sfx2/source/doc/objstor.cxx
+8
-8
objxtor.cxx
sfx2/source/doc/objxtor.cxx
+2
-2
printhelper.cxx
sfx2/source/doc/printhelper.cxx
+1
-1
sfxbasemodel.cxx
sfx2/source/doc/sfxbasemodel.cxx
+9
-9
templatedlg.cxx
sfx2/source/doc/templatedlg.cxx
+1
-1
nochaos.cxx
sfx2/source/explorer/nochaos.cxx
+1
-1
virtmenu.cxx
sfx2/source/menu/virtmenu.cxx
+1
-1
eventsupplier.cxx
sfx2/source/notify/eventsupplier.cxx
+1
-1
AccessibleTitleBar.cxx
sfx2/source/sidebar/AccessibleTitleBar.cxx
+1
-1
SidebarController.cxx
sfx2/source/sidebar/SidebarController.cxx
+3
-3
TabBar.cxx
sfx2/source/sidebar/TabBar.cxx
+1
-1
TitleBar.cxx
sfx2/source/sidebar/TitleBar.cxx
+1
-1
StyleManager.cxx
sfx2/source/styles/StyleManager.cxx
+1
-1
frmload.cxx
sfx2/source/view/frmload.cxx
+1
-1
ipclient.cxx
sfx2/source/view/ipclient.cxx
+1
-1
sfxbasecontroller.cxx
sfx2/source/view/sfxbasecontroller.cxx
+1
-1
viewfrm.cxx
sfx2/source/view/viewfrm.cxx
+7
-7
viewprn.cxx
sfx2/source/view/viewprn.cxx
+2
-2
viewsh.cxx
sfx2/source/view/viewsh.cxx
+7
-7
No files found.
sfx2/source/appl/app.cxx
Dosyayı görüntüle @
e5da350e
...
...
@@ -490,7 +490,7 @@ IMPL_LINK_TYPED( SfxApplication, GlobalBasicErrorHdl_Impl, StarBASIC*, pStarBasi
#ifndef DISABLE_DYNLOADING
// load basctl module
osl
::
Module
aMod
;
aMod
.
loadRelative
(
&
thisModule
,
SVLIBRARY
(
"basctl"
)
,
0
);
aMod
.
loadRelative
(
&
thisModule
,
SVLIBRARY
(
"basctl"
));
// get symbol
basicide_handle_basic_error
pSymbol
=
reinterpret_cast
<
basicide_handle_basic_error
>
(
aMod
.
getFunctionSymbol
(
"basicide_handle_basic_error"
));
...
...
@@ -588,7 +588,7 @@ void SfxApplication::MacroOrganizer( sal_Int16 nTabId )
#ifndef DISABLE_DYNLOADING
// load basctl module
osl
::
Module
aMod
;
aMod
.
loadRelative
(
&
thisModule
,
SVLIBRARY
(
"basctl"
)
,
0
);
aMod
.
loadRelative
(
&
thisModule
,
SVLIBRARY
(
"basctl"
));
// get symbol
basicide_macro_organizer
pSymbol
=
reinterpret_cast
<
basicide_macro_organizer
>
(
aMod
.
getFunctionSymbol
(
"basicide_macro_organizer"
));
...
...
sfx2/source/appl/appinit.cxx
Dosyayı görüntüle @
e5da350e
...
...
@@ -181,7 +181,7 @@ OUString GetSpecialCharsForEdit(vcl::Window* pParent, const vcl::Font& rFont)
#ifndef DISABLE_DYNLOADING
osl
::
Module
aMod
;
aMod
.
loadRelative
(
&
thisModule
,
SVLIBRARY
(
"cui"
)
,
0
);
aMod
.
loadRelative
(
&
thisModule
,
SVLIBRARY
(
"cui"
));
// get symbol
OUString
aSymbol
(
"GetSpecialCharsForEdit"
);
...
...
sfx2/source/appl/appopen.cxx
Dosyayı görüntüle @
e5da350e
...
...
@@ -200,7 +200,7 @@ sal_uInt32 CheckPasswd_Impl
if
(
(
!
pFile
->
GetFilter
()
||
pFile
->
IsStorage
()
)
)
{
uno
::
Reference
<
embed
::
XStorage
>
xStorage
=
pFile
->
GetStorage
(
true
);
uno
::
Reference
<
embed
::
XStorage
>
xStorage
=
pFile
->
GetStorage
();
if
(
xStorage
.
is
()
)
{
uno
::
Reference
<
beans
::
XPropertySet
>
xStorageProps
(
xStorage
,
uno
::
UNO_QUERY
);
...
...
sfx2/source/appl/appserv.cxx
Dosyayı görüntüle @
e5da350e
...
...
@@ -293,7 +293,7 @@ void SfxApplication::MiscExec_Impl( SfxRequest& rReq )
if
(
!
pFrame
||
!
pFrame
->
GetWindow
().
IsReallyVisible
()
)
continue
;
if
(
pObjSh
->
PrepareClose
(
true
))
if
(
pObjSh
->
PrepareClose
())
pObjSh
->
SetModified
(
false
);
else
return
;
...
...
@@ -853,7 +853,7 @@ OUString ChooseMacro( const Reference< XModel >& rxLimitToDocument, bool bChoose
osl
::
Module
aMod
;
// load basctl module
aMod
.
loadRelative
(
&
thisModule
,
SVLIBRARY
(
"basctl"
)
,
0
);
aMod
.
loadRelative
(
&
thisModule
,
SVLIBRARY
(
"basctl"
));
// get symbol
basicide_choose_macro
pSymbol
=
reinterpret_cast
<
basicide_choose_macro
>
(
aMod
.
getFunctionSymbol
(
"basicide_choose_macro"
));
...
...
sfx2/source/appl/macroloader.cxx
Dosyayı görüntüle @
e5da350e
...
...
@@ -272,7 +272,7 @@ ErrCode SfxMacroLoader::loadMacro( const OUString& rURL, com::sun::star::uno::An
if
(
bSetDocMacroMode
)
{
// mark document: it executes an own macro, so it's in a modal mode
pDoc
->
SetMacroMode_Impl
(
true
);
pDoc
->
SetMacroMode_Impl
();
}
if
(
bSetGlobalThisComponent
)
...
...
sfx2/source/appl/newhelp.cxx
Dosyayı görüntüle @
e5da350e
...
...
@@ -1227,7 +1227,7 @@ void BookmarksBox_Impl::DoAction( sal_uInt16 nAction )
RemoveEntry
(
nPos
);
OUString
aImageURL
=
IMAGE_URL
;
aImageURL
+=
INetURLObject
(
*
pURL
).
GetHost
();
nPos
=
InsertEntry
(
aDlg
->
GetTitle
(),
SvFileInformationManager
::
GetImage
(
INetURLObject
(
aImageURL
)
,
false
)
);
nPos
=
InsertEntry
(
aDlg
->
GetTitle
(),
SvFileInformationManager
::
GetImage
(
INetURLObject
(
aImageURL
)
)
);
SetEntryData
(
nPos
,
new
OUString
(
*
pURL
)
);
SelectEntryPos
(
nPos
);
delete
pURL
;
...
...
@@ -1370,7 +1370,7 @@ void BookmarksTabPage_Impl::AddBookmarks( const OUString& rTitle, const OUString
{
OUString
aImageURL
=
IMAGE_URL
;
aImageURL
+=
INetURLObject
(
rURL
).
GetHost
();
sal_uInt16
nPos
=
m_pBookmarksBox
->
InsertEntry
(
rTitle
,
SvFileInformationManager
::
GetImage
(
INetURLObject
(
aImageURL
)
,
false
)
);
sal_uInt16
nPos
=
m_pBookmarksBox
->
InsertEntry
(
rTitle
,
SvFileInformationManager
::
GetImage
(
INetURLObject
(
aImageURL
)
)
);
m_pBookmarksBox
->
SetEntryData
(
nPos
,
new
OUString
(
rURL
)
);
}
...
...
sfx2/source/appl/sfxpicklist.cxx
Dosyayı görüntüle @
e5da350e
...
...
@@ -184,7 +184,7 @@ void SfxPickList::AddDocumentToPickList( SfxObjectShell* pDocSh )
return
;
// ignore hidden documents
if
(
!
SfxViewFrame
::
GetFirst
(
pDocSh
,
true
)
)
if
(
!
SfxViewFrame
::
GetFirst
(
pDocSh
)
)
return
;
OUString
aTitle
=
pDocSh
->
GetTitle
(
SFX_TITLE_PICKLIST
);
...
...
sfx2/source/appl/workwin.cxx
Dosyayı görüntüle @
e5da350e
...
...
@@ -299,13 +299,13 @@ throw (css::uno::RuntimeException, std::exception)
{
m_pWrkWin
->
MakeVisible_Impl
(
true
);
m_pWrkWin
->
ShowChildren_Impl
();
m_pWrkWin
->
ArrangeChildren_Impl
(
true
);
m_pWrkWin
->
ArrangeChildren_Impl
();
}
else
if
(
eLayoutEvent
==
css
::
frame
::
LayoutManagerEvents
::
INVISIBLE
)
{
m_pWrkWin
->
MakeVisible_Impl
(
false
);
m_pWrkWin
->
HideChildren_Impl
();
m_pWrkWin
->
ArrangeChildren_Impl
(
true
);
m_pWrkWin
->
ArrangeChildren_Impl
();
}
else
if
(
eLayoutEvent
==
css
::
frame
::
LayoutManagerEvents
::
LOCK
)
{
...
...
sfx2/source/bastyp/fltfnc.cxx
Dosyayı görüntüle @
e5da350e
...
...
@@ -426,7 +426,7 @@ sal_uInt32 SfxFilterMatcher::GuessFilterIgnoringContent(
sal_uInt32
SfxFilterMatcher
::
GuessFilter
(
SfxMedium
&
rMedium
,
const
SfxFilter
**
ppFilter
,
SfxFilterFlags
nMust
,
SfxFilterFlags
nDont
)
const
{
return
GuessFilterControlDefaultUI
(
rMedium
,
ppFilter
,
nMust
,
nDont
,
true
);
return
GuessFilterControlDefaultUI
(
rMedium
,
ppFilter
,
nMust
,
nDont
);
}
...
...
sfx2/source/bastyp/helper.cxx
Dosyayı görüntüle @
e5da350e
...
...
@@ -71,7 +71,7 @@ std::vector<OUString> SfxContentHelper::GetResultSet( const OUString& rURL )
try
{
xDynResultSet
=
aCnt
.
createDynamicCursor
(
aProps
,
::
ucbhelper
::
INCLUDE_FOLDERS_AND_DOCUMENTS
);
xDynResultSet
=
aCnt
.
createDynamicCursor
(
aProps
);
if
(
xDynResultSet
.
is
()
)
xResultSet
=
xDynResultSet
->
getStaticResultSet
();
}
...
...
@@ -143,7 +143,7 @@ std::vector< OUString > SfxContentHelper::GetHelpTreeViewContents( const OUStrin
try
{
uno
::
Reference
<
ucb
::
XDynamicResultSet
>
xDynResultSet
;
xDynResultSet
=
aCnt
.
createDynamicCursor
(
aProps
,
::
ucbhelper
::
INCLUDE_FOLDERS_AND_DOCUMENTS
);
xDynResultSet
=
aCnt
.
createDynamicCursor
(
aProps
);
if
(
xDynResultSet
.
is
()
)
xResultSet
=
xDynResultSet
->
getStaticResultSet
();
}
...
...
sfx2/source/control/dispatch.cxx
Dosyayı görüntüle @
e5da350e
...
...
@@ -502,7 +502,7 @@ IMPL_LINK_NOARG_TYPED( SfxDispatcher, EventHdl_Impl, Idle *, void )
Update_Impl
();
SfxBindings
*
pBindings
=
GetBindings
();
if
(
pBindings
)
pBindings
->
StartUpdate_Impl
(
false
);
pBindings
->
StartUpdate_Impl
();
}
/** With this method it can be tested whether the <SfxShell> rShell is on the
...
...
@@ -754,7 +754,7 @@ void SfxDispatcher::DoDeactivate_Impl(bool bMDI, SfxViewFrame* pNew)
SfxBindings
*
pBind
=
GetBindings
();
while
(
pBind
)
{
pBind
->
HidePopupCtrls_Impl
(
true
);
pBind
->
HidePopupCtrls_Impl
();
pBind
=
pBind
->
GetSubBindings_Impl
();
}
...
...
sfx2/source/control/shell.cxx
Dosyayı görüntüle @
e5da350e
...
...
@@ -259,7 +259,7 @@ void SfxShell::Invalidate_Impl( SfxBindings& rBindings, sal_uInt16 nId )
{
if
(
nId
==
0
)
{
rBindings
.
InvalidateShell
(
*
this
,
false
);
rBindings
.
InvalidateShell
(
*
this
);
}
else
{
...
...
sfx2/source/dialog/basedlgs.cxx
Dosyayı görüntüle @
e5da350e
...
...
@@ -674,7 +674,7 @@ IMPL_LINK_NOARG(SfxSingleTabDialog, OKHdl_Impl)
EndDialog
(
RET_OK
);
}
else
EndDialog
(
RET_CANCEL
);
EndDialog
();
return
0
;
}
...
...
sfx2/source/dialog/dinfdlg.cxx
Dosyayı görüntüle @
e5da350e
...
...
@@ -181,7 +181,7 @@ OUString ConvertDateTime_Impl( const OUString& rName,
const
OUString
pDelim
(
", "
);
OUString
aStr
(
rWrapper
.
getDate
(
aD
)
);
aStr
+=
pDelim
;
aStr
+=
rWrapper
.
getTime
(
aT
,
true
,
false
);
aStr
+=
rWrapper
.
getTime
(
aT
,
true
);
OUString
aAuthor
=
comphelper
::
string
::
stripStart
(
rName
,
' '
);
if
(
!
aAuthor
.
isEmpty
())
{
...
...
@@ -716,10 +716,10 @@ void SfxDocumentDescPage::Reset(const SfxItemSet *rSet)
SFX_ITEMSET_ARG
(
rSet
,
pROItem
,
SfxBoolItem
,
SID_DOC_READONLY
,
false
);
if
(
pROItem
&&
pROItem
->
GetValue
()
)
{
m_pTitleEd
->
SetReadOnly
(
true
);
m_pThemaEd
->
SetReadOnly
(
true
);
m_pKeywordsEd
->
SetReadOnly
(
true
);
m_pCommentEd
->
SetReadOnly
(
true
);
m_pTitleEd
->
SetReadOnly
();
m_pThemaEd
->
SetReadOnly
();
m_pKeywordsEd
->
SetReadOnly
();
m_pCommentEd
->
SetReadOnly
();
}
}
...
...
@@ -879,7 +879,7 @@ IMPL_STATIC_LINK_NOARG(SfxDocumentPage, ChangePassHdl)
OUString
aDocName
;
sfx2
::
RequestPassword
(
pFilter
,
aDocName
,
pMedSet
);
pShell
->
SetModified
(
true
);
pShell
->
SetModified
();
}
while
(
false
);
return
0
;
...
...
sfx2/source/dialog/newstyle.cxx
Dosyayı görüntüle @
e5da350e
...
...
@@ -32,7 +32,7 @@ IMPL_LINK( SfxNewStyleDlg, OKHdl, Control *, pControl )
{
(
void
)
pControl
;
//unused
const
OUString
aName
(
m_pColBox
->
GetText
()
);
SfxStyleSheetBase
*
pStyle
=
rPool
.
Find
(
aName
,
rPool
.
GetSearchFamily
()
,
SFXSTYLEBIT_ALL
);
SfxStyleSheetBase
*
pStyle
=
rPool
.
Find
(
aName
,
rPool
.
GetSearchFamily
()
);
if
(
pStyle
)
{
if
(
!
pStyle
->
IsUserDefined
()
)
...
...
sfx2/source/dialog/printopt.cxx
Dosyayı görüntüle @
e5da350e
...
...
@@ -66,11 +66,11 @@ SfxCommonPrintOptionsTabPage::SfxCommonPrintOptionsTabPage( vcl::Window* pParent
if
(
bOutputForPrinter
)
{
m_pPrinterOutputRB
->
Check
(
true
);
m_pPrinterOutputRB
->
Check
();
}
else
{
m_pPrintFileOutputRB
->
Check
(
true
);
m_pPrintFileOutputRB
->
Check
();
m_pPDFCB
->
Disable
();
}
...
...
@@ -198,27 +198,27 @@ void SfxCommonPrintOptionsTabPage::ImplUpdateControls( const PrinterOptions* pCu
m_pReduceTransparencyCB
->
Check
(
pCurrentOptions
->
IsReduceTransparency
()
);
if
(
pCurrentOptions
->
GetReducedTransparencyMode
()
==
PRINTER_TRANSPARENCY_AUTO
)
m_pReduceTransparencyAutoRB
->
Check
(
true
);
m_pReduceTransparencyAutoRB
->
Check
();
else
m_pReduceTransparencyNoneRB
->
Check
(
true
);
m_pReduceTransparencyNoneRB
->
Check
(
);
m_pReduceGradientsCB
->
Check
(
pCurrentOptions
->
IsReduceGradients
()
);
if
(
pCurrentOptions
->
GetReducedGradientMode
()
==
PRINTER_GRADIENT_STRIPES
)
m_pReduceGradientsStripesRB
->
Check
(
true
);
m_pReduceGradientsStripesRB
->
Check
();
else
m_pReduceGradientsColorRB
->
Check
(
true
);
m_pReduceGradientsColorRB
->
Check
();
m_pReduceGradientsStepCountNF
->
SetValue
(
pCurrentOptions
->
GetReducedGradientStepCount
()
);
m_pReduceBitmapsCB
->
Check
(
pCurrentOptions
->
IsReduceBitmaps
()
);
if
(
pCurrentOptions
->
GetReducedBitmapMode
()
==
PRINTER_BITMAP_OPTIMAL
)
m_pReduceBitmapsOptimalRB
->
Check
(
true
);
m_pReduceBitmapsOptimalRB
->
Check
();
else
if
(
pCurrentOptions
->
GetReducedBitmapMode
()
==
PRINTER_BITMAP_NORMAL
)
m_pReduceBitmapsNormalRB
->
Check
(
true
);
m_pReduceBitmapsNormalRB
->
Check
();
else
m_pReduceBitmapsResolutionRB
->
Check
(
true
);
m_pReduceBitmapsResolutionRB
->
Check
();
const
sal_uInt16
nDPI
=
pCurrentOptions
->
GetReducedBitmapResolution
();
...
...
sfx2/source/dialog/securitypage.cxx
Dosyayı görüntüle @
e5da350e
...
...
@@ -361,7 +361,7 @@ IMPL_LINK_NOARG(SfxSecurityPage_Impl, RecordChangesCBToggleHdl)
}
if
(
bAlreadyDone
)
m_pRecordChangesCB
->
Check
(
true
);
// restore original state
m_pRecordChangesCB
->
Check
();
// restore original state
else
{
// remember required values to change protection and change recording in
...
...
sfx2/source/dialog/splitwin.cxx
Dosyayı görüntüle @
e5da350e
...
...
@@ -112,7 +112,7 @@ public:
SetAlign
(
pOwner
->
GetAlign
()
);
Actualize
();
ShowAutoHideButton
(
pOwner
->
IsAutoHideButtonVisible
()
);
ShowFadeInHideButton
(
true
);
ShowFadeInHideButton
();
}
virtual
~
SfxEmptySplitWin_Impl
()
...
...
@@ -211,7 +211,7 @@ SfxSplitWindow::SfxSplitWindow( vcl::Window* pParent, SfxChildAlignment eAl,
if
(
bWithButtons
)
{
ShowAutoHideButton
(
false
);
// no autohide button (pin) anymore
ShowFadeOutButton
(
true
);
ShowFadeOutButton
();
}
// Set SV-Alignment
...
...
@@ -587,7 +587,7 @@ void SfxSplitWindow::MoveWindow( SfxDockingWindow* pDockWin, const Size& rSize,
sal_uInt16
nL
,
nP
;
GetWindowPos
(
pDockWin
,
nL
,
nP
);
if
(
nLine
>
nL
&&
GetItemCount
(
GetItemId
(
nL
,
0
)
)
==
1
)
if
(
nLine
>
nL
&&
GetItemCount
(
GetItemId
(
nL
)
)
==
1
)
{
// If the last window is removed from its line, then everything slips
// one line to the front!
...
...
@@ -700,13 +700,13 @@ void SfxSplitWindow::InsertWindow_Impl( SfxDock_Impl* pDock,
DeactivateUpdateMode
*
pDeactivateUpdateMode
=
new
DeactivateUpdateMode
(
*
this
);
if
(
bNewLine
||
nLine
==
GetItemCount
(
0
)
)
if
(
bNewLine
||
nLine
==
GetItemCount
()
)
{
// An existing row should not be inserted, instead a new one
// will be created
sal_uInt16
nId
=
1
;
for
(
sal_uInt16
n
=
0
;
n
<
GetItemCount
(
0
);
n
++
)
for
(
sal_uInt16
n
=
0
;
n
<
GetItemCount
();
n
++
)
{
if
(
GetItemId
(
n
)
>=
nId
)
nId
=
GetItemId
(
n
)
+
1
;
...
...
@@ -730,7 +730,7 @@ void SfxSplitWindow::InsertWindow_Impl( SfxDock_Impl* pDock,
// SplitWindows are once created in SFX and when inserting the first
// DockingWindows is made visible.
if
(
GetItemCount
(
0
)
==
1
&&
GetItemCount
(
1
)
==
1
)
if
(
GetItemCount
()
==
1
&&
GetItemCount
(
1
)
==
1
)
{
// The Rearranging in WorkWindow and a Show() on the SplitWindow is
// caused by SfxDockingwindow (->SfxWorkWindow::ConfigChild_Impl)
...
...
@@ -813,7 +813,7 @@ void SfxSplitWindow::RemoveWindow( SfxDockingWindow* pDockWin, bool bHide )
// SplitWindows are once created in SFX and is made invisible after
// removing the last DockingWindows.
if
(
GetItemCount
(
nSet
)
==
1
&&
GetItemCount
(
0
)
==
1
)
if
(
GetItemCount
(
nSet
)
==
1
&&
GetItemCount
()
==
1
)
{
// The Rearranging in WorkWindow is caused by SfxDockingwindow
Hide
();
...
...
@@ -912,7 +912,7 @@ sal_uInt16 SfxSplitWindow::GetLineCount() const
Returns the number of rows = number of sub-itemsets in the root set.
*/
{
return
GetItemCount
(
0
);
return
GetItemCount
();
}
...
...
@@ -950,7 +950,7 @@ sal_uInt16 SfxSplitWindow::GetWindowCount() const
Returns the total number of windows
*/
{
return
GetItemCount
(
0
);
return
GetItemCount
();
}
...
...
@@ -967,7 +967,7 @@ IMPL_LINK_TYPED( SfxSplitWindow, TimerHdl, Timer*, pTimer, void)
if
(
pTimer
)
pTimer
->
Stop
();
if
(
CursorIsOverRect
(
false
)
||
!
pTimer
)
if
(
CursorIsOverRect
()
||
!
pTimer
)
{
// If the cursor is within the window, display the SplitWindow and set
// up the timer for close
...
...
@@ -1100,7 +1100,7 @@ void SfxSplitWindow::SetPinned_Impl( bool bOn )
return
;
bPinned
=
bOn
;
if
(
GetItemCount
(
0
)
==
0
)
if
(
GetItemCount
()
==
0
)
return
;
if
(
!
bOn
)
...
...
@@ -1130,7 +1130,7 @@ void SfxSplitWindow::SetPinned_Impl( bool bOn )
{
pEmptyWin
->
nState
&=
~
1
;
SetOutputSizePixel
(
GetFloatingWindow
()
->
GetOutputSizePixel
()
);
SetFloatingMode
(
false
);
SetFloatingMode
();
if
(
pEmptyWin
->
bFadeIn
)
{
...
...
@@ -1154,7 +1154,7 @@ void SfxSplitWindow::SetFadeIn_Impl( bool bOn )
if
(
bOn
==
pEmptyWin
->
bFadeIn
)
return
;
if
(
GetItemCount
(
0
)
==
0
)
if
(
GetItemCount
()
==
0
)
return
;
pEmptyWin
->
bFadeIn
=
bOn
;
...
...
sfx2/source/dialog/srchdlg.cxx
Dosyayı görüntüle @
e5da350e
...
...
@@ -104,7 +104,7 @@ void SearchDialog::LoadConfig()
}
}
else
m_pWrapAroundBox
->
Check
(
true
);
m_pWrapAroundBox
->
Check
();
}
void
SearchDialog
::
SaveConfig
()
...
...
sfx2/source/dialog/styledlg.cxx
Dosyayı görüntüle @
e5da350e
...
...
@@ -147,7 +147,7 @@ IMPL_LINK( SfxStyleDialog, CancelHdl, Button *, pButton )
if
(
pPage
)
pPage
->
Reset
(
GetInputSetImpl
()
);
EndDialog
(
RET_CANCEL
);
EndDialog
();
return
0
;
}
...
...
sfx2/source/dialog/taskpane.cxx
Dosyayı görüntüle @
e5da350e
...
...
@@ -992,7 +992,7 @@ namespace sfx2
break
;
case
MID_LOCK_TASK_PANEL
:
m_rDockingWindow
.
SetFloatingMode
(
false
);
m_rDockingWindow
.
SetFloatingMode
();
break
;
case
MID_LAYOUT_DRAWERS
:
...
...
@@ -1212,7 +1212,7 @@ namespace sfx2
SfxResId
(
STR_SFX_UNDOCK
).
toString
()
);
pMenu
->
RemoveDisabledEntries
(
false
,
false
);
pMenu
->
RemoveDisabledEntries
(
false
);
return
pMenu
;
}
...
...
sfx2/source/dialog/templateinfodlg.cxx
Dosyayı görüntüle @
e5da350e
...
...
@@ -101,7 +101,7 @@ void SfxTemplateInfoDlg::loadDocument(const OUString &rURL)
if
(
xDisp
.
is
()
)
{
mpPreviewView
->
EnableInput
(
false
,
true
);
mpPreviewView
->
EnableInput
(
false
);
bool
b
=
true
;
uno
::
Sequence
<
beans
::
PropertyValue
>
aArgs
(
4
);
...
...
sfx2/source/dialog/templdlg.cxx
Dosyayı görüntüle @
e5da350e
...
...
@@ -949,7 +949,7 @@ SfxStyleSheetBase *SfxCommonTemplateDialog_Impl::GetSelectedStyle() const
return
NULL
;
const
OUString
aTemplName
(
GetSelectedEntry
()
);
const
SfxStyleFamilyItem
*
pItem
=
GetFamilyItem_Impl
();
return
pStyleSheetPool
->
Find
(
aTemplName
,
pItem
->
GetFamily
()
,
SFXSTYLEBIT_ALL
);
return
pStyleSheetPool
->
Find
(
aTemplName
,
pItem
->
GetFamily
()
);
}
/**
...
...
@@ -972,7 +972,7 @@ void SfxCommonTemplateDialog_Impl::SelectStyle(const OUString &rStr)
if
(
!
pItem
)
return
;
const
SfxStyleFamily
eFam
=
pItem
->
GetFamily
();
SfxStyleSheetBase
*
pStyle
=
pStyleSheetPool
->
Find
(
rStr
,
eFam
,
SFXSTYLEBIT_ALL
);
SfxStyleSheetBase
*
pStyle
=
pStyleSheetPool
->
Find
(
rStr
,
eFam
);
if
(
pStyle
)
{
bool
bReadWrite
=
!
(
pStyle
->
GetMask
()
&
SFXSTYLEBIT_READONLY
);
...
...
@@ -1176,7 +1176,7 @@ void SfxCommonTemplateDialog_Impl::UpdateStyles_Impl(sal_uInt16 nFlags)
pItem
=
GetFamilyItem_Impl
();
if
((
nFlags
&
UPDATE_FAMILY
)
==
UPDATE_FAMILY
)
// Update view type list (Hierarchical, All, etc.
{
CheckItem
(
nActFamily
,
true
);
// check Button in Toolbox
CheckItem
(
nActFamily
);
// check Button in Toolbox
aFilterLb
->
SetUpdateMode
(
false
);
aFilterLb
->
Clear
();
//insert hierarchical at the beginning
...
...
@@ -1303,12 +1303,12 @@ void SfxCommonTemplateDialog_Impl::SetWaterCanState(const SfxBoolItem *pItem)
if
(
pItem
&&
!
bWaterDisabled
)
{
CheckItem
(
SID_STYLE_WATERCAN
,
pItem
->
GetValue
());
EnableItem
(
SID_STYLE_WATERCAN
,
true
);
EnableItem
(
SID_STYLE_WATERCAN
);
}
else
{
if
(
!
bWaterDisabled
)
EnableItem
(
SID_STYLE_WATERCAN
,
true
);
EnableItem
(
SID_STYLE_WATERCAN
);
else
EnableItem
(
SID_STYLE_WATERCAN
,
false
);
}
...
...
@@ -1411,7 +1411,7 @@ void SfxCommonTemplateDialog_Impl::Update_Impl()
else
if
(
bDocChanged
)
{
// other DocShell -> all new
CheckItem
(
nActFamily
,
true
);
CheckItem
(
nActFamily
);
nActFilter
=
static_cast
<
sal_uInt16
>
(
LoadFactoryStyleFilter
(
pDocShell
)
);
if
(
SFXSTYLEBIT_ALL
==
nActFilter
)
nActFilter
=
pDocShell
->
GetAutoStyleFilterIndex
();
...
...
@@ -1427,7 +1427,7 @@ void SfxCommonTemplateDialog_Impl::Update_Impl()
else
{
// other filters for automatic
CheckItem
(
nActFamily
,
true
);
CheckItem
(
nActFamily
);
const
SfxStyleFamilyItem
*
pStyleItem
=
GetFamilyItem_Impl
();
if
(
pStyleItem
&&
0
==
pStyleItem
->
GetFilterList
()[
nActFilter
]
->
nFlags
&&
nAppFilter
!=
pItem
->
GetValue
())
...
...
@@ -1508,9 +1508,7 @@ void SfxCommonTemplateDialog_Impl::Notify(SfxBroadcaster& /*rBC*/, const SfxHint
const
SfxStyleFamilyItem
*
pItem
=
GetFamilyItem_Impl
();
if
(
!
pItem
)
break
;
const
SfxStyleFamily
eFam
=
pItem
->
GetFamily
();
SfxStyleSheetBase
*
pStyle
=
pStyleSheetPool
->
Find
(
aStr
,
eFam
,
SFXSTYLEBIT_ALL
);
SfxStyleSheetBase
*
pStyle
=
pStyleSheetPool
->
Find
(
aStr
,
eFam
);
if
(
pStyle
)
{
bool
bReadWrite
=
!
(
pStyle
->
GetMask
()
&
SFXSTYLEBIT_READONLY
);
...
...
@@ -1958,7 +1956,7 @@ void SfxCommonTemplateDialog_Impl::DeleteHdl(void *)
// check the style is used or not
const
OUString
aTemplName
(
pTreeBox
?
pTreeBox
->
GetEntryText
(
pEntry
)
:
aFmtLb
->
GetEntryText
(
pEntry
));
SfxStyleSheetBase
*
pStyle
=
pStyleSheetPool
->
Find
(
aTemplName
,
pItem
->
GetFamily
()
,
SFXSTYLEBIT_ALL
);
SfxStyleSheetBase
*
pStyle
=
pStyleSheetPool
->
Find
(
aTemplName
,
pItem
->
GetFamily
()
);
if
(
pStyle
->
IsUsed
()
)
// pStyle is in use in the document?
{
...
...
@@ -2066,7 +2064,7 @@ void SfxCommonTemplateDialog_Impl::EnableDelete()
OSL_ENSURE
(
pStyle
,
"Style not found"
);
if
(
pStyle
&&
pStyle
->
IsUserDefined
())
{
EnableDel
(
true
);
EnableDel
();
}
else
{
...
...
@@ -2202,7 +2200,7 @@ PopupMenu* SfxCommonTemplateDialog_Impl::CreateContextMenu()
{
if
(
bBindingUpdate
)
{
pBindings
->
Invalidate
(
SID_STYLE_NEW
,
true
,
false
);
pBindings
->
Invalidate
(
SID_STYLE_NEW
,
true
);
pBindings
->
Update
(
SID_STYLE_NEW
);
bBindingUpdate
=
false
;
}
...
...
@@ -2303,15 +2301,15 @@ void SfxTemplateDialog_Impl::ClearFamilyList()
void
SfxCommonTemplateDialog_Impl
::
InvalidateBindings
()
{
pBindings
->
Invalidate
(
SID_STYLE_NEW_BY_EXAMPLE
,
true
,
false
);
pBindings
->
Invalidate
(
SID_STYLE_NEW_BY_EXAMPLE
,
true
);
pBindings
->
Update
(
SID_STYLE_NEW_BY_EXAMPLE
);
pBindings
->
Invalidate
(
SID_STYLE_UPDATE_BY_EXAMPLE
,
true
,
false
);
pBindings
->
Invalidate
(
SID_STYLE_UPDATE_BY_EXAMPLE
,
true
);
pBindings
->
Update
(
SID_STYLE_UPDATE_BY_EXAMPLE
);
pBindings
->
Invalidate
(
SID_STYLE_WATERCAN
,
true
,
false
);
pBindings
->
Invalidate
(
SID_STYLE_WATERCAN
,
true
);
pBindings
->
Update
(
SID_STYLE_WATERCAN
);
pBindings
->
Invalidate
(
SID_STYLE_NEW
,
true
,
false
);
pBindings
->
Invalidate
(
SID_STYLE_NEW
,
true
);
pBindings
->
Update
(
SID_STYLE_NEW
);
pBindings
->
Invalidate
(
SID_STYLE_DRAGHIERARCHIE
,
true
,
false
);
pBindings
->
Invalidate
(
SID_STYLE_DRAGHIERARCHIE
,
true
);
pBindings
->
Update
(
SID_STYLE_DRAGHIERARCHIE
);
}
...
...
sfx2/source/dialog/versdlg.cxx
Dosyayı görüntüle @
e5da350e
...
...
@@ -410,7 +410,7 @@ IMPL_LINK( SfxVersionDialog, ButtonHdl_Impl, Button*, pButton )
if
(
nRet
==
RET_OK
)
{
SfxStringItem
aComment
(
SID_DOCINFO_COMMENTS
,
aInfo
.
aComment
);
pObjShell
->
SetModified
(
true
);
pObjShell
->
SetModified
();
const
SfxPoolItem
*
aItems
[
2
];
aItems
[
0
]
=
&
aComment
;
aItems
[
1
]
=
NULL
;
...
...
@@ -424,7 +424,7 @@ IMPL_LINK( SfxVersionDialog, ButtonHdl_Impl, Button*, pButton )
if
(
pButton
==
m_pDeleteButton
&&
pEntry
)
{
pObjShell
->
GetMedium
()
->
RemoveVersion_Impl
(
static_cast
<
SfxVersionInfo
*>
(
pEntry
->
GetUserData
())
->
aName
);
pObjShell
->
SetModified
(
true
);
pObjShell
->
SetModified
();
m_pVersionBox
->
SetUpdateMode
(
false
);
m_pVersionBox
->
Clear
();
Init_Impl
();
...
...
@@ -492,7 +492,7 @@ SfxViewVersionDialog_Impl::SfxViewVersionDialog_Impl(vcl::Window *pParent, SfxVe
{
m_pOKButton
->
Hide
();
m_pCancelButton
->
Hide
();
m_pEdit
->
SetReadOnly
(
true
);
m_pEdit
->
SetReadOnly
();
SetText
(
SfxResId
(
STR_VIEWVERSIONCOMMENT
));
m_pCloseButton
->
GrabFocus
();
}
...
...
sfx2/source/doc/SfxDocumentMetaData.cxx
Dosyayı görüntüle @
e5da350e
...
...
@@ -1730,8 +1730,7 @@ SfxDocumentMetaData::getDocumentStatistics() throw (css::uno::RuntimeException,
stat
.
Name
=
OUString
::
createFromAscii
(
s_stdStats
[
i
]);
sal_Int32
val
;
css
::
uno
::
Any
any
;
if
(
!::
sax
::
Converter
::
convertNumber
(
val
,
text
,
0
,
std
::
numeric_limits
<
sal_Int32
>::
max
())
||
(
val
<
0
))
{
if
(
!::
sax
::
Converter
::
convertNumber
(
val
,
text
,
0
)
||
(
val
<
0
))
{
val
=
0
;
SAL_WARN
(
"sfx.doc"
,
"Invalid number: "
<<
text
);
}
...
...
sfx2/source/doc/docfile.cxx
Dosyayı görüntüle @
e5da350e
...
...
@@ -531,7 +531,7 @@ void SfxMedium::CloseInStream_Impl()
if
(
pImp
->
m_pInStream
&&
!
GetContent
().
is
()
)
{
CreateTempFile
(
true
);
CreateTempFile
();
return
;
}
...
...
@@ -1636,7 +1636,7 @@ bool SfxMedium::TransactedTransferForFS_Impl( const INetURLObject& aSource,
{
if
(
pImp
->
pTempFile
)
{
pImp
->
pTempFile
->
EnableKillingFile
(
true
);
pImp
->
pTempFile
->
EnableKillingFile
();
delete
pImp
->
pTempFile
;
pImp
->
pTempFile
=
NULL
;
}
...
...
@@ -1782,7 +1782,7 @@ void SfxMedium::Transfer_Impl()
// remove temporary file
if
(
pImp
->
pTempFile
)
{
pImp
->
pTempFile
->
EnableKillingFile
(
true
);
pImp
->
pTempFile
->
EnableKillingFile
();
delete
pImp
->
pTempFile
;
pImp
->
pTempFile
=
NULL
;
}
...
...
@@ -2773,7 +2773,7 @@ void SfxMedium::CompleteReOpen()
{
if
(
pImp
->
pTempFile
)
{
pImp
->
pTempFile
->
EnableKillingFile
(
true
);
pImp
->
pTempFile
->
EnableKillingFile
();
delete
pImp
->
pTempFile
;
}
pImp
->
pTempFile
=
pTmpFile
;
...
...
@@ -2782,7 +2782,7 @@ void SfxMedium::CompleteReOpen()
}
else
if
(
pTmpFile
)
{
pTmpFile
->
EnableKillingFile
(
true
);
pTmpFile
->
EnableKillingFile
();
delete
pTmpFile
;
}
...
...
@@ -3240,7 +3240,7 @@ void SfxMedium::CreateTempFile( bool bReplace )
}
pImp
->
pTempFile
=
new
::
utl
::
TempFile
();
pImp
->
pTempFile
->
EnableKillingFile
(
true
);
pImp
->
pTempFile
->
EnableKillingFile
();
pImp
->
m_aName
=
pImp
->
pTempFile
->
GetFileName
();
OUString
aTmpURL
=
pImp
->
pTempFile
->
GetURL
();
if
(
pImp
->
m_aName
.
isEmpty
()
||
aTmpURL
.
isEmpty
()
)
...
...
@@ -3339,7 +3339,7 @@ void SfxMedium::CreateTempFileNoCopy()
delete
pImp
->
pTempFile
;
pImp
->
pTempFile
=
new
::
utl
::
TempFile
();
pImp
->
pTempFile
->
EnableKillingFile
(
true
);
pImp
->
pTempFile
->
EnableKillingFile
();
pImp
->
m_aName
=
pImp
->
pTempFile
->
GetFileName
();
if
(
pImp
->
m_aName
.
isEmpty
()
)
{
...
...
@@ -3593,7 +3593,7 @@ OUString SfxMedium::SwitchDocumentToTempFile()
GetMedium_Impl
();
LockOrigFileOnDemand
(
false
,
false
);
CreateTempFile
(
true
);
CreateTempFile
();
GetMedium_Impl
();
if
(
pImp
->
xStream
.
is
()
)
...
...
@@ -3649,7 +3649,7 @@ bool SfxMedium::SwitchDocumentToFile( const OUString& aURL )
// open the temporary file based document
GetMedium_Impl
();
LockOrigFileOnDemand
(
false
,
false
);
CreateTempFile
(
true
);
CreateTempFile
();
GetMedium_Impl
();
if
(
pImp
->
xStream
.
is
()
)
...
...
sfx2/source/doc/guisaveas.cxx
Dosyayı görüntüle @
e5da350e
...
...
@@ -1326,7 +1326,7 @@ OUString ModelData_Impl::GetRecommendedName( const OUString& aSuggestedName, con
if
(
!
aExtension
.
isEmpty
()
)
aObj
.
SetExtension
(
aExtension
);
aRecommendedName
=
aObj
.
GetName
(
INetURLObject
::
DECODE_WITH_CHARSET
,
RTL_TEXTENCODING_UTF8
);
aRecommendedName
=
aObj
.
GetName
(
INetURLObject
::
DECODE_WITH_CHARSET
);
}
}
}
...
...
sfx2/source/doc/new.cxx
Dosyayı görüntüle @
e5da350e
...
...
@@ -407,7 +407,7 @@ SfxNewFileDialog_Impl::SfxNewFileDialog_Impl(
// update the template configuration if necessary
{
WaitObject
aWaitCursor
(
pAntiImplP
->
GetParent
()
);
aTemplates
.
Update
(
true
/* be smart */
);
aTemplates
.
Update
();
}
// fill the list boxes
const
sal_uInt16
nCount
=
aTemplates
.
GetRegionCount
();
...
...
sfx2/source/doc/objcont.cxx
Dosyayı görüntüle @
e5da350e
...
...
@@ -334,7 +334,7 @@ void SfxObjectShell::LoadStyles
DBG_ASSERT
(
pSourcePool
,
"Source-DocumentShell ohne StyleSheetPool"
);
SfxStyleSheetBasePool
*
pMyPool
=
GetStyleSheetPool
();
DBG_ASSERT
(
pMyPool
,
"Dest-DocumentShell ohne StyleSheetPool"
);
pSourcePool
->
SetSearchMask
(
SFX_STYLE_FAMILY_ALL
,
SFXSTYLEBIT_ALL
);
pSourcePool
->
SetSearchMask
(
SFX_STYLE_FAMILY_ALL
);
std
::
unique_ptr
<
Styles_Impl
[]
>
pFound
(
new
Styles_Impl
[
pSourcePool
->
Count
()]);
sal_uInt16
nFound
=
0
;
...
...
@@ -480,7 +480,7 @@ void SfxObjectShell::UpdateFromTemplate_Impl( )
{
// user refuses, so don't ask again for this document
SetQueryLoadTemplate