| /trunk/main/sal/osl/unx/ |
| H A D | profile.c | 142 static osl_TStamp closeFileImpl(osl_TFile* pFile, oslProfileOption Flags); 143 static sal_Bool OslProfile_lockFile(const osl_TFile* pFile, osl_TLockMode eMode); 144 static sal_Bool OslProfile_rewindFile(osl_TFile* pFile, sal_Bool bTruncate); 145 static osl_TStamp OslProfile_getFileStamp(osl_TFile* pFile); 147 static sal_Char* OslProfile_getLine(osl_TFile* pFile); 148 static sal_Bool OslProfile_putLine(osl_TFile* pFile, const sal_Char *pszLine); 163 static sal_Bool loadProfile(osl_TFile* pFile, osl_TProfileImpl* pProfile); 168 static sal_Bool writeProfileImpl (osl_TFile* pFile); 193 osl_TFile* pFile; in osl_psz_openProfile() local 231 if ( ( pFile = openFileImpl(pszProfileName, Flags ) ) == NULL ) in osl_psz_openProfile() [all …]
|
| /trunk/main/sal/osl/os2/ |
| H A D | profile.c | 154 static osl_TStamp closeFileImpl(osl_TFile* pFile); 155 static sal_Bool lockFile(const osl_TFile* pFile, osl_TLockMode eMode); 156 static sal_Bool rewindFile(osl_TFile* pFile, sal_Bool bTruncate); 157 static osl_TStamp getFileStamp(osl_TFile* pFile); 159 static sal_Bool getLine(osl_TFile* pFile, const sal_Char *pszLine, int MaxLen); 160 static sal_Bool putLine(osl_TFile* pFile, const sal_Char *pszLine); 175 static sal_Bool loadProfile(osl_TFile* pFile, osl_TProfileImpl* pProfile); 176 static sal_Bool storeProfile(osl_TFile* pFile, osl_TProfileImpl* pProfile, sal_Bool bCleanup); 197 osl_TFile* pFile; in osl_openProfile() local 249 …((pFile = openFileImpl(FileName, (Flags & osl_Profile_WRITELOCK) ? sal_True : sal_False)) == NULL)) in osl_openProfile() [all …]
|
| H A D | diagnose.c | 70 FILE* pFile; in osl_trace__yd_os2() local 96 pFile = fopen( (const char*)pszOslTraceFile, "a+" ); in osl_trace__yd_os2() 97 fputs(_itoa( pid, szPID, 10 ), pFile ); in osl_trace__yd_os2() 98 fputs( ": ", pFile ); in osl_trace__yd_os2() 99 fputs(szBuffer, pFile); in osl_trace__yd_os2() 100 fclose( pFile ); in osl_trace__yd_os2()
|
| /trunk/main/sal/osl/w32/ |
| H A D | profile.cxx | 148 static osl_TStamp closeFileImpl(osl_TFile* pFile); 149 static sal_Bool lockFile(const osl_TFile* pFile, osl_TLockMode eMode); 150 static sal_Bool rewindFile(osl_TFile* pFile, sal_Bool bTruncate); 151 static osl_TStamp getFileStamp(osl_TFile* pFile); 153 static sal_Bool getLine(osl_TFile* pFile, const sal_Char *pszLine, int MaxLen); 154 static sal_Bool putLine(osl_TFile* pFile, const sal_Char *pszLine); 169 static sal_Bool loadProfile(osl_TFile* pFile, osl_TProfileImpl* pProfile); 175 static sal_Bool writeProfileImpl (osl_TFile* pFile); 188 osl_TFile* pFile = NULL; in osl_openProfile() local 240 if ( (! (Flags & osl_Profile_SYSTEM)) && ( (pFile = openFileImpl(FileName, Flags) ) == NULL ) ) in osl_openProfile() [all …]
|
| /trunk/main/sal/workben/ |
| H A D | testfile.cxx | 132 File *pFile; in Initialize() local 164 pFile=new File( iniFileURL ); in Initialize() 165 rc=pFile->open( OpenFlag_Read | OpenFlag_Write ); in Initialize() 191 rc=pFile->setPos( Pos_Absolut, 0 ); in Initialize() 195 rc=pFile->read( pBuffer , uBytesRequested , uBytesRead ); in Initialize() 236 rc=pFile->close(); in Initialize() 254 pFile=new File( file1 ); in Initialize() 255 rc=pFile->open( OpenFlag_Write | OpenFlag_Create ); in Initialize() 258 rc=pFile->close(); in Initialize() 259 delete pFile; in Initialize() [all …]
|
| /trunk/main/vcl/unx/generic/printergfx/ |
| H A D | printerjob.cxx | 100 osl::File* pFile = NULL; in CreateSpoolFile() local 109 pFile = new osl::File (aFileURL); in CreateSpoolFile() 110 nError = pFile->open (OpenFlag_Read | OpenFlag_Write | OpenFlag_Create); in CreateSpoolFile() 113 delete pFile; in CreateSpoolFile() 117 pFile->setAttributes (aFileURL, in CreateSpoolFile() 119 return pFile; in CreateSpoolFile() 778 static bool writeFeature( osl::File* pFile, const PPDKey* pKey, const PPDValue* pValue, bool bUseIn… in writeFeature() argument 801 return pFile->write( aFeature.getStr(), aFeature.getLength(), nWritten ) in writeFeature() 805 bool PrinterJob::writeFeatureList( osl::File* pFile, const JobData& rJob, bool bDocumentSetup ) in writeFeatureList() argument 858 … bSuccess = writeFeature( pFile, pKey, pValue, PrinterInfoManager::get().getUseIncludeFeature() ); in writeFeatureList() [all …]
|
| H A D | psputil.cxx | 155 WritePS (osl::File* pFile, const sal_Char* pString) in WritePS() argument 160 if (nInLength > 0 && pFile) in WritePS() 161 pFile->write (pString, nInLength, nOutLength); in WritePS() 167 WritePS (osl::File* pFile, const sal_Char* pString, sal_uInt64 nInLength) in WritePS() argument 171 if (nInLength > 0 && pFile) in WritePS() 172 pFile->write (pString, nInLength, nOutLength); in WritePS() 178 WritePS (osl::File* pFile, const rtl::OString &rString) in WritePS() argument 183 if (nInLength > 0 && pFile) in WritePS() 184 pFile->write( rString.getStr(), nInLength, nOutLength); in WritePS() 190 WritePS (osl::File* pFile, const rtl::OUString &rString) in WritePS() argument [all …]
|
| H A D | text_gfx.cxx | 790 PrinterGfx::writeResources( osl::File* pFile, std::list< rtl::OString >& rSuppliedFonts, std::list<… in writeResources() argument 807 WritePS (pFile, "%%BeginResource: font "); in writeResources() 808 WritePS (pFile, aPostScriptName.getStr()); in writeResources() 809 WritePS (pFile, "\n"); in writeResources() 814 convertPfbToPfa (aFontFile, *pFile); in writeResources() 817 pFile->setPos(osl_Pos_Current, -1); in writeResources() 820 pFile->read((void *)(&lastchar), uBytes, uBytes); in writeResources() 822 WritePS (pFile, "\n"); in writeResources() 824 WritePS (pFile, "%%EndResource\n"); in writeResources() 834 aIter->PSUploadFont (*pFile, *this, mbUploadPS42Fonts ? true : false, rSuppliedFonts ); in writeResources() [all …]
|
| H A D | psputil.hxx | 50 sal_Bool WritePS (osl::File* pFile, const sal_Char* pString); 51 sal_Bool WritePS (osl::File* pFile, const sal_Char* pString, sal_uInt64 nInLength); 52 sal_Bool WritePS (osl::File* pFile, const rtl::OString &rString); 53 sal_Bool WritePS (osl::File* pFile, const rtl::OUString &rString);
|
| /trunk/main/rsc/source/tools/ |
| H A D | rscdef.cxx | 951 RscFile * pFile; in ~RscFileTab() local 955 pFile = Last(); in ~RscFileTab() 956 while( pFile ){ in ~RscFileTab() 957 Remove( GetIndex( pFile ) ); in ~RscFileTab() 958 delete pFile; in ~RscFileTab() 959 pFile = Prev(); in ~RscFileTab() 1033 RscFile * pFile = First(); in Depend() local 1034 while( pFile ){ in Depend() 1035 if( !pFile->IsIncFile() ){ in Depend() 1036 if( !pFile->Depend( lDepend, lFree ) ) in Depend() [all …]
|
| /trunk/main/connectivity/source/drivers/hsqldb/ |
| H A D | accesslog.hxx | 119 FILE* pFile = getLogFile(); in seek() local 120 fseek( pFile, 0, SEEK_END ); in seek() 121 if ( ftell( pFile ) < pos ) in seek() 124 while ( ftell( pFile ) < pos ) in seek() 125 fwrite( &filler, sizeof( sal_Int8 ), 1, pFile ); in seek() 126 fflush( pFile ); in seek() 128 fseek( pFile, pos, SEEK_SET ); in seek() 129 return ftell( pFile ); in seek()
|
| /trunk/main/xmlhelp/source/cxxhelp/provider/ |
| H A D | resultsetforquery.cxx | 140 FILE* pFile = fopen( "d:\\resultset_out.txt", "w" ); in ResultSetForQuery() local 235 if( pFile ) in ResultSetForQuery() 238 … fprintf( pFile, "Dir %d, Query %d, Item: score=%f, URL=%s\n", iDir, i, fScore, tmp.getStr() ); in ResultSetForQuery() 285 if( pFile ) in ResultSetForQuery() 288 …fprintf( pFile, "Combine: Query %d (first pass), Item %d: score=%f (%f), URL=%s\n", n, i, aItemCop… in ResultSetForQuery() 302 if( pFile ) in ResultSetForQuery() 305 … fprintf( pFile, "Combine: Query %d, Item %d: score=%f + %f = %f, URL=%s\n", n, i, in ResultSetForQuery() 346 if( pFile ) in ResultSetForQuery() 353 fprintf( pFile, "Vector %d, %d elements\n", k, nItemCount ); in ResultSetForQuery() 359 …fprintf( pFile, " Item_vector%d, %d/%d: score=%f, URL=%s\n", k, i, nItemCount, rItem.m_fScore, … in ResultSetForQuery() [all …]
|
| /trunk/main/l10ntools/source/ |
| H A D | srclex.l | 239 FILE *pFile; 240 pFile = GetNextFile(); 241 if ( pFile ) { 242 yyin = pFile; 279 FILE *pFile; 304 pFile = GetNextFile(); 305 if ( !pFile ) 308 yyin = pFile;
|
| H A D | cfglex.l | 189 FILE *pFile; 214 pFile = GetCfgFile(); 216 if ( !pFile ) 219 yyin = pFile;
|
| H A D | xrmlex.l | 200 FILE *pFile; in main() local 223 pFile = GetXrmFile(); in main() 226 if ( !pFile ) in main() 229 yyin = pFile; in main()
|
| /trunk/main/sfx2/source/doc/ |
| H A D | objcont.cxx | 136 ::boost::shared_ptr<GDIMetaFile> pFile(new GDIMetaFile); in CreatePreviewMetaFile_Impl() 147 pFile->SetPrefMapMode( aMode ); in CreatePreviewMetaFile_Impl() 162 pFile->SetPrefSize( aTmpSize ); in CreatePreviewMetaFile_Impl() 166 pFile->Record( &aDevice ); in CreatePreviewMetaFile_Impl() 182 pFile->Stop(); in CreatePreviewMetaFile_Impl() 184 return pFile; in CreatePreviewMetaFile_Impl() 957 SfxMedium *pFile = GetMedium(); in UpdateFromTemplate_Impl() local 958 DBG_ASSERT( pFile, "cannot UpdateFromTemplate without medium" ); in UpdateFromTemplate_Impl() 959 if ( !pFile ) in UpdateFromTemplate_Impl() 962 if ( !::utl::LocalFileHelper::IsLocalFile( pFile->GetName() ) ) in UpdateFromTemplate_Impl() [all …]
|
| H A D | new.cxx | 73 ::boost::shared_ptr<GDIMetaFile> pFile = pObj in SetObjectShell() 76 pMetaFile = pFile; in SetObjectShell() 102 void SfxPreviewBase_Impl::SetGDIFile( ::boost::shared_ptr<GDIMetaFile> pFile ) in SetGDIFile() argument 104 pMetaFile = pFile; in SetGDIFile() 116 const Rectangle&, GDIMetaFile* pFile, Window* pWindow ) in ImpPaint() argument 118 Size aTmpSize = pFile ? pFile->GetPrefSize() : Size(1,1 ); in ImpPaint() 148 if ( pFile ) in ImpPaint() 158 pFile->WindStart(); in ImpPaint() 159 pFile->Play( pWindow, aPoint + Point( FRAME, FRAME ), aSize ); in ImpPaint()
|
| /trunk/main/sd/source/ui/dlg/ |
| H A D | docprev.cxx | 91 void SdDocPreviewWin::CalcSizeAndPos( GDIMetaFile* pFile, Size& rSize, Point& rPoint ) in CalcSizeAndPos() argument 93 Size aTmpSize = pFile ? pFile->GetPrefSize() : Size(1,1 ); in CalcSizeAndPos() 114 void SdDocPreviewWin::ImpPaint( GDIMetaFile* pFile, OutputDevice* pVDev ) in ImpPaint() argument 119 CalcSizeAndPos( pFile, aSize, aPoint ); in ImpPaint() 128 if( pFile ) in ImpPaint() 132 pFile->WindStart(); in ImpPaint() 133 pFile->Play( pVDev, aPoint, aSize ); in ImpPaint()
|
| /trunk/main/fpicker/source/win32/filepicker/ |
| H A D | VistaFilePicker.cxx | 105 FILE* pFile = fopen(LOGFILE_VISTA, "a"); \ 106 fprintf(pFile, PARAM_MESSAGE); \ 107 fclose(pFile); \ 112 FILE* pFile = fopen(LOGFILE_VISTA, "a"); \ 113 fprintf(pFile, PARAM_MESSAGE, PARAM_1); \ 114 fclose(pFile); \ 119 FILE* pFile = fopen(LOGFILE_VISTA, "a"); \ 120 fprintf(pFile, PARAM_MESSAGE, PARAM_1, PARAM_2); \ 121 fclose(pFile); \
|
| /trunk/main/l10ntools/source/help/ |
| H A D | HelpLinker.cxx | 175 void writeKeyValue_DBHelp( FILE* pFile, const std::string& aKeyStr, const std::string& aValueStr ) in writeKeyValue_DBHelp() argument 177 if( pFile == NULL ) in writeKeyValue_DBHelp() 182 fprintf( pFile, "%x ", nKeyLen ); in writeKeyValue_DBHelp() 185 if (fwrite( aKeyStr.c_str(), 1, nKeyLen, pFile ) != nKeyLen) in writeKeyValue_DBHelp() 188 if (fprintf( pFile, " %x ", nValueLen ) < 0) in writeKeyValue_DBHelp() 192 if (fwrite( aValueStr.c_str(), 1, nValueLen, pFile ) != nValueLen) in writeKeyValue_DBHelp() 195 if (fprintf( pFile, "%c", cLF ) < 0) in writeKeyValue_DBHelp() 215 FILE* pFile = _wfopen( rFileName.native_file_string_w(), L"wb" ); in dump_DBHelp() local 217 FILE* pFile = fopen( rFileName.native_file_string().c_str(), "wb" ); in dump_DBHelp() 219 if( pFile == NULL ) in dump_DBHelp() [all …]
|
| /trunk/main/vcl/aqua/source/app/ |
| H A D | vclnsapp.mm | 305 -(BOOL)application: (NSApplication*)app openFile: (NSString*)pFile 308 const rtl::OUString aFile( GetOUString( pFile ) ); 324 NSString* pFile = nil; 326 while( (pFile = [it nextObject]) != nil ) 328 const rtl::OUString aFile( GetOUString( pFile ) ); 348 -(BOOL)application: (NSApplication*)app printFile: (NSString*)pFile 351 const rtl::OUString aFile( GetOUString( pFile ) ); 366 NSString* pFile = nil; 368 while( (pFile = [it nextObject]) != nil ) 372 aFileList.append( GetOUString( pFile ) );
|
| /trunk/main/framework/source/application/ |
| H A D | login.cxx | 234 FILE* pFile = fopen( m_sTempFile.getStr(), "w" ); in Main() local 235 LOG_ASSERT( !(pFile==NULL), "LoginApplication::Main()\nCould not open file!\n" ); in Main() 236 if( pFile != NULL ) in Main() 239 fprintf( pFile, sEncodedOut.getStr() ); in Main() 240 fclose ( pFile ); in Main()
|
| /trunk/main/unotools/source/ucbhelper/ |
| H A D | localfilehelper.cxx | 204 ::rtl::OUString* pFile = new ::rtl::OUString( aId ); in DECLARE_LIST() 205 pFiles->Insert( pFile, LIST_APPEND ); in DECLARE_LIST() 227 ::rtl::OUString* pFile = pFiles->GetObject(i); in DECLARE_LIST() 228 pRet[i] = *( pFile ); in DECLARE_LIST() 229 delete pFile; in DECLARE_LIST()
|
| /trunk/main/vcl/inc/ |
| H A D | printerjob.hxx | 85 bool writeFeatureList( osl::File* pFile, const JobData&, bool bDocumentSetup ); 86 bool writeSetup( osl::File* pFile, const JobData& ); 87 bool writePageSetup( osl::File* pFile, const JobData&, bool bWriteFeatures = true ); 89 bool writeProlog (osl::File* pFile, const JobData& );
|
| /trunk/main/sot/source/sdstor/ |
| H A D | ucbstorage.cxx | 3333 sal_Bool UCBStorage::IsStorageFile( SvStream* pFile ) argument 3335 if ( !pFile ) 3338 sal_uLong nPos = pFile->Tell(); 3339 pFile->Seek( STREAM_SEEK_TO_END ); 3340 if ( pFile->Tell() < 4 ) 3343 pFile->Seek(0); 3345 *pFile >> nBytes; 3355 *pFile >> nBytes; 3360 pFile->Seek( nPos ); 3364 sal_Bool UCBStorage::IsDiskSpannedFile( SvStream* pFile ) argument [all …]
|