#pragma once
#include "ccrystaltextview.h"
+#include "ccrystaltextbuffer.h"
#include "wispelld.h"
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
-#if ! (defined(CE_FROM_DLL) || defined(CE_DLL_BUILD))
-#include "ccrystaleditview.inl"
-#endif
+inline bool CCrystalEditView::
+GetOverwriteMode ()
+const
+{
+ return m_bOvrMode;
+}
+
+inline void CCrystalEditView::SetOverwriteMode (bool bOvrMode /*= true*/ )
+{
+ m_bOvrMode = bOvrMode;
+}
+
+inline bool CCrystalEditView::
+GetDisableBSAtSOL ()
+const
+{
+ return m_bDisableBSAtSOL;
+}
+
+inline bool CCrystalEditView::GetAutoIndent ()
+const
+{
+ return m_bAutoIndent;
+}
+
+inline void CCrystalEditView::SetAutoIndent (bool bAutoIndent)
+{
+ m_bAutoIndent = bAutoIndent;
+}
+
+inline bool CCrystalEditView::GetInsertTabs ()
+const
+{
+ return m_pTextBuffer->GetInsertTabs();
+}
+
+inline void CCrystalEditView::SetInsertTabs (bool bInsertTabs)
+{
+ m_pTextBuffer->SetInsertTabs(bInsertTabs);
+}
//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
+++ /dev/null
-////////////////////////////////////////////////////////////////////////////
-// File: CCrystalEditView.inl
-// Version: 1.0.0.0
-// Created: 29-Dec-1998
-//
-// Author: Stcherbatchenko Andrei
-// E-mail: windfall@gmx.de
-//
-// Inline functions of Crystal Edit classes
-//
-// You are free to use or modify this code to the following restrictions:
-// - Acknowledge me somewhere in your about box, simple "Parts of code by.."
-// will be enough. If you can't (or don't want to), contact me personally.
-// - LEAVE THIS HEADER INTACT
-////////////////////////////////////////////////////////////////////////////
-
-////////////////////////////////////////////////////////////////////////////
-// 19-Jul-99
-// Ferdinand Prantl:
-// + FEATURE: see cpps ...
-//
-// ... it's being edited very rapidly so sorry for non-commented
-// and maybe "ugly" code ...
-////////////////////////////////////////////////////////////////////////////
-
-#ifndef __CCrystalEditView_INL_INCLUDED
-#define __CCrystalEditView_INL_INCLUDED
-
-#include "ccrystaleditview.h"
-#include "ccrystaltextbuffer.h"
-
-inline bool CCrystalEditView::
-GetOverwriteMode ()
-const
-{
- return m_bOvrMode;
-}
-
-inline void CCrystalEditView::SetOverwriteMode (bool bOvrMode /*= true*/ )
-{
- m_bOvrMode = bOvrMode;
-}
-
-inline bool CCrystalEditView::
-GetDisableBSAtSOL ()
-const
-{
- return m_bDisableBSAtSOL;
-}
-
-inline bool CCrystalEditView::GetAutoIndent ()
-const
-{
- return m_bAutoIndent;
-}
-
-inline void CCrystalEditView::SetAutoIndent (bool bAutoIndent)
-{
- m_bAutoIndent = bAutoIndent;
-}
-
-inline bool CCrystalEditView::GetInsertTabs ()
-const
-{
- return m_pTextBuffer->GetInsertTabs();
-}
-
-inline void CCrystalEditView::SetInsertTabs (bool bInsertTabs)
-{
- m_pTextBuffer->SetInsertTabs(bInsertTabs);
-}
-
-#endif
DECLARE_MESSAGE_MAP ()
};
-#if ! (defined(CE_FROM_DLL) || defined(CE_DLL_BUILD))
-#include "ccrystaltextbuffer.inl"
-#endif
+
+inline bool CCrystalTextBuffer::IsModified () const
+{
+ return m_bModified;
+}
+
+inline bool CCrystalTextBuffer::GetInsertTabs() const //UPDATE-BEGIN
+{
+ return m_bInsertTabs;
+}
+
+inline void CCrystalTextBuffer::SetInsertTabs(bool bInsertTabs)
+{
+ m_bInsertTabs = bInsertTabs;
+}
/////////////////////////////////////////////////////////////////////////////
+++ /dev/null
-////////////////////////////////////////////////////////////////////////////
-// File: CCrystalTextBuffer.inl
-// Version: 1.0.0.0
-// Created: 29-Dec-1998
-//
-// Author: Stcherbatchenko Andrei
-// E-mail: windfall@gmx.de
-//
-// Inline functions of Crystal Edit classes
-//
-// You are free to use or modify this code to the following restrictions:
-// - Acknowledge me somewhere in your about box, simple "Parts of code by.."
-// will be enough. If you can't (or don't want to), contact me personally.
-// - LEAVE THIS HEADER INTACT
-////////////////////////////////////////////////////////////////////////////
-
-////////////////////////////////////////////////////////////////////////////
-// 19-Jul-99
-// Ferdinand Prantl:
-// + FEATURE: see cpps ...
-//
-// ... it's being edited very rapidly so sorry for non-commented
-// and maybe "ugly" code ...
-////////////////////////////////////////////////////////////////////////////
-
-#ifndef __CCrystalTextBuffer_INL_INCLUDED
-#define __CCrystalTextBuffer_INL_INCLUDED
-
-#include "ccrystaltextbuffer.h"
-
-inline bool CCrystalTextBuffer::
-IsModified ()
-const
-{
- return m_bModified;
-}
-
-inline bool CCrystalTextBuffer::GetInsertTabs() const //UPDATE-BEGIN
-{
- return m_bInsertTabs;
-}
-
-inline void CCrystalTextBuffer::SetInsertTabs(bool bInsertTabs)
-{
- m_bInsertTabs = bInsertTabs;
-}
-
-#endif
#define ASSERT_VALIDTEXTPOS(pt)
#endif
-#if ! (defined(CE_FROM_DLL) || defined(CE_DLL_BUILD))
-#include "ccrystaltextview.inl"
-#endif
+
+inline bool CCrystalTextView::IsDraggingText () const
+{
+ return m_bDraggingText;
+}
/////////////////////////////////////////////////////////////////////////////
+++ /dev/null
-////////////////////////////////////////////////////////////////////////////
-// File: CCrystalTextView.inl
-// Version: 1.0.0.0
-// Created: 29-Dec-1998
-//
-// Author: Stcherbatchenko Andrei
-// E-mail: windfall@gmx.de
-//
-// Inline functions of Crystal Edit classes
-//
-// You are free to use or modify this code to the following restrictions:
-// - Acknowledge me somewhere in your about box, simple "Parts of code by.."
-// will be enough. If you can't (or don't want to), contact me personally.
-// - LEAVE THIS HEADER INTACT
-////////////////////////////////////////////////////////////////////////////
-
-////////////////////////////////////////////////////////////////////////////
-// 19-Jul-99
-// Ferdinand Prantl:
-// + FEATURE: see cpps ...
-//
-// ... it's being edited very rapidly so sorry for non-commented
-// and maybe "ugly" code ...
-////////////////////////////////////////////////////////////////////////////
-
-#ifndef __CCrystalTextView_INL_INCLUDED
-#define __CCrystalTextView_INL_INCLUDED
-
-#include "ccrystaltextview.h"
-
-inline bool CCrystalTextView::
-IsDraggingText ()
-const
-{
- return m_bDraggingText;
-}
-
-#endif
HINSTANCE CCrystalEditViewEx::GetResourceHandle()
{
-#ifdef CE_DLL_BUILD
- return g_hDllInstance;
-#else
// -> HE
// call inherited
return CCrystalEditView::GetResourceHandle();
// <- HE
// OLD
//return AfxGetInstanceHandle();
-#endif
}
#include "StdAfx.h"
#include "filesup.h"
-#ifdef _DEBUG
-#include "filesup.inl"
-#endif // _DEBUG
-
-#ifdef INLINE
-#undef INLINE
-#endif
-#define INLINE
-
////////////////////////////////////////////////////////////////////////////////
bool FileExist(LPCTSTR lpszPath)
return CFile::GetStatus(lpszPath, status) != 0;
}
-INLINE int
-GetExtPosition (LPCTSTR pszString)
+int GetExtPosition (LPCTSTR pszString)
{
if (!pszString || !*pszString)
return 0;
return len;
}
-INLINE CString
-GetExt (CString sString)
+CString GetExt (CString sString)
{
if (!sString.IsEmpty ())
{
return sString;
}
-INLINE CString
-GetName (const CString & sString)
+CString GetName (const CString & sString)
{
int nPosition = GetNamePosition (sString), nPosition2 = GetExtPosition (sString);
return sString.IsEmpty ()? sString : (nPosition2 == sString.GetLength ()? sString.Mid (nPosition) : sString.Mid (nPosition, nPosition2 - nPosition));
}
-INLINE CString
-GetNameExt (const CString & sString)
+CString GetNameExt (const CString & sString)
{
return sString.IsEmpty ()? sString : sString.Mid (GetNamePosition (sString));
}
-INLINE int
-GetNamePosition (LPCTSTR pszString)
+int GetNamePosition (LPCTSTR pszString)
{
if (!pszString || !*pszString)
return 0;
return posit;
}
-INLINE CString
-GetPath (const CString & sString, bool bClose /*= false*/ )
+CString GetPath (const CString & sString, bool bClose /*= false*/ )
{
if (sString.IsEmpty ())
return sString;
return sString.Left (bClose ? posit : test == _T (':') ? posit : posit - 1);
}
-INLINE CString
-GetPathName (const CString & sString)
+CString GetPathName (const CString & sString)
{
int nPosition = GetExtPosition (sString);
int EDITPADC_CLASS GetNamePosition (LPCTSTR pszString);
CString EDITPADC_CLASS GetPath (const CString & sString, bool bClose = false);
CString EDITPADC_CLASS GetPathName (const CString & sString);
-
-/////////////////////////////////////////////////////////////////////////////
-
-#ifndef _DEBUG
-#include "filesup.inl"
-#endif // _DEBUG
-
-/////////////////////////////////////////////////////////////////////////////
+++ /dev/null
-///////////////////////////////////////////////////////////////////////////
-// File: filesup.inl
-// Version: 1.1.0.4
-// Updated: 19-Jul-1998
-//
-// Copyright: Ferdinand Prantl, portions by Stcherbatchenko Andrei
-// E-mail: prantl@ff.cuni.cz
-//
-// Some handy stuff to deal with files and their names
-//
-// You are free to use or modify this code to the following restrictions:
-// - Acknowledge me somewhere in your about box, simple "Parts of code by.."
-// will be enough. If you can't (or don't want to), contact me personally.
-// - LEAVE THIS HEADER INTACT
-////////////////////////////////////////////////////////////////////////////
-
-#ifndef __FILESUP_INL__INCLUDED__
-#define __FILESUP_INL__INCLUDED__
-
-////////////////////////////////////////////////////////////////////////////////
-
-#ifdef INLINE
-#undef INLINE
-#endif
-
-#ifndef _DEBUG
-#define INLINE inline
-#else
-#define INLINE
-#endif // _DEBUG
-
-////////////////////////////////////////////////////////////////////////////////
-
-////////////////////////////////////////////////////////////////////////////////
-
-#endif // __FILESUP_INL__INCLUDED__
#define REMEMBER_COUNT 64
-#ifdef _DEBUG
-#include "memcombo.inl"
-#endif // _DEBUG
-
-#ifdef INLINE
-#undef INLINE
-#endif
-#define INLINE
-
/////////////////////////////////////////////////////////////////////////////
// CMemComboBox
//}}AFX_MSG_MAP
END_MESSAGE_MAP ()
+////////////////////////////////////////////////////////////////////////////////
+// Methods
+
+CMemComboBox::CMemComboBox () : m_bFirstFocus (true)
+{
+}
+
+CMemComboBox::~CMemComboBox ()
+{
+}
+
/////////////////////////////////////////////////////////////////////////////
// CMemComboBox message handlers
};
/////////////////////////////////////////////////////////////////////////////
-
-#ifndef _DEBUG
-#include "memcombo.inl"
-#endif // _DEBUG
-
-/////////////////////////////////////////////////////////////////////////////
+++ /dev/null
-///////////////////////////////////////////////////////////////////////////
-// File: memcombo.inl
-// Version: 1.1.0.4
-// Updated: 19-Jul-1998
-//
-// Copyright: Ferdinand Prantl
-// E-mail: prantl@ff.cuni.cz
-//
-// Combo-box saving last typed expressions
-//
-// You are free to use or modify this code to the following restrictions:
-// - Acknowledge me somewhere in your about box, simple "Parts of code by.."
-// will be enough. If you can't (or don't want to), contact me personally.
-// - LEAVE THIS HEADER INTACT
-////////////////////////////////////////////////////////////////////////////
-
-#ifndef __MEMCOMBO_INL__INCLUDED__
-#define __MEMCOMBO_INL__INCLUDED__
-
-#ifdef INLINE
-#undef INLINE
-#endif
-
-#ifndef _DEBUG
-#define INLINE inline
-#else
-#define INLINE
-#endif // _DEBUG
-
-////////////////////////////////////////////////////////////////////////////////
-// Methods
-
-INLINE
-CMemComboBox::CMemComboBox () : m_bFirstFocus (true)
-{
-}
-
-INLINE
-CMemComboBox::~CMemComboBox ()
-{
-}
-
-////////////////////////////////////////////////////////////////////////////////
-
-#endif // __MEMCOMBO_INL__INCLUDED__
<ClInclude Include="CompareEngines\TimeSizeCompare.h" />\r
</ItemGroup>\r
<ItemGroup>\r
- <None Include="..\Externals\crystaledit\editlib\ccrystaleditview.inl" />\r
- <None Include="..\Externals\crystaledit\editlib\ccrystaltextbuffer.inl" />\r
- <None Include="..\Externals\crystaledit\editlib\ccrystaltextview.inl" />\r
- <None Include="..\Externals\crystaledit\editlib\filesup.inl" />\r
- <None Include="..\Externals\crystaledit\editlib\memcombo.inl" />\r
<None Include="res\binarydiff.ico" />\r
<None Include="res\both.bmp" />\r
<None Include="res\equalbinary.ico" />\r
<None Include="..\Docs\Users\ChangeLog.txt">\r
<Filter>ChangeLogs</Filter>\r
</None>\r
- <None Include="..\Externals\crystaledit\editlib\ccrystaleditview.inl">\r
- <Filter>EditLib</Filter>\r
- </None>\r
- <None Include="..\Externals\crystaledit\editlib\ccrystaltextbuffer.inl">\r
- <Filter>EditLib</Filter>\r
- </None>\r
- <None Include="..\Externals\crystaledit\editlib\ccrystaltextview.inl">\r
- <Filter>EditLib</Filter>\r
- </None>\r
- <None Include="..\Externals\crystaledit\editlib\filesup.inl">\r
- <Filter>EditLib</Filter>\r
- </None>\r
- <None Include="..\Externals\crystaledit\editlib\memcombo.inl">\r
- <Filter>EditLib</Filter>\r
- </None>\r
</ItemGroup>\r
<ItemGroup>\r
<ResourceCompile Include="Merge.rc">\r
<ClInclude Include="CompareEngines\TimeSizeCompare.h" />\r
</ItemGroup>\r
<ItemGroup>\r
- <None Include="..\Externals\crystaledit\editlib\ccrystaleditview.inl" />\r
- <None Include="..\Externals\crystaledit\editlib\ccrystaltextbuffer.inl" />\r
- <None Include="..\Externals\crystaledit\editlib\ccrystaltextview.inl" />\r
- <None Include="..\Externals\crystaledit\editlib\filesup.inl" />\r
- <None Include="..\Externals\crystaledit\editlib\memcombo.inl" />\r
<None Include="res\binarydiff.ico" />\r
<None Include="res\both.bmp" />\r
<None Include="res\equalbinary.ico" />\r
<None Include="..\Docs\Users\ChangeLog.txt">\r
<Filter>ChangeLogs</Filter>\r
</None>\r
- <None Include="..\Externals\crystaledit\editlib\ccrystaleditview.inl">\r
- <Filter>EditLib</Filter>\r
- </None>\r
- <None Include="..\Externals\crystaledit\editlib\ccrystaltextbuffer.inl">\r
- <Filter>EditLib</Filter>\r
- </None>\r
- <None Include="..\Externals\crystaledit\editlib\ccrystaltextview.inl">\r
- <Filter>EditLib</Filter>\r
- </None>\r
- <None Include="..\Externals\crystaledit\editlib\filesup.inl">\r
- <Filter>EditLib</Filter>\r
- </None>\r
- <None Include="..\Externals\crystaledit\editlib\memcombo.inl">\r
- <Filter>EditLib</Filter>\r
- </None>\r
</ItemGroup>\r
<ItemGroup>\r
<ResourceCompile Include="Merge.rc">\r